Skip to content
Snippets Groups Projects
Commit 935cf603 authored by Pregmodder's avatar Pregmodder
Browse files

Merge branch 'analyzxe-preg-button-fix' into 'pregmod-master'

Analyze preg button fix

Closes #2974

See merge request pregmodfan/fc-pregmod!9184
parents 7e379ddb eb52cc5c
No related branches found
No related tags found
No related merge requests found
......@@ -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),
......
......@@ -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() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment