diff --git a/src/cheats/cheatEditSlave.js b/src/cheats/cheatEditSlave.js index 433f7eeb38e846bf742c70a24fea0a3084425dea..1aca020eb65f59d78b44df9371d88a61df713784 100644 --- a/src/cheats/cheatEditSlave.js +++ b/src/cheats/cheatEditSlave.js @@ -50,7 +50,7 @@ App.UI.SlaveInteract.cheatEditSlave = function(slave) { App.UI.tabBar.tabButton('lower', tabCaptions.lower), ); if (V.tempSlave.womb.length > 0) { - App.UI.tabBar.tabButton('womb', tabCaptions.womb); + tabBar.append(App.UI.tabBar.tabButton('womb', tabCaptions.womb)); } tabBar.append( App.UI.tabBar.tabButton('genetic-quirks', tabCaptions.quirks), diff --git a/src/facilities/surgery/analyzePregnancy.js b/src/facilities/surgery/analyzePregnancy.js index 5ab204a517d65dac1db115857624a8de806830cc..f15628cbf5455ba2d778aadcf0a3172a55d53f7e 100644 --- a/src/facilities/surgery/analyzePregnancy.js +++ b/src/facilities/surgery/analyzePregnancy.js @@ -125,17 +125,7 @@ globalThis.analyzePregnancies = function(mother, cheat) { } if (fetus.age < 4 && (V.arcologies[0].FSRestart === "unset" || V.eugenicsFullControl === 1 || mother.breedingMark === 0 || V.propOutcome === 0 || (fetus.fatherID !== -1 && fetus.fatherID !== -6))) { - option = options.addOption(``) - .customButton( - "Terminate ovum", - () => { - WombRemoveFetus(mother, i); - if (mother.preg === 0) { - mother.pregWeek = -1; - } - }, - passage() - ) + option = options.addOption(`Surgical options`) .customButton( "Terminate ovum", () => { @@ -152,7 +142,7 @@ globalThis.analyzePregnancies = function(mother, cheat) { () => { V.donatrix = mother; V.wombIndex = i; - V.nextLink = "Analyze Pregnancy"; + V.nextLink = passage(); }, "Ova Transplant Workaround" ); @@ -207,7 +197,7 @@ globalThis.analyzePregnancies = function(mother, cheat) { } else { App.UI.DOM.appendNewElement("div", el, `Unidentified ova found, no detailed data available.`); App.UI.DOM.appendNewElement("div", el, `Age: too early for scan.`); - option = options.addOption(``) + option = options.addOption(`Surgical options`) .customButton( `Terminate ovum`, () => { @@ -231,6 +221,7 @@ globalThis.analyzePregnancies = function(mother, cheat) { ); } } + el.append(options.render()); return el; function fetusAbnormalities() {