code:
:: SA inflation [nobr]

<<if $slaves[$i].assignment == "be confined in the arcade" || $slaves[$i].assignment == "work in the dairy">>
	<<set $slaves[$i].inflation = 0, $slaves[$i].inflationType = "none", $slaves[$i].inflationMethod = 0, $slaves[$i].milkSource = 0, SetBellySize($slaves[$i])>>
<<elseif $slaves[$i].bellyImplant >= 1500>>
	<<if $slaves[$i].inflation > 1>>
		Due to the mounting pressure from $his filled abdominal implant, $he can no longer fill $himself as large as $he used to.
		<<set $slaves[$i].inflation = 1>>
		<<run SetBellySize($slaves[$i])>>
	<<else>>
		<<set $slaves[$i].bellyFluid = 2000>>
		<<run SetBellySize($slaves[$i])>>
	<</if>>
<<elseif $slaves[$i].bellyPreg >= 1500>>
	<<if $slaves[$i].inflation > 1>>
		Due to the mounting pressure from $his growing pregnancy, $he can no longer fill $himself as large as $he used to.
		<<set $slaves[$i].inflation = 1>>
		<<run SetBellySize($slaves[$i])>>
	<<else>>
		<<set $slaves[$i].bellyFluid = 2000>>
		<<run SetBellySize($slaves[$i])>>
	<</if>>
<</if>>

<<switch $slaves[$i].inflationType>>
<<case "water">>
	<<if $slaves[$i].inflation == 3>>
		$He makes sure to fill $his rear with nearly two gallons of water, leaving $him looking ready to burst, whenever $he leaks or needs to release $his load. $He keeps $himself @@.red;painfully full@@ for you.
		<<set $slaves[$i].health -= 10>>
	<<elseif $slaves[$i].inflation == 2>>
		$He makes sure to fill $his rear with nearly four liters of water, leaving $him looking pregnant, whenever $he leaks or needs to release $his load. $He is full enough to be distended but not enough to grow taut.
	<<elseif $slaves[$i].inflation == 1>>
		$He makes sure to fill $his rear with nearly two liters of water, leaving $his belly noticeably distended, whenever $he leaks or needs to release $his load. $He is full enough to be swollen but not enough to visibly jiggle.
	<</if>>

<<case "aphrodisiac">>
	<<if $slaves[$i].inflation == 3>>
		$He makes sure to fill $his rear with nearly two gallons of an aphrodisiac solution, leaving $him looking ready to burst, whenever $he leaks or $his body absorbs too much. $He keeps $himself @@.red;painfully full@@ for you, though $he barely notices it over $his horniness. While having $his body packed full of aphrodisiacs doesn't make $him additionally submissive, it does amplify the effects of them. $His aphrodisiac bursting belly
		<<set $slaves[$i].health -= 10>>
	<<elseif $slaves[$i].inflation == 2>>
		$He makes sure to fill $his rear with nearly four liters of an aphrodisiac solution, leaving $him looking pregnant, whenever $he leaks or $his body absorbs too much. $He is full enough to be distended but not enough to grow taut. While having $his body bloated with aphrodisiacs doesn't make $him additionally submissive, it does amplify the effects of them. $His overfilled aphrodisiac belly
	<<elseif $slaves[$i].inflation == 1>>
		$He makes sure to fill $his rear with nearly two liters of an aphrodisiac solution, leaving $his belly noticeably distended, whenever $he leaks or $his body absorbs too much. $He is full enough to be swollen but not enough to visibly jiggle. $His aphrodisiac filled belly
	<</if>>
	<<if $slaves[$i].energy <= 95>>
		@@.green;rapidly boosts $his sex drive.@@
		<<set $slaves[$i].energy += 5*$slaves[$i].inflation>>
	<<else>>
		can't improve $his absurd sex drive.
	<</if>>
	<<if $slaves[$i].fuckdoll == 0 && $slaves[$i].fetish != "mindbroken">>
		Besides being humiliating, it chemically @@.hotpink;increases $his acceptance@@ of sexual slavery.
		<<set $slaves[$i].devotion += 5>>
	<</if>>
	<<if ($arcologies[0].FSBodyPuristLaw == 0) && ($healthyDrugsUpgrade == 0)>>
		Such a high dosage held for so long @@.red;isn't healthy.@@
		<<set $slaves[$i].health -= 5>>
	<</if>>
	<<set $slaves[$i].chem += 2*$slaves[$i].inflation>>
	<<if ($slaves[$i].addict > 0)>>
		<<if $slaves[$i].inflation > 0>>
			<<set $slaves[$i].addict += $slaves[$i].inflation*3>>
		<<elseif ($aphrodisiacUpgrade == 1)>>
			Substitutes produced by your advanced pharmaceutical fabricator protect $him from the negative effects of aphrodisiac withdrawal but do little to halt the spread of aphrodisiacs through $his system from $his bowels.
			<<set $slaves[$i].addict -= 2>>
		<</if>>
	<<elseif random(1,100) < 40+(20*$slaves[$i].inflation)>>
		All the aphrodisiacs held within $his bowels cause @@.cyan;$him to become an aphrodisiac addict.@@
		<<set $slaves[$i].addict = 1>>
	<</if>>

<<case "curative">>
	<<if $slaves[$i].inflation == 3>>
		$He makes sure to fill $his rear with nearly two gallons of a curative solution, leaving $him looking ready to burst, whenever $he leaks or $his body absorbs too much. $He keeps $himself full for you; the curatives in $his gut keeping $him healthy despite the pain.
		<<if (($slaves[$i].assignment == "rest") || ($slaves[$i].assignment == "rest in the spa")) && ($slaves[$i].fetish != "mindbroken")>>
			The curative enema $he's on synergize with rest, keeping $him asleep most of the time. This is an @@.green;extremely effective health treatment,@@ though being filled to $his limit doesn't hasten $his recovery at all; it's just perverted.
			<<set $slaves[$i].health += 4>>
		<<elseif ($slaves[$i].health < -20)>>
			@@.green;$His poor health rapidly improves@@ under the curative enema, though being filled to $his limit doesn't hasten $his recovery at all; it's just perverted.
			<<set $slaves[$i].health += 2>>
		<<else>>
			@@.green;$His health improves@@ under the curative enema, though being filled to $his limit doesn't hasten $his recovery at all; it's just perverted.
		<</if>>
		<<set $slaves[$i].health += 1>>
	<<elseif $slaves[$i].inflation == 2>>
		$He makes sure to fill $his rear with nearly four liters of a curative solution, leaving $him looking pregnant, whenever $he leaks or $his body absorbs too much. $He is full enough to be distended but not enough to grow taut.
		<<if (($slaves[$i].assignment == "rest") || ($slaves[$i].assignment == "rest in the spa")) && ($slaves[$i].fetish != "mindbroken")>>
			The curative enema $he's on synergize with rest, keeping $him asleep most of the time. This is an @@.green;extremely effective health treatment,@@ though being overfilled doesn't hasten $his recovery at all; it's just perverted.
			<<set $slaves[$i].health += 4>>
		<<elseif ($slaves[$i].health < -20)>>
			@@.green;$His poor health rapidly improves@@ under the curative enema, though being overfilled doesn't hasten $his recovery at all; it's just perverted.
			<<set $slaves[$i].health += 2>>
		<<else>>
			@@.green;$His health improves@@ under curative enema, though being overfilled doesn't hasten $his recovery at all; it's just perverted.
		<</if>>
		<<set $slaves[$i].health += 6>>
	<<elseif $slaves[$i].inflation == 1>>
		$He makes sure to fill $his rear with nearly two liters of a curative solution, leaving $his belly noticeably distended, whenever $he leaks or $his body absorbs too much. $He is full enough to be swollen but not enough to visibly jiggle.
		<<if (($slaves[$i].assignment == "rest") || ($slaves[$i].assignment == "rest in the spa")) && ($slaves[$i].fetish != "mindbroken")>>
			The curative enema $he's on synergize with rest, keeping $him asleep most of the time. This is an @@.green;extremely effective health treatment.@@
			<<set $slaves[$i].health += 4>>
		<<elseif ($slaves[$i].health < -20)>>
			@@.green;$His poor health rapidly improves@@ under the curative enema.
			<<set $slaves[$i].health += 2>>
		<<else>>
			@@.green;$His health improves@@ under curative enema.
		<</if>>
		<<set $slaves[$i].health += 6>>
	<</if>>
	<<if $slaves[$i].fuckdoll == 0 && $slaves[$i].fetish != "mindbroken">>
		$He @@.mediumaquamarine;trusts you more@@ for giving $his access to expensive modern medicine, even if it is really embarrassing to be seen with that belly.
		<<set $slaves[$i].trust += 1>>
	<</if>>
	<<if $slaves[$i].health >= 90>>
		$He is as healthy as $he can be. @@.yellow;$His curative enema regimen has been ended.@@
		<<set $slaves[$i].inflation = 0, $slaves[$i].inflationType = "none", $slaves[$i].inflationMethod = 0, SetBellySize($slaves[$i])>>
	<</if>>
	<<set $slaves[$i].chem += 2, $slaves[$i].health += $curativeUpgrade*6>>

<<case "tightener">>
	<<if $slaves[$i].inflation == 3>>
		$He makes sure to fill $his rear with nearly two gallons of tightening solution, leaving $him looking ready to burst, whenever $he leaks or $his body absorbs too much. $He keeps $himself @@.red;painfully full@@ for you.
		<<set $slaves[$i].health -= 10>>
		<<if $slaves[$i].geneMods.rapidCellGrowth != 1>>
			<<if $slaves[$i].anus > 1>>
				The solution slowly tightens $his anus while inside $his bowels. Being filled to $his limit with the solution does not make it tighten any better or faster; it's just perverted.
				<<if random(1,100) > 60>>
					By week's end, @@.lime;$his butthole has tightened nicely.@@
					<<set $slaves[$i].anus-->>
				<</if>>
			<<else>>
				$His anus is as tight as the solution can possibly make it.
			<</if>>
			<<if $slaves[$i].vagina > 1>>
				As $his body slowly absorbs the solution, its benefits begin to affect $his pussy. Being filled to $his limit with the solution does not make it tighten any better or faster; it's just perverted.
				<<if random(1,100) > 80>>
					By week's end, @@.lime;$his vagina has regained some tightness.@@
					<<set $slaves[$i].vagina-->>
				<</if>>
			<<elseif $slaves[$i].vagina == 1>>
				$His pussy is as tight as the solution can possibly make it.
			<</if>>
		<<else>>
			Unfortunately for $him, $his body shows no interest in tightening up after the elasticity treatment $he underwent.
		<</if>>
	<<elseif $slaves[$i].inflation == 2>>
		$He makes sure to fill $his rear with nearly four liters of tightening solution, leaving $him looking pregnant, whenever $he leaks or $his body absorbs too much. $He is full enough to be distended but not enough to grow taut.
		<<if $slaves[$i].geneMods.rapidCellGrowth != 1>>
			<<if $slaves[$i].anus > 1>>
				The solution slowly tightens $his anus while inside $his bowels. Being overfilled with the solution does not make it tighten any better or faster; it's just perverted.
				<<if random(1,100) > 60>>
					By week's end, @@.lime;$his butthole has tightened nicely.@@
					<<set $slaves[$i].anus-->>
				<</if>>
			<<else>>
				$His anus is as tight as the solution can possibly make it.
			<</if>>
			<<if $slaves[$i].vagina > 1>>
				As $his body slowly absorbs the solution, its benefits begin to affect $his pussy. Being overfilled with the solution does not make it tighten any better or faster; it's just perverted.
				<<if random(1,100) > 80>>
					By week's end, @@.lime;$his vagina has regained some tightness.@@
					<<set $slaves[$i].vagina-->>
				<</if>>
			<<elseif $slaves[$i].vagina == 1>>
				$His pussy is as tight as the solution can possibly make it.
			<</if>>
		<<else>>
			Unfortunately for $him, $his body shows no interest in tightening up after the elasticity treatment $he underwent.
		<</if>>
	<<elseif $slaves[$i].inflation == 1>>
		$He makes sure to fill $his rear with nearly two liters of tightening solution, leaving $his belly noticeably distended, whenever $he leaks or $his body absorbs too much. $He is full enough to be swollen but not enough to visibly jiggle.
		<<if $slaves[$i].geneMods.rapidCellGrowth != 1>>
			<<if $slaves[$i].anus > 1>>
				The solution slowly tightens $his anus while inside $his bowels.
				<<if random(1,100) > 60>>
					By week's end, @@.lime;$his butthole has tightened nicely.@@
					<<set $slaves[$i].anus-->>
				<</if>>
			<<else>>
				$His anus is as tight as the solution can possibly make it.
			<</if>>
			<<if $slaves[$i].vagina > 1>>
				As $his body slowly absorbs the solution, its benefits begin to affect $his pussy.
				<<if random(1,100) > 80>>
					By week's end, @@.lime;$his vagina has regained some tightness.@@
					<<set $slaves[$i].vagina-->>
				<</if>>
			<<elseif $slaves[$i].vagina == 1>>
				$His pussy is as tight as the solution can possibly make it.
			<</if>>
		<<else>>
			Unfortunately for $him, $his body shows no interest in tightening up after the elasticity treatment $he underwent.
		<</if>>
	<</if>>
	<<if ($slaves[$i].anus <= 1 && $slaves[$i].vagina <= 1) || ($slaves[$i].geneMods.rapidCellGrowth == 1)>>
		<<if $slaves[$i].geneMods.rapidCellGrowth == 1>>
			$His hole<<if $slaves[$i].vagina >= 0>>s are<<else>> is<</if>> as tight as the drugs can get <<if $slaves[$i].vagina >= 0>>them<<else>>it<</if>> with the treatment counteracting their efforts. @@.yellow;$His tightening enema regimen has been ended.@@
			<<set $slaves[$i].inflation = 0, $slaves[$i].inflationType = "none", $slaves[$i].inflationMethod = 0, SetBellySize($slaves[$i])>>
		<<elseif ["serve in the club", "work in the brothel"].includes($slaves[$i].assignment)>>
			$His hole<<if $slaves[$i].vagina >= 0>>s are<<else>> is<</if>> as tight as the drugs can get <<if $slaves[$i].vagina >= 0>>them<<else>>it<</if>>, but given $his assignment, $he is likely to be stretched out again so $his tightening enema regimen continues.
		<<else>>
			$His hole<<if $slaves[$i].vagina >= 0>>s are<<else>> is<</if>> as tight as the drugs can get <<if $slaves[$i].vagina >= 0>>them<<else>>it<</if>>. @@.yellow;$His tightening enema regimen has been ended.@@
			<<set $slaves[$i].inflation = 0, $slaves[$i].inflationType = "none", $slaves[$i].inflationMethod = 0, SetBellySize($slaves[$i])>>
		<</if>>
	<</if>>
	<<set $slaves[$i].chem += 2>>

