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>>
<<elseif $slaves[$i].bellyImplant >= 1500>>
	<<if $slaves[$i].inflation > 1>>
		Due to the mounting pressure from her filled abdominal implant, she can no longer fill herself as large as she used to.
		<<set $slaves[$i].inflation = 1>>
		<<SetBellySize $slaves[$i]>>
	<<else>>
		<<set $slaves[$i].bellyFluid = 2000>>
		<<SetBellySize $slaves[$i]>>
	<</if>>
<</if>>

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

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

<<case "curative">>
	<<if $slaves[$i].inflation == 3>>
		She makes sure to fill her rear with nearly two gallons of a curative solution, leaving her looking ready to burst, whenever she leaks or her body absorbs too much. She keeps herself full for you; the curatives in her gut keeping her 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 her limit doesn't hasten her 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 her limit doesn't hasten her 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 her limit doesn't hasten her recovery at all; it's just perverted.
		<</if>>
		<<if $slaves[$i].fuckdoll == 0>>
			<<if $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>>
		<<set $slaves[$i].health += 1>>
		<<set $slaves[$i].health += $curativeUpgrade*6>>
		<<if $slaves[$i].health >= 90>>
			$pronounCap is as healthy as she can be. @@.yellow;Her enema regimen has been ended.@@
			<<set $slaves[$i].inflation = 0, $slaves[$i].inflationType = "none", $slaves[$i].inflationMethod = 0>><<SetBellySize $slaves[$i]>>
		<</if>>
	<<elseif $slaves[$i].inflation == 2>>
		She makes sure to fill her rear with nearly four liters of a curative solution, leaving her looking pregnant, whenever she leaks or her body absorbs too much. She 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 her 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 her 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 her recovery at all; it's just perverted.
		<</if>>
		<<if $slaves[$i].fuckdoll == 0>>
			<<if $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>>
		<<set $slaves[$i].health += 6>>
		<<set $slaves[$i].health += $curativeUpgrade*6>>
		<<if $slaves[$i].health >= 90>>
			$pronounCap is as healthy as she can be. @@.yellow;Her enema regimen has been ended.@@
			<<set $slaves[$i].inflation = 0, $slaves[$i].inflationType = "none", $slaves[$i].inflationMethod = 0>><<SetBellySize $slaves[$i]>>
		<</if>>
	<<elseif $slaves[$i].inflation == 1>>
		She makes sure to fill her rear with nearly two liters of a curative solution, leaving her belly noticeably distended, whenever she leaks or her body absorbs too much. She 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>>
		<<if $slaves[$i].fuckdoll == 0>>
			<<if $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>>
		<<set $slaves[$i].health += 6>>
		<<set $slaves[$i].health += $curativeUpgrade*6>>
		<<if $slaves[$i].health >= 90>>
			$pronounCap is as healthy as she can be. @@.yellow;Her 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 "tightener">>
	<<if $slaves[$i].inflation == 3>>
		She makes sure to fill her rear with nearly two gallons of tightening solution, leaving her looking ready to burst, whenever she leaks or her body absorbs too much. She keeps herself @@.red;painfully full@@ for you.
		<<set $slaves[$i].health -= 10>>
		<<if $slaves[$i].anus > 1>>
			The solution slowly tightens her anus while inside her bowels. Being filled to her limit with the solution does not make it tighten any better or faster; it's just perverted.
			<<if random(1,100) > 60>>
				@@.lime;Her butthole is noticeably tighter from the previous week.@@
				<<set $slaves[$i].anus-->>
			<</if>>
		<<else>>
			Her anus is as tight as the solution can possibly make it.
		<</if>>
		<<if $slaves[$i].vagina > 1>>
			As her body slowly absorbs the solution, its benefits begin to affect her pussy. Being filled to her limit with the solution does not make it tighten any better or faster; it's just perverted.
			<<if random(1,100) > 80>>
				@@.lime;Her vagina is noticeably tighter from the previous week.@@
				<<set $slaves[$i].vagina-->>
			<</if>>
		<<elseif $slaves[$i].vagina == 1>>
			Her pussy is as tight as the solution can possibly make it.
		<</if>>
		<<if $slaves[$i].anus <= 1 && $slaves[$i].vagina <= 1>>
			Her 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;Her enema regimen has been ended.@@
			<<set $slaves[$i].inflation = 0, $slaves[$i].inflationType = "none", $slaves[$i].inflationMethod = 0>><<SetBellySize $slaves[$i]>>
		<</if>>
	<<elseif $slaves[$i].inflation == 2>>
		She makes sure to fill her rear with nearly four liters of tightening solution, leaving her looking pregnant, whenever she leaks or her body absorbs too much.  She is full enough to be distended but not enough to grow taut.
		<<if $slaves[$i].anus > 1>>
			The solution slowly tightens her anus while inside her bowels. Being overfilled with the solution does not make it tighten any better or faster; it's just perverted.
			<<if random(1,100) > 60>>
				@@.lime;Her butthole is noticeably tighter from the previous week.@@
				<<set $slaves[$i].anus-->>
			<</if>>
		<<else>>
			Her anus is as tight as the solution can possibly make it.
		<</if>>
		<<if $slaves[$i].vagina > 1>>
			As her body slowly absorbs the solution, its benefits begin to affect her pussy. Being overfilled with the solution does not make it tighten any better or faster; it's just perverted.
			<<if random(1,100) > 80>>
				@@.lime;Her vagina is noticeably tighter from the previous week.@@
				<<set $slaves[$i].vagina-->>
			<</if>>
		<<elseif $slaves[$i].vagina == 1>>
			Her pussy is as tight as the solution can possibly make it.
		<</if>>
		<<if $slaves[$i].anus <= 1 && $slaves[$i].vagina <= 1>>
			Her 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;Her enema regimen has been ended.@@
			<<set $slaves[$i].inflation = 0, $slaves[$i].inflationType = "none", $slaves[$i].inflationMethod = 0>><<SetBellySize $slaves[$i]>>
		<</if>>
	<<elseif $slaves[$i].inflation == 1>>
		She makes sure to fill her rear with nearly two liters of tightening solution, leaving her belly noticeably distended, whenever she leaks or her body absorbs too much. She is full enough to be swollen but not enough to visibly jiggle.
		<<if $slaves[$i].anus > 1>>
			The solution slowly tightens her anus while inside her bowels.
			<<if random(1,100) > 60>>
				@@.lime;Her butthole is noticeably tighter from the previous week.@@
				<<set $slaves[$i].anus-->>
			<</if>>
		<<else>>
			Her anus is as tight as the solution can possibly make it.
		<</if>>
		<<if $slaves[$i].vagina > 1>>
			As her body slowly absorbs the solution, its benefits begin to affect her pussy.
			<<if random(1,100) > 80>>
				@@.lime;Her vagina is noticeably tighter from the previous week.@@
				<<set $slaves[$i].vagina-->>
			<</if>>
		<<elseif $slaves[$i].vagina == 1>>
			Her pussy is as tight as the solution can possibly make it.
		<</if>>
		<<if $slaves[$i].anus <= 1 && $slaves[$i].vagina <= 1>>
			Her 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;Her 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;Her 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, she @@.mediumorchid;reluctantly@@ sucks from the dairy tap until her stomach is @@.red;painfully bloated@@ with nearly two gallons of milk, leaving her looking ready to burst. She struggles to keep her 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, she @@.mediumorchid;reluctantly@@ sucks from the dairy tap until her stomach is bloated with nearly four liters of milk, leaving her looking pregnant. She struggles to keep her 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, she @@.mediumorchid;reluctantly@@ sucks from the dairy tap until her stomach is bloated with nearly two liters of milk, leaving her belly noticeably distended. She struggles to keep her 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;Her 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, she @@.mediumorchid;reluctantly@@ fills her rectum from the dairy tap until her stomach is @@.red;painfully bloated@@ with nearly two gallons of milk, leaving her looking ready to burst. She struggles to keep the fattening load inside her, @@.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, she @@.mediumorchid;reluctantly@@ fills her rectum from the dairy tap until her stomach is bloated with nearly four liters of milk, leaving her looking pregnant. She struggles to keep the fattening load inside her, @@.gold;fearing@@ punishment otherwise.
				<<set $slaves[$i].devotion -= 5,$slaves[$i].trust -= 5>>
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, she @@.mediumorchid;reluctantly@@ fills her rectum from the dairy tap until her stomach is bloated with nearly two liters of milk, leaving her belly noticeably distended. She struggles to keep the fattening load inside her, @@.gold;fearing@@ punishment otherwise.
				<<set $slaves[$i].devotion -= 3, $slaves[$i].trust -= 3>>
			<</if>>
		<<elseif $slaves[$i].inflationMethod == 3>>
			<<set _saf = $slaves.findIndex(function(s) { return s.ID == $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;Her inflation regimen has been ended.@@
				<<set $slaves[$i].inflation = 0, $slaves[$i].inflationType = "none", $slaves[$i].inflationMethod = 0, $slaves[$i].milkSource = 0>>
			<<elseif $slaves[$i].inflation == 3>>
				Throughout the week, she @@.mediumorchid;reluctantly@@ suckles from $slaves[_saf].slaveName until her stomach is @@.red;painfully bloated@@ with nearly two gallons of milk, leaving her looking ready to burst. She struggles to keep her 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, she @@.mediumorchid;reluctantly@@ suckles from $slaves[_saf].slaveName until her stomach is bloated with nearly four liters of milk, leaving her looking pregnant. She struggles to keep her 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, she @@.mediumorchid;reluctantly@@ suckles from $slaves[_saf].slaveName until her stomach is bloated with nearly two liters of milk, leaving her belly noticeably distended. She struggles to keep her 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;Her 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, she @@.hotpink;eagerly@@ sucks from the dairy tap until her stomach is @@.red;painfully bloated@@ with nearly two gallons of milk, leaving her looking ready to burst. She rubs her full belly @@.mediumaquamarine;contently@@, anticipating her next gorging.
				<<set $slaves[$i].health -= 10, $slaves[$i].devotion += 5, $slaves[$i].trust += 5>>
			<<elseif $slaves[$i].inflation == 2>>
				Throughout the week, she @@.hotpink;eagerly@@ sucks from the dairy tap until her stomach is bloated with nearly four liters of milk, leaving her looking pregnant. She rubs her taut belly @@.mediumaquamarine;contently@@, anticipating her next feeding.
				<<set $slaves[$i].devotion += 4, $slaves[$i].trust += 4>>
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, she @@.hotpink;eagerly@@ sucks from the dairy tap until her stomach is bloated with nearly two liters of milk, leaving her belly noticeably distended. She rubs her sloshing belly @@.mediumaquamarine;contently@@, anticipating her 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;Her 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, she @@.hotpink;happily@@ fills her rectum from the dairy tap until her stomach is @@.red;painfully bloated@@ with nearly two gallons of milk, leaving her looking ready to burst. She rubs her taut belly @@.mediumaquamarine;contently@@, though she wishes she 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, she @@.hotpink;happily@@ fills her rectum from the dairy tap until her stomach is bloated with nearly four liters of milk, leaving her looking pregnant. She rubs her full belly @@.mediumaquamarine;contently@@, though she wishes she could have swallowed it instead.
				<<set $slaves[$i].devotion += 3, $slaves[$i].trust += 3>>
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, she @@.hotpink;happily@@ fills her rectum from the dairy tap until her stomach is bloated with nearly two liters of milk, leaving her belly noticeably distended. She rubs her sloshing belly @@.mediumaquamarine;contently@@, though she wishes she could have swallowed it instead.
				<<set $slaves[$i].devotion += 1, $slaves[$i].trust += 1>>
			<</if>>
		<<elseif $slaves[$i].inflationMethod == 3>>
			<<set _saf = $slaves.findIndex(function(s) { return s.ID == $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;Her inflation regimen has been ended.@@
				<<set $slaves[$i].inflation = 0, $slaves[$i].inflationType = "none", $slaves[$i].inflationMethod = 0, $slaves[$i].milkSource = 0>>
			<<elseif $slaves[$i].inflation == 3>>
				Throughout the week, she @@.hotpink;eagerly@@ sucks from $slaves[_saf].slaveName until her stomach is @@.red;painfully bloated@@ with nearly two gallons of milk, leaving her looking ready to burst. She rubs her full belly @@.mediumaquamarine;contently@@, anticipating her next gorging.
				<<set $slaves[$i].health -= 10, $slaves[$i].devotion += 5, $slaves[$i].trust += 5>>
			<<elseif $slaves[$i].inflation == 2>>
				Throughout the week, she @@.hotpink;eagerly@@ sucks from $slaves[_saf].slaveName until her stomach is bloated with nearly four liters of milk, leaving her looking pregnant. She rubs her taut belly @@.mediumaquamarine;contently@@, anticipating her next feeding.
				<<set $slaves[$i].devotion += 4, $slaves[$i].trust += 4>>
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, she @@.hotpink;eagerly@@ sucks from $slaves[_saf].slaveName until her stomach is bloated with nearly two liters of milk, leaving her belly noticeably distended. She rubs her sloshing belly @@.mediumaquamarine;contently@@, anticipating her 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;Her 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, she makes sure to keep herself filled with nearly two gallons of milk, leaving her looking ready to burst. She keeps herself @@.red;painfully full@@ for you.
				<<set $slaves[$i].health -= 10>>
			<<elseif $slaves[$i].inflation == 2>>
				Throughout the week, she makes sure to keep herself filled with nearly four liters of milk, leaving her looking pregnant. She is full enough to be distended but not enough to grow taut.
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, she makes sure to keep herself filled with nearly two liters of milk, leaving her belly noticeably distended. She 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;Her 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, she makes sure to fill her rear with nearly two gallons of milk, leaving her looking ready to burst, whenever she leaks or needs to release her load.  She keeps herself @@.red;painfully full@@ for you.
				<<set $slaves[$i].health -= 10>>
			<<elseif $slaves[$i].inflation == 2>>
				Throughout the week, she makes sure to fill her rear with nearly four liters of milk, leaving her looking pregnant, whenever she leaks or needs to release her load.  She is full enough to be distended but not enough to grow taut.
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, she makes sure to fill her rear with nearly two liters of milk, leaving her belly noticeably distended, whenever she leaks or needs to release her load.  She is full enough to be swollen but not enough to visibly jiggle.
			<</if>>
		<<elseif $slaves[$i].inflationMethod == 3>>
			<<set _saf = $slaves.findIndex(function(s) { return s.ID == $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;Her inflation regimen has been ended.@@
				<<set $slaves[$i].inflation = 0, $slaves[$i].inflationType = "none", $slaves[$i].inflationMethod = 0, $slaves[$i].milkSource = 0>>
			<<elseif $slaves[$i].inflation == 3>>
				Throughout the week, she makes sure keep suckling from $slaves[_saf].slaveName until she is filled with nearly two gallons of milk, leaving her looking ready to give birth. She keeps herself @@.red;painfully full@@ for you.
				<<set $slaves[$i].health -= 10>>
			<<elseif $slaves[$i].inflation == 2>>
				Throughout the week, she makes sure keep suckling from $slaves[_saf].slaveName until she is filled with nearly four liters of milk, leaving her looking pregnant. She is full enough to be distended but not enough to grow taut.
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, she makes sure keep suckling from $slaves[_saf].slaveName until she is filled with nearly two liters of milk, leaving her belly noticeably distended. She 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;Her 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, she @@.mediumorchid;reluctantly@@ sucks from the dairy tap until her stomach is @@.red;painfully bloated@@ with nearly two gallons of cum, leaving her looking ready to burst. She struggles to keep her 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, she @@.mediumorchid;reluctantly@@ sucks from the dairy tap until her stomach is bloated with nearly four liters of cum, leaving her looking pregnant. She struggles to keep her liquid meal down, @@.gold;fearing@@ punishment otherwise.
				<<set $slaves[$i].devotion -= 5, $slaves[$i].trust -= 5>>
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, she @@.mediumorchid;reluctantly@@ sucks from the dairy tap until her stomach is bloated with nearly two liters of cum, leaving her belly noticeably distended. She struggles to keep her 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;Her 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, she @@.mediumorchid;reluctantly@@ fills her rectum from the dairy tap until her stomach is @@.red;painfully bloated@@ with nearly two gallons of cum, leaving her looking ready to burst. She struggles to keep the massive cumshot inside her, @@.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, she @@.mediumorchid;reluctantly@@ fills her rectum from the dairy tap until her stomach is bloated with nearly four liters of cum, leaving her looking pregnant. She struggles to keep the huge cumshot inside her, @@.gold;fearing@@ punishment otherwise.
				<<set $slaves[$i].devotion -= 5, $slaves[$i].trust -= 5>>
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, she @@.mediumorchid;reluctantly@@ fills her rectum from the dairy tap until her stomach is bloated with nearly two liters of cum, leaving her belly noticeably distended. She struggles to keep the cumshot inside her, @@.gold;fearing@@ punishment otherwise.
				<<set $slaves[$i].devotion -= 3, $slaves[$i].trust -= 3>>
			<</if>>
		<<elseif $slaves[$i].inflationMethod == 3>>
			<<set _saf = $slaves.findIndex(function(s) { return s.ID == $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;Her inflation regimen has been ended.@@
				<<set $slaves[$i].inflation = 0, $slaves[$i].inflationType = "none", $slaves[$i].inflationMethod = 0, $slaves[$i].cumSource = 0>>
			<<elseif $slaves[$i].inflation == 3>>
				Throughout the week, she @@.mediumorchid;reluctantly@@ sucks $slaves[_saf].slaveName's <<if $slaves[_saf].dick > 0>>cock<<else>>cum hole<</if>> until her stomach is @@.red;painfully bloated@@ with nearly two gallons of cum, leaving her looking ready to burst. She struggles to keep her 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, she @@.mediumorchid;reluctantly@@ sucks $slaves[_saf].slaveName's <<if $slaves[_saf].dick > 0>>cock<<else>>cum hole<</if>> until her stomach is bloated with nearly four liters of cum, leaving her looking pregnant. She struggles to keep her liquid meal down, @@.gold;fearing@@ punishment otherwise.
				<<set $slaves[$i].devotion -= 5, $slaves[$i].trust -= 5>>
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, she @@.mediumorchid;reluctantly@@ sucks $slaves[_saf].slaveName's <<if $slaves[_saf].dick > 0>>cock<<else>>cum hole<</if>> until her stomach is bloated with nearly two liters of cum, leaving her belly noticeably distended. She struggles to keep her 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;Her 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, she @@.hotpink;eagerly@@ sucks from the dairy tap until her stomach is @@.red;painfully bloated@@ with nearly two gallons of cum, leaving her looking ready to burst. She rubs her full belly @@.mediumaquamarine;contently@@, anticipating her next gorging.
				<<set $slaves[$i].health -= 10, $slaves[$i].devotion += 5, $slaves[$i].trust += 5>>
			<<elseif $slaves[$i].inflation == 2>>
				Throughout the week, she @@.hotpink;eagerly@@ sucks from the dairy tap until her stomach is bloated with nearly four liters of cum, leaving her looking pregnant. She rubs her taut belly @@.mediumaquamarine;contently@@, anticipating her next feeding.
				<<set $slaves[$i].devotion += 4, $slaves[$i].trust += 4>>
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, she @@.hotpink;eagerly@@ sucks from the dairy tap until her stomach is bloated with nearly two liters of cum, leaving her belly noticeably distended. She rubs her sloshing belly @@.mediumaquamarine;contently@@, anticipating her 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;Her 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, she @@.hotpink;happily@@ fills her rectum from the dairy tap until her stomach is @@.red;painfully bloated@@ with nearly two gallons of cum, leaving her looking ready to burst. She rubs her taut belly @@.mediumaquamarine;contently@@, though she wishes she 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, she @@.hotpink;happily@@ fills her rectum from the dairy tap until her stomach is bloated with nearly four liters of cum, leaving her looking pregnant. She rubs her full belly @@.mediumaquamarine;contently@@, though she wishes she could have swallowed it instead.
				<<set $slaves[$i].devotion += 3, $slaves[$i].trust += 3>>
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, she @@.hotpink;happily@@ fills her rectum from the dairy tap until her stomach is bloated with nearly two liters of cum, leaving her belly noticeably distended. She rubs her sloshing belly @@.mediumaquamarine;contently@@, though she wishes she could have swallowed it instead.
				<<set $slaves[$i].devotion++, $slaves[$i].trust++>>
			<</if>>
		<<elseif $slaves[$i].inflationMethod == 3>>
			<<set _saf = $slaves.findIndex(function(s) { return s.ID == $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;Her inflation regimen has been ended.@@
				<<set $slaves[$i].inflation = 0, $slaves[$i].inflationType = "none", $slaves[$i].inflationMethod = 0, $slaves[$i].cumSource = 0>>
			<<elseif $slaves[$i].inflation == 3>>
				Throughout the week, she @@.hotpink;eagerly@@ sucks $slaves[_saf].slaveName's <<if $slaves[_saf].dick > 0>>cock<<else>>cum hole<</if>> until her stomach is @@.red;painfully bloated@@ with nearly two gallons of cum, leaving her looking ready to burst. She rubs her full belly @@.mediumaquamarine;contently@@, anticipating her next gorging.
				<<set $slaves[$i].health -= 10, $slaves[$i].devotion += 5, $slaves[$i].trust += 5>>
			<<elseif $slaves[$i].inflation == 2>>
				Throughout the week, she @@.hotpink;eagerly@@ sucks $slaves[_saf].slaveName's <<if $slaves[_saf].dick > 0>>cock<<else>>cum hole<</if>> until her stomach is bloated with nearly four liters of cum, leaving her looking pregnant. She rubs her taut belly @@.mediumaquamarine;contently@@, anticipating her next feeding.
				<<set $slaves[$i].devotion += 4, $slaves[$i].trust += 4>>
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, she @@.hotpink;eagerly@@ sucks $slaves[_saf].slaveName's <<if $slaves[_saf].dick > 0>>cock<<else>>cum hole<</if>> until her stomach is bloated with nearly two liters of cum, leaving her belly noticeably distended. She rubs her sloshing belly @@.mediumaquamarine;contently@@, anticipating her 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;Her 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, she makes sure to keep herself filled with nearly two gallons of cum, leaving her looking ready to burst. She keeps herself @@.red;painfully full@@ for you.
				<<set $slaves[$i].health -= 10>>
			<<elseif $slaves[$i].inflation == 2>>
				Throughout the week, she makes sure to keep herself filled with nearly four liters of cum, leaving her looking pregnant. She is full enough to be distended but not enough to grow taut.
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, she makes sure to keep herself filled with nearly two liters of cum, leaving her belly noticeably distended. She 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;Her 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, she makes sure to fill her rear with nearly two gallons of cum, leaving her looking ready to burst, whenever she leaks or needs to release her load.  She keeps herself @@.red;painfully full@@ for you.
				<<set $slaves[$i].health -= 10>>
			<<elseif $slaves[$i].inflation == 2>>
				Throughout the week, she makes sure to fill her rear with nearly four liters of cum, leaving her looking pregnant, whenever she leaks or needs to release her load.  She is full enough to be distended but not enough to grow taut.
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, she makes sure to fill her rear with nearly two liters of cum, leaving her belly noticeably distended, whenever she leaks or needs to release her load.  She is full enough to be swollen but not enough to visibly jiggle.
			<</if>>
		<<elseif $slaves[$i].inflationMethod == 3>>
			<<set _saf = $slaves.findIndex(function(s) { return s.ID == $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;Her inflation regimen has been ended.@@
				<<set $slaves[$i].inflation = 0, $slaves[$i].inflationType = "none", $slaves[$i].inflationMethod = 0, $slaves[$i].cumSource = 0>>
			<<elseif $slaves[$i].inflation == 3>>
				Throughout the week, she makes sure keep sucking $slaves[_saf].slaveName's <<if $slaves[_saf].dick > 0>>cock<<else>>cum hole<</if>> until she is filled with nearly two gallons of cum, leaving her looking ready to burst. She keeps herself @@.red;painfully full@@ for you.
				<<set $slaves[$i].health -= 10>>
			<<elseif $slaves[$i].inflation == 2>>
				Throughout the week, she makes sure keep sucking $slaves[_saf].slaveName's <<if $slaves[_saf].dick > 0>>cock<<else>>cum hole<</if>> until she is filled with nearly four liters of cum, leaving her looking pregnant. She is full enough to be distended but not enough to grow taut.
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, she makes sure keep sucking $slaves[_saf].slaveName's <<if $slaves[_saf].dick > 0>>cock<<else>>cum hole<</if>> until she is filled with nearly two liters of cum, leaving her belly noticeably distended. She 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, she focuses her @@.mediumorchid;loathing@@ on you as she forces down servings of slave food until her stomach is @@.red;painfully bloated@@ with nearly two gallons of the paste, leaving her looking ready to burst. She struggles to keep her 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, she focuses her @@.mediumorchid;loathing@@ on you as she forces down servings of slave food until her stomach is bloated with nearly four liters of the paste, giving her quite the food baby. She struggles to keep her meal down, @@.gold;fearing@@ punishment otherwise.
			<<set $slaves[$i].devotion -= 10, $slaves[$i].trust -= 10>>
		<<elseif $slaves[$i].inflation == 1>>
			Throughout the week, she focuses her @@.mediumorchid;loathing@@ on you as she forces down servings of slave food until her stomach is bloated with nearly two liters of the paste, leaving her stomach obviously distended. She struggles to keep her 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, she @@.hotpink;eagerly@@ stuffs her face with servings of slave food until her stomach is @@.red;painfully bloated@@ with nearly two gallons of the paste, leaving her looking ready to burst. She rubs her stuffed belly @@.mediumaquamarine;contently@@, anticipating her next gorging.
			<<set $slaves[$i].health -= 10, $slaves[$i].devotion += 10, $slaves[$i].trust += 10>>
		<<elseif $slaves[$i].inflation == 2>>
			Throughout the week, she @@.hotpink;eagerly@@ stuffs her face with servings of slave food until her stomach is bloated with nearly four liters of the paste, giving her quite the food baby. She rubs her taut belly @@.mediumaquamarine;contently@@, anticipating her next meal.
			<<set $slaves[$i].devotion += 7, $slaves[$i].trust += 7>>
		<<elseif $slaves[$i].inflation == 1>>
			Throughout the week, she @@.hotpink;eagerly@@ stuffs her face with servings of slave food until her stomach is bloated with nearly two liters of the paste, leaving her belly noticeably distended. She rubs her stuffed belly @@.mediumaquamarine;contently@@, anticipating her next helping.
			<<set $slaves[$i].devotion += 5, $slaves[$i].trust += 5>>
		<</if>>
	<<else>>
		<<if $slaves[$i].inflation == 3>>
			Throughout the week, she makes sure to binge eat until her gut is stuffed with nearly two gallons of slave food, leaving her looking ready to burst. She keeps herself @@.red;painfully full@@ for you.
			<<set $slaves[$i].health -= 10>>
		<<elseif $slaves[$i].inflation == 2>>
			Throughout the week, she makes sure to binge eat until her gut is filled with nearly four liters of slave food, giving her quite the food baby. She is full enough to be distended but not enough to grow taut.
		<<elseif $slaves[$i].inflation == 1>>
			Throughout the week, she makes sure to binge eat until she's consumed nearly two liters of slave food, leaving her belly noticeably distended. She 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>>

license: mit


code:
:: SE Death [nobr]

<<set $nextButton = "Continue", $returnTo = "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, $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: Homeshopping networks, random dramas, how-tos 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 excludes any dick-based, hyperpregnancy, and extreme content based on your settings, it may still hint at that content. 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>>

<<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", "light 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", "tanned", "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("olive", "brown", "light brown", "tanned", "fair")>>
	<<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("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 == "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("pale", "dark", "light")>>
	<<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 = 0>>

<<if $cash >= $slaveCost>>
	[[Accept the offered slave and contact the bodyswap surgeon.|husk Slave Swap Workaround][$cash -= $slaveCost]]
<<else>>
	//You can't sustain her and thus must return her.//
<</if>>


code:
:: securityForceTradeShow
<<nobr>>
<<set $nextButton = "Continue", $nextLink = "RIE Eligibility Check", $returnTo = "RIE Eligibility Check">>

<<set _N1 = 2>>
<<set _N2 = 2>>
<<set _N3 = 2>>

<<if $economy == .5>>
	<<set $Env = _N1>>
<<elseif $economy == 1>>
	<<set $Env = _N2>>
<<elseif $economy == 1.5>>
	<<set $Env = _N3>>
<</if>>

<<set _Barracks = $securityForceArcologyUpgrades>>
<<set _Armoury = $securityForceInfantryPower>>
<<set _StimulantLab = $securityForceStimulantPower>>
<<set _Garage = $securityForceVehiclePower+$securityForceHeavyBattleTank>>
<<set _Hangar = $securityForceAircraftPower+$securityForceSpacePlanePower+$securityForceFortressZeppelin+$securityForceAC130+$securityForceHeavyTransport>>
<<set _DroneBay = $securityForceDronePower>>
<<set _LaunchBayNO = $securityForceSatalitePower+$securityForceGiantRobot+$securityForceMissileSilo>>
<<set _LaunchBayO = $securityForceSatalitePower>>
<<set _FacilitySupport = $FacilitySupport>>

<<if $terrain != "oceanic" && $terrain != "marine">>
	<<set $SFNO = _Barracks+_Armoury+_StimulantLab+_Garage+_Hangar+_DroneBay+_LaunchBayNO+_FacilitySupport>>
<</if>>
<<if $terrain == "oceanic" || $terrain == "marine">>
	<<set $SFO = _Barracks+_Armoury+_StimulantLab+_Garage+_Hangar+_DroneBay+_LaunchBayO+_NavalYard+_FacilitySupport>>
<</if>>

<<if $OverallTradeShowAttendance == 0>>
	<<if def $PC.customTitle>>$PC.customTitle<<elseif $PC.title != 0>>Sir<<else>>Ma'am<</if>>, back when I was a major there was a bi-yearly international security trade show that me and some of my colleagues went to. I would very much like to continue doing, can I?

	<<link "Yes,">>
	<<replace "#choice1">>

"Thank you <<if def $PC.customTitle>>$PC.customTitle<<elseif $PC.title != 0>>sir<<else>>ma'am<</if>>."
	<<set $OverallTradeShowAttendance += 1>>
	<<set $CurrentTradeShowAttendanceGranted = 1>>
	<<set $TradeShowAttendanceGranted = 1>>
	<</replace>>
	<</link>>

	<<link "No">>
	<<replace "#choice1">>

"I understand <<if def $PC.customTitle>>$PC.customTitle<<elseif $PC.title != 0>>sir<<else>>ma'am<</if>>."
	<</replace>>
	<</link>>

<<elseif $OverallTradeShowAttendance >= 1>>
	<<if def $PC.customTitle>>$PC.customTitle<<elseif $PC.title != 0>>Sir<<else>>Ma'am<</if>>, do you still need me back here?

	<<link "Yes">>
	<<replace "#choice2">>

The look of disappointement is bearly noticable on The Colonel's face.
	<</replace>>
	<</link>>

	<<link "No,">>
	<<replace "#choice2">>

"Thanks <<if def $PC.customTitle>>$PC.customTitle<<elseif $PC.title != 0>>sir<<else>>ma'am<</if>>"

	<<set $CurrentTradeShowAttendanceGranted = 1, _TradeShowAttendes = 150, _BonusProviderPercentage = .15>>
	<<set _MenialSlavesPerAttendee = 15>>

	<<if $arcologies[0].prosperity < 25>>
		<<set _TradingPower = 15>>
	<<elseif $arcologies[0].prosperity > 70>>
		<<set _TradingPower = 25>>
	<<elseif $arcologies[0].prosperity > 65>>
		<<set _TradingPower = 24>>
	<<elseif $arcologies[0].prosperity > 60>>
		<<set _TradingPower = 23>>
	<<elseif $arcologies[0].prosperity > 55>>
		<<set _TradingPower = 22>>
	<<elseif $arcologies[0].prosperity > 50>>
		<<set _TradingPower = 21>>
	<<elseif $arcologies[0].prosperity > 45>>
		<<set _TradingPower = 20>>
	<<elseif $arcologies[0].prosperity > 40>>
		<<set _TradingPower = 19>>
	<<elseif $arcologies[0].prosperity > 35>>
		<<set _TradingPower = 18>>
	<<elseif $arcologies[0].prosperity > 30>>
		<<set _TradingPower = 17>>
	<<elseif $arcologies[0].prosperity > 25>>
		<<set _TradingPower = 16>>
	<</if>>

	<<if ($SFNO || $SFO) < 10 && random(0,100)+_TradingPower > 90>>
		<<set _SuccesfulPersuationAttempt = 1>>
		<<set _PersuationBonus = 1.05>>
	<<elseif ($SFNO || $SFO) >= 110 && random(0,100)+_TradingPower > 40>>
		<<set _SuccesfulPersuationAttempt = 1>>
		<<set _PersuationBonus = 1.95>>
	<<elseif ($SFNO || $SFO) >= 100 && random(0,100)+_TradingPower > 45>>
		<<set _SuccesfulPersuationAttempt = 1>>
		<<set _PersuationBonus = 1.90>>
	<<elseif ($SFNO || $SFO) >= 90 && random(0,100)+_TradingPower > 50>>
		<<set _SuccesfulPersuationAttempt = 1>>
		<<set _PersuationBonus = 1.80>>
	<<elseif ($SFNO || $SFO) >= 80 && random(0,100)+_TradingPower > 55>>
		<<set _SuccesfulPersuationAttempt = 1>>
		<<set _PersuationBonus = 1.70>>
	<<elseif ($SFNO || $SFO) >= 70 && random(0,100)+_TradingPower > 60>>
		<<set _SuccesfulPersuationAttempt = 1>>
		<<set _PersuationBonus = 1.60>>
	<<elseif ($SFNO || $SFO) >= 60 && random(0,100)+_TradingPower > 65>>
		<<set _SuccesfulPersuationAttempt = 1>>
		<<set _PersuationBonus = 1.50>>
	<<elseif ($SFNO || $SFO) >= 50 && random(0,100)+_TradingPower > 70>>
		<<set _SuccesfulPersuationAttempt = 1>>
		<<set _PersuationBonus = 1.40>>
	<<elseif ($SFNO || $SFO) >= 40 && random(0,100)+_TradingPower > 75>>
		<<set _SuccesfulPersuationAttempt = 1>>
		<<set _PersuationBonus = 1.30>>
	<<elseif ($SFNO || $SFO) >= 30 && random(0,100)+_TradingPower > 80>>
		<<set _SuccesfulPersuationAttempt = 1>>
		<<set _PersuationBonus = 1.20>>
	<<elseif ($SFNO || $SFO) >= 10 && random(0,100)+_TradingPower > 85>>
		<<set _SuccesfulPersuationAttempt = 1>>
		<<set _PersuationBonus = 1.10>>
	<</if>>

	<<set _RawMenialSlaves = random(0,_TradeShowAttendes)*_BonusProviderPercentage*_MenialSlavesPerAttendee*_PersuationBonus>>
	<<set _SuccesfulPersuationAttempt = 0>>

	<<set _RawProfit = ($cash*.010*$SFNO || $SFO*$arcologies[0].prosperity*$Env)*_PersuationBonus>>
	<<set _ProcessedProfit = Math.trunc(_RawProfit)>>

During a break, The Colonel manages to sell some generic scematics to the _TradeShowAttendes people peresent, some decided to also give her some menial slaves as a bonus.

			<<set $helots = $helots+_RawMenialSlaves>>
			<<set $TradeShowHelots += _RawMenialSlaves>>
			<<set $TotalTradeShowHelots += _RawMenialSlaves>>

			<<set $cash = $cash+_ProcessedProfit>>
			<<set $TradeShowIncome += _ProcessedProfit>>
			<<set $TotalTradeShowIncome += _ProcessedProfit>>

	<</replace>>
	<</link>>

<</if>>
<</nobr>>


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 = 1, $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>>
<</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>>
<</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)>>
		<<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)>>
			<<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)>>\
			<<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:
:: 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 $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:
:: 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 == "live with your Head Girl" || x.assignment.includes("in the") || x.assignment == "work as a servant" || x.assignment.includes("be the") || x.assignment == "be your agent" || x.assignment == "be your Concubine" || x.assignment == "live with your agent"}).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 == "be your 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 "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
*/
<<widget "assignmentFilter">>
	<<link All>><<showallAssignmentFilter>><<replace #ComingGoing>><<include 'Slave Summary'>><<resetAssignmentFilter>><</replace>><</link>>
	<<if passage() != "Arcade">><<print " | ">><<link Arcade>><<arcadeAssignmentFilter>><<replace #ComingGoing>><<include 'Slave Summary'>><<resetAssignmentFilter>><</replace>><</link>><</if>>
	<<if passage() != "Brothel">><<print " | ">><<link Brothel>><<brothelAssignmentFilter>><<replace #ComingGoing>><<include 'Slave Summary'>><<resetAssignmentFilter>><</replace>><</link>><</if>>
	<<if passage() != "Cellblock">><<print " | ">><<link Cellblock>><<cellblockAssignmentFilter>><<replace #ComingGoing>><<include 'Slave Summary'>><<resetAssignmentFilter>><</replace>><</link>><</if>>
	<<if passage() != "Clinic">><<print " | ">><<link Clinic>><<clinicAssignmentFilter>><<replace #ComingGoing>><<include 'Slave Summary'>><<resetAssignmentFilter>><</replace>><</link>><</if>>
	<<if passage() != "Club">><<print " | ">><<link Club>><<clubAssignmentFilter>><<replace #ComingGoing>><<include 'Slave Summary'>><<resetAssignmentFilter>><</replace>><</link>><</if>>
	<<if passage() != "Dairy">><<print " | ">><<link Dairy>><<dairyAssignmentFilter>><<replace #ComingGoing>><<include 'Slave Summary'>><<resetAssignmentFilter>><</replace>><</link>><</if>>
	<<print " | ">><<link Penthouse>><<penthouseAssignmentFilter>><<replace #ComingGoing>><<include 'Slave Summary'>><<resetAssignmentFilter>><</replace>><</link>>
	<<if passage() != "Schoolroom">><<print " | ">><<link Schoolroom>><<schoolAssignmentFilter>><<replace #ComingGoing>><<include 'Slave Summary'>><<resetAssignmentFilter>><</replace>><</link>><</if>>
	<<if passage() != "Spa">><<print " | ">><<link Spa>><<spaAssignmentFilter>><<replace #ComingGoing>><<include 'Slave Summary'>><<resetAssignmentFilter>><</replace>><</link>><</if>>
	<<if passage() != "Master Suite">><<print " | ">><<link Suite>><<suiteAssignmentFilter>><<replace #ComingGoing>><<include 'Slave Summary'>><<resetAssignmentFilter>><</replace>><</link>><</if>>
	<<if passage() != "Servants' Quarters">><<print " | ">><<link Quarters>><<quartersAssignmentFilter>><<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>>


code:
:: bodyswap widgets [nobr widget]

/* It's too fucking big jesus christ */

/* first arg is slave getting swapped, second is body she is being swapped to. The second body's physical traits overwrite the originals */
<<widget "BodySwap">>
<<if $args[1].origin != "You reserved a mindless slave like her from the Flesh Heap.">>
	<<if $args[0].origBodyOwner == "">>
		<<set $args[0].origBodyOwner = ("The body of the slave " + $args[1].slaveName)>>
	<<else>>
		<<set $args[0].origBodyOwner = $args[1].origBodyOwner>>
	<</if>>
<</if>>
<<set $args[0].genes = $args[1].genes>>
<<set $args[0].prestige = $args[1].prestige>>
<<set $args[0].pornFame = $args[1].pornFame>>
<<set $args[0].prestigeDesc = $args[1].prestigeDesc>>
<<set $args[0].physicalAge = $args[1].physicalAge>>
<<set $args[0].visualAge = $args[1].visualAge>>
<<set $args[0].ageImplant = $args[1].ageImplant>>
<<set $args[0].health = $args[1].health>>
<<set $args[0].minorInjury = $args[1].minorInjury>>
<<set $args[0].weight = $args[1].weight>>
<<set $args[0].muscles = $args[1].muscles>>
<<set $args[0].height = $args[1].height>>
<<set $args[0].heightImplant = $args[1].heightImplant>>
<<set $args[0].race = $args[1].race>>
<<set $args[0].pubicHColor = $args[1].pubicHColor>>
<<set $args[0].skin = $args[1].skin>>
<<set $args[0].origSkin = $args[1].skin>>
<<set $args[0].markings = $args[1].markings>>
<<set $args[0].eyes = $args[1].eyes>>
<<set $args[0].origEye = $args[1].origEye>>
<<set $args[0].eyeColor = $args[1].eyeColor>>
<<set $args[0].eyeWear = $args[1].eyeWear>>
<<set $args[0].origHColor = $args[1].origHColor>>
<<set $args[0].hColor = $args[1].hColor>>
<<set $args[0].hLength = $args[1].hLength>>
<<set $args[0].hStyle = $args[1].hStyle>>
<<set $args[0].pubicHStyle = $args[1].pubicHStyle>>
<<set $args[0].waist = $args[1].waist>>
<<set $args[0].corsetPiercing = $args[1].corsetPiercing>>
<<set $args[0].amp = $args[1].amp>>
<<set $args[0].PLimb = $args[1].PLimb>>
<<set $args[0].heels = $args[1].heels>>
<<set $args[0].voice = $args[1].voice>>
<<set $args[0].voiceImplat = $args[1].voiceImplant>>
<<set $args[0].shoulders = $args[1].shoulders>>
<<set $args[0].shouldersImplant = $args[1].shouldersImplant>>
<<set $args[0].boobs = $args[1].boobs>>
<<set $args[0].boobsImplant = $args[1].boobsImplant>>
<<set $args[0].boobsImplantType = $args[1].boobsImplantType>>
<<set $args[0].boobShape = $args[1].boobShape>>
<<set $args[0].nipples = $args[1].nipples>>
<<set $args[0].nipplesPiercing = $args[1].nipplesPiercing>>
<<set $args[0].areolae = $args[1].areolae>>
<<set $args[0].areolaePiercing = $args[1].areolaePiercing>>
<<set $args[0].boobsTat = $args[1].boobsTat>>
<<set $args[0].lactation = $args[1].lactation>>
<<set $args[0].lactationAdaptation = $args[1].lactationAdaptation>>
<<set $args[0].hips = $args[1].hips>>
<<set $args[0].hipsImplant = $args[1].hipsImplant>>
<<set $args[0].butt = $args[1].butt>>
<<set $args[0].buttImplant = $args[1].buttImplant>>
<<set $args[0].buttImplantType = $args[1].buttImplantType>>
<<set $args[0].buttTat = $args[1].buttTat>>
<<set $args[0].face = $args[1].face>>
<<set $args[0].faceImplant = $args[1].faceImplant>>
<<set $args[0].faceShape = $args[1].faceShape>>
<<set $args[0].lips = $args[1].lips>>
<<set $args[0].lipsImplant = $args[1].lipsImplant>>
<<set $args[0].lipsPiercing = $args[1].lipsPiercing>>
<<set $args[0].lipsTat = $args[1].lipsTat>>
<<set $args[0].teeth = $args[1].teeth>>
<<set $args[0].tonguePiercing = $args[1].tonguePiercing>>
<<set $args[0].vagina = $args[1].vagina>>
<<set $args[0].vaginaLube = $args[1].vaginaLube>>
<<set $args[0].vaginaPiercing = $args[1].vaginaPiercing>>
<<set $args[0].vaginaTat = $args[1].vaginaTat>>
<<set $args[0].preg = $args[1].preg>>
<<set $args[0].pregSource = $args[1].pregSource>>
<<set $args[0].pregType = $args[1].pregType>>
<<set $args[0].labor = $args[1].labor>>
<<set $args[0].csec = $args[1].csec>>
<<set $args[0].bellyAccessory = $args[1].bellyAccessory>>
<<set $args[0].labia = $args[1].labia>>
<<set $args[0].clit = $args[1].clit>>
<<set $args[0].clitPiercing = $args[1].clitPiercing>>
<<set $args[0].clitSetting = $args[1].clitSetting>>
<<set $args[0].dick = $args[1].dick>>
<<set $args[0].foreskin = $args[1].foreskin>>
<<set $args[0].anus = $args[1].anus>>
<<set $args[0].analArea = $args[1].analArea>>
<<set $args[0].dickPiercing = $args[1].dickPiercing>>
<<set $args[0].dickTat = $args[1].dickTat>>
<<set $args[0].prostate = $args[1].prostate>>
<<set $args[0].balls = $args[1].balls>>
<<set $args[0].scrotum = $args[1].scrotum>>
<<set $args[0].ovaries = $args[1].ovaries>>
<<set $args[0].anusPiercing = $args[1].anusPiercing>>
<<set $args[0].anusTat = $args[1].anusTat>>
<<set $args[0].makeup = $args[1].makeup>>
<<set $args[0].nails = $args[1].nails>>
<<set $args[0].brand = $args[1].brand>>
<<set $args[0].brandLocation = $args[1].brandLocation>>
<<set $args[0].earsPiercing = $args[1].earsPiercing>>
<<set $args[0].nosePiercing = $args[1].nosePiercing>>
<<set $args[0].eyebrowPiercing = $args[1].eyebrowPiercing>>
<<set $args[0].navelPiercing = $args[1].navelPiercing>>
<<set $args[0].shouldersTat = $args[1].shouldersTat>>
<<set $args[0].armsTat = $args[1].armsTat>>
<<set $args[0].legsTat = $args[1].legsTat>>
<<set $args[0].backTat = $args[1].backTat>>
<<set $args[0].stampTat = $args[1].stampTat>>
<<set $args[0].diet = $args[1].diet>>
<<set $args[0].dietCum = $args[1].dietCum>>
<<set $args[0].dietMilk = $args[1].dietMilk>>
<<set $args[0].hormones = $args[1].hormones>>
<<set $args[0].drugs = $args[1].drugs>>
<<set $args[0].aphrodisiacs = $args[1].aphrodisiacs>>
<<set $args[0].curatives = $args[1].curatives>>
<<set $args[0].chem = $args[1].chem>>
<<set $args[0].clothes = $args[1].clothes>>
<<set $args[0].collar = $args[1].collar>>
<<set $args[0].shoes = $args[1].shoes>>
<<set $args[0].vaginalChastity = $args[1].vaginalChastity>>
<<set $args[0].dickAccessory = $args[1].dickAccessory>>
<<set $args[0].buttplug = $args[1].buttplug>>
<<set $args[0].customTat = $args[1].customTat>>
<<set $args[0].bellyTat = $args[1].bellyTat>>
<<set $args[0].bellySag = $args[1].bellySag>>
<<set $args[0].bellySagPreg = $args[1].bellySagPreg>>
<<set $args[0].induce = $args[1].induce>>
<<set $args[0].mpreg = $args[1].mpreg>>
<<set $args[0].inflation = 0, $args[0].inflationType = "none", $args[0].inflationMethod = 0, $args[0].milkSource = 0, $args[0].cumSource = 0>>
<<set $args[0].bellyImplant = $args[1].bellyImplant>>
<<set $args[0].bellyPain = $args[1].bellyPain>>
<<set $args[0].cervixImplant = $args[1].cervixImplant>>
<<set $args[0].pubertyAgeXX = $args[1].pubertyAgeXX>>
<<set $args[0].pubertyXX = $args[1].pubertyXX>>
<<set $args[0].pubertyAgeXY = $args[1].pubertyAgeXY>>
<<set $args[0].pubertyXY = $args[1].pubertyXY>>
<<set $args[0].scars = $args[1].scars>>
<<set $args[0].breedingMark = $args[1].breedingMark>>
<<set $args[0].underArmHColor = $args[1].underArmHColor>>
<<set $args[0].underArmHStyle = $args[1].underArmHStyle>>
<<set $args[0].publicCount = $args[1].publicCount>>
<<set $args[0].ballType = $args[1].ballType>>
<<set $args[0].eggType = $args[1].eggType>>
<<set $args[0].pregControl = $args[1].pregControl>>
<<set $args[0].readyLimbs = $args[1].readyLimbs>>
<<set $args[0].bald = $args[1].bald>>
<<set $args[0].hormoneBalance = $args[1].hormoneBalance>>
<<set $args[0].breastMesh = $args[1].breastMesh>>
<<set $args[0].buttplugAttachment = $args[1].buttplugAttachment>>
<<set $args[0].vasectomy = $args[1].vasectomy>>
<<set $args[0].haircuts = $args[1].haircuts>>
<<set $args[0].pregKnown = $args[1].pregKnown>>
<<set $args[0].pregWeek = $args[1].pregWeek>>
<<set $args[0].ovaryAge = $args[1].ovaryAge>>
<<set $args[0].belly = $args[1].belly>>
<<set $args[0].bellyPreg = $args[1].bellyPreg>>
<<set $args[0].bellyFluid = $args[1].bellyFluid>>

<<set $args[0].canRecruit = 0>>

<<if $swapFailure > 600>>
	<<set $args[0].bodySwap = 1>>
<<elseif $args[0].bodySwap == 0>>
	<<set $args[0].bodySwap = 2>>
<</if>>

<</widget>>


code:
:: death widgets [widget nobr]

<<widget "pop">>

<br>

As $args[0].slaveName is going about her business with her overfilled $args[0].inflationType belly, she can't help but feel exhausted. Her health has been poor lately and the pressure in her organs is not helping things. She immediately knows something is wrong when an intense pain runs through her middle and her load shifts threateningly. Blood and $args[0].inflationType leak from her rear as her body cavity fills with the contents of her digestive track. The skin of her taut belly reddens as the pressure against it builds. As she takes her last breath, she falls forward, her weight landing upon her straining stomach. With a gush, she ruptures, flooding the area around her with blood, guts and $args[0].inflationType. Word of the late slave and her gruesome fate spread fast, @@.gold;terrifying@@ your untrusting slaves.
<<for _dw = 0; _dw < $slaves.length; _dw++>>
	<<if ($slaves[_dw].trust <= 50)>>
	<<if ($slaves[_dw].inflation >= 0)>>
		<<set $slaves[_dw].trust -= ((($slaves[_dw].inflation)^3)*5)>>
	<<else>>
		<<set $slaves[_dw].trust -= 10>>
	<</if>>
	<</if>>
<</for>>

<</widget>>

<<widget "DeathOldAge">>
	<<SlavePronouns $args[0]>>
	<<if $args[0].assignment == "be confined in the arcade">>
		You are notified by $arcadeName staff that one of the cabinets has broken down and will need to be replaced. It would seem ''@@.pink;$args[0].slaveName@@'', the fucktoy encased in it, died naturally of old age despite $possessive living conditions. $pronounCap was a good unit; logs show $pronoun was taking dick up until the very end.
	<<elseif $args[0].assignment == "work in the dairy" && $dairyRestraintsSetting > 1>>
		You are notified by $dairyName staff that one of the occupied milkers has ceased producing. Upon inspection, it would seem ''@@.pink;$args[0].slaveName@@'', the cow restrained in it, died naturally of old age despite $possessive living conditions. $pronounCap was a good cow; $pronoun gave milk up until $possessive death.
	<<elseif $args[0].fuckdoll > 0>>
		One of your fuckdoll's monitoring systems alerts you that the slave contained within has died. It would seem ''@@.pink;$args[0].slaveName@@'' has died naturally of old age despite $possessive living conditions. Thankfully the suit notifies its owner of such things; especially with the rumors of earlier models and necrophilia you hear occasionally.
	<<else>>
		''@@.pink;$args[0].slaveName@@'' failed to report in for a routine inspection, something that rarely occurs under your watch. It doesn't take long to track down the wayward slave.
		<<set _deathSeed = random(1,100)>>
		<<if _deathSeed > 75>>
			$pronounCap is found dead in $possessive bed, having died sometime during the previous night.
		<<elseif _deathSeed > 50>>
			$pronounCap is found dead in a stairwell, having had a heart attack while trying to climb it.
		<<elseif _deathSeed > 25>>
			$pronounCap is found dead in the showers, having slipped sometime earlier.
		<<else>>
			<<if $args[0].releaseRules != "restrictive" && $args[0].releaseRules != "masturbation">>
				$pronounCap is found dead in the bed of another slave, having died during intercourse. $possessiveCap lover is not taking it well.
			<<else>>
				$pronounCap is found dead in the cafeteria, having died during breakfast; $pronoun ruined the day for a number of your slaves.
			<</if>>
		<</if>>
		$args[0].slaveName died at the age of $args[0].actualAge;
		<<if $args[0].actualAge < 10>>
			$pronoun lived a tragically short life.
		<<elseif $args[0].actualAge < 20>>
			$pronoun died far too young.
		<<elseif $args[0].actualAge < 30>>
			$pronoun died in what would be a sex slave's prime.
		<<elseif $args[0].actualAge < 50>>
			$pronoun died in $possessive prime.
		<<elseif $args[0].actualAge < 65>>
			$pronoun lived a fair life, good or bad.
		<<elseif $args[0].actualAge < 90>>
			$pronoun lived a long life and experienced much during it.
		<<else>>
			$pronoun lived a very long life that few get to see.
		<</if>>
	<</if>>
<</widget>>

<<widget "DeathOverdose">>
	<<SlavePronouns $args[0]>>
	<<if $args[0].assignment == "be confined in the arcade">>
		You are notified by $arcadeName staff that one of the cabinets has broken down and will need to be replaced. It would seem ''@@.pink;$args[0].slaveName@@'', the fucktoy encased in it, died of an aphrodisiac overdose from the constant aphrodisiac injections. $pronounCap was a good unit; logs show $pronoun was taking dick up until the very end.
	<<elseif $args[0].assignment == "work in the dairy" && $dairyRestraintsSetting > 1>>
		You are notified by $dairyName staff that one of the occupied milkers has ceased producing. Upon inspection, it would seem ''@@.pink;$args[0].slaveName@@'', the cow restrained in it, died of an aphrodisiac overdose. How she managed to get them is unknown, but $pronoun was a good cow; $pronoun gave milk up until $possessive death.
	<<elseif $args[0].fuckdoll > 0>>
		One of your fuckdoll's monitoring systems alerts you that the slave contained within has died. It would seem ''@@.pink;$args[0].slaveName@@'' has died of an aphrodisiac overdose. Thankfully the suit notifies its owner of such things; especially with the rumors of earlier models and necrophilia you hear occasionally. It does little to deal with the resulting mess of the orgasm it died during, however.
	<<else>>
		''@@.pink;$args[0].slaveName@@'' failed to report in for a routine inspection, something that rarely occurs under your watch. It doesn't take long to track down the wayward slave.
		$pronounCap is found dead in $possessive bed, having died sometime earlier. Judging by the mess and the expression on $possessive face, $pronoun died of a heart attack during a particularly intense orgasm bought about by the massive amount of aphrodisiacs in her system. $args[0].slaveName died at the age of $args[0].actualAge;
		<<if $args[0].actualAge < 10>>
			$pronoun lived a tragically short life.
		<<elseif $args[0].actualAge < 20>>
			$pronoun died far too young.
		<<elseif $args[0].actualAge < 30>>
			$pronoun died in what would be a sex slave's prime.
		<<elseif $args[0].actualAge < 50>>
			$pronoun died in $possessive prime.
		<<elseif $args[0].actualAge < 65>>
			$pronoun lived a fair life, good or bad.
		<<elseif $args[0].actualAge < 90>>
			$pronoun lived a long life and experienced much during it.
		<<else>>
			$pronoun lived a very long life that few get to see.
		<</if>>
	<</if>>
<</widget>>

<<widget "DeathUnhealthy">>
	<<SlavePronouns $args[0]>>
	<<if $args[0].assignment == "be confined in the arcade">>
		You are notified by $arcadeName staff that one of the cabinets has broken down and will need to be replaced. It would seem ''@@.pink;$args[0].slaveName@@'', the fucktoy encased in it, died to poor health caused by $possessive living conditions. $pronounCap was a good unit; logs show $pronoun was taking dick up until the very end.
	<<elseif $args[0].assignment == "work in the dairy" && $dairyRestraintsSetting > 1>>
		You are notified by $dairyName staff that one of the occupied milkers has ceased producing. Upon inspection, it would seem ''@@.pink;$args[0].slaveName@@'', the cow restrained in it, died to poor health caused by $possessive living conditions. $pronounCap was a good cow; $pronoun gave milk up until $possessive death.
	<<elseif $args[0].fuckdoll > 0>>
		One of your fuckdoll's monitoring systems alerts you that the slave contained within has died. It would seem ''@@.pink;$args[0].slaveName@@'' has died of general poor health. Thankfully the suit notifies its owner of such things; especially with the rumors of earlier models and necrophilia you hear occasionally. Clean up is easy enough, however.
	<<else>>
		''@@.pink;$args[0].slaveName@@'' failed to report in for a routine inspection, something that rarely occurs under your watch. It doesn't take long to track down the wayward slave.
		$pronounCap is found dead in $possessive bed, having died sometime during the night. $pronounCap has been in very poor health lately, so you knew this was a possibility. $args[0].slaveName died at the age of $args[0].actualAge;
		<<if $args[0].actualAge < 10>>
			$pronoun lived a tragically short life.
		<<elseif $args[0].actualAge < 20>>
			$pronoun died far too young.
		<<elseif $args[0].actualAge < 30>>
			$pronoun died in what would be a sex slave's prime.
		<<elseif $args[0].actualAge < 50>>
			$pronoun died in $possessive prime.
		<<elseif $args[0].actualAge < 65>>
			$pronoun lived a fair life, good or bad.
		<<elseif $args[0].actualAge < 90>>
			$pronoun lived a long life and experienced much during it.
		<<else>>
			$pronoun lived a very long life that few get to see.
		<</if>>
		<<if $arcologies[0].FSPaternalist != "unset">>
			Allowing a slave to die under your care @@.red;severely damages@@ your image as a caring slave owner and @@.red;calls into question@@ your paternalistic resolve.
			<<FSChange "Paternalist" -10>>
		<</if>>
	<</if>>
<</widget>>

<<widget "DeathPregnancyBurst">>
<</widget>>