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 $possessive filled abdominal implant, $pronoun can no longer fill herself as large as $pronoun 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>>
		$pronounCap makes sure to fill $possessive rear with nearly two gallons of water, leaving $object looking ready to burst, whenever $pronoun leaks or needs to release $possessive load. $pronounCap keeps herself @@.red;painfully full@@ for you.
		<<set $slaves[$i].health -= 10>>
	<<elseif $slaves[$i].inflation == 2>>
		$pronounCap makes sure to fill $possessive rear with nearly four liters of water, leaving $object looking pregnant, whenever $pronoun leaks or needs to release $possessive load. $pronounCap is full enough to be distended but not enough to grow taut.
	<<elseif $slaves[$i].inflation == 1>>
		$pronounCap makes sure to fill $possessive rear with nearly two liters of water, leaving $possessive belly noticeably distended, whenever $pronoun leaks or needs to release $possessive load. $pronounCap is full enough to be swollen but not enough to visibly jiggle.
	<</if>>

<<case "aphrodisiac">>
	<<if $slaves[$i].inflation == 3>>
		$pronounCap makes sure to fill $possessive rear with nearly two gallons of a curative solution, leaving $object looking ready to burst, whenever $pronoun leaks or $possessive body absorbs too much. $pronounCap keeps herself @@.red;painfully full@@ for you, though $pronoun barely notices it over $possessive horniness. While having $possessive body packed full of aphrodisiacs doesn't make $object additionally submissive, it does amplify the effects of them. $possessiveCap aphrodisiac bursting belly
		<<set $slaves[$i].health -= 10>>
	<<elseif $slaves[$i].inflation == 2>>
		$pronounCap makes sure to fill $possessive rear with nearly four liters of an aphrodisiac solution, leaving $object looking pregnant, whenever $pronoun leaks or $possessive body absorbs too much. $pronounCap is full enough to be distended but not enough to grow taut. While having $possessive body bloated with aphrodisiacs doesn't make $object additionally submissive, it does amplify the effects of them. $possessiveCap overfilled aphrodisiac belly
	<<elseif $slaves[$i].inflation == 1>>
		$pronounCap makes sure to fill $possessive rear with nearly two liters of an aphrodisiac solution, leaving $possessive belly noticeably distended, whenever $pronoun leaks or $possessive body absorbs too much. $pronounCap is full enough to be swollen but not enough to visibly jiggle. $possessiveCap aphrodisiac filled belly
	<</if>>
	<<if $slaves[$i].energy <= 95>>
		@@.green;rapidly boosts $possessive sex drive.@@
		<<set $slaves[$i].energy += 5*$slaves[$i].inflation>>
	<<else>>
		can't improve $possessive absurd sex drive.
	<</if>>
	<<if $slaves[$i].fuckdoll == 0 && $slaves[$i].fetish != "mindbroken">>
		Besides being humiliating, it chemically @@.hotpink;increases $possessive 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 $object from the negative effects of aphrodisiac withdrawal but do little to halt the spread of aphrodisiacs through $possessive system from $possessive bowels.
			<<set $slaves[$i].addict -= 2>>
		<</if>>
	<<elseif random(1,100) < 40+(20*$slaves[$i].inflation)>>
		All the aphrodisiacs held within $possessive bowels cause @@.cyan;$pronoun to become an aphrodisiac addict.@@
		<<set $slaves[$i].addict = 1>>
	<</if>>