<<case "milk">>
	<<if $slaves[$i].behavioralFlaw == "anorexic">>
		<<if $slaves[$i].inflationMethod == 1>>
			<<if ($dairySlaves == 0 || $dairy == 0) && $arcologies[0].FSPastoralistLaw != 1>>
				You no longer have a functional dairy. @@.yellow;$His inflation regimen has been ended.@@
				<<set $slaves[$i].inflation = 0, $slaves[$i].inflationType = "none", $slaves[$i].inflationMethod = 0, SetBellySize($slaves[$i])>>
			<<elseif $slaves[$i].inflation == 3>>
				Throughout the week, $he @@.mediumorchid;reluctantly@@ sucks from the dairy tap until $his stomach is @@.red;painfully bloated@@ with nearly two gallons of milk, leaving $him looking ready to burst. $He struggles to keep $his fatty, liquid meal down, @@.gold;fearing@@ punishment otherwise.
				<<set $slaves[$i].health -= 10, $slaves[$i].devotion -= 8, $slaves[$i].trust -= 8>>
			<<elseif $slaves[$i].inflation == 2>>
				Throughout the week, $he @@.mediumorchid;reluctantly@@ sucks from the dairy tap until $his stomach is bloated with nearly four liters of milk, leaving $him looking pregnant. $He struggles to keep $his fatty, liquid meal down, @@.gold;fearing@@ punishment otherwise.
				<<set $slaves[$i].devotion -= 5, $slaves[$i].trust -= 5>>
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, $he @@.mediumorchid;reluctantly@@ sucks from the dairy tap until $his stomach is bloated with nearly two liters of milk, leaving $his belly noticeably distended. $He struggles to keep $his fatty, liquid meal down, @@.gold;fearing@@ punishment otherwise.
				<<set $slaves[$i].devotion -= 3, $slaves[$i].trust -= 3>>
			<</if>>
		<<elseif $slaves[$i].inflationMethod == 2>>
			<<if ($dairySlaves == 0 || $dairy == 0) && $arcologies[0].FSPastoralistLaw != 1>>
				You no longer have a functional dairy. @@.yellow;$His inflation regimen has been ended.@@
				<<set $slaves[$i].inflation = 0, $slaves[$i].inflationType = "none", $slaves[$i].inflationMethod = 0, SetBellySize($slaves[$i])>>
			<<elseif $slaves[$i].inflation == 3>>
				Throughout the week, $he @@.mediumorchid;reluctantly@@ fills $his rectum from the dairy tap until $his stomach is @@.red;painfully bloated@@ with nearly two gallons of milk, leaving $him looking ready to burst. $He struggles to keep the fattening load inside $him, @@.gold;fearing@@ punishment otherwise.
				<<set $slaves[$i].health -= 10, $slaves[$i].devotion -= 8, $slaves[$i].trust -= 8>>
			<<elseif $slaves[$i].inflation == 2>>
				Throughout the week, $he @@.mediumorchid;reluctantly@@ fills $his rectum from the dairy tap until $his stomach is bloated with nearly four liters of milk, leaving $him looking pregnant. $He struggles to keep the fattening load inside $him, @@.gold;fearing@@ punishment otherwise.
				<<set $slaves[$i].devotion -= 5,$slaves[$i].trust -= 5>>
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, $he @@.mediumorchid;reluctantly@@ fills $his rectum from the dairy tap until $his stomach is bloated with nearly two liters of milk, leaving $his belly noticeably distended. $He struggles to keep the fattening load inside $him, @@.gold;fearing@@ punishment otherwise.
				<<set $slaves[$i].devotion -= 3, $slaves[$i].trust -= 3>>
			<</if>>
		<<elseif $slaves[$i].inflationMethod == 3>>
			<<set _saf = $slaveIndices[$slaves[$i].milkSource]>>
			<<if $slaves[_saf].lactation == 0>>
				$slaves[_saf].slaveName is no longer lactating and thus can no longer keep $slaves[$i].slaveName filled with milk. @@.yellow;$His inflation regimen has been ended.@@
				<<set $slaves[$i].inflation = 0, $slaves[$i].inflationType = "none", $slaves[$i].inflationMethod = 0, $slaves[$i].milkSource = 0, SetBellySize($slaves[$i])>>
			<<elseif $slaves[$i].inflation == 3>>
				Throughout the week, $he @@.mediumorchid;reluctantly@@ suckles from $slaves[_saf].slaveName until $his stomach is @@.red;painfully bloated@@ with nearly two gallons of milk, leaving $him looking ready to burst. $He struggles to keep $his fatty, liquid meal down, @@.gold;fearing@@ punishment otherwise.
				<<set $slaves[$i].health -= 10, $slaves[$i].devotion -= 8, $slaves[$i].trust -= 8>>
				<<set $slaves[_saf].lactationDuration = 2, $slaves[_saf].boobs -= $slaves[_saf].boobsMilk, $slaves[_saf].boobsMilk = 0>>
			<<elseif $slaves[$i].inflation == 2>>
				Throughout the week, $he @@.mediumorchid;reluctantly@@ suckles from $slaves[_saf].slaveName until $his stomach is bloated with nearly four liters of milk, leaving $him looking pregnant. $He struggles to keep $his fatty, liquid meal down, @@.gold;fearing@@ punishment otherwise.
				<<set $slaves[$i].devotion -= 5, $slaves[$i].trust -= 5>>
				<<set $slaves[_saf].lactationDuration = 2, $slaves[_saf].boobs -= $slaves[_saf].boobsMilk, $slaves[_saf].boobsMilk = 0>>
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, $he @@.mediumorchid;reluctantly@@ suckles from $slaves[_saf].slaveName until $his stomach is bloated with nearly two liters of milk, leaving $his belly noticeably distended. $He struggles to keep $his fatty, liquid meal down, @@.gold;fearing@@ punishment otherwise.
				<<set $slaves[$i].devotion -= 3, $slaves[$i].trust -= 3>>
				<<set $slaves[_saf].lactationDuration = 2, $slaves[_saf].boobs -= $slaves[_saf].boobsMilk, $slaves[_saf].boobsMilk = 0>>
			<</if>>
		<</if>>
	<<elseif $slaves[$i].behavioralFlaw == "gluttonous">>
		<<if $slaves[$i].inflationMethod == 1>>
			<<if ($dairySlaves == 0 || $dairy == 0) && $arcologies[0].FSPastoralistLaw != 1>>
				You no longer have a functional dairy. @@.yellow;$His inflation regimen has been ended.@@
				<<set $slaves[$i].inflation = 0, $slaves[$i].inflationType = "none", $slaves[$i].inflationMethod = 0, SetBellySize($slaves[$i])>>
			<<elseif $slaves[$i].inflation == 3>>
				Throughout the week, $he @@.hotpink;eagerly@@ sucks from the dairy tap until $his stomach is @@.red;painfully bloated@@ with nearly two gallons of milk, leaving $him looking ready to burst. $He rubs $his full belly @@.mediumaquamarine;contently,@@ anticipating $his next gorging.
				<<set $slaves[$i].health -= 10, $slaves[$i].devotion += 5, $slaves[$i].trust += 5>>
			<<elseif $slaves[$i].inflation == 2>>
				Throughout the week, $he @@.hotpink;eagerly@@ sucks from the dairy tap until $his stomach is bloated with nearly four liters of milk, leaving $him looking pregnant. $He rubs $his taut belly @@.mediumaquamarine;contently,@@ anticipating $his next feeding.
				<<set $slaves[$i].devotion += 4, $slaves[$i].trust += 4>>
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, $he @@.hotpink;eagerly@@ sucks from the dairy tap until $his stomach is bloated with nearly two liters of milk, leaving $his belly noticeably distended. $He rubs $his sloshing belly @@.mediumaquamarine;contently,@@ anticipating $his next meal.
				<<set $slaves[$i].devotion += 3, $slaves[$i].trust += 3>>
			<</if>>
		<<elseif $slaves[$i].inflationMethod == 2>>
			<<if ($dairySlaves == 0 || $dairy == 0) && $arcologies[0].FSPastoralistLaw != 1>>
				You no longer have a functional dairy. @@.yellow;$His inflation regimen has been ended.@@
				<<set $slaves[$i].inflation = 0, $slaves[$i].inflationType = "none", $slaves[$i].inflationMethod = 0, SetBellySize($slaves[$i])>>
			<<elseif $slaves[$i].inflation == 3>>
				Throughout the week, $he @@.hotpink;happily@@ fills $his rectum from the dairy tap until $his stomach is @@.red;painfully bloated@@ with nearly two gallons of milk, leaving $him looking ready to burst. $He rubs $his taut belly @@.mediumaquamarine;contently,@@ though $he wishes $he could have swallowed it instead.
				<<set $slaves[$i].health -= 10, $slaves[$i].devotion += 4, $slaves[$i].trust += 4>>
			<<elseif $slaves[$i].inflation == 2>>
				Throughout the week, $he @@.hotpink;happily@@ fills $his rectum from the dairy tap until $his stomach is bloated with nearly four liters of milk, leaving $him looking pregnant. $He rubs $his full belly @@.mediumaquamarine;contently,@@ though $he wishes $he could have swallowed it instead.
				<<set $slaves[$i].devotion += 3, $slaves[$i].trust += 3>>
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, $he @@.hotpink;happily@@ fills $his rectum from the dairy tap until $his stomach is bloated with nearly two liters of milk, leaving $his belly noticeably distended. $He rubs $his sloshing belly @@.mediumaquamarine;contently,@@ though $he wishes $he could have swallowed it instead.
				<<set $slaves[$i].devotion += 1, $slaves[$i].trust += 1>>
			<</if>>
		<<elseif $slaves[$i].inflationMethod == 3>>
			<<set _saf = $slaveIndices[$slaves[$i].milkSource]>>
			<<if $slaves[_saf].lactation == 0>>
				$slaves[_saf].slaveName is no longer lactating and thus can no longer keep $slaves[$i].slaveName filled with milk. @@.yellow;$His inflation regimen has been ended.@@
				<<set $slaves[$i].inflation = 0, $slaves[$i].inflationType = "none", $slaves[$i].inflationMethod = 0, $slaves[$i].milkSource = 0, SetBellySize($slaves[$i])>>
			<<elseif $slaves[$i].inflation == 3>>
				Throughout the week, $he @@.hotpink;eagerly@@ sucks from $slaves[_saf].slaveName until $his stomach is @@.red;painfully bloated@@ with nearly two gallons of milk, leaving $him looking ready to burst. $He rubs $his full belly @@.mediumaquamarine;contently,@@ anticipating $his next gorging.
				<<set $slaves[$i].health -= 10, $slaves[$i].devotion += 5, $slaves[$i].trust += 5>>
				<<set $slaves[_saf].lactationDuration = 2, $slaves[_saf].boobs -= $slaves[_saf].boobsMilk, $slaves[_saf].boobsMilk = 0>>
			<<elseif $slaves[$i].inflation == 2>>
				Throughout the week, $he @@.hotpink;eagerly@@ sucks from $slaves[_saf].slaveName until $his stomach is bloated with nearly four liters of milk, leaving $him looking pregnant. $He rubs $his taut belly @@.mediumaquamarine;contently,@@ anticipating $his next feeding.
				<<set $slaves[$i].devotion += 4, $slaves[$i].trust += 4>>
				<<set $slaves[_saf].lactationDuration = 2, $slaves[_saf].boobs -= $slaves[_saf].boobsMilk, $slaves[_saf].boobsMilk = 0>>
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, $he @@.hotpink;eagerly@@ sucks from $slaves[_saf].slaveName until $his stomach is bloated with nearly two liters of milk, leaving $his belly noticeably distended. $He rubs $his sloshing belly @@.mediumaquamarine;contently,@@ anticipating $his next meal.
				<<set $slaves[$i].devotion += 3, $slaves[$i].trust += 3>>
				<<set $slaves[_saf].lactationDuration = 2, $slaves[_saf].boobs -= $slaves[_saf].boobsMilk, $slaves[_saf].boobsMilk = 0>>
			<</if>>
		<</if>>
	<<else>>
		<<if $slaves[$i].inflationMethod == 1>>
			<<if ($dairySlaves == 0 || $dairy == 0) && $arcologies[0].FSPastoralistLaw != 1>>
				You no longer have a functional dairy. @@.yellow;$His inflation regimen has been ended.@@
				<<set $slaves[$i].inflation = 0, $slaves[$i].inflationType = "none", $slaves[$i].inflationMethod = 0, SetBellySize($slaves[$i])>>
			<<elseif $slaves[$i].inflation == 3>>
				Throughout the week, $he makes sure to keep $himself filled with nearly two gallons of milk, leaving $him looking ready to burst. $He keeps $himself @@.red;painfully full@@ for you.
				<<set $slaves[$i].health -= 10>>
			<<elseif $slaves[$i].inflation == 2>>
				Throughout the week, $he makes sure to keep $himself filled with nearly four liters of milk, leaving $him looking pregnant. $He is full enough to be distended but not enough to grow taut.
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, $he makes sure to keep $himself filled with nearly two liters of milk, leaving $his belly noticeably distended. $He is full enough to be swollen but not enough to visibly jiggle.
			<</if>>
		<<elseif $slaves[$i].inflationMethod == 2>>
			<<if ($dairySlaves == 0 || $dairy == 0) && $arcologies[0].FSPastoralistLaw != 1>>
				You no longer have a functional dairy. @@.yellow;$His inflation regimen has been ended.@@
				<<set $slaves[$i].inflation = 0, $slaves[$i].inflationType = "none", $slaves[$i].inflationMethod = 0, SetBellySize($slaves[$i])>>
			<<elseif $slaves[$i].inflation == 3>>
				Throughout the week, $he makes sure to fill $his rear with nearly two gallons of milk, leaving $him looking ready to burst, whenever $he leaks or needs to release $his load. $He keeps $himself @@.red;painfully full@@ for you.
				<<set $slaves[$i].health -= 10>>
			<<elseif $slaves[$i].inflation == 2>>
				Throughout the week, $he makes sure to fill $his rear with nearly four liters of milk, leaving $him looking pregnant, whenever $he leaks or needs to release $his load. $He is full enough to be distended but not enough to grow taut.
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, $he makes sure to fill $his rear with nearly two liters of milk, leaving $his belly noticeably distended, whenever $he leaks or needs to release $his load. $He is full enough to be swollen but not enough to visibly jiggle.
			<</if>>
		<<elseif $slaves[$i].inflationMethod == 3>>
			<<set _saf = $slaveIndices[$slaves[$i].milkSource]>>
			<<if $slaves[_saf].lactation == 0>>
				$slaves[_saf].slaveName is no longer lactating and thus can no longer keep $slaves[$i].slaveName filled with milk. @@.yellow;$His inflation regimen has been ended.@@
				<<set $slaves[$i].inflation = 0, $slaves[$i].inflationType = "none", $slaves[$i].inflationMethod = 0, $slaves[$i].milkSource = 0, SetBellySize($slaves[$i])>>
			<<elseif $slaves[$i].inflation == 3>>
				Throughout the week, $he makes sure keep suckling from $slaves[_saf].slaveName until $he is filled with nearly two gallons of milk, leaving $him looking ready to give birth. $He keeps $himself @@.red;painfully full@@ for you.
				<<set $slaves[$i].health -= 10>>
				<<set $slaves[_saf].lactationDuration = 2, $slaves[_saf].boobs -= $slaves[_saf].boobsMilk, $slaves[_saf].boobsMilk = 0>>
			<<elseif $slaves[$i].inflation == 2>>
				Throughout the week, $he makes sure keep suckling from $slaves[_saf].slaveName until $he is filled with nearly four liters of milk, leaving $him looking pregnant. $He is full enough to be distended but not enough to grow taut.
				<<set $slaves[_saf].lactationDuration = 2, $slaves[_saf].boobs -= $slaves[_saf].boobsMilk, $slaves[_saf].boobsMilk = 0>>
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, $he makes sure keep suckling from $slaves[_saf].slaveName until $he is filled with nearly two liters of milk, leaving $his belly noticeably distended. $He is full enough to be swollen but not enough to visibly jiggle.
				<<set $slaves[_saf].lactationDuration = 2, $slaves[_saf].boobs -= $slaves[_saf].boobsMilk, $slaves[_saf].boobsMilk = 0>>
			<</if>>
		<</if>>
	<</if>>

