/* diffSize used for check result of partial birth size changes - if it = 2 then womb lost half of it's original size after partial birth, if it = 1 - no size lost. (We get this value as result of dividing of original womb size by after birth size)
This descriptions can be expanded with more outcomes later. But it's not practical to check values above 5-10 - it become too affected by actual value of womb size.
*/
if (slave.assignment==="work in the dairy"&&V.dairyPregSetting>0){
r.push(`As a human cow, ${he} <span class="orange">gave birth</span> `);
if (slave.prematureBirth===1){
r.push(`<span class="red">prematurely</span>`);
}
if (V.diffSize<1.15){
r.push(`but ${his} overfilled womb barely lost any size. ${His} body gave life`);
}elseif (V.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. `);/* syntax wise this has problems. Will likely need to be reworked. */
}elseif (curBabies===1){
r.push(`to a single calf.`);
}elseif (curBabies>=40){
r.push(`to a massive brood of ${curBabies} calves.`);
}elseif (curBabies>=20){
r.push(`to a brood of ${curBabies} calves.`);
}elseif (curBabies>=10){
r.push(`to a squirming pile of ${curBabies} calves.`);
r.push(`${V.nurseryName}, and the medical suite.`);
}
}else{
r.push(`the medical suite.`);
}
}elseif (cToNursery===curBabies){
r.push(`taken to ${V.nurseryName}.`);
}elseif (cToNursery<curBabies&&cToNursery>0){
r.push(`split between ${V.nurseryName} and the medical suite.`);
}else{
r.push(`taken to the medical suite.`);
}
if (cToIncub>0||cToNursery>0){
sendNewbornsToFacility(slave);
}
}else{
r.push(`life and `);
if (curBabies<=1){
r.push(`that of ${his} child`);
}else{
r.push(`those of ${his} children`);
}
r.push(`.`);
}
if (curBabies>0){
letbabyCost;
App.UI.DOM.appendNewElement("p",el,r.join(""));
r=[];
constspan=document.createElement("span");
span.id=V.dispositionId;
if (V.arcologies[0].FSRestart!=="unset"&&slave.breedingMark===1&&V.propOutcome===1&&(slave.pregSource===-1||slave.pregSource===-6)){
span.append(`From there, ${his}${(curBabies>1)?`children are`:`child is`} collected by the Societal Elite to be raised into upstanding members of the new society.`);
span.append(`Unless you provide otherwise, the ${(curBabies>1)?`children`:`child`} will be remanded to one of ${V.arcologies[0].name}'s slave orphanages.`);
V.slaveOrphanageTotal+=curBabies;// Move them now, deduct later if assigned elsewhere.
letdiv;
if (V.arcologies[0].FSRepopulationFocus>40){
div=document.createElement("div");
div.append(
App.UI.DOM.link(
"Send them to a breeder school",
()=>{
V.breederOrphanageTotal+=curBabies;
V.slaveOrphanageTotal-=curBabies;
jQuery(`#${V.dispositionId}`).empty().append(`The ${(curBabies>1)?`children are`:`child is`} sent to one of ${V.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.`);
}
)
);
App.UI.DOM.appendNewElement("span",div,`Will cost a one time ${cashFormat(50)}`,"note");
p.append(div);
}
div=document.createElement("div");
div.append(
App.UI.DOM.link(
"Send them to a citizen school",
()=>{
V.citizenOrphanageTotal+=curBabies;
V.slaveOrphanageTotal-=curBabies;
jQuery(`#${V.dispositionId}`).empty().append(`The ${(curBabies>1)?`children are`:`child is`} sent to one of ${V.arcologies[0].name}'s citizen schools, to be brought up coequal with the arcology's other young people.`);
if (slave.breedingMark===1&&(slave.pregSource===-1||slave.pregSource===-6)&&V.propOutcome===1){
div=document.createElement("div");
div.append(
App.UI.DOM.link(
"Give them to the Societal Elite.",
()=>{
V.citizenOrphanageTotal+=curBabies;
V.slaveOrphanageTotal-=curBabies;
jQuery(`#${V.dispositionId}`).empty().append(`The ${(curBabies>1)?`children are`:`child is`} sent to be raised by the Societal Elite, to be brought up as ${(curBabies>1)?`future members`:`a future member`} of their vision of the world.`);
jQuery(`#${V.dispositionId}`).empty().append(`The ${(curBabies>1)?`children are`:`child is`} 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.`);
}
)
);
p.append(div);
}
div=document.createElement("div");
div.append(
App.UI.DOM.link(
"Have them raised privately",
()=>{
V.privateOrphanageTotal+=curBabies;
V.slaveOrphanageTotal-=curBabies;
jQuery(`#${V.dispositionId}`).empty().append(`The ${(curBabies>1)?`children are`:`child is`} sent to be privately raised, to be brought up as ${(curBabies>1)?`future high class citizens`:`a future high class citizen`}.`);
r.push(` will be remanded to one of ${V.arcologies[0].name}'s slave orphanages.`);
V.slaveOrphanageTotal+=curBabies;
break;
case"a citizen school":
r.push(`The child`);
if (curBabies>1){
r.push(`ren are`);
}else{
r.push(` is`);
}
r.push(` sent to one of ${V.arcologies[0].name}'s citizen schools, to be brought up coequal with the arcology's other young people.`);
V.citizenOrphanageTotal+=curBabies;
V.slaveOrphanageTotal-=curBabies;
break;
case"a private school":
r.push(`The child`);
if (curBabies>1){
r.push(`ren are`);
}else{
r.push(` is`);
}
r.push(` sent to be privately raised, to be brought up as `);
if (curBabies>1){
r.push(`future high class citizens`);
}else{
r.push(`a future high class citizen`);
}
r.push(`.`);
V.privateOrphanageTotal+=curBabies;
V.slaveOrphanageTotal-=curBabies;
break;
case"breeder schools":
r.push(`The child`);
if (curBabies>1){
r.push(`ren are`);
}else{
r.push(` is`);
}
r.push(` sent to one of ${V.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.`);
V.breederOrphanageTotal+=curBabies;
V.slaveOrphanageTotal-=curBabies;
break;
case"the market":
constauctionIncome=curBabies*(50+babyCost);
if (slave.prestige>1||slave.porn.prestige>2){
babyCost=random(-12,100);
if (slave.prematureBirth>0){
babyCost=random(-32,40);
}
}else{
babyCost=random(-12,12);
if (slave.prematureBirth>0){
babyCost=-45;
}
}
span.append(`${His}${(curBabies>1)?`babies were`:`baby was`} sold for ${(curBabies>1)?`a total of`:``} `);
cashText=App.UI.DOM.cashFormat(auctionIncome);
if (slave.prematureBirth===1){
cashText.append(`, `);
span.append(cashText);
span.append(`a low price, due to the added costs of caring for them.`);
}else{
cashText.append(`.`);
span.append(cashText);
}
cashX(auctionIncome,"babyTransfer");
}
}
p.append(span);
}
if (V.arcologies[0].FSRestart!=="unset"&&curBabies>0){
constelitePara=document.createElement("p");
if (slave.breedingMark===1&&(slave.pregSource===-1||slave.pregSource===-6)&&V.propOutcome===1){