code:
:: BirthStorm [nobr]

<<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 _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>>
		<<set _others++>>
		<<set _fathers.push("some man's")>>
	<<elseif getSlave($AS).curBabies[_cb].fatherID == -1>>
		<<set $PC.counter.slavesFathered++>>
		<<set _PC++>>
		<<set _fathers.push("your")>>
	<<elseif getSlave($AS).curBabies[_cb].fatherID == -2>>
		<<set _citizens++>>
		<<set _fathers.push("a citizen's")>>
	<<elseif getSlave($AS).curBabies[_cb].fatherID == -3>>
		<<set _oldMaster++>>
		<<set _fathers.push("your former Master's")>>
	<<elseif getSlave($AS).curBabies[_cb].fatherID == -4>>
		<<set _arcOwner++>>
		<<set _fathers.push("another arcology owner's")>>
	<<elseif getSlave($AS).curBabies[_cb].fatherID == -5>>
		<<set _clients++>>
		<<set _fathers.push("your client's")>>
	<<elseif getSlave($AS).curBabies[_cb].fatherID == -6>>
		<<set _elite++>>
		<<set _fathers.push("the Societal Elite's")>>
	<<elseif getSlave($AS).curBabies[_cb].fatherID == -7>>
		<<set _lab++>>
		<<set _fathers.push("the gene lab's")>>
	<<elseif getSlave($AS).curBabies[_cb].fatherID == -9>>
		<<set _futaS++>>
		<<set _fathers.push("a Futanari Sister's")>>
	<<else>>
		<<set _babyDaddy = findFather(getSlave($AS).curBabies[_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] == "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(_curBabies, 2))>>
	<</if>>
<</for>>

<<set _cToIncub = 0, _cToNursery = 0>>
<<for _csec = 0; _csec < _curBabies; _csec++>>
	<<if getSlave($AS).curBabies[_csec].reserve === "incubator">>
		<<set _cToIncub++>>
	<<elseif getSlave($AS).curBabies[_csec].reserve === "nursery">>
		<<set _cToNursery++>>
	<</if>>
<</for>>

The remote surgery allows the removal of the pregnancy generator through conventional means, an injection to induce labor and the resulting birthing of the womb's contents.
<<if getSlave($AS).broodmother == 2>>
	<<= getSlave($AS).slaveName>>'s obscenely swollen belly begins to shudder and writhe moments after being injected with the drug as all $his waters break. $He spreads $his <<if hasBothLegs(getSlave($AS))>>legs to either side of $his spasming bulk<<elseif !hasAnyLegs(getSlave($AS))>>stumps<<else>>leg and $his stump<</if>> as wide as $he can with a loud moan. $His vaginal lips part as the first of $his brood is born, followed by another, and another. After hours of constant
<<elseif getSlave($AS).broodmother == 1>>
	<<= getSlave($AS).slaveName>>'s massive belly shudders and shrinks as all $his waters simultaneously break. $He spreads $his <<if hasBothLegs(getSlave($AS))>>legs<<elseif !hasAnyLegs(getSlave($AS))>>stumps<<else>>leg and stump<</if>> wide with a loud moan. $His vaginal lips part as the first of $his brood is born, followed not long after by another. After an hour of constant
<<else>>
	<<= getSlave($AS).slaveName>>'s massive belly shudders and shrinks as all $his waters simultaneously break. $He spreads $his <<if hasBothLegs(getSlave($AS))>>legs<<elseif !hasAnyLegs(getSlave($AS))>>stumps<<else>>leg and stump<</if>> wide with a loud moan. $His vaginal lips part as $his birthing begins. After an hour of intensive
<</if>>
<<if getSlave($AS).fetish == "mindbroken">>
	birthing, $he shows little interest in the changes to $his body. @@.red;The ordeal of intensive birthing has had a massive effect on $his health as well as completely destroying $his vagina.@@
<<elseif getSlave($AS).sexualFlaw == "breeder">>
	birthing and the realization that you are taking away $his ideal body, $his perfect existence, $his mind @@.red;fundamentally breaks. The ordeal of intensive birthing has had a massive effect on $his health as well as completely destroying $his vagina.@@
	<<set getSlave($AS).fetish = "mindbroken">>
<<elseif getSlave($AS).fetish == "pregnancy" && _S.Nurse>>
	birthing and orgasming all the time, <<= getSlave($AS).slaveName>>'s mind would have broken. However, _S.Nurse.slaveName had the foresight to sedate $him after witnessing $his constant orgasming. $He awakes to find $his belly deflated, no longer crammed full of life. $He is @@.mediumorchid;disappointed@@ that you would forbid $him from such a pleasure, but @@.mediumaquamarine;understands@@ why it was done. @@.red;The ordeal of intensive birthing has had a massive effect on $his health as well as completely destroying $his vagina.@@
	<<set getSlave($AS).trust += 5, getSlave($AS).devotion -= 5>>
<<elseif getSlave($AS).fetish == "pregnancy">>
	<<if getSlave($AS).broodmother == 2>>
		birthing and orgasming each time, <<= getSlave($AS).slaveName>>'s mind is @@.red;fundamentally broken.@@ Being under constant pleasure for so long has destroyed all but the part of $him that feels pleasure. With one final push the breeding device is expelled from $his womb as the last spark of what was $his mind is extinguished. @@.red;The ordeal of constant birthing has had a massive effect on $his health as well as completely destroying $his vagina.@@
		<<set getSlave($AS).fetish = "mindbroken">>
	<<elseif getSlave($AS).broodmother == 1>>
		birthing and orgasming each time, <<= getSlave($AS).slaveName>> is reduced to a quivering, overstimulated pile. When $he returns to $his senses, @@.hotpink;$he can only express how much $he wants to go again.@@ @@.red;The ordeal of constant birthing has had a massive effect on $his health as well as completely destroying $his vagina.@@
		<<set getSlave($AS).devotion += 4>>
	<<else>>
		birthing and orgasming all the time, <<= getSlave($AS).slaveName>> is reduced to a quivering, overstimulated pile. When $he returns to $his senses, @@.hotpink;$he can only express how much $he wants to go again.@@ @@.red;The ordeal of intensive birthing has had a massive effect on $his health as well as completely destroying $his vagina.@@
		<<set getSlave($AS).devotion += 3>>
	<</if>>
<<elseif getSlave($AS).devotion <= 20>>
	birthing, @@.mediumorchid;$he hates you for destroying $his body like this.@@ $He is @@.gold;terrified of your power@@ over $his body. @@.red;The ordeal of constant birthing has had a massive effect on $his health as well as completely destroying $his vagina.@@
	<<set getSlave($AS).trust -= 40, getSlave($AS).devotion -= 50>>
<<elseif getSlave($AS).devotion <= 50>>
	birthing, $he is dully obedient. $He has been broken to slave life so thoroughly that even this is neither surprising nor affecting. $He is @@.gold;terrified of your power@@ over $his body. @@.red;The ordeal of constant birthing has had a massive effect on $his health as well as completely destroying $his vagina.@@
	<<set getSlave($AS).trust -= 40>>
<<else>>
	birthing, $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 without a massive belly getting in the way. @@.red;The ordeal of constant birthing has had a massive effect on $his health as well as completely destroying $his vagina.@@
	<<set getSlave($AS).devotion += 4>>
<</if>>

<<if getSlave($AS).birthsTat > -1>>
	<<set getSlave($AS).birthsTat++>>
	The temporary tattoo of a child has been replaced with $his <<= ordinalSuffix(getSlave($AS).birthsTat)>> permanent infant.
	<<run cashX(forceNeg($modCost), "slaveMod", getSlave($AS))>>
<</if>>

<<if getSlave($AS).broodmother == 2>>
	<<set getSlave($AS).preg = -3>>
	<<if getSlave($AS).vagina < 6>>
		<<set getSlave($AS).vagina = 10>>
	<</if>>
	<<run healthDamage(getSlave($AS), 80)>>
<<else>>
	<<if lastPregRule(getSlave($AS),$defaultRules)>><<set getSlave($AS).preg = -1>><<else>><<set getSlave($AS).preg = 0>><</if>> /* I think, it's not logical to break her reproductive system out of repair, if she is only type 1 broodmother. In this case she have to birth only like 5-10 fully grown babies, others get progressively smaller. It's should be even smaller stress to body then for "normal" hyperpregnant with 15-20+ children - they have to birth them all at full size.*/
	<<if getSlave($AS).vagina < 6>>
		<<set getSlave($AS).vagina = 6>>
	<</if>>
	<<run healthDamage(getSlave($AS), 30)>>
<</if>>

<<if _curBabies > 0>>

	After <<= getSlave($AS).slaveName>> has finally finished birthing,
	<<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>>is<<else>>are<</if>>

	<<if _cToIncub == _curBabies>>
		taken to $incubatorName.
		<<set _incubated = 2>>
	<<elseif _cToIncub < _curBabies && _cToIncub > 0>>
		split between $incubatorName and
		<<set _incubated = 1>>
	<</if>>

	<<if _cToNursery == _curBabies>>
		taken to $nurseryName.
		<<set _nursed = 2>>
	<<elseif _cToNursery < _curBabies && _cToNursery > 0>>
		split between $nurseryName and
		<<set _nursed = 1>>
	<</if>>

	<<set $mom = getSlave($AS)>>
	<<if _cToIncub > 0 || _cToNursery > 0>>
		<<for _cb = 0; _cb < _curBabies; _cb++>> /* if there is no reserved children, code in loop will not trigger */
			<<if $mom.curBabies[_cb].reserve == "incubator">>
				<<set $activeChild = generateChild($mom, $mom.curBabies[_cb], 1)>>
				<<include "Incubator Workaround">>
				<<run $mom.curBabies.splice($mom.curBabies[_cb], 1)>>
				<<set _cb--, _curBabies-->>
			<<elseif $mom.curBabies[_cb].reserve == "nursery">>
				<<set $activeChild = generateChild($mom, $mom.curBabies[_cb])>>
				<<include "Nursery Workaround">>
				<<run $mom.curBabies.splice($mom.curBabies[_cb], 1)>>
				<<set _cb--, _curBabies-->>
			<</if>>
		<</for>>
	<</if>>

<<else>>
	/* TODO: No live babies. Placeholder */
<</if>>

<<set _curBabies = getSlave($AS).curBabies.length>>

<<if _incubated != 2 && _nursed != 2 && _curBabies > 0>>

	<<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")>>
	<<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")>>
	<<elseif $DefaultBirthDestination == "individually decided fates">>

		<<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 += _curBabies>>
			<</replace>>
			<<set $nextButton = "Back">><<UpdateNextButton>> /* unlock Continue button */
		<</link>>
		<<if getSlave($AS).breedingMark == 1 && (getSlave($AS).pregSource == -1 || getSlave($AS).pregSource == -6) && $propOutcome == 1>>

<<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>>
					<<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 _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.
						<<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.
						<<set getSlave($AS).devotion += 6>>
					<</if>>
				<</replace>>
				<<set $nextButton = "Back">><<UpdateNextButton>> /* unlock Continue button */
			<</link>>
		<</if>>
		<<if getSlave($AS).pregSource == -9>>

<<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>>
					<<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.
						<<set getSlave($AS).devotion += 4>>
					<</if>>
				<</replace>>
				<<set $nextButton = "Back">><<UpdateNextButton>> /* unlock Continue button */
			<</link>>
		<</if>>
		<<if $arcologies[0].FSRepopulationFocus > 40>>

<<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 see $his child<<if _curBabies > 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.
						<<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.
					<<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.@@
						<<set getSlave($AS).devotion -= 4, getSlave($AS).trust -= 4>>
					<</if>>
					<<set $breederOrphanageTotal += _curBabies>>
				<</replace>>
				<<set $nextButton = "Back">><<UpdateNextButton>> /* unlock Continue button */
			<</link>>
			//Will cost a one-time <<print cashFormat(50)>>//
		<</if>>

<<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 _curBabies > 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.
					<<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.
					<<set getSlave($AS).devotion += 4>>
				<</if>>
				<<set $citizenOrphanageTotal += _curBabies>>
			<</replace>>
			<<set $nextButton = "Back">><<UpdateNextButton>> /* unlock Continue button */
		<</link>>
		//Will cost <<print cashFormat(100)>> weekly//

<<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>>
				<<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 _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.
					<<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.
					<<set getSlave($AS).devotion += 6>>
				<</if>>
				<<set $privateOrphanageTotal += _curBabies>>
			<</replace>>
			<<set $nextButton = "Back">><<UpdateNextButton>> /* unlock Continue button */
		<</link>>
		//Will cost <<print cashFormat(500)>> weekly//
		<<if $policies.cash4Babies == 1>>

<<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 _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>>
					<<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.
					<<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.
						<<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.@@
						<<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")>>
				<</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 += _curBabies>>
		<<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 _curBabies > 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.
				<<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.
				<<set getSlave($AS).devotion += 4>>
			<</if>>
			<<set $citizenOrphanageTotal += _curBabies>>
		<<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 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.
				<<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.
				<<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>>
		<<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.
				<<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.
				<<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.
			<<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.@@
				<<set getSlave($AS).devotion -= 4, getSlave($AS).trust -= 4>>
			<</if>>
			<<set $breederOrphanageTotal += _curBabies>>
		<<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 _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>>
			<<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.
			<<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.
				<<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.@@
				<<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")>>
		<</switch>>
	<<else>>
		<<set $nextButton = "Back">><<UpdateNextButton>> /* unlock Continue button */
	<</if>>

<</if>>

<<set getSlave($AS).counter.births += _curBabies>>
<<set getSlave($AS).counter.birthsTotal += _curBabies>>
<<set $birthsTotal += _curBabies>>
<<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 WombFlush(getSlave($AS))>>
<<set getSlave($AS).broodmother = 0>>
<<run SetBellySize(getSlave($AS))>>


code:
:: 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 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 getSlave($AS).curStillBirth = 0 >>

<<set _curBabies = getSlave($AS).curBabies.length>> /*just to improve speed and usability here.*/

<<set getSlave($AS).counter.births += _curBabies>>
<<set getSlave($AS).counter.birthsTotal += _curBabies>>
<<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 < getSlave($AS).curBabies.length; _cb++>>
	<<if getSlave($AS).curBabies[_cb].fatherID == 0>>
		<<set _others++>>
		<<set _fathers.push("some man's")>>
	<<elseif getSlave($AS).curBabies[_cb].fatherID == -1>>
		<<set $PC.counter.slavesFathered++>>
		<<set _PC++>>
		<<set _fathers.push("your")>>
	<<elseif getSlave($AS).curBabies[_cb].fatherID == -2>>
		<<set _citizens++>>
		<<set _fathers.push("a citizen's")>>
	<<elseif getSlave($AS).curBabies[_cb].fatherID == -3>>
		<<set _oldMaster++>>
		<<set _fathers.push("your former Master's")>>
	<<elseif getSlave($AS).curBabies[_cb].fatherID == -4>>
		<<set _arcOwner++>>
		<<set _fathers.push("another arcology owner's")>>
	<<elseif getSlave($AS).curBabies[_cb].fatherID == -5>>
		<<set _clients++>>
		<<set _fathers.push("your client's")>>
	<<elseif getSlave($AS).curBabies[_cb].fatherID == -6>>
		<<set _elite++>>
		<<set _fathers.push("the Societal Elite's")>>
	<<elseif getSlave($AS).curBabies[_cb].fatherID == -7>>
		<<set _lab++>>
		<<set _fathers.push("the gene lab's")>>
	<<elseif getSlave($AS).curBabies[_cb].fatherID == -9>>
		<<set _futaS++>>
		<<set _fathers.push("a Futanari Sister's")>>
	<<else>>
		<<set _babyDaddy = findFather(getSlave($AS).curBabies[_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 getSlave($AS).curStillBirth = getSlave($AS).womb.length>>
		<<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 < _curBabies; _csec++>>
	<<if getSlave($AS).curBabies[_csec].reserve === "incubator">>
		<<set _cToIncub++>>
	<<elseif getSlave($AS).curBabies[_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>>
	<<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>>
	already been

	<<if _cToIncub == _curBabies>>
		taken to $incubatorName.
		<<set _incubated = 2>>
	<<elseif _cToIncub < _curBabies && _cToIncub > 0>>
		split between $incubatorName and
		<<set _incubated = 1>>
	<</if>>

	<<if _cToNursery == _curBabies>>
		taken to $nurseryName.
		<<set _nursed = 2>>
	<<elseif _cToNursery < _curBabies && _cToNursery > 0>>
		split between $nurseryName and
		<<set _nursed = 1>>
	<</if>>

	<<set $mom = getSlave($AS)>>
	<<if _cToIncub > 0 || _cToNursery > 0>>
		<<for _cb = 0; _cb < _curBabies; _cb++>> /* if there is no reserved children, code in loop will not trigger */
			<<if $mom.curBabies[_cb].reserve == "incubator">>
				<<set $activeChild = generateChild($mom, $mom.curBabies[_cb], 1)>>
				<<include "Incubator Workaround">>
				<<run $mom.curBabies.splice($mom.curBabies[_cb], 1)>>
				<<set _cb--, _curBabies-->>
			<<elseif $mom.curBabies[_cb].reserve == "nursery">>
				<<set $activeChild = generateChild($mom, $mom.curBabies[_cb])>>
				<<include "Nursery Workaround">>
				<<run $mom.curBabies.splice($mom.curBabies[_cb], 1)>>
				<<set _cb--, _curBabies-->>
			<</if>>
		<</for>>
	<</if>>
	<<set $AS = $mom.ID>>

<<else>>
	/*No live babies. Placeholder */
<</if>>

<<set _curBabies = getSlave($AS).curBabies.length>>

<<if _incubated != 2 && _nursed != 2 && _curBabies > 0>>

	<<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")>>
	<<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")>>
	<<elseif $DefaultBirthDestination == "individually decided fates">>

		<<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 += _curBabies>>
			<</replace>>
			<<set $nextButton = "Back">><<UpdateNextButton>> /* unlock Continue button */
		<</link>>
		<<if getSlave($AS).breedingMark == 1 && (getSlave($AS).pregSource == -1 || getSlave($AS).pregSource == -6) && $propOutcome == 1>>

<<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>>
					<<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 _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.
						<<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.
						<<set getSlave($AS).devotion += 6>>
					<</if>>
				<</replace>>
				<<set $nextButton = "Back">><<UpdateNextButton>> /* unlock Continue button */
			<</link>>
		<</if>>
		<<if getSlave($AS).pregSource == -9>>

<<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>>
					<<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.
						<<set getSlave($AS).devotion += 4>>
					<</if>>
				<</replace>>
				<<set $nextButton = "Back">><<UpdateNextButton>> /* unlock Continue button */
			<</link>>
		<</if>>
		<<if $arcologies[0].FSRepopulationFocus > 40>>

<<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 _curBabies > 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.
						<<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.
					<<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.@@
						<<set getSlave($AS).devotion -= 4, getSlave($AS).trust -= 4>>
					<</if>>
					<<set $breederOrphanageTotal += _curBabies>>
				<</replace>>
				<<set $nextButton = "Back">><<UpdateNextButton>> /* unlock Continue button */
			<</link>>
			//Will cost a one-time <<print cashFormat(50)>>//
		<</if>>

<<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 _curBabies > 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.
					<<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.
					<<set getSlave($AS).devotion += 4>>
				<</if>>
				<<set $citizenOrphanageTotal += _curBabies>>
			<</replace>>
			<<set $nextButton = "Back">><<UpdateNextButton>> /* unlock Continue button */
		<</link>>
		//Will cost <<print cashFormat(100)>> weekly//

<<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>>
				<<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 _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.
					<<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.
					<<set getSlave($AS).devotion += 6>>
				<</if>>
				<<set $privateOrphanageTotal += _curBabies>>
			<</replace>>
			<<set $nextButton = "Back">><<UpdateNextButton>> /* unlock Continue button */
		<</link>>
		//Will cost <<print cashFormat(500)>> weekly//
		<<if $policies.cash4Babies == 1>>

<<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 _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>>
					<<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.
					<<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.
						<<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.@@
						<<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")>>
				<</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 += _curBabies>>
		<<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 _curBabies > 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.
				<<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.
				<<set getSlave($AS).devotion += 4>>
			<</if>>
			<<set $citizenOrphanageTotal += _curBabies>>
		<<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 _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.
				<<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.
				<<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>>
		<<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.
				<<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.
				<<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.
			<<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.@@
				<<set getSlave($AS).devotion -= 4, getSlave($AS).trust -= 4>>
			<</if>>
			<<set $breederOrphanageTotal += _curBabies>>
		<<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 _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>>
			<<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.
			<<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.
				<<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.@@
				<<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")>>
		<</switch>>
	<<else>>
		<<set $nextButton = "Back">><<UpdateNextButton>> /* unlock Continue button */
	<</if>>

<</if>>

<<if _curBabies+_cToIncub+_cToNursery < 1>>
	/* Reaction for no live babies here. Placeholder.*/
<<elseif getSlave($AS).fetish != "mindbroken" && getSlave($AS).fuckdoll == 0>>

	<<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" && _curBabies > 0>>

	<<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)>>
	<<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))>>
	<</if>>
<</if>>

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>>

		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.

				<<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>>

	<</if>>
<</if>>
<<run App.Medicine.Modification.addScar(getSlave($AS), "belly", "c-section")>>
<<run SetBellySize(getSlave($AS))>>
<<set $reservedChildren = FetusGlobalReserveCount("incubator")>>
<<set $reservedChildrenNursery = FetusGlobalReserveCount("nursery")>>

repo_name: NovX/fc

license: mit


code:
:: FAnimalImpreg [nobr]

<<set $nextButton = "Back", $nextLink = "Slave Interact", $impregnatrix = 0, $eligibility = 0>>

<<set _CL = $canines.length, _HL = $hooved.length, _FL = $felines.length>>

__Select an eligible animal to knock $him up:__

/* FIXME: this might not work */

<<for _c = 0; _c < _CL; _c++>>
	<<if canBreed($activeSlave, $canines[_c])>>
		<<if $canines[_c].species != "dog">>
			<<set _canine = $canines[_c].species>>
		<<else>>
			<<set _canine = $canines[_c].breed>>
		<</if>>

<<link "Have a _canine knock $him up" "FAnimalImpreg Consummate">><<set $impregnatrix = $canines[_c]>><</link>>
		<<set $eligibility = 1>>
	<</if>>
<</for>>
<<for _h = 0; _h < _HL; _h++>>
	<<if canBreed($activeSlave, $hooved[_h])>>
		<<set _hooved = $hooved[_h].species>>

<<link "Have a _hooved knock $him up" "FAnimalImpreg Consummate">><<set $impregnatrix = $hooved[_h]>><</link>>
		<<set $eligibility = 1>>
	<</if>>
<</for>>
<<for _f = 0; _f < _fL; _f++>>
	<<if canBreed($activeSlave, $felines[_f])>>
		<<if $felines[_f].species != "cat">>
			<<set _feline = $felines[_f].species>>
		<<else>>
			<<set _feline = $felines[_f].breed>>
		<</if>>

<<link "Have a _feline knock $him up" "FAnimalImpreg Consummate">><<set $impregnatrix = $felines[_f]>><</link>>
		<<set $eligibility = 1>>
	<</if>>
<</for>>
<<if ($eligibility == 0)>>
	//You have no animals capable of inseminating $him.//
<</if>>


code:
:: FAnimalImpreg Consummate [nobr]

/* TODO: all of this */

<<set _animal = $impregnatrix>>
You have a servant lead the <<if _animal.species != "dog" || _animal.species != "cat">><<print _animal.species>><<else>><<print _animal.breed>><</if>> in on a leash and feed him a special treat, one laced with high amounts of aphrodisiacs and vasodilators. They have an effect very rapidly, and the <<if _animal.species != "dog" && _animal.species != "cat">><<print _animal.species>><<else>><<print _animal.breed>><</if>>'s <<print _animal.dickSize>> cock quickly stands at attention.