<<case "cum">>
	<<if $slaves[$i].behavioralFlaw == "anorexic">>
		<<if $slaves[$i].inflationMethod == 1>>
			<<if ($dairySlaves == 0 || $cumSlaves == 0 || $dairy == 0) && $arcologies[0].FSPastoralistLaw != 1>>
				You no longer have a functional cum dairy. @@.yellow;$His inflation regimen has been ended.@@
				<<set $slaves[$i].inflation = 0, $slaves[$i].inflationType = "none", $slaves[$i].inflationMethod = 0, SetBellySize($slaves[$i])>>
			<<elseif $slaves[$i].inflation == 3>>
				Throughout the week, $he @@.mediumorchid;reluctantly@@ sucks from the dairy tap until $his stomach is @@.red;painfully bloated@@ with nearly two gallons of cum, leaving $him looking ready to burst. $He struggles to keep $his liquid meal down, @@.gold;fearing@@ punishment otherwise.
				<<set $slaves[$i].health -= 10, $slaves[$i].devotion -= 8, $slaves[$i].trust -= 8>>
			<<elseif $slaves[$i].inflation == 2>>
				Throughout the week, $he @@.mediumorchid;reluctantly@@ sucks from the dairy tap until $his stomach is bloated with nearly four liters of cum, leaving $him looking pregnant. $He struggles to keep $his liquid meal down, @@.gold;fearing@@ punishment otherwise.
				<<set $slaves[$i].devotion -= 5, $slaves[$i].trust -= 5>>
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, $he @@.mediumorchid;reluctantly@@ sucks from the dairy tap until $his stomach is bloated with nearly two liters of cum, leaving $his belly noticeably distended. $He struggles to keep $his liquid meal down, @@.gold;fearing@@ punishment otherwise.
				<<set $slaves[$i].devotion -= 3, $slaves[$i].trust -= 3>>
			<</if>>
		<<elseif $slaves[$i].inflationMethod == 2>>
			<<if ($dairySlaves == 0 || $cumSlaves == 0 || $dairy == 0) && $arcologies[0].FSPastoralistLaw != 1>>
				You no longer have a functional cum dairy. @@.yellow;$His inflation regimen has been ended.@@
				<<set $slaves[$i].inflation = 0, $slaves[$i].inflationType = "none", $slaves[$i].inflationMethod = 0, SetBellySize($slaves[$i])>>
			<<elseif $slaves[$i].inflation == 3>>
				Throughout the week, $he @@.mediumorchid;reluctantly@@ fills $his rectum from the dairy tap until $his stomach is @@.red;painfully bloated@@ with nearly two gallons of cum, leaving $him looking ready to burst. $He struggles to keep the massive cumshot inside $him, @@.gold;fearing@@ punishment otherwise.
				<<set $slaves[$i].health -= 10, $slaves[$i].devotion -= 8, $slaves[$i].trust -= 8>>
			<<elseif $slaves[$i].inflation == 2>>
				Throughout the week, $he @@.mediumorchid;reluctantly@@ fills $his rectum from the dairy tap until $his stomach is bloated with nearly four liters of cum, leaving $him looking pregnant. $He struggles to keep the huge cumshot inside $him, @@.gold;fearing@@ punishment otherwise.
				<<set $slaves[$i].devotion -= 5, $slaves[$i].trust -= 5>>
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, $he @@.mediumorchid;reluctantly@@ fills $his rectum from the dairy tap until $his stomach is bloated with nearly two liters of cum, leaving $his belly noticeably distended. $He struggles to keep the cumshot inside $him, @@.gold;fearing@@ punishment otherwise.
				<<set $slaves[$i].devotion -= 3, $slaves[$i].trust -= 3>>
			<</if>>
		<<elseif $slaves[$i].inflationMethod == 3>>
			<<set _saf = $slaveIndices[$slaves[$i].cumSource]>>
			<<if $slaves[_saf].balls == 0>>
				$slaves[_saf].slaveName has no longer has testicles and thus can no longer keep $slaves[$i].slaveName filled with cum. @@.yellow;$His inflation regimen has been ended.@@
				<<set $slaves[$i].inflation = 0, $slaves[$i].inflationType = "none", $slaves[$i].inflationMethod = 0, $slaves[$i].cumSource = 0, SetBellySize($slaves[$i])>>
			<<elseif $slaves[$i].inflation == 3>>
				Throughout the week, $he @@.mediumorchid;reluctantly@@ sucks $slaves[_saf].slaveName's <<if $slaves[_saf].dick > 0>>cock<<else>>cum hole<</if>> until $his stomach is @@.red;painfully bloated@@ with nearly two gallons of cum, leaving $him looking ready to burst. $He struggles to keep $his liquid meal down, @@.gold;fearing@@ punishment otherwise.
				<<set $slaves[$i].health -= 10, $slaves[$i].devotion -= 8, $slaves[$i].trust -= 8>>
			<<elseif $slaves[$i].inflation == 2>>
				Throughout the week, $he @@.mediumorchid;reluctantly@@ sucks $slaves[_saf].slaveName's <<if $slaves[_saf].dick > 0>>cock<<else>>cum hole<</if>> until $his stomach is bloated with nearly four liters of cum, leaving $him looking pregnant. $He struggles to keep $his liquid meal down, @@.gold;fearing@@ punishment otherwise.
				<<set $slaves[$i].devotion -= 5, $slaves[$i].trust -= 5>>
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, $he @@.mediumorchid;reluctantly@@ sucks $slaves[_saf].slaveName's <<if $slaves[_saf].dick > 0>>cock<<else>>cum hole<</if>> until $his stomach is bloated with nearly two liters of cum, leaving $his belly noticeably distended. $He struggles to keep $his liquid meal down, @@.gold;fearing@@ punishment otherwise.
				<<set $slaves[$i].devotion -= 3, $slaves[$i].trust -= 3>>
			<</if>>
		<</if>>
	<<elseif $slaves[$i].behavioralFlaw == "gluttonous">>
		<<if $slaves[$i].inflationMethod == 1>>
			<<if ($dairySlaves == 0 || $cumSlaves == 0 || $dairy == 0) && $arcologies[0].FSPastoralistLaw != 1>>
				You no longer have a functional cum dairy. @@.yellow;$His inflation regimen has been ended.@@
				<<set $slaves[$i].inflation = 0, $slaves[$i].inflationType = "none", $slaves[$i].inflationMethod = 0, SetBellySize($slaves[$i])>>
			<<elseif $slaves[$i].inflation == 3>>
				Throughout the week, $he @@.hotpink;eagerly@@ sucks from the dairy tap until $his stomach is @@.red;painfully bloated@@ with nearly two gallons of cum, leaving $him looking ready to burst. $He rubs $his full belly @@.mediumaquamarine;contently,@@ anticipating $his next gorging.
				<<set $slaves[$i].health -= 10, $slaves[$i].devotion += 5, $slaves[$i].trust += 5>>
			<<elseif $slaves[$i].inflation == 2>>
				Throughout the week, $he @@.hotpink;eagerly@@ sucks from the dairy tap until $his stomach is bloated with nearly four liters of cum, leaving $him looking pregnant. $He rubs $his taut belly @@.mediumaquamarine;contently,@@ anticipating $his next feeding.
				<<set $slaves[$i].devotion += 4, $slaves[$i].trust += 4>>
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, $he @@.hotpink;eagerly@@ sucks from the dairy tap until $his stomach is bloated with nearly two liters of cum, leaving $his belly noticeably distended. $He rubs $his sloshing belly @@.mediumaquamarine;contently,@@ anticipating $his next meal.
				<<set $slaves[$i].devotion += 3, $slaves[$i].trust += 3>>
			<</if>>
		<<elseif $slaves[$i].inflationMethod == 2>>
			<<if ($dairySlaves == 0 || $cumSlaves == 0 || $dairy == 0) && $arcologies[0].FSPastoralistLaw != 1>>
				You no longer have a functional cum dairy. @@.yellow;$His inflation regimen has been ended.@@
				<<set $slaves[$i].inflation = 0, $slaves[$i].inflationType = "none", $slaves[$i].inflationMethod = 0, SetBellySize($slaves[$i])>>
			<<elseif $slaves[$i].inflation == 3>>
				Throughout the week, $he @@.hotpink;happily@@ fills $his rectum from the dairy tap until $his stomach is @@.red;painfully bloated@@ with nearly two gallons of cum, leaving $him looking ready to burst. $He rubs $his taut belly @@.mediumaquamarine;contently,@@ though $he wishes $he could have swallowed it instead.
				<<set $slaves[$i].health -= 10, $slaves[$i].devotion += 4, $slaves[$i].trust += 4>>
			<<elseif $slaves[$i].inflation == 2>>
				Throughout the week, $he @@.hotpink;happily@@ fills $his rectum from the dairy tap until $his stomach is bloated with nearly four liters of cum, leaving $him looking pregnant. $He rubs $his full belly @@.mediumaquamarine;contently,@@ though $he wishes $he could have swallowed it instead.
				<<set $slaves[$i].devotion += 3, $slaves[$i].trust += 3>>
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, $he @@.hotpink;happily@@ fills $his rectum from the dairy tap until $his stomach is bloated with nearly two liters of cum, leaving $his belly noticeably distended. $He rubs $his sloshing belly @@.mediumaquamarine;contently,@@ though $he wishes $he could have swallowed it instead.
				<<set $slaves[$i].devotion++, $slaves[$i].trust++>>
			<</if>>
		<<elseif $slaves[$i].inflationMethod == 3>>
			<<set _saf = $slaveIndices[$slaves[$i].cumSource]>>
			<<if $slaves[_saf].balls == 0>>
					$slaves[_saf].slaveName has no longer has testicles and thus can no longer keep $slaves[$i].slaveName filled with cum. @@.yellow;$His inflation regimen has been ended.@@
				<<set $slaves[$i].inflation = 0, $slaves[$i].inflationType = "none", $slaves[$i].inflationMethod = 0, $slaves[$i].cumSource = 0, SetBellySize($slaves[$i])>>
			<<elseif $slaves[$i].inflation == 3>>
				Throughout the week, $he @@.hotpink;eagerly@@ sucks $slaves[_saf].slaveName's <<if $slaves[_saf].dick > 0>>cock<<else>>cum hole<</if>> until $his stomach is @@.red;painfully bloated@@ with nearly two gallons of cum, leaving $him looking ready to burst. $He rubs $his full belly @@.mediumaquamarine;contently,@@ anticipating $his next gorging.
				<<set $slaves[$i].health -= 10, $slaves[$i].devotion += 5, $slaves[$i].trust += 5>>
			<<elseif $slaves[$i].inflation == 2>>
				Throughout the week, $he @@.hotpink;eagerly@@ sucks $slaves[_saf].slaveName's <<if $slaves[_saf].dick > 0>>cock<<else>>cum hole<</if>> until $his stomach is bloated with nearly four liters of cum, leaving $him looking pregnant. $He rubs $his taut belly @@.mediumaquamarine;contently,@@ anticipating $his next feeding.
				<<set $slaves[$i].devotion += 4, $slaves[$i].trust += 4>>
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, $he @@.hotpink;eagerly@@ sucks $slaves[_saf].slaveName's <<if $slaves[_saf].dick > 0>>cock<<else>>cum hole<</if>> until $his stomach is bloated with nearly two liters of cum, leaving $his belly noticeably distended. $He rubs $his sloshing belly @@.mediumaquamarine;contently,@@ anticipating $his next meal.
				<<set $slaves[$i].devotion += 3, $slaves[$i].trust += 3>>
			<</if>>
		<</if>>
	<<else>>
		<<if $slaves[$i].inflationMethod == 1>>
			<<if ($dairySlaves == 0 || $cumSlaves == 0 || $dairy == 0) && $arcologies[0].FSPastoralistLaw != 1>>
				You no longer have a functional cum dairy. @@.yellow;$His inflation regimen has been ended.@@
				<<set $slaves[$i].inflation = 0, $slaves[$i].inflationType = "none", $slaves[$i].inflationMethod = 0, SetBellySize($slaves[$i])>>
			<<elseif $slaves[$i].inflation == 3>>
				Throughout the week, $he makes sure to keep $himself filled with nearly two gallons of cum, leaving $him looking ready to burst. $He keeps $himself @@.red;painfully full@@ for you.
				<<set $slaves[$i].health -= 10>>
			<<elseif $slaves[$i].inflation == 2>>
				Throughout the week, $he makes sure to keep $himself filled with nearly four liters of cum, leaving $him looking pregnant. $He is full enough to be distended but not enough to grow taut.
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, $he makes sure to keep $himself filled with nearly two liters of cum, leaving $his belly noticeably distended. $He is full enough to be swollen but not enough to visibly jiggle.
			<</if>>
		<<elseif $slaves[$i].inflationMethod == 2>>
			<<if ($dairySlaves == 0 || $cumSlaves == 0 || $dairy == 0) && $arcologies[0].FSPastoralistLaw != 1>>
				You no longer have a functional cum dairy. @@.yellow;$His inflation regimen has been ended.@@
				<<set $slaves[$i].inflation = 0, $slaves[$i].inflationType = "none", $slaves[$i].inflationMethod = 0, SetBellySize($slaves[$i])>>
			<<elseif $slaves[$i].inflation == 3>>
				Throughout the week, $he makes sure to fill $his rear with nearly two gallons of cum, leaving $him looking ready to burst, whenever $he leaks or needs to release $his load. $He keeps $himself @@.red;painfully full@@ for you.
				<<set $slaves[$i].health -= 10>>
			<<elseif $slaves[$i].inflation == 2>>
				Throughout the week, $he makes sure to fill $his rear with nearly four liters of cum, leaving $him looking pregnant, whenever $he leaks or needs to release $his load. $He is full enough to be distended but not enough to grow taut.
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, $he makes sure to fill $his rear with nearly two liters of cum, leaving $his belly noticeably distended, whenever $he leaks or needs to release $his load. $He is full enough to be swollen but not enough to visibly jiggle.
			<</if>>
		<<elseif $slaves[$i].inflationMethod == 3>>
			<<set _saf = $slaveIndices[$slaves[$i].cumSource]>>
			<<if $slaves[_saf].balls == 0>>
					$slaves[$j].slaveName has no longer has testicles and thus can no longer keep $slaves[$i].slaveName filled with cum. @@.yellow;$His inflation regimen has been ended.@@
				<<set $slaves[$i].inflation = 0, $slaves[$i].inflationType = "none", $slaves[$i].inflationMethod = 0, $slaves[$i].cumSource = 0, SetBellySize($slaves[$i])>>
			<<elseif $slaves[$i].inflation == 3>>
				Throughout the week, $he makes sure keep sucking $slaves[_saf].slaveName's <<if $slaves[_saf].dick > 0>>cock<<else>>cum hole<</if>> until $he is filled with nearly two gallons of cum, leaving $him looking ready to burst. $He keeps $himself @@.red;painfully full@@ for you.
				<<set $slaves[$i].health -= 10>>
			<<elseif $slaves[$i].inflation == 2>>
				Throughout the week, $he makes sure keep sucking $slaves[_saf].slaveName's <<if $slaves[_saf].dick > 0>>cock<<else>>cum hole<</if>> until $he is filled with nearly four liters of cum, leaving $him looking pregnant. $He is full enough to be distended but not enough to grow taut.
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, $he makes sure keep sucking $slaves[_saf].slaveName's <<if $slaves[_saf].dick > 0>>cock<<else>>cum hole<</if>> until $he is filled with nearly two liters of cum, leaving $his belly noticeably distended. $He is full enough to be swollen but not enough to visibly jiggle.
			<</if>>
		<</if>>
	<</if>>