<<case "curative">>
	<<if $slaves[$i].inflation == 3>>
		$pronounCap makes sure to fill $possessive rear with nearly two gallons of a curative solution, leaving $object looking ready to burst, whenever $pronoun leaks or $possessive body absorbs too much. $pronounCap keeps herself full for you; the curatives in $possessive gut keeping $object healthy despite the pain.
		<<if (($slaves[$i].assignment == "rest") || ($slaves[$i].assignment == "rest in the spa")) && ($slaves[$i].fetish != "mindbroken")>>
			The curative enema $pronoun's on synergize with rest, keeping $object asleep most of the time. This is an @@.green;extremely effective health treatment,@@ though being filled to $possessive limit doesn't hasten $possessive recovery at all; it's just perverted.
			<<set $slaves[$i].health += 4>>
		<<elseif ($slaves[$i].health < -20)>>
			@@.green;$possessiveCap poor health rapidly improves@@ under the curative enema, though being filled to $possessive limit doesn't hasten $possessive recovery at all; it's just perverted.
			<<set $slaves[$i].health += 2>>
		<<else>>
			@@.green;$possessiveCap health improves@@ under the curative enema, though being filled to $possessive limit doesn't hasten $possessive recovery at all; it's just perverted.
		<</if>>
		<<set $slaves[$i].health += 1>>
	<<elseif $slaves[$i].inflation == 2>>
		$pronounCap makes sure to fill $possessive rear with nearly four liters of a curative solution, leaving $object looking pregnant, whenever $pronoun leaks or $possessive body absorbs too much. $pronounCap 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 $pronoun's on synergize with rest, keeping $object asleep most of the time. This is an @@.green;extremely effective health treatment,@@ though being overfilled doesn't hasten $possessive recovery at all; it's just perverted.
			<<set $slaves[$i].health += 4>>
		<<elseif ($slaves[$i].health < -20)>>
			@@.green;$possessiveCap poor health rapidly improves@@ under the curative enema, though being overfilled doesn't hasten $possessive recovery at all; it's just perverted.
			<<set $slaves[$i].health += 2>>
		<<else>>
			@@.green;$possessiveCap health improves@@ under curative enema, though being overfilled doesn't hasten $possessive recovery at all; it's just perverted.
		<</if>>
		<<set $slaves[$i].health += 6>>
	<<elseif $slaves[$i].inflation == 1>>
		$pronounCap makes sure to fill $possessive rear with nearly two liters of a curative solution, leaving $possessive belly noticeably distended, whenever $pronoun leaks or $possessive body absorbs too much. $pronounCap 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 $pronoun's on synergize with rest, keeping $object asleep most of the time. This is an @@.green;extremely effective health treatment.@@
			<<set $slaves[$i].health += 4>>
		<<elseif ($slaves[$i].health < -20)>>
			@@.green;$possessiveCap poor health rapidly improves@@ under the curative enema.
			<<set $slaves[$i].health += 2>>
		<<else>>
			@@.green;$possessiveCap health improves@@ under curative enema.
		<</if>>
		<<set $slaves[$i].health += 6>>
	<</if>>
	<<if $slaves[$i].fuckdoll == 0 && $slaves[$i].fetish != "mindbroken">>
		$pronounCap @@.mediumaquamarine;trusts you more@@ for giving $possessive 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>>
		$pronounCap is as healthy as $object can be. @@.yellow;$possessiveCap 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>>
		$pronounCap makes sure to fill $possessive rear with nearly two gallons of tightening solution, leaving $object looking ready to burst, whenever $pronoun leaks or $possessive body absorbs too much. $pronounCap keeps herself @@.red;painfully full@@ for you.
		<<set $slaves[$i].health -= 10>>
		<<if $slaves[$i].anus > 1>>
			The solution slowly tightens $possessive anus while inside $possessive bowels. Being filled to $possessive 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;$possessive butthole has tightened nicely.@@
				<<set $slaves[$i].anus-->>
			<</if>>
		<<else>>
			$possessiveCap anus is as tight as the solution can possibly make it.
		<</if>>
		<<if $slaves[$i].vagina > 1>>
			As $possessive body slowly absorbs the solution, its benefits begin to affect $possessive pussy. Being filled to $possessive 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;$possessive vagina has regained some tightness.@@
				<<set $slaves[$i].vagina-->>
			<</if>>
		<<elseif $slaves[$i].vagina == 1>>
			$possessiveCap pussy is as tight as the solution can possibly make it.
		<</if>>
	<<elseif $slaves[$i].inflation == 2>>
		$pronounCap makes sure to fill $possessive rear with nearly four liters of tightening solution, leaving $object looking pregnant, whenever $pronoun leaks or $possessive body absorbs too much. $pronounCap is full enough to be distended but not enough to grow taut.
		<<if $slaves[$i].anus > 1>>
			The solution slowly tightens $possessive anus while inside $possessive 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;$possessive butthole has tightened nicely.@@
				<<set $slaves[$i].anus-->>
			<</if>>
		<<else>>
			$possessiveCap anus is as tight as the solution can possibly make it.
		<</if>>
		<<if $slaves[$i].vagina > 1>>
			As $possessive body slowly absorbs the solution, its benefits begin to affect $possessive 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;$possessive vagina has regained some tightness.@@
				<<set $slaves[$i].vagina-->>
			<</if>>
		<<elseif $slaves[$i].vagina == 1>>
			$possessiveCap pussy is as tight as the solution can possibly make it.
		<</if>>
	<<elseif $slaves[$i].inflation == 1>>
		$pronounCap makes sure to fill $possessive rear with nearly two liters of tightening solution, leaving $possessive belly noticeably distended, whenever $pronoun leaks or $possessive body absorbs too much. $pronounCap is full enough to be swollen but not enough to visibly jiggle.
		<<if $slaves[$i].anus > 1>>
			The solution slowly tightens $possessive anus while inside $possessive bowels.
			<<if random(1,100) > 60>>
				By week's end, @@.lime;$possessive butthole has tightened nicely.@@
				<<set $slaves[$i].anus-->>
			<</if>>
		<<else>>
			$possessiveCap anus is as tight as the solution can possibly make it.
		<</if>>
		<<if $slaves[$i].vagina > 1>>
			As $possessive body slowly absorbs the solution, its benefits begin to affect $possessive pussy.
			<<if random(1,100) > 80>>
				By week's end, @@.lime;$possessive vagina has regained some tightness.@@
				<<set $slaves[$i].vagina-->>
			<</if>>
		<<elseif $slaves[$i].vagina == 1>>
			$possessiveCap pussy is as tight as the solution can possibly make it.
		<</if>>
	<</if>>
	<<if $slaves[$i].anus <= 1 && $slaves[$i].vagina <= 1>>
		<<if ["serve in the club", "work in the brothel"].includes($slaves[$i].assignment)>>
			$possessiveCap 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 $possessive assignment, $pronoun is likely to be stretched out again so $possessive enema regimen continues.
		<<else>>
			$possessiveCap 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;$possessiveCap 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;$possessiveCap 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, $pronoun @@.mediumorchid;reluctantly@@ sucks from the dairy tap until $possessive stomach is @@.red;painfully bloated@@ with nearly two gallons of milk, leaving $object looking ready to burst. $pronounCap struggles to keep $possessive 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, $pronoun @@.mediumorchid;reluctantly@@ sucks from the dairy tap until $possessive stomach is bloated with nearly four liters of milk, leaving $object looking pregnant. $pronounCap struggles to keep $possessive 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, $pronoun @@.mediumorchid;reluctantly@@ sucks from the dairy tap until $possessive stomach is bloated with nearly two liters of milk, leaving $possessive belly noticeably distended. $pronounCap struggles to keep $possessive 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;$possessiveCap 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, $pronoun @@.mediumorchid;reluctantly@@ fills $possessive rectum from the dairy tap until $possessive stomach is @@.red;painfully bloated@@ with nearly two gallons of milk, leaving $object looking ready to burst. $pronounCap struggles to keep the fattening load inside $object, @@.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, $pronoun @@.mediumorchid;reluctantly@@ fills $possessive rectum from the dairy tap until $possessive stomach is bloated with nearly four liters of milk, leaving $object looking pregnant. $pronounCap struggles to keep the fattening load inside $object, @@.gold;fearing@@ punishment otherwise.
				<<set $slaves[$i].devotion -= 5,$slaves[$i].trust -= 5>>
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, $pronoun @@.mediumorchid;reluctantly@@ fills $possessive rectum from the dairy tap until $possessive stomach is bloated with nearly two liters of milk, leaving $possessive belly noticeably distended. $pronounCap struggles to keep the fattening load inside $object, @@.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;$possessiveCap 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, $pronoun @@.mediumorchid;reluctantly@@ suckles from $slaves[_saf].slaveName until $possessive stomach is @@.red;painfully bloated@@ with nearly two gallons of milk, leaving $object looking ready to burst. $pronounCap struggles to keep $possessive 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, $pronoun @@.mediumorchid;reluctantly@@ suckles from $slaves[_saf].slaveName until $possessive stomach is bloated with nearly four liters of milk, leaving $object looking pregnant. $pronounCap struggles to keep $possessive 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, $pronoun @@.mediumorchid;reluctantly@@ suckles from $slaves[_saf].slaveName until $possessive stomach is bloated with nearly two liters of milk, leaving $possessive belly noticeably distended. $pronounCap struggles to keep $possessive fatty, 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 || $dairy == 0) && $arcologies[0].FSPastoralistLaw != 1>>
				You no longer have a functional dairy. @@.yellow;$possessiveCap 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, $pronoun @@.hotpink;eagerly@@ sucks from the dairy tap until $possessive stomach is @@.red;painfully bloated@@ with nearly two gallons of milk, leaving $object looking ready to burst. $pronounCap rubs $possessive full belly @@.mediumaquamarine;contently@@, anticipating $possessive next gorging.
				<<set $slaves[$i].health -= 10, $slaves[$i].devotion += 5, $slaves[$i].trust += 5>>
			<<elseif $slaves[$i].inflation == 2>>
				Throughout the week, $pronoun @@.hotpink;eagerly@@ sucks from the dairy tap until $possessive stomach is bloated with nearly four liters of milk, leaving $object looking pregnant. $pronounCap rubs $possessive taut belly @@.mediumaquamarine;contently@@, anticipating $possessive next feeding.
				<<set $slaves[$i].devotion += 4, $slaves[$i].trust += 4>>
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, $pronoun @@.hotpink;eagerly@@ sucks from the dairy tap until $possessive stomach is bloated with nearly two liters of milk, leaving $possessive belly noticeably distended. $pronounCap rubs $possessive sloshing belly @@.mediumaquamarine;contently@@, anticipating $possessive 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;$possessiveCap 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, $pronoun @@.hotpink;happily@@ fills $possessive rectum from the dairy tap until $possessive stomach is @@.red;painfully bloated@@ with nearly two gallons of milk, leaving $object looking ready to burst. $pronounCap rubs $possessive taut belly @@.mediumaquamarine;contently@@, though $pronoun wishes $pronoun 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, $pronoun @@.hotpink;happily@@ fills $possessive rectum from the dairy tap until $possessive stomach is bloated with nearly four liters of milk, leaving $object looking pregnant. $pronounCap rubs $possessive full belly @@.mediumaquamarine;contently@@, though $pronoun wishes $pronoun could have swallowed it instead.
				<<set $slaves[$i].devotion += 3, $slaves[$i].trust += 3>>
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, $pronoun @@.hotpink;happily@@ fills $possessive rectum from the dairy tap until $possessive stomach is bloated with nearly two liters of milk, leaving $possessive belly noticeably distended. $pronounCap rubs $possessive sloshing belly @@.mediumaquamarine;contently@@, though $pronoun wishes $pronoun 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;$possessiveCap 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, $pronoun @@.hotpink;eagerly@@ sucks from $slaves[_saf].slaveName until $possessive stomach is @@.red;painfully bloated@@ with nearly two gallons of milk, leaving $object looking ready to burst. $pronounCap rubs $possessive full belly @@.mediumaquamarine;contently@@, anticipating $possessive next gorging.
				<<set $slaves[$i].health -= 10, $slaves[$i].devotion += 5, $slaves[$i].trust += 5>>
			<<elseif $slaves[$i].inflation == 2>>
				Throughout the week, $pronoun @@.hotpink;eagerly@@ sucks from $slaves[_saf].slaveName until $possessive stomach is bloated with nearly four liters of milk, leaving $object looking pregnant. $pronounCap rubs $possessive taut belly @@.mediumaquamarine;contently@@, anticipating $possessive next feeding.
				<<set $slaves[$i].devotion += 4, $slaves[$i].trust += 4>>
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, $pronoun @@.hotpink;eagerly@@ sucks from $slaves[_saf].slaveName until $possessive stomach is bloated with nearly two liters of milk, leaving $possessive belly noticeably distended. $pronounCap rubs $possessive sloshing belly @@.mediumaquamarine;contently@@, anticipating $possessive next meal.
				<<set $slaves[$i].devotion += 3, $slaves[$i].trust += 3>>
			<</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;$possessiveCap 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, $pronoun makes sure to keep herself filled with nearly two gallons of milk, leaving $object looking ready to burst. $pronounCap keeps herself @@.red;painfully full@@ for you.
				<<set $slaves[$i].health -= 10>>
			<<elseif $slaves[$i].inflation == 2>>
				Throughout the week, $pronoun makes sure to keep herself filled with nearly four liters of milk, leaving $object looking pregnant. $pronounCap is full enough to be distended but not enough to grow taut.
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, $pronoun makes sure to keep herself filled with nearly two liters of milk, leaving $possessive belly noticeably distended. $pronounCap 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;$possessiveCap 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, $pronoun makes sure to fill $possessive rear with nearly two gallons of milk, leaving $object looking ready to burst, whenever $pronoun leaks or needs to release $possessive load. $pronounCap keeps herself @@.red;painfully full@@ for you.
				<<set $slaves[$i].health -= 10>>
			<<elseif $slaves[$i].inflation == 2>>
				Throughout the week, $pronoun makes sure to fill $possessive rear with nearly four liters of milk, leaving $object looking pregnant, whenever $pronoun leaks or needs to release $possessive load. $pronounCap is full enough to be distended but not enough to grow taut.
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, $pronoun makes sure to fill $possessive rear with nearly two liters of milk, leaving $possessive belly noticeably distended, whenever $pronoun leaks or needs to release $possessive load. $pronounCap 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;$possessiveCap 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, $pronoun makes sure keep suckling from $slaves[_saf].slaveName until $pronoun is filled with nearly two gallons of milk, leaving $object looking ready to give birth. $pronounCap keeps herself @@.red;painfully full@@ for you.
				<<set $slaves[$i].health -= 10>>
			<<elseif $slaves[$i].inflation == 2>>
				Throughout the week, $pronoun makes sure keep suckling from $slaves[_saf].slaveName until $pronoun is filled with nearly four liters of milk, leaving $object looking pregnant. $pronounCap is full enough to be distended but not enough to grow taut.
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, $pronoun makes sure keep suckling from $slaves[_saf].slaveName until $pronoun is filled with nearly two liters of milk, leaving $possessive belly noticeably distended. $pronounCap is full enough to be swollen but not enough to visibly jiggle.
			<</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;$possessiveCap 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, $pronoun @@.mediumorchid;reluctantly@@ sucks from the dairy tap until $possessive stomach is @@.red;painfully bloated@@ with nearly two gallons of cum, leaving $object looking ready to burst. $pronounCap struggles to keep $possessive 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, $pronoun @@.mediumorchid;reluctantly@@ sucks from the dairy tap until $possessive stomach is bloated with nearly four liters of cum, leaving $object looking pregnant. $pronounCap struggles to keep $possessive liquid meal down, @@.gold;fearing@@ punishment otherwise.
				<<set $slaves[$i].devotion -= 5, $slaves[$i].trust -= 5>>
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, $pronoun @@.mediumorchid;reluctantly@@ sucks from the dairy tap until $possessive stomach is bloated with nearly two liters of cum, leaving $possessive belly noticeably distended. $pronounCap struggles to keep $possessive 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;$possessiveCap 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, $pronoun @@.mediumorchid;reluctantly@@ fills $possessive rectum from the dairy tap until $possessive stomach is @@.red;painfully bloated@@ with nearly two gallons of cum, leaving $object looking ready to burst. $pronounCap struggles to keep the massive cumshot inside $object, @@.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, $pronoun @@.mediumorchid;reluctantly@@ fills $possessive rectum from the dairy tap until $possessive stomach is bloated with nearly four liters of cum, leaving $object looking pregnant. $pronounCap struggles to keep the huge cumshot inside $object, @@.gold;fearing@@ punishment otherwise.
				<<set $slaves[$i].devotion -= 5, $slaves[$i].trust -= 5>>
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, $pronoun @@.mediumorchid;reluctantly@@ fills $possessive rectum from the dairy tap until $possessive stomach is bloated with nearly two liters of cum, leaving $possessive belly noticeably distended. $pronounCap struggles to keep the cumshot inside $object, @@.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;$possessiveCap 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, $pronoun @@.mediumorchid;reluctantly@@ sucks $slaves[_saf].slaveName's <<if $slaves[_saf].dick > 0>>cock<<else>>cum hole<</if>> until $possessive stomach is @@.red;painfully bloated@@ with nearly two gallons of cum, leaving $object looking ready to burst. $pronounCap struggles to keep $possessive 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, $pronoun @@.mediumorchid;reluctantly@@ sucks $slaves[_saf].slaveName's <<if $slaves[_saf].dick > 0>>cock<<else>>cum hole<</if>> until $possessive stomach is bloated with nearly four liters of cum, leaving $object looking pregnant. $pronounCap struggles to keep $possessive liquid meal down, @@.gold;fearing@@ punishment otherwise.
				<<set $slaves[$i].devotion -= 5, $slaves[$i].trust -= 5>>
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, $pronoun @@.mediumorchid;reluctantly@@ sucks $slaves[_saf].slaveName's <<if $slaves[_saf].dick > 0>>cock<<else>>cum hole<</if>> until $possessive stomach is bloated with nearly two liters of cum, leaving $possessive belly noticeably distended. $pronounCap struggles to keep $possessive 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;$possessiveCap 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, $pronoun @@.hotpink;eagerly@@ sucks from the dairy tap until $possessive stomach is @@.red;painfully bloated@@ with nearly two gallons of cum, leaving $object looking ready to burst. $pronounCap rubs $possessive full belly @@.mediumaquamarine;contently@@, anticipating $possessive next gorging.
				<<set $slaves[$i].health -= 10, $slaves[$i].devotion += 5, $slaves[$i].trust += 5>>
			<<elseif $slaves[$i].inflation == 2>>
				Throughout the week, $pronoun @@.hotpink;eagerly@@ sucks from the dairy tap until $possessive stomach is bloated with nearly four liters of cum, leaving $object looking pregnant. $pronounCap rubs $possessive taut belly @@.mediumaquamarine;contently@@, anticipating $possessive next feeding.
				<<set $slaves[$i].devotion += 4, $slaves[$i].trust += 4>>
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, $pronoun @@.hotpink;eagerly@@ sucks from the dairy tap until $possessive stomach is bloated with nearly two liters of cum, leaving $possessive belly noticeably distended. $pronounCap rubs $possessive sloshing belly @@.mediumaquamarine;contently@@, anticipating $possessive 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;$possessiveCap 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, $pronoun @@.hotpink;happily@@ fills $possessive rectum from the dairy tap until $possessive stomach is @@.red;painfully bloated@@ with nearly two gallons of cum, leaving $object looking ready to burst. $pronounCap rubs $possessive taut belly @@.mediumaquamarine;contently@@, though $pronoun wishes $pronoun 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, $pronoun @@.hotpink;happily@@ fills $possessive rectum from the dairy tap until $possessive stomach is bloated with nearly four liters of cum, leaving $object looking pregnant. $pronounCap rubs $possessive full belly @@.mediumaquamarine;contently@@, though $pronoun wishes $pronoun could have swallowed it instead.
				<<set $slaves[$i].devotion += 3, $slaves[$i].trust += 3>>
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, $pronoun @@.hotpink;happily@@ fills $possessive rectum from the dairy tap until $possessive stomach is bloated with nearly two liters of cum, leaving $possessive belly noticeably distended. $pronounCap rubs $possessive sloshing belly @@.mediumaquamarine;contently@@, though $pronoun wishes $pronoun 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;$possessiveCap 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, $pronoun @@.hotpink;eagerly@@ sucks $slaves[_saf].slaveName's <<if $slaves[_saf].dick > 0>>cock<<else>>cum hole<</if>> until $possessive stomach is @@.red;painfully bloated@@ with nearly two gallons of cum, leaving $object looking ready to burst. $pronounCap rubs $possessive full belly @@.mediumaquamarine;contently@@, anticipating $possessive next gorging.
				<<set $slaves[$i].health -= 10, $slaves[$i].devotion += 5, $slaves[$i].trust += 5>>
			<<elseif $slaves[$i].inflation == 2>>
				Throughout the week, $pronoun @@.hotpink;eagerly@@ sucks $slaves[_saf].slaveName's <<if $slaves[_saf].dick > 0>>cock<<else>>cum hole<</if>> until $possessive stomach is bloated with nearly four liters of cum, leaving $object looking pregnant. $pronounCap rubs $possessive taut belly @@.mediumaquamarine;contently@@, anticipating $possessive next feeding.
				<<set $slaves[$i].devotion += 4, $slaves[$i].trust += 4>>
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, $pronoun @@.hotpink;eagerly@@ sucks $slaves[_saf].slaveName's <<if $slaves[_saf].dick > 0>>cock<<else>>cum hole<</if>> until $possessive stomach is bloated with nearly two liters of cum, leaving $possessive belly noticeably distended. $pronounCap rubs $possessive sloshing belly @@.mediumaquamarine;contently@@, anticipating $possessive 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;$possessiveCap 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, $pronoun makes sure to keep herself filled with nearly two gallons of cum, leaving $object looking ready to burst. $pronounCap keeps herself @@.red;painfully full@@ for you.
				<<set $slaves[$i].health -= 10>>
			<<elseif $slaves[$i].inflation == 2>>
				Throughout the week, $pronoun makes sure to keep herself filled with nearly four liters of cum, leaving $object looking pregnant. $pronounCap is full enough to be distended but not enough to grow taut.
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, $pronoun makes sure to keep herself filled with nearly two liters of cum, leaving $possessive belly noticeably distended. $pronounCap 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;$possessiveCap 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, $pronoun makes sure to fill $possessive rear with nearly two gallons of cum, leaving $object looking ready to burst, whenever $pronoun leaks or needs to release $possessive load. $pronounCap keeps herself @@.red;painfully full@@ for you.
				<<set $slaves[$i].health -= 10>>
			<<elseif $slaves[$i].inflation == 2>>
				Throughout the week, $pronoun makes sure to fill $possessive rear with nearly four liters of cum, leaving $object looking pregnant, whenever $pronoun leaks or needs to release $possessive load. $pronounCap is full enough to be distended but not enough to grow taut.
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, $pronoun makes sure to fill $possessive rear with nearly two liters of cum, leaving $possessive belly noticeably distended, whenever $pronoun leaks or needs to release $possessive load. $pronounCap 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;$possessiveCap 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, $pronoun makes sure keep sucking $slaves[_saf].slaveName's <<if $slaves[_saf].dick > 0>>cock<<else>>cum hole<</if>> until $pronoun is filled with nearly two gallons of cum, leaving $object looking ready to burst. $pronounCap keeps herself @@.red;painfully full@@ for you.
				<<set $slaves[$i].health -= 10>>
			<<elseif $slaves[$i].inflation == 2>>
				Throughout the week, $pronoun makes sure keep sucking $slaves[_saf].slaveName's <<if $slaves[_saf].dick > 0>>cock<<else>>cum hole<</if>> until $pronoun is filled with nearly four liters of cum, leaving $object looking pregnant. $pronounCap is full enough to be distended but not enough to grow taut.
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, $pronoun makes sure keep sucking $slaves[_saf].slaveName's <<if $slaves[_saf].dick > 0>>cock<<else>>cum hole<</if>> until $pronoun is filled with nearly two liters of cum, leaving $possessive belly noticeably distended. $pronounCap 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, $pronoun focuses $possessive @@.mediumorchid;loathing@@ on you as $pronoun forces down servings of slave food until $possessive stomach is @@.red;painfully bloated@@ with nearly two gallons of the paste, leaving $object looking ready to burst. $pronounCap struggles to keep $possessive 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, $pronoun focuses $possessive @@.mediumorchid;loathing@@ on you as $pronoun forces down servings of slave food until $possessive stomach is bloated with nearly four liters of the paste, giving $object quite the food baby. $pronounCap struggles to keep $possessive meal down, @@.gold;fearing@@ punishment otherwise.
			<<set $slaves[$i].devotion -= 10, $slaves[$i].trust -= 10>>
		<<elseif $slaves[$i].inflation == 1>>
			Throughout the week, $pronoun focuses $possessive @@.mediumorchid;loathing@@ on you as $pronoun forces down servings of slave food until $possessive stomach is bloated with nearly two liters of the paste, leaving $possessive stomach obviously distended. $pronounCap struggles to keep $possessive 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, $pronoun @@.hotpink;eagerly@@ stuffs $possessive face with servings of slave food until $possessive stomach is @@.red;painfully bloated@@ with nearly two gallons of the paste, leaving $object looking ready to burst. $pronounCap rubs $possessive stuffed belly @@.mediumaquamarine;contently@@, anticipating $possessive next gorging.
			<<set $slaves[$i].health -= 10, $slaves[$i].devotion += 10, $slaves[$i].trust += 10>>
		<<elseif $slaves[$i].inflation == 2>>
			Throughout the week, $pronoun @@.hotpink;eagerly@@ stuffs $possessive face with servings of slave food until $possessive stomach is bloated with nearly four liters of the paste, giving $object quite the food baby. $pronounCap rubs $possessive taut belly @@.mediumaquamarine;contently@@, anticipating $possessive next meal.
			<<set $slaves[$i].devotion += 7, $slaves[$i].trust += 7>>
		<<elseif $slaves[$i].inflation == 1>>
			Throughout the week, $pronoun @@.hotpink;eagerly@@ stuffs $possessive face with servings of slave food until $possessive stomach is bloated with nearly two liters of the paste, leaving $possessive belly noticeably distended. $pronounCap rubs $possessive stuffed belly @@.mediumaquamarine;contently@@, anticipating $possessive next helping.
			<<set $slaves[$i].devotion += 5, $slaves[$i].trust += 5>>
		<</if>>
	<<else>>
		<<if $slaves[$i].inflation == 3>>
			Throughout the week, $pronoun makes sure to binge eat until $possessive gut is stuffed with nearly two gallons of slave food, leaving $object looking ready to burst. $pronounCap keeps herself @@.red;painfully full@@ for you.
			<<set $slaves[$i].health -= 10>>
		<<elseif $slaves[$i].inflation == 2>>
			Throughout the week, $pronoun makes sure to binge eat until $possessive gut is filled with nearly four liters of slave food, giving $object quite the food baby. $pronounCap is full enough to be distended but not enough to grow taut.
		<<elseif $slaves[$i].inflation == 1>>
			Throughout the week, $pronoun makes sure to binge eat until $pronoun's consumed nearly two liters of slave food, leaving $possessive belly noticeably distended. $pronounCap 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 $object 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 $pronoun 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>>
	$pronounCap vows to exercise more to deal with @@.mediumorchid;the bloated belly you forced on $object.@@ 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>>
	<<if $slaves[$i].weight < 200>>
		$possessiveCap body @@.lime;grows a little more padded@@ as it absorbs the milk contained in $possessive digestive track.
		<<set $slaves[$i].weight += 2>>
	<</if>>
	<<if random(1,100) > 50>>
	<<if $slaves[$i].boobs < 3000>>
		$possessiveCap breasts @@.lime;swell@@ with added fat as $pronoun digests the milk contained in $possessive digestive track.
		<<set $slaves[$i].boobs += 200>>
	<</if>>
	<<if $slaves[$i].butt < 7>>
		$possessiveCap butt @@.lime;swells@@ with added fat as $pronoun digests the milk contained in $possessive digestive track.
		<<set $slaves[$i].butt += 1>>
	<</if>>
	<</if>>
