diff --git a/js/medicine/surgery/reaction/preg1hack.js b/js/medicine/surgery/reaction/preg1hack.js index 8d69e51fa9503cce997de5682a37a19d052f8813..e3951e9ffd8183d90fa63b8f51a523f7af272392 100644 --- a/js/medicine/surgery/reaction/preg1hack.js +++ b/js/medicine/surgery/reaction/preg1hack.js @@ -10,7 +10,7 @@ r.push(`The hacking process is brief, being little more than inserting the actuator into ${his} vagina, and leaves ${him} with <span class="health dec">nothing more than minor health effects</span> from the altered implant functions. ${He} leaves the surgery without any specific feeling, but ${he} knows that something has been done to ${his} implant.`); // My testing shows that 2 or 3 relatively safe for generic adult slave with effective curatives or clinic, 4 - high risk of bursting. So there is a catch with it. - slave.broodmotherFetuses = either(2, 2, 2, 2, 3, 3, 4); + slave.broodmotherFetuses = [2, 2, 2, 2, 3, 3, 4].random(); if (slave.fetish === "mindbroken") { /* nothing*/ diff --git a/js/medicine/surgery/reaction/retrogradeVirusInjectionNCS.js b/js/medicine/surgery/reaction/retrogradeVirusInjectionNCS.js index 25a58e095776d71e97cff7922322393bdb288f1e..02c467c9196236c89ef83636cd72c35901f6338b 100644 --- a/js/medicine/surgery/reaction/retrogradeVirusInjectionNCS.js +++ b/js/medicine/surgery/reaction/retrogradeVirusInjectionNCS.js @@ -89,7 +89,7 @@ slave.boobs -= Math.round(slave.boobs * .1); } if ((slave.shoulders - Math.abs(slave.shouldersImplant) > -1) && (slave.hips - Math.abs(slave.hipsImplant) > -1)) { - physicalChanges.push(`'both ${his} hips and shoulders are <span class="orange">less wide,</span>`); + physicalChanges.push(`both ${his} hips and shoulders are <span class="orange">less wide,</span>`); slave.hips -= 1; slave.shoulders -= 1; } else if (slave.shoulders - Math.abs(slave.shouldersImplant) > -1) { @@ -191,7 +191,7 @@ r.push(`also`); } r.push(`${sense} that ${his} body has some physical changes, it seems to ${him} that ${toSentence(physicalChanges)}`); - const reaction = either('comes as a bit of a surprise', 'comes as quite a shock', `confirms ${his} suspicions`, `doesn't seem to phase ${him}`, `${he} finds interesting`, `${he} can't get over`) + '.'; + const reaction = ['comes as a bit of a surprise', 'comes as quite a shock', `confirms ${his} suspicions`, `doesn't seem to phase ${him}`, `${he} finds interesting`, `${he} can't get over`].random() + '.'; r.push(`which ${reaction}`); } if (statusChanges.length > 0) { diff --git a/src/005-passages/interactPassages.js b/src/005-passages/interactPassages.js index ee72969f078b63f03c434747cda6d1ad9f07e991..9126eb9360d86e2978b087afc6a28b5c591d1dda 100644 --- a/src/005-passages/interactPassages.js +++ b/src/005-passages/interactPassages.js @@ -22,8 +22,8 @@ new App.DomPassage("KillSlave", () => App.UI.SlaveInteract.killSlave(getSlave(V. new App.DomPassage("Fat Grafting", () => { - V.nextButton = "Finalize fat transfer"; - V.nextLink = "Surgery Degradation"; + V.nextButton = "Back"; + V.nextLink = "Remote Surgery"; return App.UI.SlaveInteract.fatGraft(getSlave(V.AS)); } diff --git a/src/facilities/surgery/surgeryPassageUpper.js b/src/facilities/surgery/surgeryPassageUpper.js index 1a4cb7a288738f9715332e94534e0db6617bd4a3..dc4ced0d190a574b052c602fbcd1834d3ac33e87 100644 --- a/src/facilities/surgery/surgeryPassageUpper.js +++ b/src/facilities/surgery/surgeryPassageUpper.js @@ -473,23 +473,7 @@ App.UI.surgeryPassageUpper = function(slave, cheat = false) { )); } if (V.surgeryUpgrade === 1) { - linkArray.push( - App.UI.DOM.link( - "Fat grafting", - () => { - slave.boobs += (Math.max(V.boobFat, 0) || 0) * 100; - slave.butt += Math.max(V.buttFat, 0) || 0; - slave.boobs = Math.clamp(slave.boobs, 0, 50000); - slave.butt = Math.clamp(slave.butt, 0, 20); - - surgeryDamage(slave, 40); - cashX(forceNeg(V.surgeryCost * 2), "slaveSurgery", slave); - V.surgeryType = "fat graft"; - }, - [], - "Fat Grafting" - ) - ); + linkArray.push(App.UI.DOM.passageLink("Fat grafting", "Fat Grafting")); } } App.Events.addNode(el, r, "div"); diff --git a/src/npc/surgery/fatGraft.js b/src/npc/surgery/fatGraft.js index 287102ef65c0b29bfc1c72bd392b8f7592133317..461f12ceecd4e31a7f8023fe68c97dddd3dec01e 100644 --- a/src/npc/surgery/fatGraft.js +++ b/src/npc/surgery/fatGraft.js @@ -96,12 +96,23 @@ App.UI.SlaveInteract.fatGraft = function(slave) { linkArray.push(App.UI.DOM.disabledLink(`No fat marked for ass use.`, [])); } App.UI.DOM.appendNewElement("div", p, App.UI.DOM.generateLinksStrip(linkArray)); + App.UI.DOM.appendNewElement("p", el, App.UI.DOM.passageLink("Finalize fat transfer", "Surgery Degradation", () => { + slave.boobs += boobFat * 100; + slave.butt += buttFat; + slave.boobs = Math.clamp(slave.boobs, 0, 50000); + slave.butt = Math.clamp(slave.butt, 0, 20); + + V.boobFat = boobFat; + V.buttFat = buttFat; + + surgeryDamage(slave, 40); + cashX(forceNeg(V.surgeryCost * 2), "slaveSurgery", slave); + V.surgeryType = "fat graft"; + })); return el; } function refresh() { - V.boobFat = boobFat; - V.buttFat = buttFat; jQuery(passage).empty().append(content()); } };