<<case "food">>
	<<if $slaves[$i].behavioralFlaw == "anorexic">>
		<<if $slaves[$i].inflation == 3>>
			Throughout the week, $he focuses $his @@.mediumorchid;loathing@@ on you as $he forces down servings of slave food until $his stomach is @@.red;painfully bloated@@ with nearly two gallons of the paste, leaving $him looking ready to burst. $He struggles to keep $his meal down, @@.gold;fearing@@ punishment otherwise.
			<<set $slaves[$i].health -= 10, $slaves[$i].devotion -= 16, $slaves[$i].trust -= 16>>
		<<elseif $slaves[$i].inflation == 2>>
			Throughout the week, $he focuses $his @@.mediumorchid;loathing@@ on you as $he forces down servings of slave food until $his stomach is bloated with nearly four liters of the paste, giving $him quite the food baby. $He struggles to keep $his meal down, @@.gold;fearing@@ punishment otherwise.
			<<set $slaves[$i].devotion -= 10, $slaves[$i].trust -= 10>>
		<<elseif $slaves[$i].inflation == 1>>
			Throughout the week, $he focuses $his @@.mediumorchid;loathing@@ on you as $he forces down servings of slave food until $his stomach is bloated with nearly two liters of the paste, leaving $his stomach obviously distended. $He struggles to keep $his meal down, @@.gold;fearing@@ punishment otherwise.
			<<set $slaves[$i].devotion -= 6, $slaves[$i].trust -= 6>>
		<</if>>
	<<elseif $slaves[$i].behavioralFlaw == "gluttonous">>
		<<if $slaves[$i].inflation == 3>>
			Throughout the week, $he @@.hotpink;eagerly@@ stuffs $his face with servings of slave food until $his stomach is @@.red;painfully bloated@@ with nearly two gallons of the paste, leaving $him looking ready to burst. $He rubs $his stuffed belly @@.mediumaquamarine;contently,@@ anticipating $his next gorging.
			<<set $slaves[$i].health -= 10, $slaves[$i].devotion += 10, $slaves[$i].trust += 10>>
		<<elseif $slaves[$i].inflation == 2>>
			Throughout the week, $he @@.hotpink;eagerly@@ stuffs $his face with servings of slave food until $his stomach is bloated with nearly four liters of the paste, giving $him quite the food baby. $He rubs $his taut belly @@.mediumaquamarine;contently,@@ anticipating $his next meal.
			<<set $slaves[$i].devotion += 7, $slaves[$i].trust += 7>>
		<<elseif $slaves[$i].inflation == 1>>
			Throughout the week, $he @@.hotpink;eagerly@@ stuffs $his face with servings of slave food until $his stomach is bloated with nearly two liters of the paste, leaving $his belly noticeably distended. $He rubs $his stuffed belly @@.mediumaquamarine;contently,@@ anticipating $his next helping.
			<<set $slaves[$i].devotion += 5, $slaves[$i].trust += 5>>
		<</if>>
	<<else>>
		<<if $slaves[$i].inflation == 3>>
			Throughout the week, $he makes sure to binge eat until $his gut is stuffed with nearly two gallons of slave food, leaving $him looking ready to burst. $He keeps $himself @@.red;painfully full@@ for you.
			<<set $slaves[$i].health -= 10>>
		<<elseif $slaves[$i].inflation == 2>>
			Throughout the week, $he makes sure to binge eat until $his gut is filled with nearly four liters of slave food, giving $him quite the food baby. $He is full enough to be distended but not enough to grow taut.
		<<elseif $slaves[$i].inflation == 1>>
			Throughout the week, $he makes sure to binge eat until $he's consumed nearly two liters of slave food, leaving $his belly noticeably distended. $He is full enough to be swollen but not enough to visibly jiggle.
		<</if>>
	<</if>>
<</switch>>

<<if $slaves[$i].fetish == "cumslut" && $slaves[$i].inflationType == "cum" && $slaves[$i].bellyFluid >= 1500>>
	Being so full of cum fills $him with @@.hotpink;absolute bliss.@@
	<<set $slaves[$i].devotion += 5>>
<<elseif $slaves[$i].fetish == "masochist" && $slaves[$i].bellyFluid >= 10000>>
	That pain comes with @@.hotpink;absolute bliss@@ as $he relishes the unique sensation.
	<<set $slaves[$i].devotion += 5>>
<</if>>
<<if $slaves[$i].behavioralQuirk == "fitness">>
	<<if $slaves[$i].inflationType == "milk" || $slaves[$i].inflationType == "cum" || $slaves[$i].inflationType == "food" && $slaves[$i].inflation > 0>>
		$He vows to exercise more to deal with @@.mediumorchid;the bloated belly you forced on $him.@@ Though gaining weight just means more opportunities to work out.
		<<set $slaves[$i].devotion -= 3>>
	<</if>>
<</if>>

<<if $slaves[$i].inflationType == "milk" && $slaves[$i].bellyFluid >= 1500>>
	<<set _rearQuirk = $slaves[$i].geneticQuirks.rearLipedema == 2 ? 2 : 0>>
	<<set _rearQuirkDivider = _rearQuirk == 0 ? 1 : _rearQuirk>>
	<<if $slaves[$i].weight < 200>>
		$His body @@.lime;grows a little more padded@@ as it absorbs the milk contained in $his digestive track.
		<<set $slaves[$i].weight += 2>>
	<</if>>
	<<if random(1,100) > 50 && if $slaves[$i].boobs < 3000>>
		$His breasts @@.lime;swell@@ with added fat as $he digests the milk contained in $his digestive track.
		<<set $slaves[$i].boobs += 200>>
	<</if>>
	<<if random(1,100) > (50/_rearQuirkDivider) && $slaves[$i].butt < 7*_rearQuirk>>
		$His butt @@.lime;swells@@ with added fat as $he digests the milk contained in $his digestive track.
		<<set $slaves[$i].butt += 1>>
	<</if>>
<<elseif $slaves[$i].inflationType == "food" && $slaves[$i].bellyFluid >= 1500>>
	<<set _rearQuirk = $slaves[$i].geneticQuirks.rearLipedema == 2 ? 2 : 0>>
	<<set _rearQuirkDivider = _rearQuirk == 0 ? 1 : _rearQuirk>>
	<<if $slaves[$i].weight < 200>>
		$His body @@.lime;rapidly gains weight@@ as it digests the food contained in $his digestive track.
		<<set $slaves[$i].weight += 4>>
	<</if>>
	<<if random(1,100) > 50 && $slaves[$i].boobs < 3000>>
		$His breasts @@.lime;swell@@ with added fat as $he digests the food contained in $his digestive track.
		<<set $slaves[$i].boobs += 200>>
	<</if>>
	<<if random(1,100) > (50/_rearQuirkDivider) && $slaves[$i].butt < 7*_rearQuirk>>
		$His butt @@.lime;swells@@ with added fat as $he digests the food contained in $his digestive track.
		<<set $slaves[$i].butt += 1>>
	<</if>>
<</if>>

<<if $slaves[$i].inflationMethod == 2 && $slaves[$i].cervixImplant >= 2>>
	$His rectal micropump implant filters out some fluid from the $slaves[$i].inflationType within $him during the week, adding it to $his abdominal implant.
	<<set $slaves[$i].bellyImplant += 200>>
<</if>>


code:
:: SE Burst [nobr]

<<set $nextButton = "Continue", $nextLink = "Scheduled Event">>

