Skip to content
Snippets Groups Projects
Commit 02db7fd3 authored by Pregmodder's avatar Pregmodder
Browse files

Merge branch 'pregmod-dev' into 'pregmod-master'

Fix ovary surgeries

See merge request !8844
parents cd35f2c5 47842543
No related branches found
No related tags found
No related merge requests found
......@@ -392,9 +392,13 @@ App.UI.surgeryPassageLower = function(slave, cheat = false) {
));
}
}
App.Events.addNode(el, r, "div");
App.UI.DOM.appendNewElement("div", el, App.UI.DOM.generateLinksStrip(linkArray), "choices");
}
if (slave.indentureRestrictions < 1 && (slave.breedingMark !== 1 || V.propOutcome === 0 || V.eugenicsFullControl === 1 || V.arcologies[0].FSRestart === "unset")) {
r = [];
linkArray = [];
if (slave.ovaries === 1) {
if (slave.preg > 0) {
linkArray.push(
......@@ -437,9 +441,13 @@ App.UI.surgeryPassageLower = function(slave, cheat = false) {
));
}
}
App.Events.addNode(el, r, "div");
App.UI.DOM.appendNewElement("div", el, App.UI.DOM.generateLinksStrip(linkArray), "choices");
}
if (V.seeExtreme === 1 && V.seeHyperPreg === 1 && V.seePreg !== 0 && V.permaPregImplant === 1) {
r = [];
linkArray = [];
if (slave.assignment === "work in the dairy" && V.dairyPregSetting > 0) {
r.push(`${His} womb is already rented out for the production of calves.`);
} else if (slave.broodmother > 0) {
......
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