<<elseif $slaves[$i].inflationType == "food" && $slaves[$i].bellyFluid >= 1500>>
	<<if $slaves[$i].weight < 200>>
		$possessiveCap body @@.lime;rapidly gains weight@@ as it digests the food contained in $possessive digestive track.
		<<set $slaves[$i].weight += 4>>
	<</if>>
	<<if random(1,100) > 50 && $slaves[$i].boobs < 3000>>
		$possessiveCap breasts @@.lime;swell@@ with added fat as $pronoun digests the food contained in $possessive digestive track.
		<<set $slaves[$i].boobs += 200>>
	<</if>>
	<<if random(1,100) > 50 && $slaves[$i].butt < 7>>
		$possessiveCap butt @@.lime;swells@@ with added fat as $pronoun digests the food contained in $possessive digestive track.
		<<set $slaves[$i].butt += 1>>
	<</if>>
<</if>>


code:
:: SE Burst [nobr]

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

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

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

<<set $activeSlave = $slaves[_b]>>
<<include "Remove activeSlave">>

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

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

repo_name: drakeashordcataclysm/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>>
<<foreach _slave of _killedSlaves>>
	<<set $activeSlave = _slave>>
	<<include "Remove activeSlave">>
<</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. "<<if def $PC.customTitle>>$PC.customTitle<<elseif $PC.title != 0>>Sir<<else>>Ma'am<</if>>, 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 husk slave delivery [nobr]

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