<<for _b = 0; _b < $slaves.length; _b++>>
<<if $slaves[_b].burst == 1>>

	<<if (($slaves[_b].belly > ($slaves[_b].pregAdaptation*3200)) || $slaves[_b].bellyPreg > 600000)>>

		<<set $slaves[_b].curBabies = WombBirth($slaves[_b], $slaves[_b].pregData.minLiveBirth)>>
		<<set $slaves[_b].curStillBirth = 0 >>
		<<set _curBabies = $slaves[_b].curBabies.length>> /*just to improve speed and usability here.*/
		<<set $birthsTotal += _curBabies>>

		<<set _others = 0, _PC = 0, _citizens = 0, _oldMaster = 0, _arcOwner = 0, _lab = 0, _futaS = 0, _fathers = [], _babyFatherLink = []>>
		<<for _cb = 0; _cb < $slaves[_b].curBabies.length; _cb++>>
			<<if $slaves[_b].curBabies[_cb].fatherID == 0 || $slaves[_b].curBabies[_cb].fatherID == -5>>
				<<set _others++>>
				<<set _fathers.push("some man's")>>
			<<elseif $slaves[_b].curBabies[_cb].fatherID == -1>>
				<<set $PC.slavesFathered++>>
				<<set _PC++>>
				<<set _fathers.push("your")>>
			<<elseif $slaves[_b].curBabies[_cb].fatherID == -2>>
				<<set _citizens++>>
				<<set _fathers.push("your arcology's")>>
			<<elseif $slaves[_b].curBabies[_cb].fatherID == -3>>
				<<set _oldMaster++>>
				<<set _fathers.push("your former Master's")>>
			<<elseif $slaves[_b].curBabies[_cb].fatherID == -4>>
				<<set _arcOwner++>>
				<<set _fathers.push("another arcology owner's")>>
			<<elseif $slaves[_b].curBabies[_cb].fatherID == -7>>
				<<set _lab++>>
				<<set _fathers.push("the gene lab's")>>
			<<elseif $slaves[_b].curBabies[_cb].fatherID == -9>>
				<<set _futaS++>>
				<<set _fathers.push("a Futanari Sister's")>>
			<<else>>
				<<set _babyDaddy = findFather($slaves[_b].curBabies[_cb].fatherID)>>
				<<if def _babyDaddy>>
					<<if _babyDaddy.ID == $slaves[_b].ID>>
						<<set _fathers.push(String($his + " own"))>>
						<<for _cb2 = 0; _cb2 < _babyFatherLink.length; _cb2++>>
							<<if _babyFatherLink[_cb2].string == String($his + " own")>>
								<<set _babyFatherLink[_cb2].count++>>
							<<else>>
								<<set _babyFatherLink[_cb2] = {string: String($his + " own"), count: 1}>>
							<</if>>
						<</for>>
					<<else>>
						<<set _fathers.push(String(_babyDaddy.slaveName+ "'s"))>>
						<<for _cb2 = 0; _cb2 < _babyFatherLink.length; _cb2++>>
							<<if _babyFatherLink[_cb2].string == String(_babyDaddy.slaveName+ "'s")>>
								<<set _babyFatherLink[_cb2].count++>>
							<<else>>
								<<set _babyFatherLink[_cb2] = {string: String(_babyDaddy.slaveName+ "'s"), count: 1}>>
							<</if>>
						<</for>>
					<</if>>
					<<set _adjust = _babyDaddy.counter.slavesFathered++>>
					<<set adjustFatherProperty(_babyDaddy, "slavesFathered", _adjust)>>
				<<else>>
					<<set _others++>>
					<<set _fathers.push("some man's")>>
				<</if>>
			<</if>>
		<</for>>
		<<set _fathersReduced = removeDuplicates(_fathers)>>
		<<for _cb = 0; _cb < _fathersReduced.length; _cb++>>
			<<set _num = 0>>
			<<if _fathersReduced[_cb] == "some man's">>
				<<set _num = _others>>
			<<elseif _fathersReduced[_cb] == "your">>
				<<set _num = _PC>>
			<<elseif _fathersReduced[_cb] == "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] == "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")>>
			<<elseif _num == 9>>
				<<set _fathersReduced[_cb] += " nonuplets">>
			<<elseif _num == 8>>
				<<set _fathersReduced[_cb] += " octuplets">>
			<<elseif _num == 7>>
				<<set _fathersReduced[_cb] += " septuplets">>
			<<elseif _num == 6>>
				<<set _fathersReduced[_cb] += " sextuplets">>
			<<elseif _num == 5>>
				<<set _fathersReduced[_cb] += " quintuplets">>
			<<elseif _num == 4>>
				<<set _fathersReduced[_cb] += " quadruplets">>
			<<elseif _num == 3>>
				<<set _fathersReduced[_cb] += " triplets">>
			<<elseif _num == 2>>
				<<set _fathersReduced[_cb] += " twins">>
			<</if>>
		<</for>>

		<<if $slaves[_b].broodmother < 1>>
			<<set $slaves[_b].curStillBirth = $slaves[_b].womb.length>>
			<<set WombFlush($slaves[_b])>>
		<</if>>

		<<set _incubated = 0>>
		<<set _cToIncub = 0, _cToNursery = 0>>
		<<for _csec = 0; _csec < _curBabies; _csec++>>
			<<if $slaves[_b].curBabies[_csec].reserve === "incubator">>
				<<set _cToIncub++>>
			<<elseif $slaves[_b].curBabies[_csec].reserve === "nursery">>
				<<set _cToNursery++>>
			<</if>>
		<</for>>

		/* ------------------------------------------------ */

		$slaves[_b].slaveName's straining womb finally gave out and burst, taking $his

		<<if _curBabies > 0>>
			life, but not <<if _curBabies <= 1>>that of $his child<<else>>those of all $his children<</if>>;
			<<if _fathersReduced.length > 2>>
				<<for _cb = 0; _cb < _fathersReduced.length; _cb++>>
					<<if _cb < _fathersReduced.length-1>>
						_fathersReduced[_cb],
					<<else>>
						and _fathersReduced[_cb]
					<</if>>
				<</for>>
			<<elseif _fathersReduced.length > 1>>
				_fathersReduced[0] and _fathersReduced[1]
			<<else>>
				_fathersReduced[0]
			<</if>>

			<<if _curBabies <= 1>>has<<else>>have<</if>>
			promptly been

			<<set _incubated = 0>>
			<<if _cToIncub == _curBabies>>
				taken to $incubatorName.
			<<elseif _cToIncub < _curBabies && _cToIncub > 0>>
				split between $incubatorName and
				<<if _cToNursery > 0>>
					<<if _cToNursery == _curBabies-_cToIncub && _incubated > 0>>
						$nurseryName.
					<<elseif _cToNursery < _curBabies-_cToIncub && _cToNursery > 0>>
						$nurseryName, and the medical suite.
					<</if>>
				<<else>>
					the medical suite.
				<</if>>
			<<elseif _cToNursery == _curBabies>>
				taken to $nurseryName.
			<<elseif _cToNursery < _curBabies && _cToNursery > 0>>
				split between $nurseryName and the medical suite.
			<<else>>
				taken to the medical suite.
			<</if>>

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

		<<else>>
			life and <<if _curBabies <= 1>>that of $his child<<else>>those of $his children<</if>>.
		<</if>>

		<<set _curBabies = $slaves[_b].curBabies.length>>

		<<if _curBabies > 0>>
			<<set _count = _curBabies>>

			<>
			<<if $arcologies[0].FSRestart != "unset" && $slaves[_b].breedingMark == 1 && $propOutcome == 1 && $slaves[_b].pregSource == -1>>
				<<set _lostBabies = 1>>
				From there, $his child<<if _curBabies > 1>>ren are<<else>> is<</if>> collected by the Societal Elite to be raised into upstanding members of the new society.
			<<elseif $Cash4Babies == 1 && $slaves[_b].pregSource == -9>>
				<<set _lostBabies = 1, _babyCost = random(1000,2500)>>
				$His <<if _curBabies > 1>>babies were<<else>>baby was<</if>> purchased by the Futanari Sisters for @@.yellowgreen;<<print cashFormat(_curBabies*(_babyCost))>>.@@
				<<run cashX((_curBabies*(_babyCost)), "babyTransfer")>>
			<<elseif $Cash4Babies == 1 && $DefaultBirthDestination !== "the market">>
				<<set _lostBabies = 1>>
				<<set _babyCost = random(-12,12)>>
				<<if $slaves[_b].prematureBirth == 1>><<set _babyCost = -45>><</if>>
				$His <<if _curBabies > 1>>babies<<else>>baby<</if>> sold for <<if _curBabies > 1>>a total of <</if>>@@.yellowgreen;<<print cashFormat(_curBabies*(50+_babyCost))>>.@@<<if $slaves[_b].prematureBirth == 1>> A low price due to the added costs of caring for them.<</if>>
				<<run cashX((_curBabies*(50+_babyCost)), "babyTransfer")>>
			<</if>>
			<<if _lostBabies != 1 && $universalRulesChildrenBecomeBreeders > 0 && $arcologies[0].FSRepopulationFocus > 40 && $DefaultBirthDestination === "individually decided fates">>
				<<set _lostBabies = 1>>
				$His child<<if _curBabies > 1>>ren are<<else>> is<</if>> sent to one of $arcologies[0].name's future minded schools, to be administered fertility and virility treatments as well as be brought up to take pride in reproduction. Hopefully there they will be trained to not suffer the same fate.
				<<set $breederOrphanageTotal += _count>>
			<<elseif _lostBabies != 1 && $DefaultBirthDestination === "individually decided fates" && $universalRulesChildrenBecomeBreeders < 1>>
				Unless you provide otherwise, the child<<if _curBabies > 1>>ren<</if>> will be remanded to one of $arcologies[0].name's slave orphanages.
				<<set $slaveOrphanageTotal += _count>>
				<<capture $i, $dispositionId, _count>>

				<<if $arcologies[0].FSRepopulationFocus > 40>>
					<<link 'Send them to a breeder school'>>
						<<replace `"#" + $dispositionId`>>
							The child<<if _count > 1>>ren are<<else>> is<</if>> sent to one of $arcologies[0].name's future minded schools, to be administered fertility and virility treatments as well as be brought up to take pride in reproduction. Hopefully there they will be trained to not suffer the same fate.
							<<set $breederOrphanageTotal += _count, $slaveOrphanageTotal -= _count>>
						<</replace>>
					<</link>>
					//Will cost a one-time <<print cashFormat(50)>>// |
				<</if>>
				<<link 'Send them to a citizen school'>>
					<<replace `"#" + $dispositionId`>>
						The child<<if _count > 1>>ren are<<else>> is<</if>> sent to one of $arcologies[0].name's citizen schools, to be brought up coequal with the arcology's other young people.
						<<set $slaves[_b].devotion += 4, $citizenOrphanageTotal += _count, $slaveOrphanageTotal -= _count>>
					<</replace>>
				<</link>>
				//Will cost <<print cashFormat(100)>> weekly//
				<<if $slaves[_b].pregSource == -9>>
					| <<link 'Give them to the Futanari Sisters.'>>
						<<replace #dispositionId>>
							The child<<if _count > 1>>ren are<<else>> is<</if>> handed off to be raised by their father, the Futanari Sisters. You recommend they take it easy for a while before any more burst into kids.
							<<set $slaveOrphanageTotal -= _count>>
						<</replace>>
					<</link>>
				<</if>>
				| <<link 'Have them raised privately'>>
					<<replace `"#" + $dispositionId`>>
						The child<<if _count > 1>>ren are<<else>> is<</if>> sent to be privately raised, to be brought up as a future high class citizen.
						<<set $slaves[_b].devotion += 6, $privateOrphanageTotal += _count, $slaveOrphanageTotal -= _count>>
					<</replace>>
				<</link>>
				//Will cost <<print cashFormat(500)>> weekly//
				<<if $Cash4Babies == 1>>
					<<if $slaves[_b].prestige > 1 || $slaves[_b].pornPrestige > 2>>
						| <<link 'Send them to auction'>>
							<<replace `"#" + $dispositionId`>>
									<<set _babyCost = random(-12,12)>>
									<<if $slaves[_b].prematureBirth == 1>><<set _babyCost = -45>><</if>>
									$His <<if _curBabies > 1>>babies<<else>>baby<</if>> sold for <<if _curBabies > 1>>a total of <</if>>@@.yellowgreen;<<print cashFormat(_curBabies*(50+_babyCost))>>.@@<<if $slaves[_b].prematureBirth == 1>> A low price due to the added costs of caring for them.<</if>>
									<<run cashX((_curBabies*(50+_babyCost)), "babyTransfer")>>
									<<set $slaveOrphanageTotal -= _count>>
							<</replace>>
						<</link>>
					<<else>>
						| <<link 'Sell them anyway'>>
							<<replace `"#" + $dispositionId`>>
								<<set _babyCost = random(-12,12)>>
								<<if $slaves[_b].prematureBirth == 1>><<set _babyCost = -45>><</if>>
								$His <<if _curBabies > 1>>babies<<else>>baby<</if>> sold for <<if _curBabies > 1>>a total of <</if>>@@.yellowgreen;<<print cashFormat(_curBabies*(50+_babyCost))>>.@@<<if $slaves[_b].prematureBirth == 1>> A low price due to the added costs of caring for them.<</if>>
								<<run cashX((_curBabies*(50+_babyCost)), "babyTransfer")>>
								<<set $slaveOrphanageTotal -= _count>>
							<</replace>>
						<</link>>
					<</if>>
				<</if>>
				<</capture>>
			<</if>>
			<>
		<<elseif $Cash4Babies == 1 && _curBabies > 0 && $DefaultBirthDestination === "individually decided fates" && $universalRulesChildrenBecomeBreeders < 1>>

			<<set _babyCost = random(-12,12)>>
			<<if $slaves[_b].prematureBirth == 1>><<set _babyCost = -45>><</if>>
			$His <<if _curBabies > 1>>babies<<else>>baby<</if>> were sold for <<if _curBabies > 1>>a total of <</if>>@@.yellowgreen;<<print cashFormat(_curBabies*(50+_babyCost))>>.@@<<if $slaves[_b].prematureBirth == 1>> A low price due to the added costs of caring for them.<</if>>
			<<run cashX((_curBabies*(50+_babyCost)), "babyTransfer")>>
		<</if>>

		<<if $arcologies[0].FSRestart != "unset" && _curBabies > 0>>

			<<if $slaves[_b].breedingMark == 1 && ($slaves[_b].pregSource == -1 || $slaves[_b].pregSource == -6) && $propOutcome == 1>>
				The Societal Elite @@.green;are pleased@@ at the new additions to their class, despite it claiming a promising breeder.
				<<set $failedElite -= _curBabies>>
			<<elseif $eugenicsFullControl != 1>>
				The Societal Elite @@.red;are disappointed@@ that you would allow subhuman filth to dirty society under your watch. Society @@.red;frowns@@ on the unwelcome addition of more subhumans into the world. At least the "birth" claimed the wretched $girl's life.
				<<set $failedElite += 5*_curBabies>>
				<<run repX(forceNeg(10*_curBabies), "babyTransfer")>>
			<</if>>
		<</if>>

		<<set $reservedChildren = FetusGlobalReserveCount("incubator")>>
		<<set $reservedChildrenNursery = FetusGlobalReserveCount("nursery")>>

	<<elseif $slaves[_b].inflation != 0>>
		<<pop $slaves[_b]>>
	<</if>>

	<<set $activeSlave = $slaves[_b]>>
	<<= removeActiveSlave() >>

<</if>>
<</for>>

<<set $burstee = 0>>
<<set $burst = 0>>

repo_name: shinx/fc


code:
:: SE Death [nobr]

<<set $nextButton = "Continue", $nextLink = "Scheduled Event">>

<<set _killedSlaves = []>>
<<foreach _slave of $slaves>>
	<<switch _slave.death.toLowerCase()>>
		<<case "old">>
			<<DeathOldAge _slave>>

			<<set _killedSlaves.push(_slave)>>
		<<case "od">>
			<<DeathOverdose _slave>>

			<<set _killedSlaves.push(_slave)>>
		<<case "health">>
			<<DeathUnhealthy _slave>>

			<<set _killedSlaves.push(_slave)>>
		<<case "burst">>
			<<DeathPregnancyBurst _slave>>

			<<set _killedSlaves.push(_slave)>>
	<</switch>>
