diff --git a/src/js/birth/birth.js b/src/js/birth/birth.js index dbf89b73c9d299766d9f64ad9ebedf0434cc094e..cf02135d6b8b5d96d8b59f69a356528e6cc41114 100644 --- a/src/js/birth/birth.js +++ b/src/js/birth/birth.js @@ -19,7 +19,7 @@ globalThis.allBirths = function() { } }; /** - * + * Describes birth for a single slave, and can present options for the player to send the babies to a particular place * @param {App.Entity.SlaveState} slave */ globalThis.birth = function(slave) { @@ -33,8 +33,9 @@ globalThis.birth = function(slave) { let birthDamage = 0; let newMother = 0; let diffSize; - let curBabies; let numStillborn = 0; + let babiesBeingBorn; + let numBeingBorn; const babies = (slave.pregType > 1) ? `babies` : `baby`; const children = (slave.pregType > 1) ? `children` : `child`; const childrenAre = (slave.pregType > 1) ? `children are` : `child is`; @@ -431,19 +432,18 @@ globalThis.birth = function(slave) { slave.pregControl = "none"; const beforeSize = WombGetVolume(slave); - // TODO: slave.curBabies and "curBabies" (really slave.curBabies.length) are too confusing. Detach curBabies from the slave object. We're in the loop here already. -LCD if (slave.broodmother > 0) { - slave.curBabies = WombBirth(slave, 37); // broodmothers - give birth for all 37+ week fetuses. + babiesBeingBorn = WombBirth(slave, 37); // broodmothers - give birth for all 37+ week fetuses. } else if (slave.prematureBirth === 1) { - slave.curBabies = WombBirth(slave, slave.pregData.minLiveBirth / 1.5); // around 22 weeks for human + babiesBeingBorn = WombBirth(slave, slave.pregData.minLiveBirth / 1.5); // around 22 weeks for human } else { - slave.curBabies = WombBirth(slave, slave.pregData.minLiveBirth); // Normal human pregnancy - 34 week is minimal gestation time for live birth. + babiesBeingBorn = WombBirth(slave, slave.pregData.minLiveBirth); // Normal human pregnancy - 34 week is minimal gestation time for live birth. } - curBabies = slave.curBabies.length; // just to improve speed and usability here. - slave.counter.births += curBabies; - slave.counter.birthsTotal += curBabies; - V.birthsTotal += curBabies; - for (const baby of slave.curBabies) { + numBeingBorn = babiesBeingBorn.length; // just to improve speed and usability here. + slave.counter.births += numBeingBorn; + slave.counter.birthsTotal += numBeingBorn; + V.birthsTotal += numBeingBorn; + for (const baby of babiesBeingBorn) { if (baby.fatherID === -1) { V.PC.counter.slavesFathered++; } else if (baby.fatherID > 0) { @@ -461,7 +461,7 @@ globalThis.birth = function(slave) { numStillborn = slave.womb.length; WombFlush(slave); } else if (V.surgeryUpgrade === 1) { - // if true - need nothing, birthed babies already in slave.curBabies, stillbirth is 0. + // if true - need nothing, birthed babies already in babiesBeingBorn, stillbirth is 0. } else { numStillborn = slave.womb.length; WombFlush(slave); @@ -497,20 +497,20 @@ globalThis.birth = function(slave) { } } - if (curBabies < 1) { + if (numBeingBorn < 1) { r.push(`to nothing, as it was a stillbirth.`); // TODO: syntax wise this has problems. Will likely need to be reworked. - } else if (curBabies === 1) { + } else if (numBeingBorn === 1) { r.push(`to a single calf.`); - } else if (curBabies >= 40) { - r.push(`to a massive brood of ${curBabies} calves.`); - } else if (curBabies >= 20) { - r.push(`to a brood of ${curBabies} calves.`); - } else if (curBabies >= 10) { - r.push(`to a squirming pile of ${curBabies} calves.`); + } else if (numBeingBorn >= 40) { + r.push(`to a massive brood of ${numBeingBorn} calves.`); + } else if (numBeingBorn >= 20) { + r.push(`to a brood of ${numBeingBorn} calves.`); + } else if (numBeingBorn >= 10) { + r.push(`to a squirming pile of ${numBeingBorn} calves.`); } else { - r.push(`to calf ${pregNumberName(curBabies, 2)}.`); + r.push(`to calf ${pregNumberName(numBeingBorn, 2)}.`); } - if (numStillborn > 0 && curBabies > 0) { + if (numStillborn > 0 && numBeingBorn > 0) { r.push(`An additional ${numStillborn}`); if (numStillborn === 1) { r.push(`was`); @@ -522,7 +522,7 @@ globalThis.birth = function(slave) { } else { /* ---------- normal birth variant. -------------------------------------------------------------*/ const fathers = []; - for (const baby of slave.curBabies) { + for (const baby of babiesBeingBorn) { if (baby.fatherID === 0) { fathers.push("an unknown father"); } else if (baby.fatherID === -1) { @@ -592,23 +592,23 @@ globalThis.birth = function(slave) { r.push(`to`); } } - if (curBabies < 1) { + if (numBeingBorn < 1) { r.push(`nothing, as it was a stillbirth.`); - } else if (curBabies === 1) { + } else if (numBeingBorn === 1) { r.push(`a single baby,`); - } else if (curBabies >= 40) { - r.push(`a massive brood of ${curBabies} babies,`); - } else if (curBabies >= 20) { - r.push(`a brood of ${curBabies} babies,`); - } else if (curBabies >= 10) { - r.push(`a squirming pile of ${curBabies} babies,`); + } else if (numBeingBorn >= 40) { + r.push(`a massive brood of ${numBeingBorn} babies,`); + } else if (numBeingBorn >= 20) { + r.push(`a brood of ${numBeingBorn} babies,`); + } else if (numBeingBorn >= 10) { + r.push(`a squirming pile of ${numBeingBorn} babies,`); } else { - r.push(`${pregNumberName(curBabies, 2)},`); + r.push(`${pregNumberName(numBeingBorn, 2)},`); } - if (curBabies > 0) { + if (numBeingBorn > 0) { r.push(`created by ${arrayToSentence(fathersReduced)}${(cSection === 1) ? ', entered the world' : ''}.`); } - if (numStillborn > 0 && curBabies > 0) { + if (numStillborn > 0 && numBeingBorn > 0) { r.push(`An additional ${numStillborn}`); if (numStillborn === 1) { r.push(`was`); @@ -635,14 +635,14 @@ globalThis.birth = function(slave) { /* ---- Postbirth reactions, body -------------------------------------------------------------------------------------------*/ if (cSection !== 1) { // all this block only if no c'section used. r = []; - if (slave.broodmother > 0 || slave.womb.length > 0) { /* Now this block shown only for broodmothers or partial birth. They birth only ready children, so curBabies is effective to see how many birthed this time.*/ - if (diffSize > 1.5 && curBabies >= 80) { // only show if belly lost at least 1/4 of original size. + if (slave.broodmother > 0 || slave.womb.length > 0) { /* Now this block shown only for broodmothers or partial birth. They birth only ready children, so numBeingBorn is effective to see how many birthed this time.*/ + if (diffSize > 1.5 && numBeingBorn >= 80) { // only show if belly lost at least 1/4 of original size. r.push(`After an entire day of labor and birth, ${his} belly sags heavily.`); - } else if (diffSize > 1.5 && curBabies >= 40) { + } else if (diffSize > 1.5 && numBeingBorn >= 40) { r.push(`After half a day of labor and birth, ${his} belly sags softly.`); - } else if (diffSize > 1.5 && curBabies >= 20) { + } else if (diffSize > 1.5 && numBeingBorn >= 20) { r.push(`After several hours of labor and birth, ${his} belly sags softly.`); - } else if (diffSize > 1.5 && curBabies >= 10) { + } else if (diffSize > 1.5 && numBeingBorn >= 10) { r.push(`After few hours of labor and birth, ${his} belly sags softly.`); } else if (diffSize > 1.5) { r.push(`After labor and birth, ${his} belly sags softly.`); @@ -701,7 +701,7 @@ globalThis.birth = function(slave) { if (slave.hips < -1) { r = []; r.push(`${He} had exceedingly narrow hips, completely unsuitable for childbirth. As ${he} struggled on ${his}`); - if (curBabies > 1) { + if (numBeingBorn > 1) { r.push(`first`); } r.push(`child, ${his} pelvic bone strained under the pressure until it could no longer hold together and`); @@ -845,12 +845,12 @@ globalThis.birth = function(slave) { if (slave.mpreg === 1) { if (slave.anus < 2) { r.push(`${His} tight ass`); - r.push(App.UI.DOM.makeElement("span", `hindered ${his} ${(curBabies > 1) ? `babies` : `baby's`} birth.`, "red")); + r.push(App.UI.DOM.makeElement("span", `hindered ${his} ${(numBeingBorn > 1) ? `babies` : `baby's`} birth.`, "red")); } } else { if (slave.vagina < 2) { r.push(`${His} tight vagina`); - r.push(App.UI.DOM.makeElement("span", `hindered ${his} ${(curBabies > 1) ? `babies` : `baby's`} birth.`, "red")); + r.push(App.UI.DOM.makeElement("span", `hindered ${his} ${(numBeingBorn > 1) ? `babies` : `baby's`} birth.`, "red")); } if (slave.vaginaLube === 0) { r.push(`${His} dry vagina made pushing ${his} ${children} out`); @@ -1112,11 +1112,11 @@ globalThis.birth = function(slave) { if (birthDamage > 0) { healthDamage(slave, Math.round(birthDamage / 2) * 10); slave.health.tired += Math.round((birthDamage / 2) * 10); - if (birthDamage > 5 && compoundCondition === 1 && curBabies > 1) { + if (birthDamage > 5 && compoundCondition === 1 && numBeingBorn > 1) { r.push(`Or it would have been, were ${he} only having one. With each additional child that needed to be birthed,`); r.push(App.UI.DOM.makeElement("span", `the damage to ${his} health was compounded.`, "red")); - healthDamage(slave, curBabies); - slave.health.tired += curBabies * 5; + healthDamage(slave, numBeingBorn); + slave.health.tired += numBeingBorn * 5; } slave.health.tired = Math.clamp(slave.health.tired, 0, 100); } else { @@ -1125,12 +1125,12 @@ globalThis.birth = function(slave) { if (slave.geneticQuirks.uterineHypersensitivity === 2) { r.push(`Not only that, but`); r.push(App.UI.DOM.makeElement("span", `the entire process was extremely pleasurable for ${him}`, "green")); - r.push(`${(curBabies > 1) ? `, with orgasms growing more powerful with each baby ${he} brought to the world` : ``}. ${He} can't wait to be impregnated and give birth again,`); + r.push(`${(numBeingBorn > 1) ? `, with orgasms growing more powerful with each baby ${he} brought to the world` : ``}. ${He} can't wait to be impregnated and give birth again,`); if (birthDamage > 10) { r.push(`despite the complications,`); } - slave.energy += curBabies; - slave.need -= curBabies; + slave.energy += numBeingBorn; + slave.need -= numBeingBorn; if (slave.sexualFlaw === "breeder") { r.push(`since for ${him} it is the pinnacle of ${his} existence.`); } else { @@ -1138,7 +1138,7 @@ globalThis.birth = function(slave) { r.push(`having had ${his}`); if (slave.fetishStrength <= 60) { r.push(App.UI.DOM.makeElement("span", `pregnancy fetish deepen from the experience.`, "lightcoral")); - slave.fetishStrength += curBabies; + slave.fetishStrength += numBeingBorn; } else { r.push(App.UI.DOM.makeElement("span", `pregnancy fetish deepen into obsession.`, "lightcoral")); slave.sexualFlaw = "breeder"; @@ -1254,15 +1254,15 @@ globalThis.birth = function(slave) { p.append(`The ${societalElite}`); App.UI.DOM.appendNewElement("span", p, `are pleased`, "green"); p.append(`at the new additions to their class.`); - V.failedElite -= (2 * curBabies); + V.failedElite -= (2 * numBeingBorn); } else if (V.eugenicsFullControl !== 1) { p.append(`The ${societalElite}`); App.UI.DOM.appendNewElement("span", p, `are disappointed`, "red"); p.append(`that you would allow subhuman filth to dirty the arcology under your watch. Society`); App.UI.DOM.appendNewElement("span", p, `frowns`, "red"); p.append(`on the unwelcome addition of more subhumans into the world.`); - V.failedElite += (5 * curBabies); - repX(forceNeg(10 * curBabies), "birth", slave); + V.failedElite += (5 * numBeingBorn); + repX(forceNeg(10 * numBeingBorn), "birth", slave); } el.append(p); } @@ -1278,7 +1278,7 @@ globalThis.birth = function(slave) { let babyCost; let choices; let choice; - for (const baby of slave.curBabies) { + for (const baby of babiesBeingBorn) { if (baby.reserve === "incubator") { cToIncubator++; } else if (baby.reserve === "nursery") { @@ -1286,16 +1286,16 @@ globalThis.birth = function(slave) { } } /* ----------------------- incubator/nursery adding subsection. There is support for broodmothers too. */ - if ((cToIncubator + cToNursery > 0) && curBabies > 0) { + if ((cToIncubator + cToNursery > 0) && numBeingBorn > 0) { // TODO: Do we need keep child checks? r = []; - if (curBabies > 1) { - r.push(`Of ${his} ${curBabies} ${children},`); + if (numBeingBorn > 1) { + r.push(`Of ${his} ${numBeingBorn} ${children},`); } else { r.push(`${His} child`); } if (cToIncubator > 0) { - if (curBabies > 1) { + if (numBeingBorn > 1) { r.push(`${cToIncubator}`); } if (cToIncubator === 1) { @@ -1309,7 +1309,7 @@ globalThis.birth = function(slave) { } } if (cToNursery > 0) { - if (curBabies > 1) { + if (numBeingBorn > 1) { r.push(`${cToNursery}`); } if (cToNursery === 1) { @@ -1321,11 +1321,11 @@ globalThis.birth = function(slave) { } r.push(r.pop() + `.`); if (cToIncubator + cToNursery > 0) { - sendNewbornsToFacility(slave); + babiesBeingBorn = sendNewbornsToFacility(slave, babiesBeingBorn); } - curBabies = slave.curBabies.length; + numBeingBorn = babiesBeingBorn.length; // <br><br> - if (curBabies > 0) { + if (numBeingBorn > 0) { r.push(`After sending ${his} reserved ${children} to`); if (cToIncubator > 0 && cToNursery > 0) { r.push(`${V.incubatorName} and ${V.nurseryName},`); @@ -1334,12 +1334,12 @@ globalThis.birth = function(slave) { } else { r.push(`${V.nurseryName},`); } - r.push(`it's time to decide the fate of the ${(curBabies > 0) ? `others` : `other`}.`); + r.push(`it's time to decide the fate of the ${(numBeingBorn > 0) ? `others` : `other`}.`); } App.Events.addParagraph(el, r); } /* ------------------------ Fate of other babies ---------------------------------------*/ - if (slave.fetish !== "mindbroken" && slave.fuckdoll === 0 && curBabies > 0) { + if (slave.fetish !== "mindbroken" && slave.fuckdoll === 0 && numBeingBorn > 0) { r = []; choices = document.createElement("p"); choices.id = dispositionId; @@ -1347,21 +1347,21 @@ globalThis.birth = function(slave) { r.push(`${His} ${childrenAre} collected by the ${societalElite} to be raised into upstanding members of the new society.`); } else if (slave.breedingMark === 1 && V.propOutcome === 1 && (slave.pregSource === -1 || slave.pregSource === -6) && V.DefaultBirthDestination === "the market") { babyCost = random(2000, 4500); - r.push(`${His} ${(curBabies > 1) ? `babies were` : `baby was`} purchased by the ${societalElite} for`); + r.push(`${His} ${(numBeingBorn > 1) ? `babies were` : `baby was`} purchased by the ${societalElite} for`); r.push( - App.UI.DOM.makeElement("span", `${cashFormat(curBabies * (babyCost))}.`, "yellowgreen") + App.UI.DOM.makeElement("span", `${cashFormat(numBeingBorn * (babyCost))}.`, "yellowgreen") ); - cashX((curBabies * (babyCost)), "babyTransfer"); + cashX((numBeingBorn * (babyCost)), "babyTransfer"); } else if (slave.pregSource === -9 && V.DefaultBirthDestination === "the market") { babyCost = random(1000, 2500); - r.push(`${His} ${(curBabies > 1) ? `babies were` : `baby was`} purchased by the Futanari Sisters for `); + r.push(`${His} ${(numBeingBorn > 1) ? `babies were` : `baby was`} purchased by the Futanari Sisters for `); r.push( - App.UI.DOM.makeElement("span", `${cashFormat(curBabies * (babyCost))}.`, "yellowgreen") + App.UI.DOM.makeElement("span", `${cashFormat(numBeingBorn * (babyCost))}.`, "yellowgreen") ); - cashX((curBabies * (babyCost)), "babyTransfer"); + cashX((numBeingBorn * (babyCost)), "babyTransfer"); } else if (V.DefaultBirthDestination === "individually decided fates") { r.push(`Unless you provide otherwise, the ${children} will be remanded to one of ${V.arcologies[0].name}'s slave orphanages.`); - V.slaveOrphanageTotal += curBabies; // Player may choose nothing. Assume that now, and reverse it later if needed. + V.slaveOrphanageTotal += numBeingBorn; // Player may choose nothing. Assume that now, and reverse it later if needed. if (slave.burst) { // Dead } else if (slave.fetish === "mindbroken" || slave.fuckdoll > 0) { @@ -1388,7 +1388,7 @@ globalThis.birth = function(slave) { App.UI.DOM.link( "Send them to a breeder school", () => { - V.slaveOrphanageTotal -= curBabies; + V.slaveOrphanageTotal -= numBeingBorn; jQuery(`#${dispositionId}`).empty().append(breederResponse()); } ) @@ -1401,7 +1401,7 @@ globalThis.birth = function(slave) { App.UI.DOM.link( "Send them to a citizen school", () => { - V.slaveOrphanageTotal -= curBabies; + V.slaveOrphanageTotal -= numBeingBorn; jQuery(`#${dispositionId}`).empty().append(citizenSchoolResponse()); } ) @@ -1414,7 +1414,7 @@ globalThis.birth = function(slave) { App.UI.DOM.link( `Give them to the ${societalElite}`, () => { - V.slaveOrphanageTotal -= curBabies; + V.slaveOrphanageTotal -= numBeingBorn; jQuery(`#${dispositionId}`).empty().append(eliteResponse()); } ) @@ -1427,7 +1427,7 @@ globalThis.birth = function(slave) { App.UI.DOM.link( "Give them to the Futanari Sisters", () => { - V.slaveOrphanageTotal -= curBabies; + V.slaveOrphanageTotal -= numBeingBorn; jQuery(`#${dispositionId}`).empty().append(futaResponse()); } ) @@ -1439,7 +1439,7 @@ globalThis.birth = function(slave) { App.UI.DOM.link( "Have them raised privately", () => { - V.slaveOrphanageTotal -= curBabies; + V.slaveOrphanageTotal -= numBeingBorn; jQuery(`#${dispositionId}`).empty().append(privatelyResponse()); } ) @@ -1453,7 +1453,7 @@ globalThis.birth = function(slave) { App.UI.DOM.link( "Send them to auction", () => { - V.slaveOrphanageTotal -= curBabies; + V.slaveOrphanageTotal -= numBeingBorn; jQuery(`#${dispositionId}`).empty().append(auctionResponse()); } ) @@ -1465,7 +1465,7 @@ globalThis.birth = function(slave) { App.UI.DOM.link( "Sell them anyway", () => { - V.slaveOrphanageTotal -= curBabies; + V.slaveOrphanageTotal -= numBeingBorn; jQuery(`#${dispositionId}`).empty().append(auctionResponse()); } ) @@ -1496,7 +1496,7 @@ globalThis.birth = function(slave) { r.push(App.UI.DOM.makeElement("span", `hate you for this.`, "mediumorchid")); slave.devotion -= 4; } - V.slaveOrphanageTotal += curBabies; + V.slaveOrphanageTotal += numBeingBorn; break; case "a citizen school": r.push(`${slave.slaveName}`); @@ -1523,7 +1523,7 @@ globalThis.birth = function(slave) { r.push(`will naturally retain some resentment over being separated from ${his} ${children}, but this should be balanced by hope that ${his} offspring will have a better life.`); slave.devotion += 4; } - V.citizenOrphanageTotal += curBabies; + V.citizenOrphanageTotal += numBeingBorn; break; case "a private school": r.push(privatelyResponse()); @@ -1535,7 +1535,7 @@ globalThis.birth = function(slave) { r.push(auctionResponse()); break; default: - r.push(`${His} ${(curBabies > 1) ? `babies were` : `baby was`} sent to ${V.DefaultBirthDestination}.`); + r.push(`${His} ${(numBeingBorn > 1) ? `babies were` : `baby was`} sent to ${V.DefaultBirthDestination}.`); } App.Events.addNode(choices, r); @@ -1555,7 +1555,7 @@ globalThis.birth = function(slave) { r.push(slave.slaveName); r.push(App.UI.DOM.makeElement("span", ` almost orgasms`, "hotpink")); r.push(`when ${he} imagines ${his} ${children} being raised into`); - if (curBabies === 1) { + if (numBeingBorn === 1) { r.push(`a`); } r.push(`breeding-obsessed baby-factory, just like ${himself}.`); @@ -1581,12 +1581,12 @@ globalThis.birth = function(slave) { } else { r.push(`${V.fertilityAge}`); } - r.push(`year old ${(curBabies > 1) ? `daughters` : `daughter`} swollen with life, and proud of it, fills ${him} with`); + r.push(`year old ${(numBeingBorn > 1) ? `daughters` : `daughter`} swollen with life, and proud of it, fills ${him} with`); r.push(App.UI.DOM.makeElement("span", `disdain.`, "gold")); slave.devotion -= 4; slave.trust -= 4; } - V.breederOrphanageTotal += curBabies; + V.breederOrphanageTotal += numBeingBorn; App.Events.addNode(el, r); return el; } @@ -1617,7 +1617,7 @@ globalThis.birth = function(slave) { r.push(`${slave.slaveName} will naturally retain some resentment over being separated from ${his} ${children}, but this should be balanced by hope that ${his} offspring will have a better life.`); slave.devotion += 4; } - V.citizenOrphanageTotal += curBabies; + V.citizenOrphanageTotal += numBeingBorn; App.Events.addNode(el, r); return el; @@ -1626,7 +1626,7 @@ globalThis.birth = function(slave) { const r = []; const el = new DocumentFragment(); r.push(`The ${childrenAre} sent to be raised by the ${societalElite}, to be brought up as`); - if (curBabies > 1) { + if (numBeingBorn > 1) { r.push(`future members`); } else { r.push(`a future member`); @@ -1671,7 +1671,7 @@ globalThis.birth = function(slave) { r.push(`${slave.slaveName} has few thoughts about the matter.`); } else { r.push(`${slave.slaveName} is overjoyed that ${his} ${children} will follow in`); - if (curBabies > 1) { + if (numBeingBorn > 1) { r.push(`their`); } else { r.push(`its`); @@ -1687,7 +1687,7 @@ globalThis.birth = function(slave) { const r = []; const el = new DocumentFragment(); r.push(`The ${childrenAre} sent to be privately raised, to be brought up as`); - if (curBabies > 1) { + if (numBeingBorn > 1) { r.push(`future high class citizens.`); } else { r.push(`a future high class citizen.`); @@ -1717,7 +1717,7 @@ globalThis.birth = function(slave) { slave.devotion += 6; } r.push(`The ${children} will be raised privately, with expert care and tutoring, an expensive proposition.`); - V.privateOrphanageTotal += curBabies; + V.privateOrphanageTotal += numBeingBorn; App.Events.addNode(el, r); return el; } @@ -1728,15 +1728,15 @@ globalThis.birth = function(slave) { if (slave.prematureBirth === 1) { babyCost = random(-32, 40); } - r.push(`${His} ${(curBabies > 1) ? `babies were` : `baby was`} sold for`); - if (curBabies > 1) { + r.push(`${His} ${(numBeingBorn > 1) ? `babies were` : `baby was`} sold for`); + if (numBeingBorn > 1) { r.push(`a total of`); } if (slave.prematureBirth === 1) { - r.push(App.UI.DOM.makeElement("span", `${cashFormat(curBabies * (50 + babyCost))},`, "yellowgreen")); + r.push(App.UI.DOM.makeElement("span", `${cashFormat(numBeingBorn * (50 + babyCost))},`, "yellowgreen")); r.push(`a low price, due to the added costs of caring for them.`); } else { - r.push(App.UI.DOM.makeElement("span", `${cashFormat(curBabies * (50 + babyCost))}.`, "yellowgreen")); + r.push(App.UI.DOM.makeElement("span", `${cashFormat(numBeingBorn * (50 + babyCost))}.`, "yellowgreen")); } if (slave.burst) { // Dead @@ -1748,7 +1748,7 @@ globalThis.birth = function(slave) { r.push(`${slave.slaveName} is`); r.push(App.UI.DOM.makeElement("span", `deeply hurt`, "mediumorchid")); r.push(`by your sudden decision to sell ${his} ${children} instead of having`); - if (curBabies > 1) { + if (numBeingBorn > 1) { r.push(`them`); } else { r.push(`it`); @@ -1762,7 +1762,7 @@ globalThis.birth = function(slave) { r.push(`${slave.slaveName} is`); r.push(App.UI.DOM.makeElement("span", `devastated`, "mediumorchid")); r.push(`by your sudden decision to sell ${his} ${children} instead of having`); - if (curBabies > 1) { + if (numBeingBorn > 1) { r.push(`them`); } else { r.push(`it`); @@ -1779,7 +1779,7 @@ globalThis.birth = function(slave) { slave.trust -= 30; slave.devotion -= 30; } - cashX((curBabies * (50 + babyCost)), "babyTransfer"); + cashX((numBeingBorn * (50 + babyCost)), "babyTransfer"); App.Events.addNode(el, r); return el; } @@ -1787,7 +1787,7 @@ globalThis.birth = function(slave) { } function birthPostpartum() { const el = document.createElement("p"); - curBabies = slave.curBabies.length; + numBeingBorn = babiesBeingBorn.length; if (slave.broodmother > 0) { slave.preg = WombMaxPreg(slave); if (slave.broodmotherCountDown > 0 && slave.womb.length > 0) { // TODO: do we really finished? @@ -1829,7 +1829,7 @@ globalThis.birth = function(slave) { const el = document.createElement("p"); const r = []; const wl = slave.womb.length; - curBabies = slave.curBabies.length; + numBeingBorn = babiesBeingBorn.length; if (slave.health.health <= -100 || slave.burst) { if (!slave.burst) { r.push(`While attempting to recover, ${slave.slaveName}`); @@ -1891,13 +1891,13 @@ globalThis.birth = function(slave) { r.push(deadBabiesResponse()); } - if (curBabies > 0) { // this needs to include ALL children born from this batch, incubated ones included. + if (numBeingBorn > 0) { // this needs to include ALL children born from this batch, incubated ones included. r.push(`But ${his}`); if (wl > 0) { r.push(`other`); } r.push(`offspring`); - if (curBabies > 1) { + if (numBeingBorn > 1) { r.push(`are`); } else { r.push(`is`); @@ -6651,7 +6651,7 @@ globalThis.birth = function(slave) { div.append(`The ${V.arcologies[0].FSNeoImperialistLaw2 === 1 ? "Barons" : "Societal Elite"} `); App.UI.DOM.appendNewElement("span", div, `are furious `, "red"); div.append(` you would allow an Elite child to perish under your watch`); - if (curBabies > 1) { + if (numBeingBorn > 1) { div.append(`, let alone multiple`); } div.append(`.`); @@ -8843,24 +8843,25 @@ globalThis.birth = function(slave) { * Sends newborns to incubator or nursery * @param {App.Entity.SlaveState} mom */ -globalThis.sendNewbornsToFacility = function(mom) { - let curBabies = mom.curBabies.length; - for (let cb = 0; cb < curBabies; cb++) { +globalThis.sendNewbornsToFacility = function(mom, babiesBeingBorn) { + let numBeingBorn = babiesBeingBorn.length; + for (let cb = 0; cb < numBeingBorn; cb++) { // if there is no reserved children, code in loop will not trigger - if (mom.curBabies[cb].reserve === "incubator") { + if (babiesBeingBorn[cb].reserve === "incubator") { if (V.tanks.length < V.incubator) { - App.Facilities.Incubator.newChild(generateChild(mom, mom.curBabies[cb], true)); + App.Facilities.Incubator.newChild(generateChild(mom, babiesBeingBorn[cb], true)); } - mom.curBabies.splice(mom.curBabies[cb], 1); + babiesBeingBorn.splice(babiesBeingBorn[cb], 1); cb--; - curBabies--; - } else if (mom.curBabies[cb].reserve === "nursery") { + numBeingBorn--; + } else if (babiesBeingBorn[cb].reserve === "nursery") { if (V.cribs.length < V.nursery) { - App.Facilities.Nursery.newChild(generateChild(mom, mom.curBabies[cb])); + App.Facilities.Nursery.newChild(generateChild(mom, babiesBeingBorn[cb])); } - mom.curBabies.splice(mom.curBabies[cb], 1); + babiesBeingBorn.splice(babiesBeingBorn[cb], 1); cb--; - curBabies--; + numBeingBorn--; } } + return babiesBeingBorn; }; diff --git a/src/npc/interaction/passage/birthStorm.tw b/src/npc/interaction/passage/birthStorm.tw index 8b796a8500b7a9387793ae1010615df8681095ee..b7c5f3814e7d60e084ca2b8d8c061f539c5c24ab 100644 --- a/src/npc/interaction/passage/birthStorm.tw +++ b/src/npc/interaction/passage/birthStorm.tw @@ -3,41 +3,41 @@ <<set $nextButton = "Back", $nextLink = "Slave Interact">> <<set $AS = $activeSlave.ID>> -<<set getSlave($AS).curBabies = WombBirth(getSlave($AS), 34)>> /*Here check - how many children survive this event. 34 weeks minimum.*/ -<<set _curBabies = getSlave($AS).curBabies.length>> +<<set babiesBeingBorn = WombBirth(getSlave($AS), 34)>> /*Here check - how many children survive this event. 34 weeks minimum.*/ +<<set _numBeingBorn = babiesBeingBorn.length>> <<set _others = 0, _PC = 0, _citizens = 0, _oldMaster = 0, _arcOwner = 0, _clients = 0, _elite = 0, _lab = 0, _futaS = 0, _fathers = [], _babyFatherLink = []>> -<<for _cb = 0; _cb < getSlave($AS).curBabies.length; _cb++>> - <<if getSlave($AS).curBabies[_cb].fatherID == 0>> +<<for _cb = 0; _cb < babiesBeingBorn.length; _cb++>> + <<if babiesBeingBorn[_cb].fatherID == 0>> <<set _others++>> <<set _fathers.push("some man's")>> - <<elseif getSlave($AS).curBabies[_cb].fatherID == -1>> + <<elseif babiesBeingBorn[_cb].fatherID == -1>> <<set $PC.counter.slavesFathered++>> <<set _PC++>> <<set _fathers.push("your")>> - <<elseif getSlave($AS).curBabies[_cb].fatherID == -2>> + <<elseif babiesBeingBorn[_cb].fatherID == -2>> <<set _citizens++>> <<set _fathers.push("a citizen's")>> - <<elseif getSlave($AS).curBabies[_cb].fatherID == -3>> + <<elseif babiesBeingBorn[_cb].fatherID == -3>> <<set _oldMaster++>> <<set _fathers.push("your former Master's")>> - <<elseif getSlave($AS).curBabies[_cb].fatherID == -4>> + <<elseif babiesBeingBorn[_cb].fatherID == -4>> <<set _arcOwner++>> <<set _fathers.push("another arcology owner's")>> - <<elseif getSlave($AS).curBabies[_cb].fatherID == -5>> + <<elseif babiesBeingBorn[_cb].fatherID == -5>> <<set _clients++>> <<set _fathers.push("your client's")>> - <<elseif getSlave($AS).curBabies[_cb].fatherID == -6>> + <<elseif babiesBeingBorn[_cb].fatherID == -6>> <<set _elite++>> <<set _fathers.push("the Societal Elite's")>> - <<elseif getSlave($AS).curBabies[_cb].fatherID == -7>> + <<elseif babiesBeingBorn[_cb].fatherID == -7>> <<set _lab++>> <<set _fathers.push("the gene lab's")>> - <<elseif getSlave($AS).curBabies[_cb].fatherID == -9>> + <<elseif babiesBeingBorn[_cb].fatherID == -9>> <<set _futaS++>> <<set _fathers.push("a Futanari Sister's")>> <<else>> - <<set _babyDaddy = findFather(getSlave($AS).curBabies[_cb].fatherID)>> + <<set _babyDaddy = findFather(babiesBeingBorn[_cb].fatherID)>> <<if def _babyDaddy>> <<if _babyDaddy.ID == getSlave($AS).ID>> <<set _fathers.push(String($his + " own"))>> @@ -102,15 +102,15 @@ <<elseif _num >= 10>> <<set _fathersReduced[_cb] += String(" impressive group of " + _num + " babies")>> <<else>> - <<set _fathersReduced[_cb] += String(" " + pregNumberName(_curBabies, 2))>> + <<set _fathersReduced[_cb] += String(" " + pregNumberName(_numBeingBorn, 2))>> <</if>> <</for>> <<set _cToIncub = 0, _cToNursery = 0>> -<<for _csec = 0; _csec < _curBabies; _csec++>> - <<if getSlave($AS).curBabies[_csec].reserve === "incubator">> +<<for _csec = 0; _csec < _numBeingBorn; _csec++>> + <<if babiesBeingBorn[_csec].reserve === "incubator">> <<set _cToIncub++>> - <<elseif getSlave($AS).curBabies[_csec].reserve === "nursery">> + <<elseif babiesBeingBorn[_csec].reserve === "nursery">> <<set _cToNursery++>> <</if>> <</for>> @@ -173,7 +173,7 @@ The remote surgery allows the removal of the pregnancy generator through convent <<run healthDamage(getSlave($AS), 30)>> <</if>> -<<if _curBabies > 0>> +<<if _numBeingBorn > 0>> <br><br> After <<= getSlave($AS).slaveName>> has finally finished birthing, <<if _fathersReduced.length > 2>> @@ -190,47 +190,47 @@ The remote surgery allows the removal of the pregnancy generator through convent _fathersReduced[0] <</if>> - <<if _curBabies <= 1>>is<<else>>are<</if>> + <<if _numBeingBorn <= 1>>is<<else>>are<</if>> - <<if _cToIncub == _curBabies>> + <<if _cToIncub == _numBeingBorn>> taken to $incubatorName. <<set _incubated = 2>> - <<elseif _cToIncub < _curBabies && _cToIncub > 0>> + <<elseif _cToIncub < _numBeingBorn && _cToIncub > 0>> split between $incubatorName and <<set _incubated = 1>> <</if>> - <<if _cToNursery == _curBabies>> + <<if _cToNursery == _numBeingBorn>> taken to $nurseryName. <<set _nursed = 2>> - <<elseif _cToNursery < _curBabies && _cToNursery > 0>> + <<elseif _cToNursery < _numBeingBorn && _cToNursery > 0>> split between $nurseryName and <<set _nursed = 1>> <</if>> <<if _cToIncub > 0 || _cToNursery > 0>> - <<run sendNewbornsToFacility(getSlave($AS))>> + <<set babiesBeingBorn = sendNewbornsToFacility(getSlave($AS), babiesBeingBorn)>> <</if>> <<else>> /* TODO: No live babies. Placeholder */ <</if>> -<<set _curBabies = getSlave($AS).curBabies.length>> +<<set _numBeingBorn = babiesBeingBorn.length>> -<<if _incubated != 2 && _nursed != 2 && _curBabies > 0>> +<<if _incubated != 2 && _nursed != 2 && _numBeingBorn > 0>> <span id="_disposition"> <<if _incubated == 1 || _nursed == 1>>the rest<</if>> <<if $arcologies[0].FSRestart != "unset" && getSlave($AS).breedingMark == 1 && (getSlave($AS).pregSource == -1 || getSlave($AS).pregSource == -6) && $propOutcome == 1>> handed off to the Societal Elite to be raised into upstanding members of the new society. <<elseif getSlave($AS).breedingMark == 1 && (getSlave($AS).pregSource == -1 || getSlave($AS).pregSource == -6) && $propOutcome == 1 && $DefaultBirthDestination == "the market">> <<set _babyCost = random(2000,4500)>> - purchased by the Societal Elite for @@.yellowgreen;<<print cashFormat(_curBabies*(_babyCost))>>.@@ - <<run cashX((_curBabies*(_babyCost)), "babyTransfer")>> + purchased by the Societal Elite for @@.yellowgreen;<<print cashFormat(_numBeingBorn*(_babyCost))>>.@@ + <<run cashX((_numBeingBorn*(_babyCost)), "babyTransfer")>> <<elseif getSlave($AS).pregSource == -9 && $DefaultBirthDestination == "the market">> <<set _babyCost = random(1000,2500)>> - purchased by the Futanari Sisters for @@.yellowgreen;<<print cashFormat(_curBabies*(_babyCost))>>.@@ - <<run cashX((_curBabies*(_babyCost)), "babyTransfer")>> + purchased by the Futanari Sisters for @@.yellowgreen;<<print cashFormat(_numBeingBorn*(_babyCost))>>.@@ + <<run cashX((_numBeingBorn*(_babyCost)), "babyTransfer")>> <<elseif $DefaultBirthDestination == "individually decided fates">> <br><br> <<link "...sent to a slave orphanage.">> @@ -250,14 +250,14 @@ The remote surgery allows the removal of the pregnancy generator through convent will of course @@.mediumorchid;hate you for this.@@ <<set getSlave($AS).devotion -= 4>> <</if>> - <<set $slaveOrphanageTotal += _curBabies>> + <<set $slaveOrphanageTotal += _numBeingBorn>> <</replace>> <<set $nextButton = "Back">><<UpdateNextButton>> /* unlock Continue button */ <</link>> <<if getSlave($AS).breedingMark == 1 && (getSlave($AS).pregSource == -1 || getSlave($AS).pregSource == -6) && $propOutcome == 1>> <br><<link "...handed off to the Societal Elite.">> <<replace #_disposition>> - handed off to be raised into <<if _curBabies > 1>>future members<<else>>a future member<</if>> of the Societal Elite. <<= getSlave($AS).slaveName>> + handed off to be raised into <<if _numBeingBorn > 1>>future members<<else>>a future member<</if>> of the Societal Elite. <<= getSlave($AS).slaveName>> <<if getSlave($AS).fetish == "mindbroken" || getSlave($AS).fuckdoll > 0>> does not give any hint of a response. <<elseif getSlave($AS).devotion > 95>> @@ -267,10 +267,10 @@ The remote surgery allows the removal of the pregnancy generator through convent understands that this is the best possible outcome for the offspring of a slave, and will be @@.hotpink;overjoyed.@@ <<set getSlave($AS).devotion += 6>> <<elseif getSlave($AS).devotion > 20>> - will miss $his child<<if _curBabies > 1>>ren<</if>>, but will be @@.hotpink;very grateful,@@ since <<print $he>>'ll understand this is the best possible outcome for a slave mother. + will miss $his child<<if _numBeingBorn > 1>>ren<</if>>, but will be @@.hotpink;very grateful,@@ since <<print $he>>'ll understand this is the best possible outcome for a slave mother. <<set getSlave($AS).devotion += 6>> <<else>> - will resent being separated from $his child<<if _curBabies > 1>>ren<</if>>, but @@.hotpink;should understand and be grateful@@ that this is the best possible outcome here. + will resent being separated from $his child<<if _numBeingBorn > 1>>ren<</if>>, but @@.hotpink;should understand and be grateful@@ that this is the best possible outcome here. <<set getSlave($AS).devotion += 6>> <</if>> <</replace>> @@ -280,11 +280,11 @@ The remote surgery allows the removal of the pregnancy generator through convent <<if getSlave($AS).pregSource == -9>> <br><<link "...handed off to the Futanari Sisters.">> <<replace #_disposition>> - handed off to be raised into <<if _curBabies > 1>>future Futanari Sisters<<else>>a future Futanari Sister<</if>>. <<= getSlave($AS).slaveName>> + handed off to be raised into <<if _numBeingBorn > 1>>future Futanari Sisters<<else>>a future Futanari Sister<</if>>. <<= getSlave($AS).slaveName>> <<if getSlave($AS).fetish == "mindbroken" || getSlave($AS).fuckdoll > 0>> has few thoughts about the matter. <<else>> - is overjoyed that $his child<<if _curBabies > 1>>ren<</if>> will follow in <<if _curBabies > 1>>their<<else>>its<</if>> parent's footsteps. + is overjoyed that $his child<<if _numBeingBorn > 1>>ren<</if>> will follow in <<if _numBeingBorn > 1>>their<<else>>its<</if>> parent's footsteps. <<set getSlave($AS).devotion += 4>> <</if>> <</replace>> @@ -298,18 +298,18 @@ The remote surgery allows the removal of the pregnancy generator through convent <<if getSlave($AS).fetish == "mindbroken" || getSlave($AS).fuckdoll > 0>> has few thoughts about the matter. <<elseif getSlave($AS).devotion > 95>> - loves you already, but $he'll @@.hotpink;love you even more@@ for this. $He can't wait to see $his child<<if _curBabies > 1>>ren<</if>> proudly furthering your cause. + loves you already, but $he'll @@.hotpink;love you even more@@ for this. $He can't wait to see $his child<<if _numBeingBorn > 1>>ren<</if>> proudly furthering your cause. <<set getSlave($AS).devotion += 4>> <<elseif getSlave($AS).devotion > 50>> - heard about these and will be @@.hotpink;happy that $his child<<if _curBabies > 1>>ren<</if>> will have a purpose in your society other than slavery.@@ $He will miss $his child<<if _curBabies > 1>>ren<</if>>, but $he expected that. + heard about these and will be @@.hotpink;happy that $his child<<if _numBeingBorn > 1>>ren<</if>> will have a purpose in your society other than slavery.@@ $He will miss $his child<<if _numBeingBorn > 1>>ren<</if>>, but $he expected that. <<set getSlave($AS).devotion += 4>> <<elseif getSlave($AS).devotion > 20>> - will naturally miss $his child<<if _curBabies > 1>>ren<</if>>, but will is broken enough to hope that $his offspring will have a better life, or at least an enjoyable one. + will naturally miss $his child<<if _numBeingBorn > 1>>ren<</if>>, but will is broken enough to hope that $his offspring will have a better life, or at least an enjoyable one. <<else>> - will of course @@.mediumorchid;hate you for this.@@ The mere thought of $his <<if $minimumSlaveAge > $fertilityAge>>$minimumSlaveAge<<else>>$fertilityAge<</if>> year old daughter<<if _curBabies > 1>>s<</if>> swollen with life, and proud of it, fills $him with @@.gold;disdain.@@ + will of course @@.mediumorchid;hate you for this.@@ The mere thought of $his <<if $minimumSlaveAge > $fertilityAge>>$minimumSlaveAge<<else>>$fertilityAge<</if>> year old daughter<<if _numBeingBorn > 1>>s<</if>> swollen with life, and proud of it, fills $him with @@.gold;disdain.@@ <<set getSlave($AS).devotion -= 4, getSlave($AS).trust -= 4>> <</if>> - <<set $breederOrphanageTotal += _curBabies>> + <<set $breederOrphanageTotal += _numBeingBorn>> <</replace>> <<set $nextButton = "Back">><<UpdateNextButton>> /* unlock Continue button */ <</link>> @@ -324,23 +324,23 @@ The remote surgery allows the removal of the pregnancy generator through convent loves you already, but $he'll @@.hotpink;love you even more@@ for this. <<set getSlave($AS).devotion += 4>> <<elseif getSlave($AS).devotion > 50>> - knows about these and will be @@.hotpink;overjoyed.@@ $He will miss $his child<<if _curBabies > 1>>ren<</if>>, but $he expected that. + knows about these and will be @@.hotpink;overjoyed.@@ $He will miss $his child<<if _numBeingBorn > 1>>ren<</if>>, but $he expected that. <<set getSlave($AS).devotion += 4>> <<elseif getSlave($AS).devotion > 20>> - will naturally miss $his child<<if _curBabies > 1>>ren<</if>>, but will @@.hotpink;take comfort@@ in the hope that $his offspring will have a better life. + will naturally miss $his child<<if _numBeingBorn > 1>>ren<</if>>, but will @@.hotpink;take comfort@@ in the hope that $his offspring will have a better life. <<set getSlave($AS).devotion += 4>> <<else>> - will naturally retain some resentment over being separated from $his child<<if _curBabies > 1>>ren<</if>>, but this should be balanced by hope that $his offspring will have a better life. + will naturally retain some resentment over being separated from $his child<<if _numBeingBorn > 1>>ren<</if>>, but this should be balanced by hope that $his offspring will have a better life. <<set getSlave($AS).devotion += 4>> <</if>> - <<set $citizenOrphanageTotal += _curBabies>> + <<set $citizenOrphanageTotal += _numBeingBorn>> <</replace>> <<set $nextButton = "Back">><<UpdateNextButton>> /* unlock Continue button */ <</link>> //Will cost <<print cashFormat(100)>> weekly// <br><<link "...sent to be raised privately.">> <<replace #_disposition>> - sent to be privately raised, to be brought up as <<if _curBabies > 1>>future high class citizens<<else>>a future high class citizen<</if>>, an expensive proposition. <<= getSlave($AS).slaveName>> + sent to be privately raised, to be brought up as <<if _numBeingBorn > 1>>future high class citizens<<else>>a future high class citizen<</if>>, an expensive proposition. <<= getSlave($AS).slaveName>> <<if getSlave($AS).fetish == "mindbroken" || getSlave($AS).fuckdoll > 0>> does not give any hint of a response. <<elseif getSlave($AS).devotion > 95>> @@ -350,13 +350,13 @@ The remote surgery allows the removal of the pregnancy generator through convent understands that this is the best possible outcome for the offspring of a slave, and will be @@.hotpink;overjoyed.@@ <<set getSlave($AS).devotion += 6>> <<elseif getSlave($AS).devotion > 20>> - will miss $his child<<if _curBabies > 1>>ren<</if>>, but will be @@.hotpink;very grateful,@@ since <<print $he>>'ll understand this is the best possible outcome for a slave mother. + will miss $his child<<if _numBeingBorn > 1>>ren<</if>>, but will be @@.hotpink;very grateful,@@ since <<print $he>>'ll understand this is the best possible outcome for a slave mother. <<set getSlave($AS).devotion += 6>> <<else>> - will resent being separated from $his child<<if _curBabies > 1>>ren<</if>>, but @@.hotpink;should understand and be grateful@@ that this is the best possible outcome here. + will resent being separated from $his child<<if _numBeingBorn > 1>>ren<</if>>, but @@.hotpink;should understand and be grateful@@ that this is the best possible outcome here. <<set getSlave($AS).devotion += 6>> <</if>> - <<set $privateOrphanageTotal += _curBabies>> + <<set $privateOrphanageTotal += _numBeingBorn>> <</replace>> <<set $nextButton = "Back">><<UpdateNextButton>> /* unlock Continue button */ <</link>> @@ -371,22 +371,22 @@ The remote surgery allows the removal of the pregnancy generator through convent <<set _babyCost = random(-12,12)>> <<if getSlave($AS).prematureBirth > 0>><<set _babyCost = -45>><</if>> <</if>> - sold for <<if _curBabies > 1>>a total of <</if>><<if getSlave($AS).prematureBirth == 1>>@@.yellowgreen;<<print cashFormat(_curBabies*(50+_babyCost))>>,@@ a low price, due to the added costs of caring for them.<<else>>@@.yellowgreen;<<print cashFormat(_curBabies*(50+_babyCost))>>.@@<</if>> + sold for <<if _numBeingBorn > 1>>a total of <</if>><<if getSlave($AS).prematureBirth == 1>>@@.yellowgreen;<<print cashFormat(_numBeingBorn*(50+_babyCost))>>,@@ a low price, due to the added costs of caring for them.<<else>>@@.yellowgreen;<<print cashFormat(_numBeingBorn*(50+_babyCost))>>.@@<</if>> <<if getSlave($AS).fetish == "mindbroken" || getSlave($AS).fuckdoll > 0>> <<= getSlave($AS).slaveName>> lacks the capacity to understand what you've done. <<elseif getSlave($AS).devotion > 95>> - <<= getSlave($AS).slaveName>> adheres to your thoughts so strongly that even though you backed out of caring for $his child<<if _curBabies > 1>>ren<</if>>, $he still truly believes you are doing $him an honor. + <<= getSlave($AS).slaveName>> adheres to your thoughts so strongly that even though you backed out of caring for $his child<<if _numBeingBorn > 1>>ren<</if>>, $he still truly believes you are doing $him an honor. <<elseif getSlave($AS).devotion > 50>> - <<= getSlave($AS).slaveName>> is @@.mediumorchid;deeply hurt@@ by your sudden decision to sell $his child<<if _curBabies > 1>>ren<</if>> instead of having <<if _curBabies > 1>>them<<else>>it<</if>> cared for. $His trust in your words @@.gold;wavers@@ as $he thinks of $his child<<if _curBabies > 1>>ren<</if>>'s future. + <<= getSlave($AS).slaveName>> is @@.mediumorchid;deeply hurt@@ by your sudden decision to sell $his child<<if _numBeingBorn > 1>>ren<</if>> instead of having <<if _numBeingBorn > 1>>them<<else>>it<</if>> cared for. $His trust in your words @@.gold;wavers@@ as $he thinks of $his child<<if _numBeingBorn > 1>>ren<</if>>'s future. <<set getSlave($AS).trust -= 5, getSlave($AS).devotion -= 5>> <<elseif getSlave($AS).devotion > 20>> - <<= getSlave($AS).slaveName>> is @@.mediumorchid;devastated@@ by your sudden decision to sell $his child<<if _curBabies > 1>>ren<</if>> instead of having <<if _curBabies > 1>>them<<else>>it<</if>> cared for. $His mind struggles to comprehend @@.gold;such betrayal.@@ + <<= getSlave($AS).slaveName>> is @@.mediumorchid;devastated@@ by your sudden decision to sell $his child<<if _numBeingBorn > 1>>ren<</if>> instead of having <<if _numBeingBorn > 1>>them<<else>>it<</if>> cared for. $His mind struggles to comprehend @@.gold;such betrayal.@@ <<set getSlave($AS).trust -= 10, getSlave($AS).devotion -= 10>> <<else>> For a moment, <<= getSlave($AS).slaveName>> thought $he saw a glimmer of good in you; @@.mediumorchid;$he was clearly wrong.@@ $His mind struggles to comprehend @@.gold;why $he could ever even thing of trusting such a person.@@ <<set getSlave($AS).trust -= 30, getSlave($AS).devotion -= 30>> <</if>> - <<run cashX(_curBabies*(50+_babyCost), "babyTransfer")>> + <<run cashX(_numBeingBorn*(50+_babyCost), "babyTransfer")>> <</replace>> <<set $nextButton = "Back">><<UpdateNextButton>> /* unlock Continue button */ <</link>> @@ -410,7 +410,7 @@ The remote surgery allows the removal of the pregnancy generator through convent will of course @@.mediumorchid;hate you for this.@@ <<set getSlave($AS).devotion -= 4>> <</if>> - <<set $slaveOrphanageTotal += _curBabies>> + <<set $slaveOrphanageTotal += _numBeingBorn>> <<case "a citizen school">> <<= getSlave($AS).slaveName>> <<if getSlave($AS).fetish == "mindbroken" || getSlave($AS).fuckdoll > 0>> @@ -419,16 +419,16 @@ The remote surgery allows the removal of the pregnancy generator through convent loves you already, but $he'll @@.hotpink;love you even more@@ for this. <<set getSlave($AS).devotion += 4>> <<elseif getSlave($AS).devotion > 50>> - knows about these and will be @@.hotpink;overjoyed.@@ $He will miss $his child<<if _curBabies > 1>>ren<</if>>, but $he expected that. + knows about these and will be @@.hotpink;overjoyed.@@ $He will miss $his child<<if _numBeingBorn > 1>>ren<</if>>, but $he expected that. <<set getSlave($AS).devotion += 4>> <<elseif getSlave($AS).devotion > 20>> - will naturally miss $his child<<if _curBabies > 1>>ren<</if>>, but will @@.hotpink;take comfort@@ in the hope that $his offspring will have a better life. + will naturally miss $his child<<if _numBeingBorn > 1>>ren<</if>>, but will @@.hotpink;take comfort@@ in the hope that $his offspring will have a better life. <<set getSlave($AS).devotion += 4>> <<else>> - will naturally retain some resentment over being separated from $his child<<if _curBabies > 1>>ren<</if>>, but this should be balanced by hope that $his offspring will have a better life. + will naturally retain some resentment over being separated from $his child<<if _numBeingBorn > 1>>ren<</if>>, but this should be balanced by hope that $his offspring will have a better life. <<set getSlave($AS).devotion += 4>> <</if>> - <<set $citizenOrphanageTotal += _curBabies>> + <<set $citizenOrphanageTotal += _numBeingBorn>> <<case "a private school">> <<= getSlave($AS).slaveName>> <<if getSlave($AS).fetish == "mindbroken" || getSlave($AS).fuckdoll > 0>> @@ -440,31 +440,31 @@ The remote surgery allows the removal of the pregnancy generator through convent understands that this is the best possible outcome for the offspring of slave, and will be @@.hotpink;overjoyed.@@ <<set getSlave($AS).devotion += 6>> <<elseif getSlave($AS).devotion > 20>> - will miss $his child<<if _curBabies > 1>>ren<</if>>, but will be @@.hotpink;very grateful,@@ since <<print $he>>'ll understand this is the best possible outcome for a slave mother. + will miss $his child<<if _numBeingBorn > 1>>ren<</if>>, but will be @@.hotpink;very grateful,@@ since <<print $he>>'ll understand this is the best possible outcome for a slave mother. <<set getSlave($AS).devotion += 6>> <<else>> - will resent being separated from $his child<<if _curBabies > 1>>ren<</if>>, but @@.hotpink;should understand and be grateful@@ that this is the best possible outcome here. + will resent being separated from $his child<<if _numBeingBorn > 1>>ren<</if>>, but @@.hotpink;should understand and be grateful@@ that this is the best possible outcome here. <<set getSlave($AS).devotion += 6>> <</if>> - The child<<if _curBabies > 1>>ren<</if>> will be raised privately, with expert care and tutoring, an expensive proposition. - <<set $privateOrphanageTotal += _curBabies>> + The child<<if _numBeingBorn > 1>>ren<</if>> will be raised privately, with expert care and tutoring, an expensive proposition. + <<set $privateOrphanageTotal += _numBeingBorn>> <<case "breeder schools">> <<= getSlave($AS).slaveName>> <<if getSlave($AS).fetish == "mindbroken" || getSlave($AS).fuckdoll > 0>> has few thoughts about the matter. <<elseif getSlave($AS).devotion > 95>> - loves you already, but $he'll @@.hotpink;love you even more@@ for this. $He can't wait to see $his child<<if _curBabies > 1>>ren<</if>> proudly furthering your cause. + loves you already, but $he'll @@.hotpink;love you even more@@ for this. $He can't wait to see $his child<<if _numBeingBorn > 1>>ren<</if>> proudly furthering your cause. <<set getSlave($AS).devotion += 4>> <<elseif getSlave($AS).devotion > 50>> - heard about these and will be @@.hotpink;happy that $his child<<if _curBabies > 1>>ren<</if>> will have a purpose in your society other than slavery.@@ $He will miss $his child<<if _curBabies > 1>>ren<</if>>, but $he expected that. + heard about these and will be @@.hotpink;happy that $his child<<if _numBeingBorn > 1>>ren<</if>> will have a purpose in your society other than slavery.@@ $He will miss $his child<<if _numBeingBorn > 1>>ren<</if>>, but $he expected that. <<set getSlave($AS).devotion += 4>> <<elseif getSlave($AS).devotion > 20>> - will naturally miss $his child<<if _curBabies > 1>>ren<</if>>, but will is broken enough to hope that $his offspring will have a better life, or at least an enjoyable one. + will naturally miss $his child<<if _numBeingBorn > 1>>ren<</if>>, but will is broken enough to hope that $his offspring will have a better life, or at least an enjoyable one. <<else>> - will of course @@.mediumorchid;hate you for this.@@ The mere thought of $his <<if $minimumSlaveAge > $fertilityAge>>$minimumSlaveAge<<else>>$fertilityAge<</if>> year old daughter<<if _curBabies > 1>>s<</if>> swollen with life, and proud of it, fills $him with @@.gold;disdain.@@ + will of course @@.mediumorchid;hate you for this.@@ The mere thought of $his <<if $minimumSlaveAge > $fertilityAge>>$minimumSlaveAge<<else>>$fertilityAge<</if>> year old daughter<<if _numBeingBorn > 1>>s<</if>> swollen with life, and proud of it, fills $him with @@.gold;disdain.@@ <<set getSlave($AS).devotion -= 4, getSlave($AS).trust -= 4>> <</if>> - <<set $breederOrphanageTotal += _curBabies>> + <<set $breederOrphanageTotal += _numBeingBorn>> <<case "the market">> <<if getSlave($AS).prestige > 1 || getSlave($AS).porn.prestige > 2>> <<set _babyCost = random(-12,100)>> @@ -473,22 +473,22 @@ The remote surgery allows the removal of the pregnancy generator through convent <<set _babyCost = random(-12,12)>> <<if getSlave($AS).prematureBirth > 0>><<set _babyCost = -45>><</if>> <</if>> - $His <<if _curBabies > 1>>babies were<<else>>baby was<</if>> sold for <<if _curBabies > 1>>a total of <</if>><<if getSlave($AS).prematureBirth == 1>>@@.yellowgreen;<<print cashFormat(_curBabies*(50+_babyCost))>>,@@ a low price, due to the added costs of caring for them.<<else>>@@.yellowgreen;<<print cashFormat(_curBabies*(50+_babyCost))>>.@@<</if>> + $His <<if _numBeingBorn > 1>>babies were<<else>>baby was<</if>> sold for <<if _numBeingBorn > 1>>a total of <</if>><<if getSlave($AS).prematureBirth == 1>>@@.yellowgreen;<<print cashFormat(_numBeingBorn*(50+_babyCost))>>,@@ a low price, due to the added costs of caring for them.<<else>>@@.yellowgreen;<<print cashFormat(_numBeingBorn*(50+_babyCost))>>.@@<</if>> <<if getSlave($AS).fetish == "mindbroken" || getSlave($AS).fuckdoll > 0>> <<= getSlave($AS).slaveName>> lacks the capacity to understand what you've done. <<elseif getSlave($AS).devotion > 95>> - <<= getSlave($AS).slaveName>> adheres to your thoughts so strongly that even though you backed out of caring for $his child<<if _curBabies > 1>>ren<</if>>, $he still truly believes you are doing $him an honor. + <<= getSlave($AS).slaveName>> adheres to your thoughts so strongly that even though you backed out of caring for $his child<<if _numBeingBorn > 1>>ren<</if>>, $he still truly believes you are doing $him an honor. <<elseif getSlave($AS).devotion > 50>> - <<= getSlave($AS).slaveName>> is @@.mediumorchid;deeply hurt@@ by your sudden decision to sell $his child<<if _curBabies > 1>>ren<</if>> instead of having <<if _curBabies > 1>>them<<else>>it<</if>> cared for. $His trust in your words @@.gold;wavers@@ as $he thinks of $his child<<if _curBabies > 1>>ren<</if>>'s future. + <<= getSlave($AS).slaveName>> is @@.mediumorchid;deeply hurt@@ by your sudden decision to sell $his child<<if _numBeingBorn > 1>>ren<</if>> instead of having <<if _numBeingBorn > 1>>them<<else>>it<</if>> cared for. $His trust in your words @@.gold;wavers@@ as $he thinks of $his child<<if _numBeingBorn > 1>>ren<</if>>'s future. <<set getSlave($AS).trust -= 5, getSlave($AS).devotion -= 5>> <<elseif getSlave($AS).devotion > 20>> - <<= getSlave($AS).slaveName>> is @@.mediumorchid;devastated@@ by your sudden decision to sell $his child<<if _curBabies > 1>>ren<</if>> instead of having <<if _curBabies > 1>>them<<else>>it<</if>> cared for. $His mind struggles to comprehend @@.gold;such betrayal.@@ + <<= getSlave($AS).slaveName>> is @@.mediumorchid;devastated@@ by your sudden decision to sell $his child<<if _numBeingBorn > 1>>ren<</if>> instead of having <<if _numBeingBorn > 1>>them<<else>>it<</if>> cared for. $His mind struggles to comprehend @@.gold;such betrayal.@@ <<set getSlave($AS).trust -= 10, getSlave($AS).devotion -= 10>> <<else>> For a moment, <<= getSlave($AS).slaveName>> thought $he saw a glimmer of good in you; @@.mediumorchid;$he was clearly wrong.@@ $His mind struggles to comprehend @@.gold;why $he could ever even thing of trusting such a person.@@ <<set getSlave($AS).trust -= 30, getSlave($AS).devotion -= 30>> <</if>> - <<run cashX(_curBabies*(50+_babyCost), "babyTransfer")>> + <<run cashX(_numBeingBorn*(50+_babyCost), "babyTransfer")>> <</switch>> <<else>> <<set $nextButton = "Back">><<UpdateNextButton>> /* unlock Continue button */ @@ -496,9 +496,9 @@ The remote surgery allows the removal of the pregnancy generator through convent </span> <</if>> -<<set getSlave($AS).counter.births += _curBabies>> -<<set getSlave($AS).counter.birthsTotal += _curBabies>> -<<set $birthsTotal += _curBabies>> +<<set getSlave($AS).counter.births += _numBeingBorn>> +<<set getSlave($AS).counter.birthsTotal += _numBeingBorn>> +<<set $birthsTotal += _numBeingBorn>> <<if getSlave($AS).geneticQuirks.fertility+getSlave($AS).geneticQuirks.hyperFertility >= 4>> <<set getSlave($AS).pregWeek = -2>> <<elseif getSlave($AS).geneticQuirks.hyperFertility > 1>> diff --git a/src/npc/interaction/passage/csec.tw b/src/npc/interaction/passage/csec.tw index 4ba8baa6d54351c7a7d9b9da3c7de459c006985a..97fae77217cec3d499638333b9bff4e15a0239ff 100644 --- a/src/npc/interaction/passage/csec.tw +++ b/src/npc/interaction/passage/csec.tw @@ -9,46 +9,46 @@ <<set getSlave($AS).pregControl = "none">> <<set _beforeSize = WombGetVolume(getSlave($AS))>> -<<set getSlave($AS).curBabies = WombBirth(getSlave($AS), getSlave($AS).pregData.minLiveBirth)>> /* 34 week is minimal gestation time for human live birth. Here we take only ready to survive. With others we will deal later in code. */ +<<set babiesBeingBorn = WombBirth(getSlave($AS), getSlave($AS).pregData.minLiveBirth)>> /* 34 week is minimal gestation time for human live birth. Here we take only ready to survive. With others we will deal later in code. */ -<<set _curBabies = getSlave($AS).curBabies.length>> /*just to improve speed and usability here.*/ +<<set _numBeingBorn = babiesBeingBorn.length>> /*just to improve speed and usability here.*/ -<<set getSlave($AS).counter.births += _curBabies>> -<<set getSlave($AS).counter.birthsTotal += _curBabies>> -<<set $birthsTotal += _curBabies>> +<<set getSlave($AS).counter.births += _numBeingBorn>> +<<set getSlave($AS).counter.birthsTotal += _numBeingBorn>> +<<set $birthsTotal += _numBeingBorn>> <<set _others = 0, _PC = 0, _citizens = 0, _oldMaster = 0, _arcOwner = 0, _clients = 0, _elite = 0, _lab = 0, _futaS = 0, _fathers = [], _babyFatherLink = []>> -<<for _cb = 0; _cb < getSlave($AS).curBabies.length; _cb++>> - <<if getSlave($AS).curBabies[_cb].fatherID == 0>> +<<for _cb = 0; _cb < babiesBeingBorn.length; _cb++>> + <<if babiesBeingBorn[_cb].fatherID == 0>> <<set _others++>> <<set _fathers.push("some man's")>> - <<elseif getSlave($AS).curBabies[_cb].fatherID == -1>> + <<elseif babiesBeingBorn[_cb].fatherID == -1>> <<set $PC.counter.slavesFathered++>> <<set _PC++>> <<set _fathers.push("your")>> - <<elseif getSlave($AS).curBabies[_cb].fatherID == -2>> + <<elseif babiesBeingBorn[_cb].fatherID == -2>> <<set _citizens++>> <<set _fathers.push("a citizen's")>> - <<elseif getSlave($AS).curBabies[_cb].fatherID == -3>> + <<elseif babiesBeingBorn[_cb].fatherID == -3>> <<set _oldMaster++>> <<set _fathers.push("your former Master's")>> - <<elseif getSlave($AS).curBabies[_cb].fatherID == -4>> + <<elseif babiesBeingBorn[_cb].fatherID == -4>> <<set _arcOwner++>> <<set _fathers.push("another arcology owner's")>> - <<elseif getSlave($AS).curBabies[_cb].fatherID == -5>> + <<elseif babiesBeingBorn[_cb].fatherID == -5>> <<set _clients++>> <<set _fathers.push("your client's")>> - <<elseif getSlave($AS).curBabies[_cb].fatherID == -6>> + <<elseif babiesBeingBorn[_cb].fatherID == -6>> <<set _elite++>> <<set _fathers.push("the Societal Elite's")>> - <<elseif getSlave($AS).curBabies[_cb].fatherID == -7>> + <<elseif babiesBeingBorn[_cb].fatherID == -7>> <<set _lab++>> <<set _fathers.push("the gene lab's")>> - <<elseif getSlave($AS).curBabies[_cb].fatherID == -9>> + <<elseif babiesBeingBorn[_cb].fatherID == -9>> <<set _futaS++>> <<set _fathers.push("a Futanari Sister's")>> <<else>> - <<set _babyDaddy = findFather(getSlave($AS).curBabies[_cb].fatherID)>> + <<set _babyDaddy = findFather(babiesBeingBorn[_cb].fatherID)>> <<if def _babyDaddy>> <<if _babyDaddy.ID == getSlave($AS).ID>> <<set _fathers.push(String($his + " own"))>> @@ -132,18 +132,18 @@ <<set _oldDevotion = getSlave($AS).devotion>> <<set _cToIncub = 0, _cToNursery = 0>> -<<for _csec = 0; _csec < _curBabies; _csec++>> - <<if getSlave($AS).curBabies[_csec].reserve === "incubator">> +<<for _csec = 0; _csec < _numBeingBorn; _csec++>> + <<if babiesBeingBorn[_csec].reserve === "incubator">> <<set _cToIncub++>> - <<elseif getSlave($AS).curBabies[_csec].reserve === "nursery">> + <<elseif babiesBeingBorn[_csec].reserve === "nursery">> <<set _cToNursery++>> <</if>> <</for>> /* ------------------------------------------------ */ -Performing a cesarean section is trivial for the remote surgery to carry out. <<= getSlave($AS).slaveName>> is sedated, $his child<<if _curBabies > 1>>ren<</if>> extracted, and taken to a bed to recover. By the time $he comes to, -<<if _curBabies > 0>> +Performing a cesarean section is trivial for the remote surgery to carry out. <<= getSlave($AS).slaveName>> is sedated, $his child<<if _numBeingBorn > 1>>ren<</if>> extracted, and taken to a bed to recover. By the time $he comes to, +<<if _numBeingBorn > 0>> <<if _fathersReduced.length > 2>> <<for _cb = 0; _cb < _fathersReduced.length; _cb++>> <<if _cb < _fathersReduced.length-1>> @@ -158,48 +158,48 @@ Performing a cesarean section is trivial for the remote surgery to carry out. << _fathersReduced[0] <</if>> - <<if _curBabies <= 1>>has<<else>>have<</if>> + <<if _numBeingBorn <= 1>>has<<else>>have<</if>> already been - <<if _cToIncub == _curBabies>> + <<if _cToIncub == _numBeingBorn>> taken to $incubatorName. <<set _incubated = 2>> - <<elseif _cToIncub < _curBabies && _cToIncub > 0>> + <<elseif _cToIncub < _numBeingBorn && _cToIncub > 0>> split between $incubatorName and <<set _incubated = 1>> <</if>> - <<if _cToNursery == _curBabies>> + <<if _cToNursery == _numBeingBorn>> taken to $nurseryName. <<set _nursed = 2>> - <<elseif _cToNursery < _curBabies && _cToNursery > 0>> + <<elseif _cToNursery < _numBeingBorn && _cToNursery > 0>> split between $nurseryName and <<set _nursed = 1>> <</if>> <<if _cToIncub > 0 || _cToNursery > 0>> - <<run sendNewbornsToFacility(getSlave($AS))>> + <<set babiesBeingBorn = sendNewbornsToFacility(getSlave($AS), babiesBeingBorn)>> <</if>> <<else>> /*No live babies. Placeholder */ <</if>> -<<set _curBabies = getSlave($AS).curBabies.length>> +<<set _numBeingBorn = babiesBeingBorn.length>> -<<if _incubated != 2 && _nursed != 2 && _curBabies > 0>> +<<if _incubated != 2 && _nursed != 2 && _numBeingBorn > 0>> <span id="_disposition"> <<if _incubated == 1 || _nursed == 1>>the rest<</if>> <<if $arcologies[0].FSRestart != "unset" && getSlave($AS).breedingMark == 1 && (getSlave($AS).pregSource == -1 || getSlave($AS).pregSource == -6) && $propOutcome == 1>> handed off to the Societal Elite to be raised into upstanding members of the new society. <<elseif getSlave($AS).breedingMark == 1 && (getSlave($AS).pregSource == -1 || getSlave($AS).pregSource == -6) && $propOutcome == 1 && $DefaultBirthDestination == "the market">> <<set _babyCost = random(2000,4500)>> - purchased by the Societal Elite for @@.yellowgreen;<<print cashFormat(_curBabies*(_babyCost))>>.@@ - <<run cashX((_curBabies*(_babyCost)), "babyTransfer")>> + purchased by the Societal Elite for @@.yellowgreen;<<print cashFormat(_numBeingBorn*(_babyCost))>>.@@ + <<run cashX((_numBeingBorn*(_babyCost)), "babyTransfer")>> <<elseif getSlave($AS).pregSource == -9 && $DefaultBirthDestination == "the market">> <<set _babyCost = random(1000,2500)>> - purchased by the Futanari Sisters for @@.yellowgreen;<<print cashFormat(_curBabies*(_babyCost))>>.@@ - <<run cashX((_curBabies*(_babyCost)), "babyTransfer")>> + purchased by the Futanari Sisters for @@.yellowgreen;<<print cashFormat(_numBeingBorn*(_babyCost))>>.@@ + <<run cashX((_numBeingBorn*(_babyCost)), "babyTransfer")>> <<elseif $DefaultBirthDestination == "individually decided fates">> <br><br> <<link "...sent to a slave orphanage.">> @@ -219,14 +219,14 @@ Performing a cesarean section is trivial for the remote surgery to carry out. << will of course @@.mediumorchid;hate you for this.@@ <<set getSlave($AS).devotion -= 4>> <</if>> - <<set $slaveOrphanageTotal += _curBabies>> + <<set $slaveOrphanageTotal += _numBeingBorn>> <</replace>> <<set $nextButton = "Back">><<UpdateNextButton>> /* unlock Continue button */ <</link>> <<if getSlave($AS).breedingMark == 1 && (getSlave($AS).pregSource == -1 || getSlave($AS).pregSource == -6) && $propOutcome == 1>> <br><<link "...handed off to the Societal Elite.">> <<replace #_disposition>> - handed off to be raised into <<if _curBabies > 1>>future members<<else>>a future member<</if>> of the Societal Elite. <<= getSlave($AS).slaveName>> + handed off to be raised into <<if _numBeingBorn > 1>>future members<<else>>a future member<</if>> of the Societal Elite. <<= getSlave($AS).slaveName>> <<if getSlave($AS).fetish == "mindbroken" || getSlave($AS).fuckdoll > 0>> does not give any hint of a response. <<elseif getSlave($AS).devotion > 95>> @@ -236,10 +236,10 @@ Performing a cesarean section is trivial for the remote surgery to carry out. << understands that this is the best possible outcome for the offspring of a slave, and will be @@.hotpink;overjoyed.@@ <<set getSlave($AS).devotion += 6>> <<elseif getSlave($AS).devotion > 20>> - will miss $his child<<if _curBabies > 1>>ren<</if>>, but will be @@.hotpink;very grateful,@@ since <<print $he>>'ll understand this is the best possible outcome for a slave mother. + will miss $his child<<if _numBeingBorn > 1>>ren<</if>>, but will be @@.hotpink;very grateful,@@ since <<print $he>>'ll understand this is the best possible outcome for a slave mother. <<set getSlave($AS).devotion += 6>> <<else>> - will resent being separated from $his child<<if _curBabies > 1>>ren<</if>>, but @@.hotpink;should understand and be grateful@@ that this is the best possible outcome here. + will resent being separated from $his child<<if _numBeingBorn > 1>>ren<</if>>, but @@.hotpink;should understand and be grateful@@ that this is the best possible outcome here. <<set getSlave($AS).devotion += 6>> <</if>> <</replace>> @@ -249,11 +249,11 @@ Performing a cesarean section is trivial for the remote surgery to carry out. << <<if getSlave($AS).pregSource == -9>> <br><<link "...handed off to the Futanari Sisters.">> <<replace #_disposition>> - handed off to be raised into <<if _curBabies > 1>>future Futanari Sisters<<else>>a future Futanari Sister<</if>>. <<= getSlave($AS).slaveName>> + handed off to be raised into <<if _numBeingBorn > 1>>future Futanari Sisters<<else>>a future Futanari Sister<</if>>. <<= getSlave($AS).slaveName>> <<if getSlave($AS).fetish == "mindbroken" || getSlave($AS).fuckdoll > 0>> has few thoughts about the matter. <<else>> - is overjoyed that $his child<<if _curBabies > 1>>ren<</if>> will follow in <<if _curBabies > 1>>their<<else>>its<</if>> parent's footsteps. + is overjoyed that $his child<<if _numBeingBorn > 1>>ren<</if>> will follow in <<if _numBeingBorn > 1>>their<<else>>its<</if>> parent's footsteps. <<set getSlave($AS).devotion += 4>> <</if>> <</replace>> @@ -267,18 +267,18 @@ Performing a cesarean section is trivial for the remote surgery to carry out. << <<if getSlave($AS).fetish == "mindbroken" || getSlave($AS).fuckdoll > 0>> has few thoughts about the matter. <<elseif getSlave($AS).devotion > 95>> - loves you already, but $he'll @@.hotpink;love you even more@@ for this. $He can't wait to <<if canSee(getSlave($AS))>>see<<else>>have<</if>> $his child<<if _curBabies > 1>>ren<</if>> proudly furthering your cause. + loves you already, but $he'll @@.hotpink;love you even more@@ for this. $He can't wait to <<if canSee(getSlave($AS))>>see<<else>>have<</if>> $his child<<if _numBeingBorn > 1>>ren<</if>> proudly furthering your cause. <<set getSlave($AS).devotion += 4>> <<elseif getSlave($AS).devotion > 50>> - heard about these and will be @@.hotpink;happy that $his child<<if _curBabies > 1>>ren<</if>> will have a purpose in your society other than slavery.@@ $He will miss $his child<<if _curBabies > 1>>ren<</if>>, but $he expected that. + heard about these and will be @@.hotpink;happy that $his child<<if _numBeingBorn > 1>>ren<</if>> will have a purpose in your society other than slavery.@@ $He will miss $his child<<if _numBeingBorn > 1>>ren<</if>>, but $he expected that. <<set getSlave($AS).devotion += 4>> <<elseif getSlave($AS).devotion > 20>> - will naturally miss $his child<<if _curBabies > 1>>ren<</if>>, but will is broken enough to hope that $his offspring will have a better life, or at least an enjoyable one. + will naturally miss $his child<<if _numBeingBorn > 1>>ren<</if>>, but will is broken enough to hope that $his offspring will have a better life, or at least an enjoyable one. <<else>> - will of course @@.mediumorchid;hate you for this.@@ The mere thought of $his <<if $minimumSlaveAge > $fertilityAge>>$minimumSlaveAge<<else>>$fertilityAge<</if>> year old daughter<<if _curBabies > 1>>s<</if>> swollen with life, and proud of it, fills $him with @@.gold;disdain.@@ + will of course @@.mediumorchid;hate you for this.@@ The mere thought of $his <<if $minimumSlaveAge > $fertilityAge>>$minimumSlaveAge<<else>>$fertilityAge<</if>> year old daughter<<if _numBeingBorn > 1>>s<</if>> swollen with life, and proud of it, fills $him with @@.gold;disdain.@@ <<set getSlave($AS).devotion -= 4, getSlave($AS).trust -= 4>> <</if>> - <<set $breederOrphanageTotal += _curBabies>> + <<set $breederOrphanageTotal += _numBeingBorn>> <</replace>> <<set $nextButton = "Back">><<UpdateNextButton>> /* unlock Continue button */ <</link>> @@ -293,23 +293,23 @@ Performing a cesarean section is trivial for the remote surgery to carry out. << loves you already, but $he'll @@.hotpink;love you even more@@ for this. <<set getSlave($AS).devotion += 4>> <<elseif getSlave($AS).devotion > 50>> - knows about these and will be @@.hotpink;overjoyed.@@ $He will miss $his child<<if _curBabies > 1>>ren<</if>>, but $he expected that. + knows about these and will be @@.hotpink;overjoyed.@@ $He will miss $his child<<if _numBeingBorn > 1>>ren<</if>>, but $he expected that. <<set getSlave($AS).devotion += 4>> <<elseif getSlave($AS).devotion > 20>> - will naturally miss $his child<<if _curBabies > 1>>ren<</if>>, but will @@.hotpink;take comfort@@ in the hope that $his offspring will have a better life. + will naturally miss $his child<<if _numBeingBorn > 1>>ren<</if>>, but will @@.hotpink;take comfort@@ in the hope that $his offspring will have a better life. <<set getSlave($AS).devotion += 4>> <<else>> - will naturally retain some resentment over being separated from $his child<<if _curBabies > 1>>ren<</if>>, but this should be balanced by hope that $his offspring will have a better life. + will naturally retain some resentment over being separated from $his child<<if _numBeingBorn > 1>>ren<</if>>, but this should be balanced by hope that $his offspring will have a better life. <<set getSlave($AS).devotion += 4>> <</if>> - <<set $citizenOrphanageTotal += _curBabies>> + <<set $citizenOrphanageTotal += _numBeingBorn>> <</replace>> <<set $nextButton = "Back">><<UpdateNextButton>> /* unlock Continue button */ <</link>> //Will cost <<print cashFormat(100)>> weekly// <br><<link "...sent to be raised privately.">> <<replace #_disposition>> - sent to be privately raised, to be brought up as <<if _curBabies > 1>>future high class citizens<<else>>a future high class citizen<</if>>, an expensive proposition. <<= getSlave($AS).slaveName>> + sent to be privately raised, to be brought up as <<if _numBeingBorn > 1>>future high class citizens<<else>>a future high class citizen<</if>>, an expensive proposition. <<= getSlave($AS).slaveName>> <<if getSlave($AS).fetish == "mindbroken" || getSlave($AS).fuckdoll > 0>> does not give any hint of a response. <<elseif getSlave($AS).devotion > 95>> @@ -319,13 +319,13 @@ Performing a cesarean section is trivial for the remote surgery to carry out. << understands that this is the best possible outcome for the offspring of a slave, and will be @@.hotpink;overjoyed.@@ <<set getSlave($AS).devotion += 6>> <<elseif getSlave($AS).devotion > 20>> - will miss $his child<<if _curBabies > 1>>ren<</if>>, but will be @@.hotpink;very grateful,@@ since <<print $he>>'ll understand this is the best possible outcome for a slave mother. + will miss $his child<<if _numBeingBorn > 1>>ren<</if>>, but will be @@.hotpink;very grateful,@@ since <<print $he>>'ll understand this is the best possible outcome for a slave mother. <<set getSlave($AS).devotion += 6>> <<else>> - will resent being separated from $his child<<if _curBabies > 1>>ren<</if>>, but @@.hotpink;should understand and be grateful@@ that this is the best possible outcome here. + will resent being separated from $his child<<if _numBeingBorn > 1>>ren<</if>>, but @@.hotpink;should understand and be grateful@@ that this is the best possible outcome here. <<set getSlave($AS).devotion += 6>> <</if>> - <<set $privateOrphanageTotal += _curBabies>> + <<set $privateOrphanageTotal += _numBeingBorn>> <</replace>> <<set $nextButton = "Back">><<UpdateNextButton>> /* unlock Continue button */ <</link>> @@ -340,22 +340,22 @@ Performing a cesarean section is trivial for the remote surgery to carry out. << <<set _babyCost = random(-12,12)>> <<if getSlave($AS).prematureBirth > 0>><<set _babyCost = -45>><</if>> <</if>> - sold for <<if _curBabies > 1>>a total of <</if>><<if getSlave($AS).prematureBirth == 1>>@@.yellowgreen;<<print cashFormat(_curBabies*(50+_babyCost))>>,@@ a low price, due to the added costs of caring for them.<<else>>@@.yellowgreen;<<print cashFormat(_curBabies*(50+_babyCost))>>.@@<</if>> + sold for <<if _numBeingBorn > 1>>a total of <</if>><<if getSlave($AS).prematureBirth == 1>>@@.yellowgreen;<<print cashFormat(_numBeingBorn*(50+_babyCost))>>,@@ a low price, due to the added costs of caring for them.<<else>>@@.yellowgreen;<<print cashFormat(_numBeingBorn*(50+_babyCost))>>.@@<</if>> <<if getSlave($AS).fetish == "mindbroken" || getSlave($AS).fuckdoll > 0>> <<= getSlave($AS).slaveName>> lacks the capacity to understand what you've done. <<elseif getSlave($AS).devotion > 95>> - <<= getSlave($AS).slaveName>> adheres to your thoughts so strongly that even though you backed out of caring for $his child<<if _curBabies > 1>>ren<</if>>, $he still truly believes you are doing $him an honor. + <<= getSlave($AS).slaveName>> adheres to your thoughts so strongly that even though you backed out of caring for $his child<<if _numBeingBorn > 1>>ren<</if>>, $he still truly believes you are doing $him an honor. <<elseif getSlave($AS).devotion > 50>> - <<= getSlave($AS).slaveName>> is @@.mediumorchid;deeply hurt@@ by your sudden decision to sell $his child<<if _curBabies > 1>>ren<</if>> instead of having <<if _curBabies > 1>>them<<else>>it<</if>> cared for. $His trust in your words @@.gold;wavers@@ as $he thinks of $his child<<if _curBabies > 1>>ren<</if>>'s future. + <<= getSlave($AS).slaveName>> is @@.mediumorchid;deeply hurt@@ by your sudden decision to sell $his child<<if _numBeingBorn > 1>>ren<</if>> instead of having <<if _numBeingBorn > 1>>them<<else>>it<</if>> cared for. $His trust in your words @@.gold;wavers@@ as $he thinks of $his child<<if _numBeingBorn > 1>>ren<</if>>'s future. <<set getSlave($AS).trust -= 5, getSlave($AS).devotion -= 5>> <<elseif getSlave($AS).devotion > 20>> - <<= getSlave($AS).slaveName>> is @@.mediumorchid;devastated@@ by your sudden decision to sell $his child<<if _curBabies > 1>>ren<</if>> instead of having <<if _curBabies > 1>>them<<else>>it<</if>> cared for. $His mind struggles to comprehend @@.gold;such betrayal.@@ + <<= getSlave($AS).slaveName>> is @@.mediumorchid;devastated@@ by your sudden decision to sell $his child<<if _numBeingBorn > 1>>ren<</if>> instead of having <<if _numBeingBorn > 1>>them<<else>>it<</if>> cared for. $His mind struggles to comprehend @@.gold;such betrayal.@@ <<set getSlave($AS).trust -= 10, getSlave($AS).devotion -= 10>> <<else>> For a moment, <<= getSlave($AS).slaveName>> thought $he saw a glimmer of good in you; @@.mediumorchid;$he was clearly wrong.@@ $His mind struggles to comprehend @@.gold;why $he could ever even thing of trusting such a person.@@ <<set getSlave($AS).trust -= 30, getSlave($AS).devotion -= 30>> <</if>> - <<run cashX(_curBabies*(50+_babyCost), "babyTransfer")>> + <<run cashX(_numBeingBorn*(50+_babyCost), "babyTransfer")>> <</replace>> <<set $nextButton = "Back">><<UpdateNextButton>> /* unlock Continue button */ <</link>> @@ -379,7 +379,7 @@ Performing a cesarean section is trivial for the remote surgery to carry out. << will of course @@.mediumorchid;hate you for this.@@ <<set getSlave($AS).devotion -= 4>> <</if>> - <<set $slaveOrphanageTotal += _curBabies>> + <<set $slaveOrphanageTotal += _numBeingBorn>> <<case "a citizen school">> <<= getSlave($AS).slaveName>> <<if getSlave($AS).fetish == "mindbroken" || getSlave($AS).fuckdoll > 0>> @@ -388,16 +388,16 @@ Performing a cesarean section is trivial for the remote surgery to carry out. << loves you already, but $he'll @@.hotpink;love you even more@@ for this. <<set getSlave($AS).devotion += 4>> <<elseif getSlave($AS).devotion > 50>> - knows about these and will be @@.hotpink;overjoyed.@@ $He will miss $his child<<if _curBabies > 1>>ren<</if>>, but $he expected that. + knows about these and will be @@.hotpink;overjoyed.@@ $He will miss $his child<<if _numBeingBorn > 1>>ren<</if>>, but $he expected that. <<set getSlave($AS).devotion += 4>> <<elseif getSlave($AS).devotion > 20>> - will naturally miss $his child<<if _curBabies > 1>>ren<</if>>, but will @@.hotpink;take comfort@@ in the hope that $his offspring will have a better life. + will naturally miss $his child<<if _numBeingBorn > 1>>ren<</if>>, but will @@.hotpink;take comfort@@ in the hope that $his offspring will have a better life. <<set getSlave($AS).devotion += 4>> <<else>> - will naturally retain some resentment over being separated from $his child<<if _curBabies > 1>>ren<</if>>, but this should be balanced by hope that $his offspring will have a better life. + will naturally retain some resentment over being separated from $his child<<if _numBeingBorn > 1>>ren<</if>>, but this should be balanced by hope that $his offspring will have a better life. <<set getSlave($AS).devotion += 4>> <</if>> - <<set $citizenOrphanageTotal += _curBabies>> + <<set $citizenOrphanageTotal += _numBeingBorn>> <<case "a private school">> <<= getSlave($AS).slaveName>> <<if getSlave($AS).fetish == "mindbroken" || getSlave($AS).fuckdoll > 0>> @@ -409,31 +409,31 @@ Performing a cesarean section is trivial for the remote surgery to carry out. << understands that this is the best possible outcome for the offspring of a slave, and will be @@.hotpink;overjoyed.@@ <<set getSlave($AS).devotion += 6>> <<elseif getSlave($AS).devotion > 20>> - will miss $his child<<if _curBabies > 1>>ren<</if>>, but will be @@.hotpink;very grateful,@@ since <<print $he>>'ll understand this is the best possible outcome for a slave mother. + will miss $his child<<if _numBeingBorn > 1>>ren<</if>>, but will be @@.hotpink;very grateful,@@ since <<print $he>>'ll understand this is the best possible outcome for a slave mother. <<set getSlave($AS).devotion += 6>> <<else>> - will resent being separated from $his child<<if _curBabies > 1>>ren<</if>>, but @@.hotpink;should understand and be grateful@@ that this is the best possible outcome here. + will resent being separated from $his child<<if _numBeingBorn > 1>>ren<</if>>, but @@.hotpink;should understand and be grateful@@ that this is the best possible outcome here. <<set getSlave($AS).devotion += 6>> <</if>> - The child<<if _curBabies > 1>>ren<</if>> will be raised privately, with expert care and tutoring, an expensive proposition. - <<set $privateOrphanageTotal += _curBabies>> + The child<<if _numBeingBorn > 1>>ren<</if>> will be raised privately, with expert care and tutoring, an expensive proposition. + <<set $privateOrphanageTotal += _numBeingBorn>> <<case "breeder schools">> <<= getSlave($AS).slaveName>> <<if getSlave($AS).fetish == "mindbroken" || getSlave($AS).fuckdoll > 0>> has few thoughts about the matter. <<elseif getSlave($AS).devotion > 95>> - loves you already, but $he'll @@.hotpink;love you even more@@ for this. $He can't wait to see $his child<<if _curBabies > 1>>ren<</if>> proudly furthering your cause. + loves you already, but $he'll @@.hotpink;love you even more@@ for this. $He can't wait to see $his child<<if _numBeingBorn > 1>>ren<</if>> proudly furthering your cause. <<set getSlave($AS).devotion += 4>> <<elseif getSlave($AS).devotion > 50>> - heard about these and will be @@.hotpink;happy that $his child<<if _curBabies > 1>>ren<</if>> will have a purpose in your society other than slavery.@@ $He will miss $his child<<if _curBabies > 1>>ren<</if>>, but $he expected that. + heard about these and will be @@.hotpink;happy that $his child<<if _numBeingBorn > 1>>ren<</if>> will have a purpose in your society other than slavery.@@ $He will miss $his child<<if _numBeingBorn > 1>>ren<</if>>, but $he expected that. <<set getSlave($AS).devotion += 4>> <<elseif getSlave($AS).devotion > 20>> - will naturally miss $his child<<if _curBabies > 1>>ren<</if>>, but will is broken enough to hope that $his offspring will have a better life, or at least an enjoyable one. + will naturally miss $his child<<if _numBeingBorn > 1>>ren<</if>>, but will is broken enough to hope that $his offspring will have a better life, or at least an enjoyable one. <<else>> - will of course @@.mediumorchid;hate you for this.@@ The mere thought of $his <<if $minimumSlaveAge > $fertilityAge>>$minimumSlaveAge<<else>>$fertilityAge<</if>> year old daughter<<if _curBabies > 1>>s<</if>> swollen with life, and proud of it, fills $him with @@.gold;disdain.@@ + will of course @@.mediumorchid;hate you for this.@@ The mere thought of $his <<if $minimumSlaveAge > $fertilityAge>>$minimumSlaveAge<<else>>$fertilityAge<</if>> year old daughter<<if _numBeingBorn > 1>>s<</if>> swollen with life, and proud of it, fills $him with @@.gold;disdain.@@ <<set getSlave($AS).devotion -= 4, getSlave($AS).trust -= 4>> <</if>> - <<set $breederOrphanageTotal += _curBabies>> + <<set $breederOrphanageTotal += _numBeingBorn>> <<case "the market">> <<if getSlave($AS).prestige > 1 || getSlave($AS).porn.prestige > 2>> <<set _babyCost = random(-12,100)>> @@ -442,22 +442,22 @@ Performing a cesarean section is trivial for the remote surgery to carry out. << <<set _babyCost = random(-12,12)>> <<if getSlave($AS).prematureBirth > 0>><<set _babyCost = -45>><</if>> <</if>> - $His <<if _curBabies > 1>>babies were<<else>>baby was<</if>> sold for <<if _curBabies > 1>>a total of <</if>><<if getSlave($AS).prematureBirth == 1>>@@.yellowgreen;<<print cashFormat(_curBabies*(50+_babyCost))>>,@@ a low price, due to the added costs of caring for them.<<else>>@@.yellowgreen;<<print cashFormat(_curBabies*(50+_babyCost))>>.@@<</if>> + $His <<if _numBeingBorn > 1>>babies were<<else>>baby was<</if>> sold for <<if _numBeingBorn > 1>>a total of <</if>><<if getSlave($AS).prematureBirth == 1>>@@.yellowgreen;<<print cashFormat(_numBeingBorn*(50+_babyCost))>>,@@ a low price, due to the added costs of caring for them.<<else>>@@.yellowgreen;<<print cashFormat(_numBeingBorn*(50+_babyCost))>>.@@<</if>> <<if getSlave($AS).fetish == "mindbroken" || getSlave($AS).fuckdoll > 0>> <<= getSlave($AS).slaveName>> lacks the capacity to understand what you've done. <<elseif getSlave($AS).devotion > 95>> - <<= getSlave($AS).slaveName>> adheres to your thoughts so strongly that even though you backed out of caring for $his child<<if _curBabies > 1>>ren<</if>>, $he still truly believes you are doing $him an honor. + <<= getSlave($AS).slaveName>> adheres to your thoughts so strongly that even though you backed out of caring for $his child<<if _numBeingBorn > 1>>ren<</if>>, $he still truly believes you are doing $him an honor. <<elseif getSlave($AS).devotion > 50>> - <<= getSlave($AS).slaveName>> is @@.mediumorchid;deeply hurt@@ by your sudden decision to sell $his child<<if _curBabies > 1>>ren<</if>> instead of having <<if _curBabies > 1>>them<<else>>it<</if>> cared for. $His trust in your words @@.gold;wavers@@ as $he thinks of $his child<<if _curBabies > 1>>ren<</if>>'s future. + <<= getSlave($AS).slaveName>> is @@.mediumorchid;deeply hurt@@ by your sudden decision to sell $his child<<if _numBeingBorn > 1>>ren<</if>> instead of having <<if _numBeingBorn > 1>>them<<else>>it<</if>> cared for. $His trust in your words @@.gold;wavers@@ as $he thinks of $his child<<if _numBeingBorn > 1>>ren<</if>>'s future. <<set getSlave($AS).trust -= 5, getSlave($AS).devotion -= 5>> <<elseif getSlave($AS).devotion > 20>> - <<= getSlave($AS).slaveName>> is @@.mediumorchid;devastated@@ by your sudden decision to sell $his child<<if _curBabies > 1>>ren<</if>> instead of having <<if _curBabies > 1>>them<<else>>it<</if>> cared for. $His mind struggles to comprehend @@.gold;such betrayal.@@ + <<= getSlave($AS).slaveName>> is @@.mediumorchid;devastated@@ by your sudden decision to sell $his child<<if _numBeingBorn > 1>>ren<</if>> instead of having <<if _numBeingBorn > 1>>them<<else>>it<</if>> cared for. $His mind struggles to comprehend @@.gold;such betrayal.@@ <<set getSlave($AS).trust -= 10, getSlave($AS).devotion -= 10>> <<else>> For a moment, <<= getSlave($AS).slaveName>> thought $he saw a glimmer of good in you; @@.mediumorchid;$he was clearly wrong.@@ $His mind struggles to comprehend @@.gold;why $he could ever even thing of trusting such a person.@@ <<set getSlave($AS).trust -= 30, getSlave($AS).devotion -= 30>> <</if>> - <<run cashX(_curBabies*(50+_babyCost), "babyTransfer")>> + <<run cashX(_numBeingBorn*(50+_babyCost), "babyTransfer")>> <</switch>> <<else>> <<set $nextButton = "Back">><<UpdateNextButton>> /* unlock Continue button */ @@ -465,7 +465,7 @@ Performing a cesarean section is trivial for the remote surgery to carry out. << </span> <</if>> -<<if _curBabies+_cToIncub+_cToNursery < 1>> +<<if _numBeingBorn+_cToIncub+_cToNursery < 1>> /* Reaction for no live babies here. Placeholder.*/ <<elseif getSlave($AS).fetish != "mindbroken" && getSlave($AS).fuckdoll == 0>> <br><br> @@ -494,15 +494,15 @@ Performing a cesarean section is trivial for the remote surgery to carry out. << <</if>> <</if>> -<<if $arcologies[0].FSRestart != "unset" && _curBabies > 0>> +<<if $arcologies[0].FSRestart != "unset" && _numBeingBorn > 0>> <br><br> <<if getSlave($AS).breedingMark == 1 && (getSlave($AS).pregSource == -1 || getSlave($AS).pregSource == -6) && $propOutcome == 1>> The Societal Elite @@.green;are pleased@@ at the new additions to their class. - <<set $failedElite -= (2 * _curBabies)>> + <<set $failedElite -= (2 * _numBeingBorn)>> <<elseif $eugenicsFullControl != 1>> The Societal Elite @@.red;are disappointed@@ that you would allow subhuman filth to dirty society under your watch. Society @@.red;frowns@@ on the unwelcome addition of more subhumans into the world. - <<set $failedElite += (5 * _curBabies)>> - <<run repX(forceNeg(10 * _curBabies), "birth", getSlave($AS))>> + <<set $failedElite += (5 * _numBeingBorn)>> + <<run repX(forceNeg(10 * _numBeingBorn), "birth", getSlave($AS))>> <</if>> <</if>>