From ae1d3c21b12f70308a0455f63eb10bd5ad998977 Mon Sep 17 00:00:00 2001 From: Arkerthan <arkerthan@mailbox.org> Date: Sun, 30 Mar 2025 14:56:58 +0200 Subject: [PATCH] Add hint, if the player is too uneducated for human cloning --- src/facilities/geneLab.js | 34 ++++++++++++++++++++-------------- 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/src/facilities/geneLab.js b/src/facilities/geneLab.js index 372571afb5d..ab8a1f6f883 100644 --- a/src/facilities/geneLab.js +++ b/src/facilities/geneLab.js @@ -162,21 +162,27 @@ App.UI.geneLab = function() { App.UI.DOM.appendNewElement("h2", node, `Genetic Harvesting`); const humanCloning = 100000 * PCSkillCheck; - if (V.cloningSystem !== 1 && V.rep <= 18000 * PCSkillCheck) { - App.UI.DOM.appendNewElement("div", node, `You lack the reputation needed to access methods for human cloning`, ["note"]); - } else if ((V.cloningSystem !== 1) && (V.rep > 18000 * PCSkillCheck)) { - if (V.organFarmUpgrade === 0) { - App.UI.DOM.appendNewElement("div", node, `An organ farm is needed to grow the blank embryo to serve as a clone base`, ["note"]); + if (V.cloningSystem === 0) { + if (V.rep <= 18000 * PCSkillCheck) { + if (V.rep >= 20_000) { + App.UI.DOM.appendNewElement("div", node, `You have heard rumors of human cloning, but such technology is too advanced for your understanding. Perhaps you should invest into your own education.`, ["note"]); + } else { + App.UI.DOM.appendNewElement("div", node, `You lack the reputation needed to access methods for human cloning`, ["note"]); + } } else { - App.UI.DOM.appendNewElement("div", node, App.UI.DOM.link( - "Purchase methods for human cloning", - () => { - cashX(forceNeg(humanCloning), "capEx"); - V.cloningSystem = 1; - App.UI.reload(); - }, [], "", - `Costs ${cashFormat(humanCloning)}. Will allow children to be created with identical base genetics as the source DNA` - )); + if (V.organFarmUpgrade === 0) { + App.UI.DOM.appendNewElement("div", node, `An organ farm is needed to grow the blank embryo to serve as a clone base`, ["note"]); + } else { + App.UI.DOM.appendNewElement("div", node, App.UI.DOM.link( + "Purchase methods for human cloning", + () => { + cashX(forceNeg(humanCloning), "capEx"); + V.cloningSystem = 1; + App.UI.reload(); + }, [], "", + `Costs ${cashFormat(humanCloning)}. Will allow children to be created with identical base genetics as the source DNA` + )); + } } } else if (V.cloningSystem > 0) { App.UI.DOM.appendNewElement("div", node, `The gene lab is capable of implanting a slave's genetic sequence into a blank embryo to produce a basic clone.`); -- GitLab