<</foreach>>
<<if _killedSlaves.length == 0>>
	/* if something beats this to the slaves, this should kick the player along instead of leaving them at a blank screen */
	<<set $slaveDeath = 0>>
	<<goto "Scheduled Event">>
<</if>>
<<foreach _slave of _killedSlaves>>
	<<set $activeSlave = _slave>>
	<<= removeActiveSlave() >>
<</foreach>>
<<unset _killedSlaves>>

<<set $slaveDeath = 0>>


code:
:: SE FCTV Install [nobr]

<<set $nextButton = "Continue", $nextLink = "Scheduled Event", $returnTo = "Scheduled Event", $showEncyclopedia = 1, $encyclopedia = "FCTV", $receiverAvailable = 1>>
<<set $showOne = 0, $showTwo = 0, $showThree = 0, $showFour = 0, $showFive = 0, $showSix = 0, $showSeven = 0, $showEight = 0, $showNine = 0, $showTen = 0, $showEleven = 0, $showTwelve = 0, $showThirteen = 0, $showFourteen = 0, $randShow = 0, $lastShow = -1>>

You've been sitting in your office into the early afternoon going over bothersome lease documents that need your approval. When you take a break to look out the window, $assistantName speaks up. "<<= properTitle()>>, you have received an approval welcome packet from 8HGG Inc in regards to Free Cities TV. It seems that they've determined that $arcologies[0].name is now sufficiently developed enough to warrant a FCTV-Citizen connection. All the details and contracts necessary are included in the packet. From there, a receiver will need to be built onto $arcologies[0].name in order to access FCTV."

You browse the guide: home shopping networks, random dramas, how-to shows and a myriad of other things. Of more interest are some of the programs showing glimpses into foreign arcologies and how they are using the service to help mold society.

While FCTV attempts to exclude any dick-based, pregnancy, hyperpregnancy, and extreme content based on your settings, it may still hint at that content, especially the more mundane of it. If you wish to be absolutely sure, don't watch FCTV or do not install the receiver.


code:
:: SE FCTV Watch [nobr]

<<set $nextButton = "Continue", $nextLink = "Scheduled Event", $returnTo = "Scheduled Event", $showEncyclopedia = 1, $encyclopedia = "FCTV">>
<<if ndef $showEleven>>
	<<set $showEleven = 0>>
<</if>>
<<if ndef $showTwelve>> /* Milkanon's channel */
	<<set $showTwelve = 0>>
<</if>>
<<if ndef $showThirteen>> /* Channel13's work */
	<<set $showThirteen = 0>>
<</if>>
<<if ndef $showFourteen>> /* anon's story channel */
	<<set $showFourteen = 0>>
<</if>>
<<if ndef $showFifteen>> /* the pirate channel */
	<<set $showFifteen = 0>>
<</if>>
<<set $randShow = random(0,15)>>
<<set $FCTVshow = 0>>
<<if $randShow == $lastShow>>
	<<set $randShow += 1>>
	<<if $randShow > 15>>
		<<set $randShow = 0>>
	<</if>>
<</if>>

Tired after a long day, you tell <<if $Concubine != 0>>@@.pink;$Concubine.slaveName@@<<else>>$assistantName<</if>> to turn on the TV and
<<if $cheatMode == 1 || $debugMode == 1 || $FCTVremote > 0>>
	bring you the remote so you can choose whatever show you find interesting.

<<link 0>>
	<<set $randShow = 0>>
    <<replace "#show">>
        <<include "SE FCTV Shows">>
    <</replace>>
<</link>>
<<link 1>>
	<<set $randShow = 1>>
    <<replace "#show">>
        <<include "SE FCTV Shows">>
    <</replace>>
<</link>>
<<link 2>>
	<<set $randShow = 2>>
    <<replace "#show">>
        <<include "SE FCTV Shows">>
	<</replace>>
<</link>>
<<if $cheatMode == 1 || $debugMode == 1>> /* Disable the home slave shopping network for normies because exploits. */
	<<link 3>>
		<<set $randShow = 3>>
		<<replace "#show">>
			<<include "SE FCTV Shows">>
		<</replace>>
	<</link>>
	<<link 4>>
		<<set $randShow = 4>>
		<<replace "#show">>
			<<include "SE FCTV Shows">>
		<</replace>>
	<</link>>
<<else>>
	3 4
<</if>>
<<link 5>>
	<<set $randShow = 5>>
	<<replace "#show">>
		<<include "SE FCTV Shows">>
	<</replace>>
<</link>>
<<link 6>>
	<<set $randShow = 6>>
	<<replace "#show">>
		<<include "SE FCTV Shows">>
	<</replace>>
<</link>>
<<link 7>>
	<<set $randShow = 7>>
	<<replace "#show">>
		<<include "SE FCTV Shows">>
	<</replace>>
<</link>>
<<link 8>>
	<<set $randShow = 8>>
	<<replace "#show">>
		<<include "SE FCTV Shows">>
	<</replace>>
<</link>>
<<link 9>>
	<<set $randShow = 9>>
	<<replace "#show">>
		<<include "SE FCTV Shows">>
	<</replace>>
<</link>>
<<link 10>>
	<<set $randShow = 10>>
	<<replace "#show">>
		<<include "SE FCTV Shows">>
	<</replace>>
<</link>>
<<link 11>>
	<<set $randShow = 11>>
	<<replace "#show">>
		<<include "SE FCTV Shows">>
	<</replace>>
<</link>>
<<link 12>>
	<<set $randShow = 12>>
	<<replace "#show">>
		<<include "SE FCTV Shows">>
	<</replace>>
<</link>>
<<link 13>>
	<<set $randShow = 13>>
	<<replace "#show">>
		<<include "SE FCTV Shows">>
	<</replace>>
<</link>>
<<link 14>>
	<<set $randShow = 14>>
	<<replace "#show">>
		<<include "SE FCTV Shows">>
	<</replace>>
<</link>>
<<link 15>>
	<<set $randShow = 15>>
	<<replace "#show">>
		<<include "SE FCTV Shows">>
	<</replace>>
<</link>>
<<if $cheatMode == 1 || $debugMode == 1>> /* remove toggle for normies */
	|
	<<link "Toggle inappropriate">>
		<<if _FCTVShowAll>>
			<<set _FCTVShowAll = 0>>
		<<else>>
			<<set _FCTVShowAll = 1>>
		<</if>>
	<</link>>
<</if>>

<<else>>
	set FCTV to random show. Your larger-than-life screen flashes on, and is soon playing a random show from the popular streaming service.
	/* we need to check for pansy no-extreme squick stuff */
	<<if $minimumSlaveAge > 13 && ($randShow == 12 || $randShow == 14)>>
		<<set $randShow = either(0,1,2,3,4,5,6,7,8,9,10,11,13,15)>>
		There is an audible tone from your screen, which then displays a message: Actor not vintage enough, changing program.
	<</if>>
	<<if $seeExtreme == 0 && $randShow == 10>>
		<<set $randShow = either(0,1,2,3,4,5,6,7,8,9,11,12)>>
		There is an audible tone from your screen, which then displays a message: Too much hugging detected, changing program.
	<</if>>
	<<if $seeHyperPreg == 0 && $randShow == 8>>
		<<set $randShow = either(0,1,2,3,4,5,6,7,9,11,12)>>
		There is an audible tone from your screen, which then displays a message: Too much happiness detected, changing program.
	<</if>>
	<<if $seePreg == 0 && ($randShow == 5 || $randShow == 8)>>
		<<set $randShow = either(0,1,2,3,4,6,7,9,11,12)>>
		There is an audible tone from your screen, which then displays a message: Too much baking detected, changing program.
	<</if>>
	<<if $seeDicks == 0 && $makeDicks == 0 && $randShow == 10>>
		<<set $randShow = either(0,1,2,3,4,11,12)>>
		There is an audible tone from your screen, which then displays a message: Too many hot dogs detected, changing program.
	<</if>>
	<<if $randShow == 11 && $purchasedSagBGone == 1 && $showEleven > 2>>
		<<set $randShow++>>
		There is an audible tone from your screen, which then displays a message: Product purchase detected, skipping commercials.
	<</if>>
<</if>>
<<set _FCTV = "test">>

	<<include "SE FCTV Shows">>


code:
:: SE husk slave delivery [nobr]

<<set $huskSlaveOrdered = 0, $nextButton = "Continue", $nextLink = "Scheduled Event", $returnTo = "Scheduled Event", $showEncyclopedia = 1, $encyclopedia = "Enslaving People">>

<<set $activeSlaveOneTimeMinAge = parseInt($huskSlave.age)>>
<<set $activeSlaveOneTimeMaxAge = parseInt($huskSlave.age)>>
<<set $one_time_age_overrides_pedo_mode = 1>>
<<set $ageAdjustOverride = 1>>
<<set $fixedNationality = $huskSlave.nationality>>
<<set $fixedRace = $huskSlave.race>>
<<if $huskSlave.sex == 2>>
	<<include "Generate XY Slave">>
	<<set $activeSlave.boobs = 0>>
	<<set $activeSlave.boobsImplant = 0>>
<<else>>
	<<include "Generate XX Slave">>
<</if>>

<<set $activeSlave.slaveName = "Doll">>
<<set $activeSlave.birthName = "">>
<<set $activeSlave.slaveSurname = "">>
<<set $activeSlave.surname = "">>
<<set $activeSlave.origin = "You reserved a mindless slave like her from the Flesh Heap.">>
<<set $activeSlave.devotion = 0>>
<<set $activeSlave.trust = 0>>
<<set $activeSlave.fetish = "mindbroken">>
<<set $activeSlave.fetishStrength = 10>>
<<set $activeSlave.fetishKnown = 1>>
<<set $activeSlave.career = "a fuckdoll">>
<<set $activeSlave.behavioralFlaw = "none">>
<<set $activeSlave.behavioralQuirk = "none">>
<<set $activeSlave.sexualFlaw = "none">>
<<set $activeSlave.sexualQuirk = "none">>
<<set $activeSlave.intelligence = -100>>
<<set $activeSlave.intelligenceImplant = 0>>
<<set $activeSlave.skill.vaginal = 0>>
<<set $activeSlave.skill.oral = 0>>
<<set $activeSlave.skill.anal = 0>>
<<set $activeSlave.skill.whoring = 0>>
<<set $activeSlave.skill.entertainment = 0>>
<<set $activeSlave.skill.combat = 0>>

<<if $huskSlave.sex == 3>>
	<<set $activeSlave.dick = 1>>
	<<set $activeSlave.foreskin = 2>>
	<<set $activeSlave.prostate = 1>>
	<<set $activeSlave.balls = 1>>
	<<if $activeSlave.physicalAge >= $potencyAge>>
		<<set $activeSlave.pubertyXY = 1>>
	<</if>>
<</if>>
<<if $activeSlave.balls > 0>>
	<<set $activeSlave.scrotum = $activeSlave.balls>>
<</if>>
<<if $activeSlave.vagina == -1>>
	<<set $activeSlave.clit = 0>>
<</if>>
<<if $huskSlave.virgin == 0>>
	<<set $activeSlave.anus = 0>>
	<<if $activeSlave.vagina > -1>>
		<<set $activeSlave.vagina = 0>>
	<</if>>
<</if>>

<<setLocalPronouns $activeSlave>>

A slave came in fitting the description you provided.

//As expected, $he is a complete vegetable, but that is what you ordered after all. You lack the facilities to care for $him in this state, so you should do what you are planning quickly. Or you could return $him to the Flesh Heap, though you won't get your credits back.//

<<set $saleDescription = 1, $applyLaw = 0>><<include "Long Slave Description">><<set $saleDescription = 1>>

<<if $cash >= $surgeryCost>>
	[[Accept the offered slave and contact the bodyswap surgeon.|husk Slave Swap Workaround]] //Will significantly increase the selected slave's upkeep.//
<<else>>
	//You can't sustain $him and thus must return $him.//
<</if>>


code:
:: Slave Age Intro [nobr]

Do you want to see content involving girls younger than 18 in this game?

[[No.|PC Body Intro][$minimumSlaveAge = 18, $pedo_mode = 0]] //All slaves will be at least 18 years old, and slavery of children will be illegal in the Free Cities.//

Yes, I wish to see girls as young as <<textbox "$minimumSlaveAge" $minimumSlaveAge "PC Body Intro">> [[Continue|PC Body Intro][$pedo_mode = 0]]

[[I just want lots of lolis.|PC Body Intro][$minimumSlaveAge = 3, $pedo_mode = 1]] //Nearly all randomly generated slaves will be under the age of 18, although custom slaves and slaves related to specific events may be older.//

[[I wish to see them grow up and become fertile.|PC Body Intro][$minimumSlaveAge = 3, $pedo_mode = 0, $precociousPuberty = 1, $loliGrow = 0, $fertilityAge = 10, $potencyAge = 12, $seeAge = 1]] //Preset. Slaves' age will be random from minimal possible age. They can be made fertile younger than normal puberty age (10) in some cases, and grow up naturally.//


code:
:: SlaveOnSlaveFeedingWorkAround [nobr]

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

<<set $milkTap = 0, _descM = "milk", _descC = "cum", _eligibilityMilk2 = 0, _eligibilityMilk4 = 0, _eligibilityMilk8 = 0, _eligibilityCum2 = 0, _eligibilityCum4 = 0, _eligibilityCum8 = 0>>

<<for _i = 0; _i < $slaves.length; _i++>> /* milk output */
<<if $slaves[_i].lactation > 0>>
	<<set $slaves[_i].milkOutput = 0>>
	<<set _milk = milkAmount($slaves[_i])>>
	<<set _milk = (_milk/14)>>
	<<set _milk = Math.trunc(_milk)>>
	<<set $slaves[_i].milkOutput = _milk>>
