diff --git a/src/events/scheduled/burst/burst.js b/src/events/scheduled/burst/burst.js new file mode 100644 index 0000000000000000000000000000000000000000..66bfe9036c2d3cbfdcc14e047ddea71662e08969 --- /dev/null +++ b/src/events/scheduled/burst/burst.js @@ -0,0 +1,84 @@ +globalThis.allBursts = function() { + const el = new DocumentFragment(); + for (const slave of V.slaves) { + if (slave.burst === 1) { + if (slave.womb.length > 0) { + el.append(birth(slave)); + } else { + el.append(pop(slave)); + } + removeSlave(slave); + el.append(sectionBreak()); + } + } + V.burstee = 0; + + return el; + + /** + * + * @param {App.Entity.SlaveState} slave + * @returns {DocumentFragment} + */ + function pop(slave) { + const el = new DocumentFragment(); + const r = []; + const { + He, His, + he, his, him + } = getPronouns(slave); + if (V.seeImages && V.seeReportImages) { + r.push( + App.UI.DOM.makeElement("div", App.Art.SlaveArtElement(slave, 0, 0), ["imageRef", "medImg"]) + ); + } + r.push(`As ${slave.slaveName} is going about ${his} business with ${his} overfilled`); + if (slave.inflation !== 0) { + r.push(slave.inflationType); + } + r.push(`belly, ${he} can't help but feel exhausted. ${His} health has been poor lately and the pressure in ${his} organs is not helping things. ${He} immediately knows something is wrong when an intense pain runs through ${his} middle and ${his} load shifts threateningly.`); + if (slave.inflation !== 0) { + r.push(`Blood and ${slave.inflationType} leak`); + } else { + r.push(`Blood leaks`); + } + (`from ${his} rear as ${his} body cavity fills with the contents of ${his} digestive tract. The skin of ${his} taut belly reddens as the pressure against it builds. As ${he} takes ${his} last breath, ${he} falls forward, ${his} weight landing upon ${his} straining stomach. With a gush, ${he} ruptures, flooding the area around ${him} with`); + if (slave.inflation !== 0) { + r.push(`blood, guts and ${slave.inflationType}.`); + } else { + r.push(`blood and guts.`); + } + el.append(horrifiedSlaves(slave)); + return el; + } + + function sectionBreak() { + const hr = document.createElement("hr"); + hr.style.margin = "0"; + return hr; + } +}; + +/** + * + * @param {App.Entity.SlaveState} slave + * @returns {HTMLElement} + */ +globalThis.horrifiedSlaves = function(slave) { + const el = document.createElement("p"); + const {his} = getPronouns(slave); + el.append(`Word of the late slave and ${his} gruesome fate spread fast, `); + App.UI.DOM.appendNewElement("span", el, "terrifying", "gold"); + el.append(` your untrusting slaves.`); + for (const bystander of V.slaves) { + if (bystander.trust <= 50) { + if (slave.inflation > 0) { + bystander.trust -= (Math.pow(slave.inflation, 3) * 5); + } else { + bystander.trust -= 10; + } + } + } + return el; +}; + diff --git a/src/events/scheduled/burst/seBurst.tw b/src/events/scheduled/burst/seBurst.tw new file mode 100644 index 0000000000000000000000000000000000000000..74189c5a03b92eb1a819943da5c34c0e0757fed8 --- /dev/null +++ b/src/events/scheduled/burst/seBurst.tw @@ -0,0 +1,5 @@ +:: SE Burst [nobr] + +<<set $nextButton = "Continue", $nextLink = "Scheduled Event">> + +<<includeDOM allBursts()>> diff --git a/src/js/birth/birth.js b/src/js/birth/birth.js index 086ebe287d9622d6e2eed0ecd210b08c03cac6bd..26279e1b7623dd8b76126e6a18119c068aec2713 100644 --- a/src/js/birth/birth.js +++ b/src/js/birth/birth.js @@ -3,6 +3,7 @@ globalThis.allBirths = function() { for (const slave of V.slaves) { if (slave.labor === 1) { el.append(birth(slave)); + el.append(sectionBreak()); } } V.reservedChildren = FetusGlobalReserveCount("incubator"); @@ -10,10 +11,17 @@ globalThis.allBirths = function() { V.birthee = 0; return el; + + function sectionBreak() { + const hr = document.createElement("hr"); + hr.style.margin = "0"; + return hr; + } }; globalThis.birth = function(slave) { const el = document.createElement("p"); + el.style.overflow = "hidden"; // Keep image from floating into the next slave. let p; let humiliation = 0; let suddenBirth = 1; @@ -42,7 +50,13 @@ globalThis.birth = function(slave) { } } const title = document.createElement("div"); - title.append(`Birth report: `); + if (slave.burst) { + App.UI.DOM.appendNewElement("span", title, `Alert! `, ["red", "bold"]); + title.append(`Burst report: `); + } else { + title.append(`Birth report: `); + } + App.UI.DOM.appendNewElement("span", title, SlaveFullName(slave), "coral"); el.append(title); prebirthCheck(); @@ -50,17 +64,18 @@ globalThis.birth = function(slave) { if (slaveDead !== 1) { birthCalc(); el.append(birthMainScene()); + if (slave.burst !== 1) { + el.append(postBirthReaction()); + } el.append(birthBabies()); - el.append(birthPostpartum()); - slave.counter.laborCount++; + if (slave.burst !== 1) { + el.append(birthPostpartum()); + slave.counter.laborCount++; + } el.append(birthCritical()); } else { removeSlave(slave); - slaveDead = 0; } - const line = document.createElement("hr"); - line.style.margin = "0"; - el.append(line); return el; @@ -256,9 +271,11 @@ globalThis.birth = function(slave) { const el = new DocumentFragment(); const r = []; if (V.seeImages && V.seeReportImages) { - App.UI.DOM.appendNewElement("div", el, App.Art.SlaveArtElement(slave, 0, 0), ["imageRef", "medImg"]); + App.UI.DOM.appendNewElement("div", el, App.Art.SlaveArtElement(slave, 2), ["imageRef", "medImg"]); } - if (slave.fuckdoll === 0) { + if (slave.burst === 1) { + r.push(`${slave.slaveName}'s straining womb gave out and burst, taking ${his} life.`); + } else if (slave.fuckdoll === 0) { if (slave.broodmother === 0 || slave.broodmotherCountDown === 1) { if (slave.assignment !== "work in the dairy") { if (V.universalRulesCSec === 1 || (slave.mpreg === 0 && slave.vagina < 0)) { @@ -452,7 +469,6 @@ globalThis.birth = function(slave) { } function birthMainScene() { const el = new DocumentFragment(); - let compoundCondition; let r = []; const curStill = slave.curStillBirth; /* -------- cow birth variant ---------------------------------------------------------------------*/ @@ -462,15 +478,23 @@ globalThis.birth = function(slave) { */ if (slave.assignment === "work in the dairy" && V.dairyPregSetting > 0) { r.push(`As a human cow, ${he}`); - r.push(App.UI.DOM.makeElement("span", `gave birth`, "orange")); - if (slave.prematureBirth === 1) { - r.push(App.UI.DOM.makeElement("span", `prematurely`, "red")); - } - if (diffSize < 1.15) { - r.push(`but ${his} overfilled womb barely lost any size. ${His} body gave life`); - } else if (diffSize < 1.3) { - r.push(`but ${his} stomach barely shrank at all. ${His} body gave life`); + + if (slave.burst === 1) { + r.push(App.UI.DOM.makeElement("span", `gave birth`, "orange")); + r.push(App.UI.DOM.makeElement("span", `in the worst possible way`, "red")); + slaveDead = 1; + } else { + r.push(App.UI.DOM.makeElement("span", `gave birth`, "orange")); + if (slave.prematureBirth === 1) { + r.push(App.UI.DOM.makeElement("span", `prematurely`, "red")); + } + if (diffSize < 1.15) { + r.push(`but ${his} overfilled womb barely lost any size. ${His} body gave life`); + } else if (diffSize < 1.3) { + r.push(`but ${his} stomach barely shrank at all. ${His} body gave life`); + } } + if (curBabies < 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) { @@ -537,7 +561,14 @@ globalThis.birth = function(slave) { } } const fathersReduced = removeDuplicates(fathers); - if (cSection === 1) { + + if (slave.burst === 1) { + r.push(`${He}`); + r.push(App.UI.DOM.makeElement("span", `gave birth`, "orange")); + r.push(App.UI.DOM.makeElement("span", `in the worst possible way`, "red")); + r.push(`to`); + slaveDead = 1; + } else if (cSection === 1) { r.push(`${He} was given`); r.push(App.UI.DOM.makeElement("span", `a cesarean section`, "orange")); r.push(`due to health concerns.`); @@ -550,6 +581,7 @@ globalThis.birth = function(slave) { if (slave.prematureBirth === 1) { r.push(App.UI.DOM.makeElement("span", `prematurely`, "red")); } + if (diffSize < 1.15) { r.push(`but ${his} stomach barely shrank at all. ${His} body gave life to`); } else if (diffSize < 1.3) { @@ -591,6 +623,13 @@ globalThis.birth = function(slave) { } } App.Events.addNode(el, r, "p"); + return el; + } + + function postBirthReaction() { + let r = []; + let compoundCondition; + const el = new DocumentFragment(); /* ---- Postbirth reactions, body -------------------------------------------------------------------------------------------*/ if (cSection !== 1) { // all this block only if no c'section used. r = []; @@ -1020,7 +1059,6 @@ globalThis.birth = function(slave) { r.push(`birth included.`); } App.Events.addNode(p, r, "div"); - r = []; if (App.Data.misc.nurseCareers.includes(slave.career) && slave.fetish !== "mindbroken" && slave.muscles >= -95) { r.push(`Thanks to ${his}`); r.push(App.UI.DOM.makeElement("span", `previous career,`, "green")); @@ -1229,6 +1267,7 @@ globalThis.birth = function(slave) { } return el; } + function birthBabies() { const el = document.createElement("p"); let r; @@ -1787,13 +1826,75 @@ globalThis.birth = function(slave) { function birthCritical() { const el = document.createElement("p"); const r = []; + const wl = slave.womb.length; curBabies = slave.curBabies.length; - if (slave.health.health <= -100) { - r.push(`While attempting to recover, ${slave.slaveName}`); - r.push(App.UI.DOM.makeElement("span", `passes away`, "red")); - r.push(`from complications. ${His} body was fatally damaged during childbirth.`); - if (curBabies > 0) { // this needs to include ALL children born fom this batch, incubated ones included. - r.push(`But ${his} offspring`); + if (slave.health.health <= -100 || slave.burst) { + if (!slave.burst) { + r.push(`While attempting to recover, ${slave.slaveName}`); + r.push(App.UI.DOM.makeElement("span", `passes away`, "red")); + r.push(`from complications.`); + } + + r.push(`${His} body was fatally damaged during childbirth.`); + + const fathers = []; + for (const baby of slave.womb) { + if (baby.fatherID === 0) { + fathers.push("an unknown father"); + } else if (baby.fatherID === -1) { + if (V.PC.dick !== 0) { + fathers.push("your magnificent dick"); + } else { + fathers.push("your powerful sperm"); + } + } else if (baby.fatherID === -2) { + fathers.push("your arcology's eager citizens"); + } else if (baby.fatherID === -3) { + fathers.push("your former Master's potent seed"); + } else if (baby.fatherID === -4) { + fathers.push("another arcology owner"); + } else if (baby.fatherID === -5) { + fathers.push("one of your clientele"); + } else if (baby.fatherID === -6) { + fathers.push(`the ${societalElite}`); + } else if (baby.fatherID === -7) { + fathers.push("your own design"); + } else if (baby.fatherID === -8) { + fathers.push("one of your animals"); + } else if (baby.fatherID === -9) { + fathers.push("a Futanari Sister"); + } else { + const babyDaddy = findFather(baby.fatherID); + if (babyDaddy) { + if (babyDaddy.ID === slave.ID) { + fathers.push(`${his} own sperm`); + } else if (babyDaddy.dick === 0) { + fathers.push(`${babyDaddy.slaveName}'s potent seed`); + } else { + fathers.push(`${babyDaddy.slaveName}'s virile cock and balls`); + } + } else { + fathers.push("an unknown father"); + } + } + } + const fathersReduced = removeDuplicates(fathers); + if (wl > 0) { + if (wl === 1) { + r.push(`One baby`); + } else { + r.push(`${wl} babies`); + } + r.push(`created by ${arrayToSentence(fathersReduced)} died with ${him}, too young to survive.`); + r.push(deadBabiesResponse()); + } + + if (curBabies > 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) { r.push(`are`); } else { @@ -1801,15 +1902,14 @@ globalThis.birth = function(slave) { } r.push(`healthy, so ${his} legacy will carry on.`); } + App.Events.addNode(el, r); + el.append(horrifiedSlaves(slave)); removeSlave(slave); slaveDead = 1; - } - if (slaveDead !== 1) { + } else { slave.labor = 0; slave.induce = 0; - } else { - slaveDead = 0; } return el; } @@ -3158,7 +3258,9 @@ globalThis.birth = function(slave) { case "get treatment in the clinic": if (S.Nurse) { - ({he2} = getPronouns(S.Nurse).appendSuffix("2")); + ({he2, his2} = getPronouns(S.Nurse).appendSuffix("2")); + } else { + ({he2, his2} = getNonlocalPronouns(V.seeDicks).appendSuffix('2')); } if (!canWalk(slave)) { if (random(1, 20) > suddenBirth) { @@ -5229,7 +5331,6 @@ globalThis.birth = function(slave) { return el; } - function ampBirth() { const el = document.createElement("p"); let He2, he2, his2; @@ -6421,7 +6522,7 @@ globalThis.birth = function(slave) { case "get treatment in the clinic": if (S.Nurse) { - ({his2} = getPronouns(S.Nurse).appendSuffix("2")); + ({he2, his2} = getPronouns(S.Nurse).appendSuffix("2")); } r.push(`${slave.slaveName} is in the perfect place to give birth when ${his} water breaks.`); if (S.Nurse) { @@ -6471,7 +6572,7 @@ globalThis.birth = function(slave) { } else { r.push(`${slave.slaveName} is awoken from ${his} rest by a moist sensation followed by a contraction. ${He} rolls over and clutches ${his} gravid belly as another wracks ${his} body.`); r.push(clothingBirth()); - r.push(`${He} collects ${his} ${newborns}and places them in the cradle readied for ${him}. ${He} heads to the shower as your servants clean up and remove ${his} ${children}.`); + r.push(`${He} collects ${his} ${newborns} and places them in the cradle readied for ${him}. ${He} heads to the shower as your servants clean up and remove ${his} ${children}.`); } } } @@ -6536,6 +6637,13 @@ globalThis.birth = function(slave) { r.push(`agape. An unfortunate loss.`); } App.Events.addParagraph(el, r); + + r.push(deadBabiesResponse()); + return el; + } + + function deadBabiesResponse() { + const el = new DocumentFragment(); if (V.arcologies[0].FSRestart !== "unset" && slave.breedingMark === 1 && V.propOutcome === 1 && (slave.pregSource === -1 || slave.pregSource === -6) && V.eugenicsFullControl !== 1) { const div = document.createElement("div"); div.append(`The ${V.arcologies[0].FSNeoImperialistLaw2 === 1 ? "Barons" : "Societal Elite"} `); @@ -6548,7 +6656,6 @@ globalThis.birth = function(slave) { el.append(div); V.failedElite += 100; } - return el; } diff --git a/src/pregmod/seBurst.tw b/src/pregmod/seBurst.tw deleted file mode 100644 index 801b01f28780caf78c05223e519a077213de3a28..0000000000000000000000000000000000000000 --- a/src/pregmod/seBurst.tw +++ /dev/null @@ -1,314 +0,0 @@ -:: SE Burst [nobr] - -<<set $nextButton = "Continue", $nextLink = "Scheduled Event">> - -<<for _b = 0; _b < $slaves.length; _b++>> -<<if $slaves[_b].burst == 1>> - - <<if (($slaves[_b].belly > ($slaves[_b].pregAdaptation*3200)) || $slaves[_b].bellyPreg > 600000)>> - - <<set $slaves[_b].curBabies = WombBirth($slaves[_b], $slaves[_b].pregData.minLiveBirth)>> - <<set $slaves[_b].curStillBirth = 0 >> - <<set _curBabies = $slaves[_b].curBabies.length>> /*just to improve speed and usability here.*/ - <<set $birthsTotal += _curBabies>> - - <<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 < $slaves[_b].curBabies.length; _cb++>> - <<if $slaves[_b].curBabies[_cb].fatherID == 0>> - <<set _others++>> - <<set _fathers.push("some man's")>> - <<elseif $slaves[_b].curBabies[_cb].fatherID == -1>> - <<set $PC.counter.slavesFathered++>> - <<set _PC++>> - <<set _fathers.push("your")>> - <<elseif $slaves[_b].curBabies[_cb].fatherID == -2>> - <<set _citizens++>> - <<set _fathers.push("a citizen's")>> - <<elseif $slaves[_b].curBabies[_cb].fatherID == -3>> - <<set _oldMaster++>> - <<set _fathers.push("your former Master's")>> - <<elseif $slaves[_b].curBabies[_cb].fatherID == -4>> - <<set _arcOwner++>> - <<set _fathers.push("another arcology owner's")>> - <<elseif $slaves[_b].curBabies[_cb].fatherID == -5>> - <<set _clients++>> - <<set _fathers.push("your client's")>> - <<elseif $slaves[_b].curBabies[_cb].fatherID == -6>> - <<set _elite++>> - <<set _fathers.push("the Societal Elite's")>> - <<elseif $slaves[_b].curBabies[_cb].fatherID == -7>> - <<set _lab++>> - <<set _fathers.push("the gene lab's")>> - <<elseif $slaves[_b].curBabies[_cb].fatherID == -9>> - <<set _futaS++>> - <<set _fathers.push("a Futanari Sister's")>> - <<else>> - <<set _babyDaddy = findFather($slaves[_b].curBabies[_cb].fatherID)>> - <<if def _babyDaddy>> - <<if _babyDaddy.ID == $slaves[_b].ID>> - <<set _fathers.push(String($his + " own"))>> - <<for _cb2 = 0; _cb2 < _babyFatherLink.length; _cb2++>> - <<if _babyFatherLink[_cb2].string == String($his + " own")>> - <<set _babyFatherLink[_cb2].count++>> - <<else>> - <<set _babyFatherLink[_cb2] = {string: String($his + " own"), count: 1}>> - <</if>> - <</for>> - <<else>> - <<set _fathers.push(String(_babyDaddy.slaveName+ "'s"))>> - <<for _cb2 = 0; _cb2 < _babyFatherLink.length; _cb2++>> - <<if _babyFatherLink[_cb2].string == String(_babyDaddy.slaveName+ "'s")>> - <<set _babyFatherLink[_cb2].count++>> - <<else>> - <<set _babyFatherLink[_cb2] = {string: String(_babyDaddy.slaveName+ "'s"), count: 1}>> - <</if>> - <</for>> - <</if>> - <<set _adjust = _babyDaddy.counter.slavesFathered++>> - <<set adjustFatherProperty(_babyDaddy, "slavesFathered", _adjust)>> - <<else>> - <<set _others++>> - <<set _fathers.push("some man's")>> - <</if>> - <</if>> - <</for>> - <<set _fathersReduced = removeDuplicates(_fathers)>> - <<for _cb = 0; _cb < _fathersReduced.length; _cb++>> - <<set _num = 0>> - <<if _fathersReduced[_cb] == "some man's">> - <<set _num = _others>> - <<elseif _fathersReduced[_cb] == "your">> - <<set _num = _PC>> - <<elseif _fathersReduced[_cb] == "a citizen's">> - <<set _num = _citizens>> - <<elseif _fathersReduced[_cb] == "your former Master's">> - <<set _num = _oldMaster>> - <<elseif _fathersReduced[_cb] == "another arcology owner's">> - <<set _num = _arcOwner>> - <<elseif _fathersReduced[_cb] == "your client's">> - <<set _num = _clients>> - <<elseif _fathersReduced[_cb] == "the Societal Elite's">> - <<set _num = _elite>> - <<elseif _fathersReduced[_cb] == "the gene lab's">> - <<set _num = _lab>> - <<elseif _fathersReduced[_cb] == "a Futanari Sister's">> - <<set _num = _futaS>> - <<else>> - <<set _cb2 = _babyFatherLink.findIndex(function(s) {_fathersReduced[_cb] == _babyFatherLink[s].string; })>> - <<if _cb2 != -1>> - <<set _num = _babyFatherLink[_cb2].count>> - <</if>> - <</if>> - <<if _num == 1>> - <<set _fathersReduced[_cb] += " baby">> - <<elseif _num >= 40>> - <<set _fathersReduced[_cb] += String(" massive brood of " + _num + " babies")>> - <<elseif _num >= 20>> - <<set _fathersReduced[_cb] += String(" brood of " + _num + " babies")>> - <<elseif _num >= 10>> - <<set _fathersReduced[_cb] += String(" impressive group of " + _num + " babies")>> - <<else>> - <<set _fathersReduced[_cb] += String(" " + pregNumberName(_num, 2))>> - <</if>> - <</for>> - - <<if $slaves[_b].broodmother < 1>> - <<set $slaves[_b].curStillBirth = $slaves[_b].womb.length>> - <<set WombFlush($slaves[_b])>> - <</if>> - - <<set _incubated = 0>> - <<set _cToIncub = 0, _cToNursery = 0>> - <<for _csec = 0; _csec < _curBabies; _csec++>> - <<if $slaves[_b].curBabies[_csec].reserve === "incubator">> - <<set _cToIncub++>> - <<elseif $slaves[_b].curBabies[_csec].reserve === "nursery">> - <<set _cToNursery++>> - <</if>> - <</for>> - - /* ------------------------------------------------ */ - - $slaves[_b].slaveName's straining womb finally gave out and burst, taking $his - - <<if _curBabies > 0>> - life, but not <<if _curBabies <= 1>>that of $his child<<else>>those of all $his children<</if>>; - <<if _fathersReduced.length > 2>> - <<for _cb = 0; _cb < _fathersReduced.length; _cb++>> - <<if _cb < _fathersReduced.length-1>> - _fathersReduced[_cb], - <<else>> - and _fathersReduced[_cb] - <</if>> - <</for>> - <<elseif _fathersReduced.length > 1>> - _fathersReduced[0] and _fathersReduced[1] - <<else>> - _fathersReduced[0] - <</if>> - - <<if _curBabies <= 1>>has<<else>>have<</if>> - promptly been - - <<set _incubated = 0>> - <<if _cToIncub == _curBabies>> - taken to $incubatorName. - <<elseif _cToIncub < _curBabies && _cToIncub > 0>> - split between $incubatorName and - <<if _cToNursery > 0>> - <<if _cToNursery == _curBabies-_cToIncub && _incubated > 0>> - $nurseryName. - <<elseif _cToNursery < _curBabies-_cToIncub && _cToNursery > 0>> - $nurseryName, and the medical suite. - <</if>> - <<else>> - the medical suite. - <</if>> - <<elseif _cToNursery == _curBabies>> - taken to $nurseryName. - <<elseif _cToNursery < _curBabies && _cToNursery > 0>> - split between $nurseryName and the medical suite. - <<else>> - taken to the medical suite. - <</if>> - - <<if _cToIncub > 0 || _cToNursery > 0>> - <<run sendNewbornsToFacility($slaves[_b])>> - <</if>> - <<else>> - life and <<if _curBabies <= 1>>that of $his child<<else>>those of $his children<</if>>. - <</if>> - - <<set _curBabies = $slaves[_b].curBabies.length>> - - <<if _curBabies > 0>> - <br><br> - <<span $dispositionId>> - <<if $arcologies[0].FSRestart != "unset" && $slaves[_b].breedingMark == 1 && $propOutcome == 1 && ($slaves[_b].pregSource == -1 || $slaves[_b].pregSource == -6)>> - From there, $his child<<if _curBabies > 1>>ren are<<else>> is<</if>> collected by the Societal Elite to be raised into upstanding members of the new society. - <<elseif $slaves[_b].breedingMark == 1 && $propOutcome == 1 && ($slaves[_b].pregSource == -1 || $slaves[_b].pregSource == -6) && $DefaultBirthDestination == "the market">> - <<set _babyCost = random(2000,4500)>> - $His <<if _curBabies > 1>>babies were<<else>>baby was<</if>> purchased by the Societal Elite for @@.yellowgreen;<<print cashFormat(_curBabies*(_babyCost))>>.@@ - <<run cashX((_curBabies*(_babyCost)), "babyTransfer")>> - <<elseif $slaves[_b].pregSource == -9 && $DefaultBirthDestination == "the market">> - <<set _babyCost = random(1000,2500)>> - $His <<if _curBabies > 1>>babies were<<else>>baby was<</if>> purchased by the Futanari Sisters for @@.yellowgreen;<<print cashFormat(_curBabies*(_babyCost))>>.@@ - <<run cashX((_curBabies*(_babyCost)), "babyTransfer")>> - <<elseif $DefaultBirthDestination == "individually decided fates">> - Unless you provide otherwise, the child<<if _curBabies > 1>>ren<</if>> will be remanded to one of $arcologies[0].name's slave orphanages. - <<set $slaveOrphanageTotal += _curBabies>> - <<capture $i, $dispositionId, _curBabies>> - <br> - <<if $arcologies[0].FSRepopulationFocus > 40>> - <br><<link "Send them to a breeder school">> - <<replace `"#" + $dispositionId`>> - The child<<if _curBabies > 1>>ren are<<else>> is<</if>> sent to one of $arcologies[0].name's future minded schools, to be administered fertility and virility treatments as well as be brought up to take pride in reproduction. Hopefully there they will be trained to not suffer the same fate. - <<set $breederOrphanageTotal += _curBabies, $slaveOrphanageTotal -= _curBabies>> - <</replace>> - <</link>> - //Will cost a one-time <<print cashFormat(50)>>// | - <</if>> - <br><<link "Send them to a citizen school">> - <<replace `"#" + $dispositionId`>> - The child<<if _curBabies > 1>>ren are<<else>> is<</if>> sent to one of $arcologies[0].name's citizen schools, to be brought up coequal with the arcology's other young people. - <<set $citizenOrphanageTotal += _curBabies, $slaveOrphanageTotal -= _curBabies>> - <</replace>> - <</link>> - //Will cost <<print cashFormat(100)>> weekly// - <<if $activeSlave.breedingMark == 1 && ($activeSlave.pregSource == -1 || $activeSlave.pregSource == -6) && $propOutcome == 1>> - <br><<link "Give them to the Societal Elite.">> - <<replace `"#" + $dispositionId`>> - The child<<if _curBabies > 1>>ren are<<else>> is<</if>> sent to be raised by the Societal Elite, to be brought up as <<if _curBabies > 1>>future members<<else>>a future member<</if>> of their vision of the world. - <<set $slaveOrphanageTotal -= _curBabies>> - <</replace>> - <<set $nextButton = "Back">><<UpdateNextButton>> /* unlock Continue button */ - <</link>> - <</if>> - <<if $slaves[_b].pregSource == -9>> - <br><<link "Give them to the Futanari Sisters">> - <<replace #dispositionId>> - The child<<if _curBabies > 1>>ren are<<else>> is<</if>> handed off to be raised by their father, the Futanari Sisters. You recommend they take it easy for a while before any more burst into kids. - <<set $slaveOrphanageTotal -= _curBabies>> - <</replace>> - <</link>> - <</if>> - <br><<link "Have them raised privately">> - <<replace `"#" + $dispositionId`>> - The child<<if _curBabies > 1>>ren are<<else>> is<</if>> sent to be privately raised, to be brought up as <<if _curBabies > 1>>future high class citizens<<else>>a future high class citizen<</if>>. - <<set $privateOrphanageTotal += _curBabies, $slaveOrphanageTotal -= _curBabies>> - <</replace>> - <</link>> - //Will cost <<print cashFormat(500)>> weekly// - <<if $policies.cash4Babies == 1>> - <br><<link "Send them to auction">> - <<replace `"#" + $dispositionId`>> - <<if $activeSlave.prestige > 1 || $activeSlave.porn.prestige > 2>> - <<set _babyCost = random(-12,100)>> - <<if $activeSlave.prematureBirth > 0>><<set _babyCost = random(-32,40)>><</if>> - <<else>> - <<set _babyCost = random(-12,12)>> - <<if $activeSlave.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 $slaves[_b].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>> - <<run cashX((_curBabies*(50+_babyCost)), "babyTransfer")>> - <<set $slaveOrphanageTotal -= _curBabies>> - <</replace>> - <</link>> - <</if>> - <</capture>> - <<else>> - <<switch $DefaultBirthDestination>> - <<case "an orphanage">> - The child<<if _curBabies > 1>>ren<</if>> will be remanded to one of $arcologies[0].name's slave orphanages. - <<set $slaveOrphanageTotal += _curBabies>> - <<case "a citizen school">> - The child<<if _curBabies > 1>>ren are<<else>> is<</if>> sent to one of $arcologies[0].name's citizen schools, to be brought up coequal with the arcology's other young people. - <<set $citizenOrphanageTotal += _curBabies, $slaveOrphanageTotal -= _curBabies>> - <<case "a private school">> - The child<<if _curBabies > 1>>ren are<<else>> is<</if>> sent to be privately raised, to be brought up as <<if _curBabies > 1>>future high class citizens<<else>>a future high class citizen<</if>>. - <<set $privateOrphanageTotal += _curBabies, $slaveOrphanageTotal -= _curBabies>> - <<case "breeder schools">> - The child<<if _curBabies > 1>>ren are<<else>> is<</if>> sent to one of $arcologies[0].name's future minded schools, to be administered fertility and virility treatments as well as be brought up to take pride in reproduction. Hopefully there they will be trained to not suffer the same fate. - <<set $breederOrphanageTotal += _curBabies, $slaveOrphanageTotal -= _curBabies>> - <<case "the market">> - <<if $slaves[$_b].prestige > 1 || $slaves[$_b].porn.prestige > 2>> - <<set _babyCost = random(-12,100)>> - <<if $slaves[$_b].prematureBirth > 0>><<set _babyCost = random(-32,40)>><</if>> - <<else>> - <<set _babyCost = random(-12,12)>> - <<if $slaves[$_b].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 $slaves[$_b].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>> - <<run cashX(_curBabies*(50+_babyCost), "babyTransfer")>> - <</switch>> - <</if>> - <</span>> - <</if>> - - <<if $arcologies[0].FSRestart != "unset" && _curBabies > 0>> - <br><br> - <<if $slaves[_b].breedingMark == 1 && ($slaves[_b].pregSource == -1 || $slaves[_b].pregSource == -6) && $propOutcome == 1>> - The Societal Elite @@.green;are pleased@@ at the new additions to their class, despite it claiming a promising breeder. - <<set $failedElite -= _curBabies>> - <<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. At least the "birth" claimed the wretched $girl's life. - <<set $failedElite += (5 * _curBabies)>> - <<run repX(forceNeg(10 * _curBabies), "babyTransfer")>> - <</if>> - <</if>> - - <<set $reservedChildren = FetusGlobalReserveCount("incubator")>> - <<set $reservedChildrenNursery = FetusGlobalReserveCount("nursery")>> - - <<elseif $slaves[_b].inflation != 0>> - <<pop $slaves[_b]>> - <</if>> - - <<= removeSlave($slaves[_b])>> - - <br><br><hr style="margin:0"><br> -<</if>> -<</for>> - -<<set $burstee = 0>> -<<set $burst = 0>> diff --git a/src/pregmod/widgets/deathWidgets.tw b/src/pregmod/widgets/deathWidgets.tw index 117c8f70b9a8585ac9493aeceee0fc69e186cc62..cfe1a6e7ba637e69aa760ffbca357442ecf997a2 100644 --- a/src/pregmod/widgets/deathWidgets.tw +++ b/src/pregmod/widgets/deathWidgets.tw @@ -1,26 +1,5 @@ :: death widgets [widget nobr] -<<widget "pop">> - <br> - /* 000-250-006 */ - <<if $seeImages && $seeReportImages>> - <div class="imageRef tinyImg"> - <<= SlaveArt($args[0], 0, 0)>> - </div> - <</if>> - /* 000-250-006 */ - As $args[0].slaveName is going about $his business with $his overfilled $args[0].inflationType belly, $he can't help but feel exhausted. $His health has been poor lately and the pressure in $his organs is not helping things. $He immediately knows something is wrong when an intense pain runs through $his middle and $his load shifts threateningly. Blood and $args[0].inflationType leak from $his rear as $his body cavity fills with the contents of $his digestive tract. The skin of $his taut belly reddens as the pressure against it builds. As $he takes $his last breath, $he falls forward, $his weight landing upon $his straining stomach. With a gush, $he ruptures, flooding the area around $him with blood, guts and $args[0].inflationType. Word of the late slave and $his gruesome fate spread fast, @@.gold;terrifying@@ your untrusting slaves. - <<for _dw = 0; _dw < $slaves.length; _dw++>> - <<if ($slaves[_dw].trust <= 50)>> - <<if ($slaves[_dw].inflation >= 0)>> - <<set $slaves[_dw].trust -= (Math.pow($slaves[_dw].inflation,3)*5)>> - <<else>> - <<set $slaves[_dw].trust -= 10>> - <</if>> - <</if>> - <</for>> -<</widget>> - <<widget "DeathOldAge">> /* 000-250-006 */ <<if $seeImages && $seeReportImages>>