<<set $activeSlaveOneTimeMinAge = $huskSlave.age>>
<<set $activeSlaveOneTimeMaxAge = $huskSlave.age>>
<<set $one_time_age_overrides_pedo_mode = 1>>
<<set $ageAdjustOverride = 1>>

<<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.race = $huskSlave.race>>
<<set $activeSlave.nationality = $huskSlave.nationality>>
<<set $activeSlave.origin = "You reserved a mindless slave like her from the Flesh Heap.">>
<<set $activeSlave.devotion = 0>>
<<set $activeSlave.trust = 0>>

<<if $activeSlave.race == "black">>
	<<set $activeSlave.skin = either("black", "brown", "dark brown")>>
	<<set $activeSlave.hColor = either("black", "black", "black", "brown")>>
	<<set $activeSlave.hStyle = either("shoulder-length", "short", "very short", "shaved bald", "crinkled")>>
<<elseif $activeSlave.race == "white">>
	<<set $activeSlave.skin = either("pale", "light", "fair")>>
	<<set $activeSlave.eyeColor = either("blue", "brown", "green")>>
	<<set $activeSlave.hColor = either("black", "blonde", "red", "brown")>>
	<<set $activeSlave.hStyle = either("ass-length", "long", "shoulder-length", "short", "very short", "shaved bald")>>