<<else>>
	<<set _milk = 0>>
	<<set $slaves[_i].milkOutput = 0>>
<</if>>
<</for>>
<<for _i = 0; _i < $slaves.length; _i++>> /* cum output */
<<if $slaves[_i].balls > 0 && $slaves[_i].dick > 0 && $slaves[_i].chastityPenis != 1>>
	<<set $slaves[_i].cumOutput = 0>>
	<<set _cum = cumAmount($slaves[_i])>>
	<<set _cum = (_cum/7)>>
	<<set _cum = (_cum/10)>>
	<<set _cum = Math.trunc(_cum)>>
	<<set $slaves[_i].cumOutput = _cum>>
<<else>>
	<<set _cum = 0>>
	<<set $slaves[_i].cumOutput = 0>>
<</if>>
<</for>>

//$activeSlave.slaveName is prepped to drink $his fill; now you must select a slave capable of producing the required amount of milk or ejaculate.//

__Select an eligible slave to serve as the tap:__

__Milk Slaves__

__2 Liters__

<<for _i = 0; _i < $slaves.length; _i++>>
	<<if $slaves[_i].milkOutput >= 2>>
		<<if ($slaves[_i].ID != $activeSlave.ID) && $slaves[_i].nipples != "fuckable">>
			<<set _name = SlaveFullName($slaves[_i])>>
			<<print "[[_name|FSlaveFeed][$milkTap = $slaves[" + _i + "], $activeSlave.inflation = 1, $activeSlave.inflationType = _descM, $activeSlave.inflationMethod = 3]]">>
			<<if relativeTerm($activeSlave, $slaves[_i]) != "some unknown blood connection">>
				<<print relativeTerm($activeSlave, $slaves[_i])>>
			<</if>>
			<<if $slaves[_i].relationshipTarget == $activeSlave.ID>>
				<<switch $slaves[_i].relationship>>
					<<case 1>>
						friends
					<<case 2>>
						best friends
					<<case 3>>
						friends with benefits
					<<case 4>>
						lover
					<<case 5>>
						slave wife
				<</switch>>
			<</if>>
			<<if $slaves[_i].rivalryTarget == $activeSlave.ID>>
				<<switch $slaves[_i].relationship>>
					<<case 1>>
						dislikes
					<<case 2>>
						rival
					<<case 3>>
						bitterly hates
				<</switch>>
			<</if>>
			<<set _eligibilityMilk2 = 1>>

		<</if>>
	<</if>>
<</for>>
<<if (_eligibilityMilk2 == 0)>>
	//You have no slaves capable of producing two liters of milk.//
<</if>>

__4 Liters__

<<if $activeSlave.pregKnown == 0>>
	<<for _i = 0; _i < $slaves.length; _i++>>
		<<if $slaves[_i].milkOutput >= 4>>
			<<if ($slaves[_i].ID != $activeSlave.ID) && $slaves[_i].nipples != "fuckable">>
				<<set _name = SlaveFullName($slaves[_i])>>
				<<print "[[_name|FSlaveFeed][$milkTap = $slaves[" + _i + "], $activeSlave.inflation = 2, $activeSlave.inflationType = _descM, $activeSlave.inflationMethod = 3]]">>
				<<if relativeTerm($activeSlave, $slaves[_i]) != "some unknown blood connection">>
					<<print relativeTerm($activeSlave, $slaves[_i])>>
				<</if>>
				<<if $slaves[_i].relationshipTarget == $activeSlave.ID>>
					<<switch $slaves[_i].relationship>>
						<<case 1>>
							friends
						<<case 2>>
							best friends
						<<case 3>>
							friends with benefits
						<<case 4>>
							lover
						<<case 5>>
							slave wife
						<</switch>>
				<</if>>
				<<if $slaves[_i].rivalryTarget == $activeSlave.ID>>
					<<switch $slaves[_i].relationship>>
						<<case 1>>
							dislikes
						<<case 2>>
							rival
						<<case 3>>
							bitterly hates
					<</switch>>
				<</if>>
				<<set _eligibilityMilk4 = 1>>

			<</if>>
		<</if>>
	<</for>>
	<<if (_eligibilityMilk4 == 0)>>
		//You have no slaves capable of producing four liters of milk.//
	<</if>>

	__8 Liters__

	<<for _i = 0; _i < $slaves.length; _i++>>
		<<if $slaves[_i].milkOutput >= 8>>
			<<if ($slaves[_i].ID != $activeSlave.ID) && $slaves[_i].nipples != "fuckable">>
				<<set _name = SlaveFullName($slaves[_i])>>
				<<print "[[_name|FSlaveFeed][$milkTap = $slaves[" + _i + "], $activeSlave.inflation = 3, $activeSlave.inflationType = _descM, $activeSlave.inflationMethod = 3]]">>
				<<if relativeTerm($activeSlave, $slaves[_i]) != "some unknown blood connection">>
					<<print relativeTerm($activeSlave, $slaves[_i])>>
				<</if>>
				<<if $slaves[_i].relationshipTarget == $activeSlave.ID>>
					<<switch $slaves[_i].relationship>>
						<<case 1>>
							friends
						<<case 2>>
							best friends
						<<case 3>>
							friends with benefits
						<<case 4>>
							lover
						<<case 5>>
							slave wife
						<</switch>>
				<</if>>
				<<if $slaves[_i].rivalryTarget == $activeSlave.ID>>
					<<switch $slaves[_i].relationship>>
						<<case 1>>
							dislikes
						<<case 2>>
							rival
						<<case 3>>
							bitterly hates
					<</switch>>
				<</if>>
				<<set _eligibilityMilk8 = 1>>

			<</if>>
		<</if>>
	<</for>>
	<<if (_eligibilityMilk8 == 0)>>
		//You have no slaves capable of producing eight liters of milk.//
	<</if>>
<<else>>
	Due to $his pregnancy, $he is incapable of keeping down more than two liters of milk.
<</if>>

__Cum Slaves__

__2 Liters__

<<for _i = 0; _i < $slaves.length; _i++>>
	<<if $slaves[_i].cumOutput >= 2>>
		<<if ($slaves[_i].ID != $activeSlave.ID)>>
			<<set _name = SlaveFullName($slaves[_i])>>
			<<print "[[_name|FSlaveFeed][$milkTap = $slaves[" + _i + "], $activeSlave.inflation = 1, $activeSlave.inflationType = _descC, $activeSlave.inflationMethod = 3]]">>
			<<set _eligibilityCum2 = 1>>

		<</if>>
	<</if>>
<</for>>
<<if (_eligibilityCum2 == 0)>>
	//You have no slaves capable of producing two liters of cum.//
<</if>>

__4 Liters__

<<if $activeSlave.pregKnown == 0>>
	<<for _i = 0; _i < $slaves.length; _i++>>
		<<if $slaves[_i].cumOutput >= 4>>
			<<if ($slaves[_i].ID != $activeSlave.ID)>>
				<<set _name = SlaveFullName($slaves[_i])>>
				<<print "[[_name|FSlaveFeed][$milkTap = $slaves[" + _i + "], $activeSlave.inflation = 2, $activeSlave.inflationType = _descC, $activeSlave.inflationMethod = 3]]">>
				<<set _eligibilityCum4 = 1>>

			<</if>>
		<</if>>
	<</for>>
	<<if (_eligibilityCum4 == 0)>>
		//You have no slaves capable of producing four liters of cum.//
	<</if>>

	__8 Liters__

	<<for _i = 0; _i < $slaves.length; _i++>>
		<<if $slaves[_i].cumOutput >= 8>>
			<<if ($slaves[_i].ID != $activeSlave.ID)>>
				<<set _name = SlaveFullName($slaves[_i])>>
				<<print "[[_name.slaveName|FSlaveFeed][$milkTap = $slaves[" + _i + "], $activeSlave.inflation = 3, $activeSlave.inflationType = _descC, $activeSlave.inflationMethod = 3]]">>
				<<set _eligibilityCum8 = 1>>

			<</if>>
		<</if>>
	<</for>>
	<<if (_eligibilityCum8 == 0)>>
		//You have no slaves capable of producing eight liters of cum.//
	<</if>>
<<else>>
	Due to $his pregnancy, $he is incapable of keeping down more than two liters of cum.
<</if>>


code:
:: Slave Slave Swap [nobr]

<<set $nextButton = "Continue">>
<<set _ss1 = $slaveIndices[$activeSlave.ID]>>
<<set _ss1Clone = clone($activeSlave)>>
<<set _ss2 = $slaveIndices[$swappingSlave.ID]>>
<<set _ss2Clone = clone($swappingSlave)>>
<<set _gps1 = $genePool.findIndex(function(s) { return s.ID == $slaves[_ss1].ID; })>>
<<set _gps1Clone = clone($genePool[_gps1])>>
<<set _gps2 = $genePool.findIndex(function(s) { return s.ID == $slaves[_ss2].ID; })>>
<<set _gps2Clone = clone($genePool[_gps2])>>

<<run clearSummaryCache($slaves[_ss1])>>
<<run clearSummaryCache($slaves[_ss2])>>

You strap $activeSlave.slaveName and $swappingSlave.slaveName into the remote surgery and stand back as it goes to work.
<<BodySwap $slaves[_ss1] _ss2Clone>>
<<BodySwap $genePool[_gps1] _gps2Clone 1>> /* passing a third argument just to detect if it's a slave from the genepool */
<<BodySwap $slaves[_ss2] _ss1Clone>>
<<BodySwap $genePool[_gps2] _gps1Clone 1>> /* passing a third argument just to detect if it's a slave from the genepool */

After an honestly impressive procedure, $slaves[_ss1].slaveName is recovering nicely.

<<BodySwapReaction $slaves[_ss1] _ss1Clone>>

In the neighboring bed, $slaves[_ss2].slaveName rests peacefully.

<<BodySwapReaction $slaves[_ss2] _ss2Clone>>

/* figuring out whom has whose body now*/

<<if $slaves[_ss1].bodySwap == 0>>
	<<set $slaves[_ss1].origBodyOwnerID = _ss2Clone.ID>>
<<elseif $slaves[_ss2].origBodyOwner !== "">> /* now who's going to be looking for you? */
	<<set _myBody = $slaves.findIndex(function(s) { return s.origBodyOwnerID == $slaves[_ss2].ID; })>>
	<<if _myBody != -1>>
		<<set $slaves[_myBody].origBodyOwnerID = $slaves[_ss1].ID>>
	<</if>>
<</if>>

<<if $slaves[_ss2].bodySwap == 0>>
	<<set $slaves[_ss2].origBodyOwnerID = _ss1Clone.ID>>
<<elseif $slaves[_ss1].origBodyOwner !== "">> /* now who's going to be looking for you? */
	<<set _myBody = $slaves.findIndex(function(s) { return s.origBodyOwnerID == $slaves[_ss1].ID; })>>
	<<if _myBody != -1>>
		<<set $slaves[_myBody].origBodyOwnerID = $slaves[_ss2].ID>>
	<</if>>
<</if>>

/* now to handle whose body it is, name-wise */

<<BodySwapName $slaves[_ss1] $slaves[_ss2]>>
<<BodySwapName $slaves[_ss2] $slaves[_ss1]>>

<<if _ss1Clone.bodySwap > 0>>
	<<if $slaves[_ss1].origBodyOwnerID == $slaves[_ss1].ID>>
		<<set $slaves[_ss1].bodySwap = 0>>
		<<set $slaves[_ss1].origBodyOwnerID = 0>>
		<<set $slaves[_ss1].origBodyOwner = "">>
	<<else>>
		<<set $slaves[_ss1].bodySwap++>>
	<</if>>
<<else>>
	<<set $slaves[_ss1].bodySwap++>>
<</if>>

<<if $slaves[_ss2].bodySwap > 0>>
	<<if $slaves[_ss2].origBodyOwnerID == $slaves[_ss2].ID>>
		<<set $slaves[_ss2].bodySwap = 0>>
		<<set $slaves[_ss2].origBodyOwnerID = 0>>
		<<set $slaves[_ss2].origBodyOwner = "">>
	<<else>>
		<<set $slaves[_ss2].bodySwap++>>
	<</if>>
<<else>>
	<<set $slaves[_ss2].bodySwap++>>
<</if>>

<<set $activeSlave = 0, $swappingSlave = 0>>


code:
:: Slave Slave Swap Workaround [nobr]

<<set $nextButton = "Abort Operation", $nextLink = "Main">>
<<set $slaves[$slaveIndices[$activeSlave.ID]] = $activeSlave>>

The surgeon awaits the pair of slaves to be strapped into the surgery. So far only $activeSlave.slaveName is prepped:

//Select the slave who will be trading bodies with $him. This operation will cost <<print cashFormat(10000)>>.//

__Select an eligible slave:__
<<for _i = 0; _i < $slaves.length; _i++>>
	<<capture _i>>
		<<if isSlaveAvailable($slaves[_i])>>
			<<if $slaves[_i].fuckdoll == 0>>
				<<if ($slaves[_i].ID != $activeSlave.ID)>>
					<<set _name = SlaveFullName($slaves[_i])>>

[[_name|Slave Slave Swap][$swappingSlave = $slaves[_i], cashX(-10000, "slaveSurgery", $slaves[_i])]]
				<</if>>
			<</if>>
		<</if>>
	<</capture>>
<</for>>


code:
:: Surrogacy [nobr]

<<set $nextButton = "Continue">>

<<switch $surgeryType>>

