diff --git a/src/facilities/surgery/surgeryPassageLower.js b/src/facilities/surgery/surgeryPassageLower.js index 9a23b67d0b19b3d27f4effe4fb6e72de1e97dc2d..7392a8334bb0c0ea4139d81e5da66712d1df8342 100644 --- a/src/facilities/surgery/surgeryPassageLower.js +++ b/src/facilities/surgery/surgeryPassageLower.js @@ -300,27 +300,30 @@ App.UI.surgeryPassageLower = function(slave, cheat = false) { ); } - if (slave.preg > -2 && slave.preg < 1 && (slave.ovaries !== 0 || slave.mpreg !== 0)) { - if (slave.indentureRestrictions < 1 && (slave.breedingMark !== 1 || V.propOutcome === 0 || V.eugenicsFullControl === 1 || V.arcologies[0].FSRestart === "unset")) { + if (slave.ovaries !== 0 || slave.mpreg !== 0) { + if (slave.preg > -2 && slave.preg < 1) { + if (slave.indentureRestrictions < 1 && (slave.breedingMark !== 1 || V.propOutcome === 0 || V.eugenicsFullControl === 1 || V.arcologies[0].FSRestart === "unset")) { + linkArray.push(makeLink( + "Sterilize", + "ster", + () => { + slave.preg = -2; + surgeryDamage(slave, 10); + } + )); + } + } else if (slave.preg !== -3) { linkArray.push(makeLink( - "Sterilize", - "ster", + "Restore fertility", + "fert", () => { - slave.preg = -2; + slave.preg = 0; surgeryDamage(slave, 10); } )); } - } else if (slave.preg < 1 && (slave.ovaries !== 0 || slave.mpreg !== 0) && slave.preg !== -3) { - linkArray.push(makeLink( - "Restore fertility", - "fert", - () => { - slave.preg = 0; - surgeryDamage(slave, 10); - } - )); } + App.Events.addNode(el, r, "div"); App.UI.DOM.appendNewElement("div", el, App.UI.DOM.generateLinksStrip(linkArray), "choices"); if (slave.ovaries === 1 || slave.mpreg === 1) {