<<elseif $activeSlave.race == "latina">>
	<<set $activeSlave.skin = either("light olive", "brown", "dark brown", "tanned", "dark olive")>>
	<<set $activeSlave.hColor = either("black", "black", "brown", "brown")>>
	<<set $activeSlave.hStyle = either("ass-length", "long", "shoulder-length", "short", "very short", "shaved bald")>>
<<elseif $activeSlave.race == "asian">>
	<<set $activeSlave.skin = either("light", "dark olive", "light olive")>>
	<<set $activeSlave.hColor = either("black")>>
	<<set $activeSlave.hStyle = either("ass-length", "long", "shoulder-length", "short", "very short", "shaved bald")>>
<<elseif ($activeSlave.race == "indo-aryan") || ($activeSlave.race == "malay") || ($activeSlave.race == "pacific islander") || ($activeSlave.race == "amerindian")>>
	<<set $activeSlave.skin = either("pale", "dark", "light")>>
	<<set $activeSlave.hColor = either("black")>>
	<<set $activeSlave.hStyle = either("ass-length", "long", "shoulder-length", "short", "very short", "shaved bald")>>
<<elseif ($activeSlave.race == "middle eastern") || ($activeSlave.race == "semitic") || ($activeSlave.race == "southern european")>>
	<<set $activeSlave.skin = either("light olive", "tanned", "light", "dark olive")>>
	<<set $activeSlave.hColor = either("black")>>
	<<set $activeSlave.hStyle = either("ass-length", "long", "shoulder-length", "short", "very short", "shaved bald")>>