<<case "surrogacy">>

	<<if $receptrix.ID == -1>>
		Since the surgery required only a local anesthetic, you remain fully aware of the procedure as the autosurgery carries it out. You slowly rise to your feet, a hand to your lower belly, appreciating the new life growing within you.
		<<set $PC.pregKnown = 1>>
		<<run WombSurrogate($PC, 1, $donatrix, $impregnatrix.ID, 1)>>
		<<run WombNormalizePreg($PC)>>
	<<else>>
		<<set $receptrix.pregKnown = 1>>
		<<run WombSurrogate($receptrix, 1, $donatrix, $impregnatrix.ID, 1)>>
		<<run WombNormalizePreg($receptrix)>>
		<<setLocalPronouns $receptrix>>
		<<if $receptrix.fetish == "mindbroken">>
			$receptrix.slaveName leaves the surgery with a certain warmth in $his lower abdomen, $he knows that $he has been impregnated.
		<<elseif ($receptrix.fetish == "pregnancy") && ($receptrix.fetishStrength > 60) && ($receptrix.fetishKnown == 1)>>
			<<if canSee($receptrix)>>
				Since the surgery required only a local anesthetic, $receptrix.slaveName remained fully aware throughout the procedure. $He was overjoyed at the sight of the syringe containing $his future child emptying into $his womb.
			<<else>>
				$receptrix.slaveName leaves the surgery with a certain warmth in $his lower abdomen, $he knows that $he has been impregnated.
			<</if>>
			$He is @@.hotpink; filled with joy@@ over the life settling into $his womb and can't wait to see the result. $He's so pleased that $he now @@.mediumaquamarine;trusts@@ your plans for $his body.
			<<set $receptrix.trust += 4, $receptrix.devotion += 10>>
		<<elseif ($receptrix.devotion > 50)>>
			<<if canSee($receptrix)>>
				Since the surgery required only a local anesthetic, $receptrix.slaveName remained fully aware throughout the procedure. $He watched the syringe containing $his new pregnancy empty into $his womb with rapt attention.
			<<else>>
				$receptrix.slaveName leaves the surgery with a certain warmth in $his lower abdomen, $he knows that $he has been impregnated.
			<</if>>
			$He's @@.hotpink;grateful@@ that you think $him worthy of carrying this child, and a little nervous about how $he'll perform as a surrogate.
			<<set $receptrix.devotion += 4>>
		<<elseif ($receptrix.devotion >= -20)>>
			<<if canSee($receptrix)>>
				Since the surgery required only a local anesthetic, $receptrix.slaveName remained fully aware throughout the procedure. From the syringe making contact with $his skin, to the egg's delivery into $his womb and $his subsequent impregnation, $he couldn't look away.
			<<else>>
				$receptrix.slaveName leaves the surgery with a certain warmth in $his lower abdomen, $he knows that $he has been impregnated.
			<</if>>
			$He understands the realities of $his life as a slave, so it isn't much of a shock. $He is @@.gold;sensibly fearful@@ of your total power over $his body.
			<<set $receptrix.trust -= 10>>
		<<else>>
			<<if canSee($receptrix)>>
				Since the surgery required only a local anesthetic, $receptrix.slaveName remained fully aware throughout the procedure. The moment $he realized what was happening, $he shut $his eyes tight, only opening them again as $he feels the slight tingle of the injector exiting $his lower abdomen.
			<<else>>
				$receptrix.slaveName leaves the surgery with a certain warmth in $his lower abdomen, $he knows that $he has been impregnated.
			<</if>>
			$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 have forced $him to bear this child, even more so as $he realizes $he doesn't know who the father is. $He is @@.gold;sensibly fearful@@ of your total power over $his body and the future of the life $he now harbors within $him.
			<<set $receptrix.trust -= 15, $receptrix.devotion -= 15>>
		<</if>>
		<<set _surr = $slaves.findIndex(function(s) { return s.ID == $receptrix.ID; })>>
		<<set $slaves[_surr] = $receptrix>>
	<</if>>
	<<set $receptrix = 0, $impregnatrix = 0, $donatrix = 0>>

<<case "transplant">>

	<<if $receptrix.ID == -1>>
		Since the surgery required only a local anesthetic, you are very aware that you are now carrying $activeSlave.slaveName's child. You slowly rise to your feet, a hand to your lower belly, appreciating the new life growing within you.
		<<set _fetus = WombRemoveFetus($activeSlave, $wombIndex)>>
		<<run WombAddFetus($PC, _fetus)>>
		<<set $PC.pregKnown = 1, $PC.preg = WombMaxPreg($PC), $activeSlave.preg = WombMaxPreg($activeSlave)>>
		<<run WombNormalizePreg($PC)>>
		<<run WombNormalizePreg($activeSlave)>>
	<<else>>
		<<set _fetus = WombRemoveFetus($donatrix, $wombIndex)>>
		<<run WombAddFetus($receptrix, _fetus)>>
		<<set $receptrix.pregKnown = 1, $receptrix.preg = WombMaxPreg($receptrix), $donatrix.preg = WombMaxPreg($donatrix)>>
		<<run WombNormalizePreg($receptrix)>>
		<<run WombNormalizePreg($donatrix)>>
		<<if $donatrix.ID == -1>>
			<<set $PC = $donatrix>>
		<<else>>
			<<set _surr = $slaves.findIndex(function(s) { return s.ID == $donatrix.ID; })>>
			<<set $activeSlave = $donatrix>>
		<</if>>
		<<setLocalPronouns $receptrix>>
		<<if $receptrix.fetish == "mindbroken">>
			$receptrix.slaveName leaves the surgery with a certain warmth in $his lower abdomen, $he knows that $he has been impregnated.
		<<elseif ($receptrix.fetish == "pregnancy") && ($receptrix.fetishStrength > 60) && ($receptrix.fetishKnown == 1)>>
			<<if canSee($receptrix)>>
				Since the surgery required only a local anesthetic, $receptrix.slaveName remained fully aware throughout the procedure. $He was overjoyed at the sight of the syringe containing $his future child emptying into $his womb.
			<<else>>
				$receptrix.slaveName leaves the surgery with a certain warmth in $his lower abdomen, $he knows that $he has been impregnated.
			<</if>>
			$He is @@.hotpink; filled with joy@@ over the life resettling into $his womb and can't wait to see the result. $He's so pleased that $he now @@.mediumaquamarine;trusts@@ your plans for $his body.
			<<set $receptrix.trust += 4, $receptrix.devotion += 10>>
		<<elseif ($receptrix.devotion > 50)>>
			<<if canSee($receptrix)>>
				Since the surgery required only a local anesthetic, $receptrix.slaveName remained fully aware throughout the procedure. $He watched the syringe containing $his new pregnancy empty into $his womb with rapt attention.
			<<else>>
				$receptrix.slaveName leaves the surgery with a certain warmth in $his lower abdomen, $he knows that $he has been impregnated.
			<</if>>
			$He's @@.hotpink;grateful@@ that you think $him worthy of carrying this child in <<if $donatrix.ID == -1>>your stead<<else>>lieu of $donatrix.slaveName<</if>>, and a little nervous about how $he'll perform as a surrogate.
			<<set $receptrix.devotion += 4>>
		<<elseif ($receptrix.devotion >= -20)>>
			<<if canSee($receptrix)>>
				Since the surgery required only a local anesthetic, $receptrix.slaveName remained fully aware throughout the procedure. From the syringe making contact with $his skin, to the egg's delivery into $his womb and $his subsequent impregnation, $he couldn't look away.
			<<else>>
				$receptrix.slaveName leaves the surgery with a certain warmth in $his lower abdomen, $he knows that $he has been impregnated.
			<</if>>
			$He understands the realities of $his life as a slave, so it isn't much of a shock. $He is @@.gold;sensibly fearful@@ of your total power over $his body and how you are forcing <<if $donatrix.ID == -1>>your pregnancy upon $him<<else>>$him to carry what should have been $donatrix.slaveName's burden<</if>>.
			<<set $receptrix.trust -= 10>>
		<<else>>
			<<if canSee($receptrix)>>
				Since the surgery required only a local anesthetic, $receptrix.slaveName remained fully aware throughout the procedure. The moment $he realized what was happening, $he shut $his eyes tight, only opening them again as $he feels the slight tingle of the injector exiting $his lower abdomen.
			<<else>>
				$receptrix.slaveName leaves the surgery with a certain warmth in $his lower abdomen, $he knows that $he has been impregnated.
			<</if>>
			$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 have forced $him to <<if $donatrix.ID == -1>>carry your child instead of doing so yourself<<else>>bear this child in lieu of $donatrix.slaveName<</if>>. $He is @@.gold;sensibly fearful@@ of your total power over $his body and who else's troubles may be levied upon $him.
			<<set $receptrix.trust -= 15, $receptrix.devotion -= 15>>
		<</if>>
		<<set _surr = $slaves.findIndex(function(s) { return s.ID == $receptrix.ID; })>>
		<<set $slaves[_surr] = $receptrix>>
	<</if>>
	<<set $receptrix = 0, $donatrix = 0, $wombIndex = 0>>

<<case "clone">>

	<<if $receptrix.ID == -1>>
		Since the surgery required only a local anesthetic, you remain fully aware of the procedure as the autosurgery carries it out. You slowly rise to your feet, a hand to your lower belly, appreciating the clone growing within you.
		<<set $PC.pregKnown = 1>>
		<<if $donatrix.ID != -1>>
			<<set _babyDaddy = $genePool.find(function(s) { return s.ID == $donatrix.ID; })>>
			<<if ndef _babyDaddy>>
				<<set _babyDaddy = $slaveIndices[$donatrix.ID]>>
			<</if>>
			<<run WombImpregnateClone($PC, 1, $donatrix, _babyDaddy, 1)>>
		<<else>>
			<<set _babyDaddy = $PC>>
			<<run WombImpregnateClone($PC, 1, $PC, _babyDaddy, 1)>>
		<</if>>
		<<run WombNormalizePreg($PC)>>
	<<else>>
		<<set $receptrix.pregKnown = 1>>
		<<if $donatrix.ID != -1>>
			<<set _babyDaddy = $genePool.find(function(s) { return s.ID == $donatrix.ID; })>>
			<<if ndef _babyDaddy>>
				<<set _babyDaddy = $slaveIndices[$donatrix.ID]>>
			<</if>>
			<<run WombImpregnateClone($receptrix, 1, $donatrix, _babyDaddy, 1)>>
		<<else>>
			<<set _babyDaddy = $PC>>
			<<run WombImpregnateClone($receptrix, 1, $PC, _babyDaddy, 1)>>
		<</if>>
		<<run WombNormalizePreg($receptrix)>>
		<<setLocalPronouns $receptrix>>
		<<if $receptrix.fetish == "mindbroken">>
			$receptrix.slaveName leaves the surgery with a certain warmth in $his lower abdomen,
			<<if $receptrix.ID == $donatrix.ID>>
				but has no idea $he carries $his own clone.
			<<else>>
				$he knows that $he has been impregnated.
			<</if>>
		<<elseif ($receptrix.fetish == "pregnancy") && ($receptrix.fetishStrength > 60) && ($receptrix.fetishKnown == 1)>>
			<<if canSee($receptrix)>>
				Since the surgery required only a local anesthetic, $receptrix.slaveName remained fully aware throughout the procedure. $He was overjoyed at the sight of the syringe containing $his <<if $receptrix.ID == $donatrix.ID>>clone<<else>>future child<</if>> emptying into $his womb.
			<<else>>
				$receptrix.slaveName leaves the surgery with a certain warmth in $his lower abdomen, $he knows that $he has been impregnated<<if $receptrix.ID == $donatrix.ID>>, but not that $he now bears $his own clone<</if>>.
			<</if>>
			$He is @@.hotpink; filled with joy@@ over the life settling into $his womb and can't wait to see the result. $He's so pleased that $he now @@.mediumaquamarine;trusts@@ your plans for $his body.
			<<set $receptrix.trust += 4, $receptrix.devotion += 10>>
		<<elseif ($receptrix.devotion > 50)>>
			<<if canSee($receptrix)>>
				Since the surgery required only a local anesthetic, $receptrix.slaveName remained fully aware throughout the procedure. $He watched the syringe containing $his new pregnancy empty into $his womb with rapt attention.
			<<else>>
				$receptrix.slaveName leaves the surgery with a certain warmth in $his lower abdomen, $he knows that $he has been impregnated<<if $receptrix.ID == $donatrix.ID>>, but not that $he now bears $his own clone<</if>>.
			<</if>>
			$He's @@.hotpink;grateful@@ that you think $him worthy of carrying this child, and a little nervous about how $he'll perform as a surrogate.
			<<set $receptrix.devotion += 4>>
		<<elseif ($receptrix.devotion >= -20)>>
			<<if canSee($receptrix)>>
				Since the surgery required only a local anesthetic, $receptrix.slaveName remained fully aware throughout the procedure. From the syringe making contact with $his skin, to the egg's delivery into $his womb and $his subsequent impregnation, $he couldn't look away.
			<<else>>
				$receptrix.slaveName leaves the surgery with a certain warmth in $his lower abdomen, $he knows that $he has been impregnated<<if $receptrix.ID == $donatrix.ID>>, but not that $he now bears $his own clone<</if>>.
			<</if>>
			$He understands the realities of $his life as a slave, so it isn't much of a shock. $He is @@.gold;sensibly fearful@@ of your total power over $his body.
			<<set $receptrix.trust -= 10>>
		<<else>>
			<<if canSee($receptrix)>>
				Since the surgery required only a local anesthetic, $receptrix.slaveName remained fully aware throughout the procedure. The moment $he realized what was happening, $he shut $his eyes tight, only opening them again as $he feels the slight tingle of the injector exiting $his lower abdomen.
			<<else>>
				$receptrix.slaveName leaves the surgery with a certain warmth in $his lower abdomen, $he knows that $he has been impregnated.
			<</if>>
			$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 have forced $him to bear <<if $receptrix.ID == $donatrix.ID>>$his own clone and potential replacement<<else>>this child, even more so as $he realizes $he doesn't know who the father is<</if>>. $He is @@.gold;sensibly fearful@@ of your total power over $his body and the future of the life $he now harbors within $him.
			<<set $receptrix.trust -= 15, $receptrix.devotion -= 15>>
		<</if>>
		<<set _surr = $slaves.findIndex(function(s) { return s.ID == $receptrix.ID; })>>
		<<set $slaves[_surr] = $receptrix>>
	<</if>>
	<<if $donatrix.ID != -1 && $donatrix.ID != $receptrix.ID>>
		<<set _surr = $slaves.findIndex(function(s) { return s.ID == $donatrix.ID; })>>
		<<set $slaves[_surr] = $donatrix>>
	<</if>>
	<<set $receptrix = 0, $donatrix = 0>>

<</switch>>