From 983cc634c84550ecc4ce4c93ed145877cce5951c Mon Sep 17 00:00:00 2001
From: lowercasedonkey <lowercasedonkey@gmail.com>
Date: Sat, 26 Sep 2020 01:43:48 -0400
Subject: [PATCH] csec

---
 src/npc/interaction/passage/csec.tw | 593 +---------------------------
 1 file changed, 1 insertion(+), 592 deletions(-)

diff --git a/src/npc/interaction/passage/csec.tw b/src/npc/interaction/passage/csec.tw
index 97fae77217c..9b82c7aa9b7 100644
--- a/src/npc/interaction/passage/csec.tw
+++ b/src/npc/interaction/passage/csec.tw
@@ -1,596 +1,5 @@
 :: csec [nobr]
 
 <<set $nextButton = "Back", $nextLink = "Slave Interact">>
-<<set $AS = $activeSlave.ID>>
 
-/*---------------- calculations -----------------*/
-
-/* Now it's will be possible to use passage for broodmothers and partial birthers too.*/
-
-<<set getSlave($AS).pregControl = "none">>
-<<set _beforeSize = WombGetVolume(getSlave($AS))>>
-<<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 _numBeingBorn = babiesBeingBorn.length>> /*just to improve speed and usability here.*/
-
-<<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 < babiesBeingBorn.length; _cb++>>
-	<<if babiesBeingBorn[_cb].fatherID == 0>>
-		<<set _others++>>
-		<<set _fathers.push("some man's")>>
-	<<elseif babiesBeingBorn[_cb].fatherID == -1>>
-		<<set $PC.counter.slavesFathered++>>
-		<<set _PC++>>
-		<<set _fathers.push("your")>>
-	<<elseif babiesBeingBorn[_cb].fatherID == -2>>
-		<<set _citizens++>>
-		<<set _fathers.push("a citizen's")>>
-	<<elseif babiesBeingBorn[_cb].fatherID == -3>>
-		<<set _oldMaster++>>
-		<<set _fathers.push("your former Master's")>>
-	<<elseif babiesBeingBorn[_cb].fatherID == -4>>
-		<<set _arcOwner++>>
-		<<set _fathers.push("another arcology owner's")>>
-	<<elseif babiesBeingBorn[_cb].fatherID == -5>>
-		<<set _clients++>>
-		<<set _fathers.push("your client's")>>
-	<<elseif babiesBeingBorn[_cb].fatherID == -6>>
-		<<set _elite++>>
-		<<set _fathers.push("the Societal Elite's")>>
-	<<elseif babiesBeingBorn[_cb].fatherID == -7>>
-		<<set _lab++>>
-		<<set _fathers.push("the gene lab's")>>
-	<<elseif babiesBeingBorn[_cb].fatherID == -9>>
-		<<set _futaS++>>
-		<<set _fathers.push("a Futanari Sister's")>>
-	<<else>>
-		<<set _babyDaddy = findFather(babiesBeingBorn[_cb].fatherID)>>
-		<<if def _babyDaddy>>
-			<<if _babyDaddy.ID == getSlave($AS).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] == "your arcology'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 getSlave($AS).broodmother < 1>> /* broodmothers can't lose fetuses, or it's abortion procedure, not c'sec.*/
-	<<if $surgeryUpgrade == 1 >>
-		/* nothing right now. For partial birthers, who can do it. For future use.*/
-	<<else>>
-		<<set WombFlush(getSlave($AS))>>
-		/* normally fetuses before 34 week will not survive */
-	<</if>>
-<</if>>
-<<set _afterSize = WombGetVolume(getSlave($AS))>> /* not really needed right now, but better to add already for future usage. To not forget later.*/
-<<set $diffSize = _beforeSize / (1 + _afterSize)>> /* 1 used to avoid divide by zero error.*/
-
-<<set _incubated = 0>>
-<<set _oldDevotion = getSlave($AS).devotion>>
-
-<<set _cToIncub = 0, _cToNursery = 0>>
-<<for _csec = 0; _csec < _numBeingBorn; _csec++>>
-	<<if babiesBeingBorn[_csec].reserve === "incubator">>
-		<<set _cToIncub++>>
-	<<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 _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>>
-				_fathersReduced[_cb],
-			<<else>>
-				and _fathersReduced[_cb]
-			<</if>>
-		<</for>>
-	<<elseif _fathersReduced.length > 1>>
-		_fathersReduced[0] and _fathersReduced[1]
-	<<else>>
-		_fathersReduced[0]
-	<</if>>
-
-	<<if _numBeingBorn <= 1>>has<<else>>have<</if>>
-	already been
-
-	<<if _cToIncub == _numBeingBorn>>
-		taken to $incubatorName.
-		<<set _incubated = 2>>
-	<<elseif _cToIncub < _numBeingBorn && _cToIncub > 0>>
-		split between $incubatorName and
-		<<set _incubated = 1>>
-	<</if>>
-
-	<<if _cToNursery == _numBeingBorn>>
-		taken to $nurseryName.
-		<<set _nursed = 2>>
-	<<elseif _cToNursery < _numBeingBorn && _cToNursery > 0>>
-		split between $nurseryName and
-		<<set _nursed = 1>>
-	<</if>>
-
-	<<if _cToIncub > 0 || _cToNursery > 0>>
-		<<set babiesBeingBorn = sendNewbornsToFacility(getSlave($AS), babiesBeingBorn)>>
-	<</if>>
-
-<<else>>
-	/*No live babies. Placeholder */
-<</if>>
-
-<<set _numBeingBorn = babiesBeingBorn.length>>
-
-<<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(_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(_numBeingBorn*(_babyCost))>>.@@
-		<<run cashX((_numBeingBorn*(_babyCost)), "babyTransfer")>>
-	<<elseif $DefaultBirthDestination == "individually decided fates">>
-		<br><br>
-		<<link "...sent to a slave orphanage.">>
-			<<replace #_disposition>>
-				sent to one of $arcologies[0].name's slave orphanages. <<= getSlave($AS).slaveName>>
-				<<if getSlave($AS).fetish == "mindbroken" || getSlave($AS).fuckdoll > 0>>
-					shows no indication of an opinion on the matter.
-				<<elseif getSlave($AS).devotion > 95>>
-					worships you so completely that $he will not resent this.
-				<<elseif getSlave($AS).devotion > 50>>
-					is devoted to you, but $he will @@.mediumorchid;struggle to accept this.@@
-					<<set getSlave($AS).devotion -= 2>>
-				<<elseif getSlave($AS).devotion > 20>>
-					has accepted being a sex slave, but $he will @@.mediumorchid;resent this intensely.@@
-					<<set getSlave($AS).devotion -= 3>>
-				<<else>>
-					will of course @@.mediumorchid;hate you for this.@@
-					<<set getSlave($AS).devotion -= 4>>
-				<</if>>
-				<<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 _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>>
-						will @@.hotpink;worship you utterly@@ for this.
-						<<set getSlave($AS).devotion += 6>>
-					<<elseif getSlave($AS).devotion > 50>>
-						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 _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 _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>>
-				<<set $nextButton = "Back">><<UpdateNextButton>> /* unlock Continue button */
-			<</link>>
-		<</if>>
-		<<if getSlave($AS).pregSource == -9>>
-			<br><<link "...handed off to the Futanari Sisters.">>
-				<<replace #_disposition>>
-					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 _numBeingBorn > 1>>ren<</if>> will follow in <<if _numBeingBorn > 1>>their<<else>>its<</if>> parent's footsteps.
-						<<set getSlave($AS).devotion += 4>>
-					<</if>>
-				<</replace>>
-				<<set $nextButton = "Back">><<UpdateNextButton>> /* unlock Continue button */
-			<</link>>
-		<</if>>
-		<<if $arcologies[0].FSRepopulationFocus > 40>>
-			<br><<link "...sent to a breeder school.">>
-				<<replace #_disposition>>
-					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. <<= 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 <<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 _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 _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 _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 += _numBeingBorn>>
-				<</replace>>
-				<<set $nextButton = "Back">><<UpdateNextButton>> /* unlock Continue button */
-			<</link>>
-			//Will cost a one-time <<print cashFormat(50)>>//
-		<</if>>
-		<br><<link "...sent to a citizen school.">>
-			<<replace #_disposition>>
-				sent to one of $arcologies[0].name's citizen schools, to be brought up coequal with the arcology's other young people. <<= getSlave($AS).slaveName>>
-				<<if getSlave($AS).fetish == "mindbroken" || getSlave($AS).fuckdoll > 0>>
-					fails to acknowledge this.
-				<<elseif getSlave($AS).devotion > 95>>
-					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 _numBeingBorn > 1>>ren<</if>>, but $he expected that.
-					<<set getSlave($AS).devotion += 4>>
-				<<elseif getSlave($AS).devotion > 20>>
-					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 _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 += _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 _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>>
-					will @@.hotpink;worship you utterly@@ for this.
-					<<set getSlave($AS).devotion += 6>>
-				<<elseif getSlave($AS).devotion > 50>>
-					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 _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 _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 += _numBeingBorn>>
-			<</replace>>
-			<<set $nextButton = "Back">><<UpdateNextButton>> /* unlock Continue button */
-		<</link>>
-		//Will cost <<print cashFormat(500)>> weekly//
-		<<if $policies.cash4Babies == 1>>
-			<br><<link "... sold at auction.">>
-				<<replace #_disposition>>
-					<<if getSlave($AS).prestige > 1 || getSlave($AS).porn.prestige > 2>>
-						<<set _babyCost = random(-12,100)>>
-						<<if getSlave($AS).prematureBirth > 0>><<set _babyCost = random(-32,40)>><</if>>
-					<<else>>
-						<<set _babyCost = random(-12,12)>>
-						<<if getSlave($AS).prematureBirth > 0>><<set _babyCost = -45>><</if>>
-					<</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 _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 _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 _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(_numBeingBorn*(50+_babyCost), "babyTransfer")>>
-				<</replace>>
-				<<set $nextButton = "Back">><<UpdateNextButton>> /* unlock Continue button */
-			<</link>>
-		<</if>>
-	<<elseif $DefaultBirthDestination != "individually decided fates">>
-		sent to $DefaultBirthDestination.
-		<<switch $DefaultBirthDestination>>
-		<<case "an orphanage">>
-			<<= getSlave($AS).slaveName>>
-			<<if getSlave($AS).fetish == "mindbroken" || getSlave($AS).fuckdoll > 0>>
-				shows no indication of an opinion on the matter.
-			<<elseif getSlave($AS).devotion > 95>>
-				worships you so completely that $he will not resent this.
-			<<elseif getSlave($AS).devotion > 50>>
-				is devoted to you, but $he will @@.mediumorchid;struggle to accept this.@@
-				<<set getSlave($AS).devotion -= 2>>
-			<<elseif getSlave($AS).devotion > 20>>
-				has accepted being a sex slave, but $he will @@.mediumorchid;resent this intensely.@@
-				<<set getSlave($AS).devotion -= 3>>
-			<<else>>
-				will of course @@.mediumorchid;hate you for this.@@
-				<<set getSlave($AS).devotion -= 4>>
-			<</if>>
-			<<set $slaveOrphanageTotal += _numBeingBorn>>
-		<<case "a citizen school">>
-			<<= getSlave($AS).slaveName>>
-			<<if getSlave($AS).fetish == "mindbroken" || getSlave($AS).fuckdoll > 0>>
-				fails to acknowledge this.
-			<<elseif getSlave($AS).devotion > 95>>
-				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 _numBeingBorn > 1>>ren<</if>>, but $he expected that.
-				<<set getSlave($AS).devotion += 4>>
-			<<elseif getSlave($AS).devotion > 20>>
-				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 _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 += _numBeingBorn>>
-		<<case "a private school">>
-			<<= 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>>
-				will @@.hotpink;worship you utterly@@ for this.
-				<<set getSlave($AS).devotion += 6>>
-			<<elseif getSlave($AS).devotion > 50>>
-				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 _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 _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 _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 _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 _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 _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 _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 += _numBeingBorn>>
-		<<case "the market">>
-			<<if getSlave($AS).prestige > 1 || getSlave($AS).porn.prestige > 2>>
-				<<set _babyCost = random(-12,100)>>
-				<<if getSlave($AS).prematureBirth > 0>><<set _babyCost = random(-32,40)>><</if>>
-			<<else>>
-				<<set _babyCost = random(-12,12)>>
-				<<if getSlave($AS).prematureBirth > 0>><<set _babyCost = -45>><</if>>
-			<</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 _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 _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 _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(_numBeingBorn*(50+_babyCost), "babyTransfer")>>
-		<</switch>>
-	<<else>>
-		<<set $nextButton = "Back">><<UpdateNextButton>> /* unlock Continue button */
-	<</if>>
-	</span>
-<</if>>
-
-<<if _numBeingBorn+_cToIncub+_cToNursery < 1>>
-	/* Reaction for no live babies here. Placeholder.*/
-<<elseif getSlave($AS).fetish != "mindbroken" && getSlave($AS).fuckdoll == 0>>
-	<br><br>
-	<<if getSlave($AS).pregSource == -1>>
-		<<if getSlave($AS).devotion <= 20 && getSlave($AS).weekAcquired > 0>>
-			$He @@.mediumorchid;despises@@ you for using $his body to bear your children.
-			<<set getSlave($AS).devotion -= 10>>
-		<<elseif getSlave($AS).devotion > 50>>
-			$He's @@.hotpink;so proud@@ to have successfully carried children for you.
-			<<set getSlave($AS).devotion += 3>>
-		<</if>>
-	<</if>>
-	<<if getSlave($AS).fetish == "pregnancy">>
-		$He's a little disappointed $he didn't get to give birth, but can't wait to get pregnant again.
-	<<elseif (getSlave($AS).devotion > 50)>>
-		$He is @@.hotpink;pleased by this stark development,@@ since $he is so attentive to your will. $He also expects $he'll be able to fuck better now.
-		<<set getSlave($AS).devotion += 4>>
-	<<elseif (getSlave($AS).devotion > 20)>>
-		$He is broken enough to accept your control of $his pregnancies.
-	<<elseif (getSlave($AS).devotion >= -20)>>
-		$He would have preferred to give birth when $he was ready and is @@.gold;sensibly fearful@@ of your total power over $his body.
-		<<set getSlave($AS).trust -= 5>>
-	<<else>>
-		$He does not understand the realities of $his life as a slave at a core level, so $he's @@.mediumorchid;terrified and angry@@ that you decided to cut short $his pregnancy. $He is @@.gold;sensibly fearful@@ of your total power over $his body.
-		<<set getSlave($AS).trust -= 5, getSlave($AS).devotion -= 5>>
-	<</if>>
-<</if>>
-
-<<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 * _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 * _numBeingBorn)>>
-		<<run repX(forceNeg(10 * _numBeingBorn), "birth", getSlave($AS))>>
-	<</if>>
-<</if>>
-
-<br><br>
-Since $his <<if getSlave($AS).mpreg == 1>>ass<<else>>vagina<</if>> was spared from childbirth, @@.lime;it retained its tightness.@@
-<<if ($PC.skill.medicine >= 100)>>
-	Since you @@.springgreen;performed the surgery yourself,@@ and you do an artist's work, $his health is @@.green;less affected@@ by the surgery than it would have been if you'd paid some hack to do it remotely.
-	<<if getSlave($AS).fetish != "mindbroken" && getSlave($AS).fuckdoll == 0>>
-		$He went into the surgery very aware that you were performing it manually.
-		<<if (getSlave($AS).devotion < _oldDevotion)>>
-			<<if (getSlave($AS).devotion > 50)>>
-				Though $he is unhappy with the results, $he consoles $himself with the knowledge that you cared enough to do it personally.
-			<<elseif (getSlave($AS).devotion >= -20)>>
-				$He is @@.gold;even more afraid@@ of you afterward than $he would otherwise be. You must seem a cruel and near-omnipotent power to $him.
-				<<set getSlave($AS).trust -= 5>>
-			<<else>>
-				$He is @@.mediumorchid;even more hateful@@ of you afterward than $he would otherwise be. It must seem to $him that $he's nothing more than a test subject to you.
-				<<set getSlave($AS).devotion -= 5>>
-			<</if>>
-		<<else>>
-			<<if (getSlave($AS).devotion > 50)>>
-				Since $he's happy with the results, $he's almost beside $himself with @@.hotpink;gratitude,@@ and filled with @@.mediumaquamarine;admiration@@ of your skill.
-				<<set getSlave($AS).devotion += 4, getSlave($AS).trust += 4>>
-			<<elseif (getSlave($AS).devotion >= -20)>>
-				$He is quite struck by how you performed the surgery personally. $He admires your refusal to be one of the idle rich, and @@.hotpink;likes you more.@@
-				<<set getSlave($AS).devotion += 5>>
-			<<else>>
-				$He knows that $he should be grateful to you for performing the surgery personally, but the emotional turmoil of the occasion is too much for $him, and the realization makes little lasting impact.
-			<</if>>
-		<</if>>
-	<</if>>
-<<else>>
-	As with all surgery @@.red;$his health has been slightly affected.@@
-	<<run surgeryDamage(getSlave($AS), 5)>>
-<</if>>
-<<if getSlave($AS).wombImplant == "restraint">>
-	The uterine support mesh built into $his womb was irreversibly damaged and had to be carefully extracted. Such an invasive surgery carried @@.red;major health complications.@@
-	<<set getSlave($AS).wombImplant = "none">>
-	<<run surgeryDamage( getSlave($AS), 30)>>
-<</if>>
-
-<<if getSlave($AS).womb.length == 0>> /* Only if pregnancy is really ended... */
-	<<if lastPregRule(getSlave($AS),$defaultRules)>><<set getSlave($AS).preg = -1>><<else>><<set getSlave($AS).preg = 0>><</if>>
-	<<set getSlave($AS).pregType = 0>>
-	<<set getSlave($AS).pregSource = 0>>
-	<<set getSlave($AS).pregKnown = 0>>
-	<<if getSlave($AS).geneticQuirks.fertility+getSlave($AS).geneticQuirks.hyperFertility >= 4>>
-		<<set getSlave($AS).pregWeek = -2>>
-	<<elseif getSlave($AS).geneticQuirks.hyperFertility > 1>>
-		<<set getSlave($AS).pregWeek = -3>>
-	<<else>>
-		<<set getSlave($AS).pregWeek = -4>>
-	<</if>>
-	<<set getSlave($AS).labor = 0>>
-	<<if getSlave($AS).broodmother == 0 && $bellyImplants == 1>>
-		<br><br>
-		<span id="bir">
-		Since $he is already in surgery and $his body already stretched, it would be possible to preserve $his pregnant appearance via fillable implant.
-		<<link "Do it.">>
-			<<replace "#bir">>
-				<<run surgeryDamage(getSlave($AS), 10)>>
-				Installation of belly implant is relatively simple procedure. Using the fact that $his body and internal organs have already adapted to pregnancy, it's possible to greatly expand the initial size of implant. $He will still look pregnant post surgery and recovery.
-				<br>
-				<<if (getSlave($AS).devotion > 50)>>
-					$He leaves the surgery with $his belly still very gravid, and as such, knows you put something into $his womb replacing $his prior natural pregnancy. $He is @@.hotpink;curious@@ about the details of the implant, and eagerly awaits to see the end result.
-					<<set getSlave($AS).devotion += 4>>
-				<<elseif (getSlave($AS).devotion >= -20)>>
-					$He leaves the surgery with $his belly still very gravid, and as such, knows you put something into $his womb replacing $his prior natural pregnancy. $He understands the realities of $his life as a slave, but $he is still surprised at what now resides in $his womb. $He is @@.gold;sensibly fearful@@ of your total power over $his body.
-					<<set getSlave($AS).trust -= 5>>
-				<<else>>
-					$He leaves the surgery with $his belly still very gravid, and as such, knows you put something into $his womb replacing $his prior natural pregnancy. $He does not understand the realities of $his life as a slave at a core level, so $he's @@.mediumorchid;terrified and angry@@ at the potential that $he's been turned in some sort of freak. Even after what has been implanted into $his womb is explained to $him, $he is no less defiant; though $he is relieved that procedure is reversible and there is no truly permanent damage. $He is @@.gold;sensibly fearful@@ of your total power over $his body.
-					<<set getSlave($AS).trust -= 5>>
-					<<set getSlave($AS).devotion -= 5>>
-				<</if>>
-				<<set getSlave($AS).bellyImplant = Math.floor(_beforeSize)>>
-				<<if getSlave($AS).bellyImplant > 800000 && $arcologies[0].FSTransformationFetishistResearch > 0>>
-					<<set getSlave($AS).bellyImplant = 800000>>
-				<<elseif getSlave($AS).bellyImplant > 130000 && $arcologies[0].FSTransformationFetishistResearch < 1>>
-					<<set getSlave($AS).bellyImplant = 130000>>
-				<</if>>
-				<<set getSlave($AS).preg = -2>>
-				<<run SetBellySize(getSlave($AS))>>
-			<</replace>>
-		<</link>>
-		</span>
-	<</if>>
-<</if>>
-<<run App.Medicine.Modification.addScar(getSlave($AS), "belly", "c-section")>>
-<<run SetBellySize(getSlave($AS))>>
-<<set $reservedChildren = FetusGlobalReserveCount("incubator")>>
-<<set $reservedChildrenNursery = FetusGlobalReserveCount("nursery")>>
+<<includeDOM birth(getSlave(V.AS), {cSection: true})>>
\ No newline at end of file
-- 
GitLab