<</if>>

<<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 = -3>>
<<set $activeSlave.intelligenceImplant = 0>>
<<set $activeSlave.vaginalSkill = 0>>
<<set $activeSlave.oralSkill = 0>>
<<set $activeSlave.analSkill = 0>>
<<set $activeSlave.whoreSkill = 0>>
<<set $activeSlave.entertainSkill = 0>>
<<set $activeSlave.combatSkill = 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>>

A slave came in fitting the description you provided.

//As expected, she is a complete vegetable, but that is what you ordered after all. You lack the facilities to care for her in this state, so you should do what you are planning quickly. Or you could return her 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 her and thus must return her.//
<</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].dickAccessory != "chastity" || $slaves[_i].dickAccessory != "combined chastity")>>
	<<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 her 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">>
		<<print "[[$slaves[_i].slaveName|FSlaveFeed][$milkTap = $slaves[" + _i + "], $activeSlave.inflation = 1, $activeSlave.inflationType = _descM, $activeSlave.inflationMethod = 3]]">>
		<<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">>
			<<print "[[$slaves[_i].slaveName|FSlaveFeed][$milkTap = $slaves[" + _i + "], $activeSlave.inflation = 2, $activeSlave.inflationType = _descM, $activeSlave.inflationMethod = 3]]">>
			<<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">>
			<<print "[[$slaves[_i].slaveName|FSlaveFeed][$milkTap = $slaves[" + _i + "], $activeSlave.inflation = 3, $activeSlave.inflationType = _descM, $activeSlave.inflationMethod = 3]]">>
			<<set _eligibilityMilk8 = 1>>

			<</if>>
		<</if>>
	<</for>>
	<<if (_eligibilityMilk8 == 0)>>
		//You have no slaves capable of producing eight liters of milk.//
	<</if>>
<<else>>
	Due to her pregnancy, she is incapable of keep 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)>>
		<<print "[[$slaves[_i].slaveName|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)>>
			<<print "[[$slaves[_i].slaveName|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)>>
			<<print "[[$slaves[_i].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 her pregnancy, she is incapable of keep 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 1>> /* passing a third argument just to detect if it's a slave from the genepool */
<<BodySwap $genePool[_gps1] _gps2Clone>>
<<BodySwap $slaves[_ss2] _ss1Clone 1>> /* passing a third argument just to detect if it's a slave from the genepool */
<<BodySwap $genePool[_gps2] _gps1Clone>>

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 who's 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 who's 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 $object. This operation will cost <<print cashFormat(10000)>>.//

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

<<print "[[$slaves[_i].slaveName|Slave Slave Swap][$swappingSlave = $slaves[" + _i + "], $cash -= 10000]]">>
	<</if>>
	<</if>>
	<</if>>
<</for>>


code:
:: test genetics [nobr]

<<set $nextButton = "Back", $nextLink = "Main">>
<<set _seed = 0>>

All slave array slaves MUST be present in genePool or else there is a malfunction.

genePool

index	name	ID	origin

<<for _i = 0; _i < $genePool.length; _i++>>

		_i
		$genePool[_i].slaveName
		$genePool[_i].ID
		$genePool[_i].origin

<</for>>

<<set _neededProperties = ['genes', 'origSkin', 'origEye', 'origHColor', 'nationality', 'race', 'face', 'intelligence', 'underArmHStyle', 'pubicHStyle']>>

slaves

index	name	ID	origin	assignment

<<for _i = 0; _i < $slaves.length; _i++>>
	<<set _s = $slaves[_i]>>
	<<set _error = $genePool.every(function(g) { return $slaves[_i].ID !== g.ID; })>>
	<<if _error>><<set _errorCause = "Doesn't exist in the gene pool">><</if>>
	<<if !_error>>
		<<set _missingProperties = _neededProperties.filter(function(p) { return !(p in _s);})>>
		<<if _missingProperties.length > 0>>
			<<set _error = true, _errorCause = "Missing properties: " + _missingProperties.join(", ")>>
		<</if>>
	<</if>>
	<<if _error>>

			_i
			_s.slaveName
			_s.ID
			_s.origin
			_s.assignment
			_errorCause

	<<else>>

			_i
			_s.slaveName
			_s.ID
			_s.origin
			_s.assignment

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


code:
:: The Hippolyta Academy [nobr]

<<set $nextButton = "Back", $nextLink = "Buy Slaves", $returnTo = "Buy Slaves", $showEncyclopedia = 1, $encyclopedia = "Slave Schools">>
/* Multi-Purchase Support */
<<if ndef $newSlaves>><<set $newSlaves = []>><</if>>
<<if $newSlaves.length > 0>>
	<<set $nextButton = "Continue", $nextLink = "Bulk Slave Intro", $slaveMarket = "HA", $returnTo = "Main", $newSlaveIndex = 0>>
<</if>>

//
The Hippolyta Academy is one of the most famous slave bodyguarding schools in all free cities. Its business model is to offer very high quality, highly trained girls. Their renowned amazonian maids are some of the best combatants in the world and can be often found at the side of the wealthiest citizens.
<<if $HA.schoolUpgrade == 1>>
	Recently the school was able to enhance its educational programs thanks to your generous donation. Their slaves are now some of the most well trained and educated on the market.
<<elseif $HA.schoolUpgrade == 2>>
	Recently the school was able to improve its drug enhancement program thanks to your generous donation. Their slaves are now some of the most physically impressive specimen on the market.
<<elseif $HA.schoolUpgrade == 3>>
	Recently the school redirected its focus to better align with the strongfat ideal, as of your suggestion. Their slaves are physically impressive yet maintain a soft and feminine aspect.
<</if>>
//

The Hippolyta Academy offers a fresh graduate for inspection. The interview takes place in one of the many training areas of the school, where the physical prowess of the candidate can be easily showcased.

<<GenerateMarketSlave "HA">>
<<slaveCost $activeSlave>>
<<if $HA.schoolSale != 0>>
	<<set $slaveCost = Math.trunc($slaveCost*0.6)>>
<<elseif $HA.schoolUpgrade != 0>>
	<<set $slaveCost = Math.trunc($slaveCost*1.2)>>
<</if>>
<<if $slavesSeen > $slaveMarketLimit>><<set $slaveCost += Math.trunc($slaveCost*(($slavesSeen-$slaveMarketLimit)*0.1))>><</if>>

The price is <<print cashFormat($slaveCost)>>.<<if $slavesSeen > $slaveMarketLimit>> You have cast such a wide net for slaves this week that it is becoming more expensive to find more for sale. Your reputation helps determine your reach within the slave market.<</if>>

<<if $cash >= $slaveCost>>

[[Buy her and check out other slaves to order|The Hippolyta Academy][$cash -= $slaveCost, $HA.schoolSale = 0, $HA.studentsBought += 1, $newSlaves.push($activeSlave), $introType = "multi", $slavesSeen+=1]]
	<<if $newSlaves.length == 0>>

[[Buy her slave contract|New Slave Intro][$cash -= $slaveCost, $HA.schoolSale = 0, $HA.studentsBought += 1, $nextButton = "Continue", $nextLink = "AS Dump", $returnTo = "Main"]]
	<<else>>

[[Buy her and Finish your order of slaves|Bulk Slave Intro][$cash -= $slaveCost, $HA.schoolSale = 0, $HA.studentsBought += 1, $newSlaves.push($activeSlave)]]
	<</if>>
<<else>>
	//You lack the necessary funds to buy this slave.//
<</if>>

[[Decline to purchase her and check out another slave|The Hippolyta Academy][$slavesSeen += 1]]
<<if $newSlaves.length > 0>>

[[Finish your order of slaves|Bulk Slave Intro]]
<</if>>

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


code:
:: Wetware CPUs [nobr]

<<set $nextButton = "Back", $nextLink = "Buy Slaves", $returnTo = "Buy Slaves", $showEncyclopedia = 1, $encyclopedia = "Slave Schools">>
/* Multi-Purchase Support */
<<if ndef $newSlaves>><<set $newSlaves = []>><</if>>
<<if $newSlaves.length > 0>>
	<<set $nextButton = "Continue", $nextLink = "Bulk Slave Intro", $slaveMarket = "wetware", $returnTo = "Main", $newSlaveIndex = 0>>
<</if>>

//Wetware CPUs offer highly trained slaves with useful career experience at a discount; That is, at the cost of the physical health of the merchandise.//

<<GenerateMarketSlave "wetware">>
<<slaveCost $activeSlave>>
<<if $slavesSeen > $slaveMarketLimit>><<set $slaveCost += Math.trunc($slaveCost*(($slavesSeen-$slaveMarketLimit)*0.1))>><</if>>

The price is <<print cashFormat($slaveCost)>>.<<if $slavesSeen > $slaveMarketLimit>> You have cast such a wide net for slaves this week that it is becoming more expensive to find more for sale. Your reputation helps determine your reach within the slave market.<</if>>

<<if $cash >= $slaveCost>>

[[Buy her and check out other slaves to order|Wetware CPUs][$cash -= $slaveCost, $newSlaves.push($activeSlave), $introType = "multi", $slavesSeen+=1]]
	<<if $newSlaves.length == 0>>

[[Buy her slave contract|New Slave Intro][$cash -= $slaveCost, $nextButton = "Continue", $nextLink = "AS Dump", $returnTo = "Main"]]
	<<else>>

[[Buy her and Finish your order of slaves|Bulk Slave Intro][$cash -= $slaveCost, $newSlaves.push($activeSlave)]]
	<</if>>
<<else>>
	//You lack the necessary funds to buy this slave.//
<</if>>

[[Decline to purchase her and check out another slave|Wetware CPUs][$slavesSeen += 1]]
<<if $newSlaves.length > 0>>

[[Finish your order of slaves|Bulk Slave Intro]]
<</if>>

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


code:
:: assignment-filter widget [widget nobr]

/*
 * filters the list according to the selected Facility
 * function(y) is a loop through $slaves to set assignmentVisible to 1 and returns a new array
 * function(x) filters the slaves with the given condition ( here its the assignment )
 * so basically function(x) finds the slaves that are selected and function(y) sets them to be visible
*/

/*
 * These widgets set the visibilities for the different Facilities
*/

<<widget "resetAssignmentFilter">>
	<<set $slaves.map(function(y){y.assignmentVisible = 1})>><<set $slaves.filter(function(x){return x.assignment.includes("in the") || x.assignment.includes("be the") || x.assignment.includes("live with") || (x.assignment.includes("be your") && x.assignment != "be your Head Girl") || x.assignment == "work as a servant"}).map(function(y){y.assignmentVisible = 0})>>
<</widget>>

<<widget "showallAssignmentFilter">>
	<<set $slaves.map(function(y){y.assignmentVisible = 1})>><<set $slaves.filter(function(x){return x.assignment.includes("agent")}).map(function(y){y.assignmentVisible = 0})>>
<</widget>>

<<widget "arcadeAssignmentFilter">>
	<<set $slaves.map(function(y){y.assignmentVisible = 0})>><<set $slaves.filter(function(x){return x.assignment == "be confined in the arcade"}).map(function(y){y.assignmentVisible = 1})>>
<</widget>>

<<widget "brothelAssignmentFilter">>
	<<set $slaves.map(function(y){y.assignmentVisible = 0})>><<set $slaves.filter(function(x){return x.assignment == "work in the brothel" || x.assignment == "be the Madam"}).map(function(y){y.assignmentVisible = 1})>>
<</widget>>

<<widget "cellblockAssignmentFilter">>
	<<set $slaves.map(function(y){y.assignmentVisible = 0})>><<set $slaves.filter(function(x){return x.assignment == "be confined in the cellblock" || x.assignment == "be the Wardeness"}).map(function(y){y.assignmentVisible = 1})>>
<</widget>>

<<widget "clinicAssignmentFilter">>
	<<set $slaves.map(function(y){y.assignmentVisible = 0})>><<set $slaves.filter(function(x){return x.assignment == "get treatment in the clinic" || x.assignment == "be the Nurse"}).map(function(y){y.assignmentVisible = 1})>>
<</widget>>

<<widget "clubAssignmentFilter">>
	<<set $slaves.map(function(y){y.assignmentVisible = 0})>><<set $slaves.filter(function(x){return x.assignment == "serve in the club" || x.assignment == "be the DJ"}).map(function(y){y.assignmentVisible = 1})>>
<</widget>>

<<widget "dairyAssignmentFilter">>
	<<set $slaves.map(function(y){y.assignmentVisible = 0})>><<set $slaves.filter(function(x){return x.assignment == "work in the dairy" || x.assignment == "be the Milkmaid"}).map(function(y){y.assignmentVisible = 1})>>
<</widget>>

<<widget "headgirlSuiteAssignmentFilter">>
	<<set $slaves.map(function(y){y.assignmentVisible = 0})>><<set $slaves.filter(function(x){return x.assignment == "live with your Head Girl"}).map(function(y){y.assignmentVisible = 1})>>
<</widget>>

<<widget "penthouseAssignmentFilter">>
	<<set $slaves.map(function(y){y.assignmentVisible = 0})>><<set $slaves.filter(function(x){return x.assignment == "rest" || x.assignment == "be a subordinate slave" || x.assignment == "whore" || x.assignment == "serve the public" || x.assignment == "work a glory hole" || x.assignment == "get milked" || x.assignment == "be a servant" || x.assignment == "please you"|| x.assignment == "stay confined" || x.assignment == "take classes" || x.assignment == "choose her own job" || x.assignment == "live with your Head Girl"}).map(function(y){y.assignmentVisible = 1})>>
<</widget>>

<<widget "schoolAssignmentFilter">>
	<<set $slaves.map(function(y){y.assignmentVisible = 0})>><<set $slaves.filter(function(x){return x.assignment == "learn in the schoolroom" || x.assignment == "be the Schoolteacher"}).map(function(y){y.assignmentVisible = 1})>>
<</widget>>

<<widget "spaAssignmentFilter">>
	<<set $slaves.map(function(y){y.assignmentVisible = 0})>><<set $slaves.filter(function(x){return x.assignment == "rest in the spa" || x.assignment == "be the Attendant"}).map(function(y){y.assignmentVisible = 1})>>
<</widget>>

<<widget "suiteAssignmentFilter">>
	<<set $slaves.map(function(y){y.assignmentVisible = 0})>><<set $slaves.filter(function(x){return x.assignment == "serve in the master suite" || x.assignment == "be your Concubine"}).map(function(y){y.assignmentVisible = 1})>>
<</widget>>

<<widget "quartersAssignmentFilter">>
	<<set $slaves.map(function(y){y.assignmentVisible = 0})>><<set $slaves.filter(function(x){return x.assignment == "work as a servant" || x.assignment == "be the Stewardess"}).map(function(y){y.assignmentVisible = 1})>>
<</widget>>

/*
 * Checks from which Facility its get called and removes it from the list
 * this is the Main Filter widget used on all Passages atm
 * sets Flag = zero so slave summary provides send-to-facility links
*/
<<widget "assignmentFilter">>
	<<link All>><<showallAssignmentFilter>><<replace #ComingGoing>><<set $Flag = 0>><<include 'Slave Summary'>><<resetAssignmentFilter>><</replace>><</link>>
	<<if passage() != "Arcade">><<print " | ">><<link Arcade>><<arcadeAssignmentFilter>><<replace #ComingGoing>><<set $Flag = 0>><<include 'Slave Summary'>><<resetAssignmentFilter>><</replace>><</link>><</if>>
	<<if passage() != "Brothel">><<print " | ">><<link Brothel>><<brothelAssignmentFilter>><<replace #ComingGoing>><<set $Flag = 0>><<include 'Slave Summary'>><<resetAssignmentFilter>><</replace>><</link>><</if>>
	<<if passage() != "Cellblock">><<print " | ">><<link Cellblock>><<cellblockAssignmentFilter>><<replace #ComingGoing>><<set $Flag = 0>><<include 'Slave Summary'>><<resetAssignmentFilter>><</replace>><</link>><</if>>
	<<if passage() != "Clinic">><<print " | ">><<link Clinic>><<clinicAssignmentFilter>><<replace #ComingGoing>><<set $Flag = 0>><<include 'Slave Summary'>><<resetAssignmentFilter>><</replace>><</link>><</if>>
	<<if passage() != "Club">><<print " | ">><<link Club>><<clubAssignmentFilter>><<replace #ComingGoing>><<set $Flag = 0>><<include 'Slave Summary'>><<resetAssignmentFilter>><</replace>><</link>><</if>>
	<<if passage() != "Dairy">><<print " | ">><<link Dairy>><<dairyAssignmentFilter>><<replace #ComingGoing>><<set $Flag = 0>><<include 'Slave Summary'>><<resetAssignmentFilter>><</replace>><</link>><</if>>
	<<print " | ">><<link Penthouse>><<penthouseAssignmentFilter>><<replace #ComingGoing>><<include 'Slave Summary'>><<set $Flag = 0>><<resetAssignmentFilter>><</replace>><</link>>
	<<if passage() != "Schoolroom">><<print " | ">><<link Schoolroom>><<schoolAssignmentFilter>><<replace #ComingGoing>><<set $Flag = 0>><<include 'Slave Summary'>><<resetAssignmentFilter>><</replace>><</link>><</if>>
	<<if passage() != "Spa">><<print " | ">><<link Spa>><<spaAssignmentFilter>><<replace #ComingGoing>><<set $Flag = 0>><<include 'Slave Summary'>><<resetAssignmentFilter>><</replace>><</link>><</if>>
	<<if passage() != "Master Suite">><<print " | ">><<link Suite>><<suiteAssignmentFilter>><<replace #ComingGoing>><<set $Flag = 0>><<include 'Slave Summary'>><<resetAssignmentFilter>><</replace>><</link>><</if>>
	<<if passage() != "Servants' Quarters">><<print " | ">><<link Quarters>><<quartersAssignmentFilter>><<set $Flag = 0>><<replace #ComingGoing>><<include 'Slave Summary'>><<resetAssignmentFilter>><</replace>><</link>><</if>>
	<<resetAssignmentFilter>>
<</widget>>

/*
 * undefinedAssignmentFilter serves no purpose atm
 * might use it for RA Slave filter and Matchmaking
*/
<<widget "undefinedAssignmentFilter">>
	<<link All>><<showallAssignmentFilter>><<replace $args.full>><<include 'Slave Summary'>><</replace>><</link>><<print " | ">>
	<<link Arcade>><<arcadeAssignmentFilter>><<replace $args.full>><<include 'Slave Summary'>><</replace>><</link>><<print " | ">>
	<<link Brothel>><<brothelAssignmentFilter>><<replace $args.full>><<include 'Slave Summary'>><</replace>><</link>><<print " | ">>
	<<link Cellblock>><<cellblockAssignmentFilter>><<replace $args.full>><<include 'Slave Summary'>><</replace>><</link>><<print " | ">>
	<<link Clinic>><<clinicAssignmentFilter>><<replace $args.full>><<include 'Slave Summary'>><</replace>><</link>><<print " | ">>
	<<link Club>><<clubAssignmentFilter>><<replace $args.full>><<include 'Slave Summary'>><</replace>><</link>><<print " | ">>
	<<link Dairy>><<dairyAssignmentFilter>><<replace $args.full>><<include 'Slave Summary'>><</replace>><</link>><<print " | ">>
	<<link Penthouse>><<penthouseAssignmentFilter>><<replace $args.full>><<include 'Slave Summary'>><</replace>><</link>><<print " | ">>
	<<link Schoolroom>><<schoolAssignmentFilter>><<replace $args.full>><<include 'Slave Summary'>><</replace>><</link>><<print " | ">>
	<<link Spa>><<spaAssignmentFilter>><<replace $args.full>><<include 'Slave Summary'>><</replace>><</link>><<print " | ">>
	<<link Suite>><<suiteAssignmentFilter>><<replace $args.full>><<include 'Slave Summary'>><</replace>><</link>><<print " | ">>
	<<link Quarters>><<spaAssignmentFilter>><<replace $args.full>><<include 'Slave Summary'>><</replace>><</link>>
	<<resetAssignmentFilter>>
<</widget>>