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>>
	<<set $slaves[$i].inflationType = 0>>
	<<set $slaves[$i].inflationMethod = 0>>
	<<set $slaves[$i].milkSource = 0>>
<</if>>

<<if $slaves[$i].inflationType == "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 @@color:red;painfully full@@ for you.
		<<set $slaves[$i].health -= 1.0>>
	<<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>>

<<elseif $slaves[$i].inflationType == "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. @@color:yellow;Her inflation regimen has been ended.@@
				<<set $slaves[$i].inflation = 0>>
				<<set $slaves[$i].inflationType = 0>>
				<<set $slaves[$i].inflationMethod = 0>>
			<<elseif $slaves[$i].inflation == 3>>
				Throughout the week, she @@color:mediumorchid;reluctantly@@ sucks from the dairy tap until her stomach is @@color:red;painfully bloated@@ with nearly two gallons of milk, leaving her looking ready to burst. She struggles to keep her fatty, liquid meal down, @@color:gold;fearing@@ punishment otherwise.
				<<set $slaves[$i].health -= 10>>
				<<set $slaves[$i].devotion -= 8>>
				<<set $slaves[$i].trust -= 8>>
			<<elseif $slaves[$i].inflation == 2>>
				Throughout the week, she @@color: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, @@color:gold;fearing@@ punishment otherwise.
				<<set $slaves[$i].devotion -= 5>>
				<<set $slaves[$i].trust -= 5>>
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, she @@color: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, @@color:gold;fearing@@ punishment otherwise.
				<<set $slaves[$i].devotion -= 3>>
				<<set $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. @@color:yellow;Her inflation regimen has been ended.@@
				<<set $slaves[$i].inflation = 0>>
				<<set $slaves[$i].inflationType = 0>>
				<<set $slaves[$i].inflationMethod = 0>>
			<<elseif $slaves[$i].inflation == 3>>
				Throughout the week, she @@color:mediumorchid;reluctantly@@ fills her rectum from the dairy tap until her stomach is @@color:red;painfully bloated@@ with nearly two gallons of milk, leaving her looking ready to burst. She struggles to keep the fattening load inside her, @@color:gold;fearing@@ punishment otherwise.
				<<set $slaves[$i].health -= 10>>
				<<set $slaves[$i].devotion -= 8>>
				<<set $slaves[$i].trust -= 8>>
			<<elseif $slaves[$i].inflation == 2>>
				Throughout the week, she @@color: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, @@color:gold;fearing@@ punishment otherwise.
				<<set $slaves[$i].devotion -= 5>>
				<<set $slaves[$i].trust -= 5>>
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, she @@color: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, @@color:gold;fearing@@ punishment otherwise.
				<<set $slaves[$i].devotion -= 3>>
				<<set $slaves[$i].trust -= 3>>
			<</if>>
		<<elseif $slaves[$i].inflationMethod == 3>>
			<<for $j to 0; $j < $slaves.length; $j++>>
				<<if $slaves[$i].milkSource == $slaves[$j].ID>>
					<<break>>
				<</if>>
			<</for>>
			<<if $slaves[$j].lactation == 0>>
					$slaves[$j].slaveName is no longer lactating and thus can no longer keep $slaves[$i].slaveName filled with milk. @@color:yellow;Her inflation regimen has been ended.@@
				<<set $slaves[$i].inflation = 0>>
				<<set $slaves[$i].inflationType = 0>>
				<<set $slaves[$i].inflationMethod = 0>>
				<<set $slaves[$i].milkSource = 0>>
			<<elseif $slaves[$i].inflation == 3>>
				Throughout the week, she @@color:mediumorchid;reluctantly@@ suckles from $slaves[$j].slaveName until her stomach is @@color:red;painfully bloated@@ with nearly two gallons of milk, leaving her looking ready to burst. She struggles to keep her fatty, liquid meal down, @@color:gold;fearing@@ punishment otherwise.
				<<set $slaves[$i].health -= 10>>
				<<set $slaves[$i].devotion -= 8>>
				<<set $slaves[$i].trust -= 8>>
			<<elseif $slaves[$i].inflation == 2>>
				Throughout the week, she @@color:mediumorchid;reluctantly@@ suckles from $slaves[$j].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, @@color:gold;fearing@@ punishment otherwise.
				<<set $slaves[$i].devotion -= 5>>
				<<set $slaves[$i].trust -= 5>>
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, she @@color:mediumorchid;reluctantly@@ suckles from $slaves[$j].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, @@color:gold;fearing@@ punishment otherwise.
				<<set $slaves[$i].devotion -= 3>>
				<<set $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. @@color:yellow;Her inflation regimen has been ended.@@
				<<set $slaves[$i].inflation = 0>>
				<<set $slaves[$i].inflationType = 0>>
				<<set $slaves[$i].inflationMethod = 0>>
			<<elseif $slaves[$i].inflation == 3>>
				Throughout the week, she @@color:hotpink;eagerly@@ sucks from the dairy tap until her stomach is @@color:red;painfully bloated@@ with nearly two gallons of milk, leaving her looking ready to burst. She rubs her full belly @@color:mediumaquamarine;contently@@, anticipating her next gorging.
				<<set $slaves[$i].health -= 10>>
				<<set $slaves[$i].devotion += 5>>
				<<set $slaves[$i].trust += 5>>
			<<elseif $slaves[$i].inflation == 2>>
				Throughout the week, she @@color: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 @@color:mediumaquamarine;contently@@, anticipating her next feeding.
				<<set $slaves[$i].devotion += 4>>
				<<set $slaves[$i].trust += 4>>
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, she @@color: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 @@color:mediumaquamarine;contently@@, anticipating her next meal.
				<<set $slaves[$i].devotion += 3>>
				<<set $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. @@color:yellow;Her inflation regimen has been ended.@@
				<<set $slaves[$i].inflation = 0>>
				<<set $slaves[$i].inflationType = 0>>
				<<set $slaves[$i].inflationMethod = 0>>
			<<elseif $slaves[$i].inflation == 3>>
				Throughout the week, she @@color:hotpink;happily@@ fills her rectum from the dairy tap until her stomach is @@color:red;painfully bloated@@ with nearly two gallons of milk, leaving her looking ready to burst. She rubs her taut belly @@color:mediumaquamarine;contently@@, though she wishes she could have swallowed it instead.
				<<set $slaves[$i].health -= 10>>
				<<set $slaves[$i].devotion += 4>>
				<<set $slaves[$i].trust += 4>>
			<<elseif $slaves[$i].inflation == 2>>
				Throughout the week, she @@color: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 @@color:mediumaquamarine;contently@@, though she wishes she could have swallowed it instead.
				<<set $slaves[$i].devotion += 3>>
				<<set $slaves[$i].trust += 3>>
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, she @@color: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 @@color:mediumaquamarine;contently@@, though she wishes she could have swallowed it instead.
				<<set $slaves[$i].devotion += 1>>
				<<set $slaves[$i].trust += 1>>
			<</if>>
		<<elseif $slaves[$i].inflationMethod == 3>>
			<<for $j to 0; $j < $slaves.length; $j++>>
				<<if $slaves[$i].milkSource == $slaves[$j].ID>>
					<<break>>
				<</if>>
			<</for>>
			<<if $slaves[$j].lactation == 0>>
					$slaves[$j].slaveName is no longer lactating and thus can no longer keep $slaves[$i].slaveName filled with milk. @@color:yellow;Her inflation regimen has been ended.@@
				<<set $slaves[$i].inflation = 0>>
				<<set $slaves[$i].inflationType = 0>>
				<<set $slaves[$i].inflationMethod = 0>>
				<<set $slaves[$i].milkSource = 0>>
			<<elseif $slaves[$i].inflation == 3>>
				Throughout the week, she @@color:hotpink;eagerly@@ sucks from $slaves[$j].slaveName until her stomach is @@color:red;painfully bloated@@ with nearly two gallons of milk, leaving her looking ready to burst. She rubs her full belly @@color:mediumaquamarine;contently@@, anticipating her next gorging.
				<<set $slaves[$i].health -= 10>>
				<<set $slaves[$i].devotion += 5>>
				<<set $slaves[$i].trust += 5>>
			<<elseif $slaves[$i].inflation == 2>>
				Throughout the week, she @@color:hotpink;eagerly@@ sucks from $slaves[$j].slaveName until her stomach is bloated with nearly four liters of milk, leaving her looking pregnant. She rubs her taut belly @@color:mediumaquamarine;contently@@, anticipating her next feeding.
				<<set $slaves[$i].devotion += 4>>
				<<set $slaves[$i].trust += 4>>
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, she @@color:hotpink;eagerly@@ sucks from $slaves[$j].slaveName until her stomach is bloated with nearly two liters of milk, leaving her belly noticeably distended. She rubs her sloshing belly @@color:mediumaquamarine;contently@@, anticipating her next meal.
				<<set $slaves[$i].devotion += 3>>
				<<set $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. @@color:yellow;Her inflation regimen has been ended.@@
				<<set $slaves[$i].inflation = 0>>
				<<set $slaves[$i].inflationType = 0>>
				<<set $slaves[$i].inflationMethod = 0>>
			<<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 @@color: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 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. @@color:yellow;Her inflation regimen has been ended.@@
				<<set $slaves[$i].inflation = 0>>
				<<set $slaves[$i].inflationType = 0>>
				<<set $slaves[$i].inflationMethod = 0>>
			<<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 @@color: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, leavign 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>>
			<<for $j to 0; $j < $slaves.length; $j++>>
				<<if $slaves[$i].milkSource == $slaves[$j].ID>>
					<<break>>
				<</if>>
			<</for>>
			<<if $slaves[$j].lactation == 0>>
					$slaves[$j].slaveName is no longer lactating and thus can no longer keep $slaves[$i].slaveName filled with milk. @@color:yellow;Her inflation regimen has been ended.@@
				<<set $slaves[$i].inflation = 0>>
				<<set $slaves[$i].inflationType = 0>>
				<<set $slaves[$i].inflationMethod = 0>>
				<<set $slaves[$i].milkSource = 0>>
			<<elseif $slaves[$i].inflation == 3>>
				Throughout the week, she makes sure keep suckling from $slaves[$j].slaveName until she is filled with nearly two gallons of milk, leaving her looking ready to give birth. She keeps herself @@color: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[$j].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[$j].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>>

<<elseif $slaves[$i].inflationType == "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. @@color:yellow;Her inflation regimen has been ended.@@
				<<set $slaves[$i].inflation = 0>>
				<<set $slaves[$i].inflationType = 0>>
				<<set $slaves[$i].inflationMethod = 0>>
			<<elseif $slaves[$i].inflation == 3>>
				Throughout the week, she @@color:mediumorchid;reluctantly@@ sucks from the dairy tap until her stomach is @@color:red;painfully bloated@@ with nearly two gallons of cum, leaving her looking ready to burst. She struggles to keep her liquid meal down, @@color:gold;fearing@@ punishment otherwise.
				<<set $slaves[$i].health -= 10>>
				<<set $slaves[$i].devotion -= 8>>
				<<set $slaves[$i].trust -= 8>>
			<<elseif $slaves[$i].inflation == 2>>
				Throughout the week, she @@color: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, @@color:gold;fearing@@ punishment otherwise.
				<<set $slaves[$i].devotion -= 5>>
				<<set $slaves[$i].trust -= 5>>
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, she @@color: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, @@color:gold;fearing@@ punishment otherwise.
				<<set $slaves[$i].devotion -= 3>>
				<<set $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. @@color:yellow;Her inflation regimen has been ended.@@
				<<set $slaves[$i].inflation = 0>>
				<<set $slaves[$i].inflationType = 0>>
				<<set $slaves[$i].inflationMethod = 0>>
			<<elseif $slaves[$i].inflation == 3>>
				Throughout the week, she @@color:mediumorchid;reluctantly@@ fills her rectum from the dairy tap until her stomach is @@color:red;painfully bloated@@ with nearly two gallons of cum, leaving her looking ready to burst. She struggles to keep the massive cumshot inside her, @@color:gold;fearing@@ punishment otherwise.
				<<set $slaves[$i].health -= 10>>
				<<set $slaves[$i].devotion -= 8>>
				<<set $slaves[$i].trust -= 8>>
			<<elseif $slaves[$i].inflation == 2>>
				Throughout the week, she @@color: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, @@color:gold;fearing@@ punishment otherwise.
				<<set $slaves[$i].devotion -= 5>>
				<<set $slaves[$i].trust -= 5>>
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, she @@color: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, @@color:gold;fearing@@ punishment otherwise.
				<<set $slaves[$i].devotion -= 3>>
				<<set $slaves[$i].trust -= 3>>
			<</if>>
		<<elseif $slaves[$i].inflationMethod == 3>>
			<<for $j to 0; $j < $slaves.length; $j++>>
				<<if $slaves[$i].cumSource == $slaves[$j].ID>>
					<<break>>
				<</if>>
			<</for>>
			<<if $slaves[$j].balls == 0>>
					$slaves[$j].slaveName has no longer has testicles and thus can no longer keep $slaves[$i].slaveName filled with cum. @@color:yellow;Her inflation regimen has been ended.@@
				<<set $slaves[$i].inflation = 0>>
				<<set $slaves[$i].inflationType = 0>>
				<<set $slaves[$i].inflationMethod = 0>>
				<<set $slaves[$i].cumSource = 0>>
			<<elseif $slaves[$i].inflation == 3>>
				Throughout the week, she @@color:mediumorchid;reluctantly@@ sucks $slaves[$j].slaveName's cock until her stomach is @@color:red;painfully bloated@@ with nearly two gallons of cum, leaving her looking ready to burst. She struggles to keep her liquid meal down, @@color:gold;fearing@@ punishment otherwise.
				<<set $slaves[$i].health -= 10>>
				<<set $slaves[$i].devotion -= 8>>
				<<set $slaves[$i].trust -= 8>>
			<<elseif $slaves[$i].inflation == 2>>
				Throughout the week, she @@color:mediumorchid;reluctantly@@ sucks $slaves[$j].slaveName's cock until her stomach is bloated with nearly four liters of cum, leaving her looking pregnant. She struggles to keep her liquid meal down, @@color:gold;fearing@@ punishment otherwise.
				<<set $slaves[$i].devotion -= 5>>
				<<set $slaves[$i].trust -= 5>>
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, she @@color:mediumorchid;reluctantly@@ sucks $slaves[$j].slaveName's cock until her stomach is bloated with nearly two liters of cum, leaving her belly noticeably distended. She struggles to keep her liquid meal down, @@color:gold;fearing@@ punishment otherwise.
				<<set $slaves[$i].devotion -= 3>>
				<<set $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. @@color:yellow;Her inflation regimen has been ended.@@
				<<set $slaves[$i].inflation = 0>>
				<<set $slaves[$i].inflationType = 0>>
				<<set $slaves[$i].inflationMethod = 0>>
			<<elseif $slaves[$i].inflation == 3>>
				Throughout the week, she @@color:hotpink;eagerly@@ sucks from the dairy tap until her stomach is @@color:red;painfully bloated@@ with nearly two gallons of cum, leaving her looking ready to burst. She rubs her full belly @@color:mediumaquamarine;contently@@, anticipating her next gorging.
				<<set $slaves[$i].health -= 10>>
				<<set $slaves[$i].devotion += 5>>
				<<set $slaves[$i].trust += 5>>
			<<elseif $slaves[$i].inflation == 2>>
				Throughout the week, she @@color: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 @@color:mediumaquamarine;contently@@, anticipating her next feeding.
				<<set $slaves[$i].devotion += 4>>
				<<set $slaves[$i].trust += 4>>
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, she @@color: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 @@color:mediumaquamarine;contently@@, anticipating her next meal.
				<<set $slaves[$i].devotion += 3>>
				<<set $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. @@color:yellow;Her inflation regimen has been ended.@@
				<<set $slaves[$i].inflation = 0>>
				<<set $slaves[$i].inflationType = 0>>
				<<set $slaves[$i].inflationMethod = 0>>
			<<elseif $slaves[$i].inflation == 3>>
				Throughout the week, she @@color:hotpink;happily@@ fills her rectum from the dairy tap until her stomach is @@color:red;painfully bloated@@ with nearly two gallons of cum, leaving her looking ready to burst. She rubs her taut belly @@color:mediumaquamarine;contently@@, though she wishes she could have swallowed it instead.
				<<set $slaves[$i].health -= 10>>
				<<set $slaves[$i].devotion += 4>>
				<<set $slaves[$i].trust += 4>>
			<<elseif $slaves[$i].inflation == 2>>
				Throughout the week, she @@color: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 @@color:mediumaquamarine;contently@@, though she wishes she could have swallowed it instead.
				<<set $slaves[$i].devotion += 3>>
				<<set $slaves[$i].trust += 3>>
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, she @@color: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 @@color:mediumaquamarine;contently@@, though she wishes she could have swallowed it instead.
				<<set $slaves[$i].devotion += 1>>
				<<set $slaves[$i].trust += 1>>
			<</if>>
		<<elseif $slaves[$i].inflationMethod == 3>>
			<<for $j to 0; $j < $slaves.length; $j++>>
				<<if $slaves[$i].cumSource == $slaves[$j].ID>>
					<<break>>
				<</if>>
			<</for>>
			<<if $slaves[$j].balls == 0>>
					$slaves[$j].slaveName has no longer has testicles and thus can no longer keep $slaves[$i].slaveName filled with cum. @@color:yellow;Her inflation regimen has been ended.@@
				<<set $slaves[$i].inflation = 0>>
				<<set $slaves[$i].inflationType = 0>>
				<<set $slaves[$i].inflationMethod = 0>>
				<<set $slaves[$i].cumSource = 0>>
			<<elseif $slaves[$i].inflation == 3>>
				Throughout the week, she @@color:hotpink;eagerly@@ sucks $slaves[$j].slaveName's cock until her stomach is @@color:red;painfully bloated@@ with nearly two gallons of cum, leaving her looking ready to burst. She rubs her full belly @@color:mediumaquamarine;contently@@, anticipating her next gorging.
				<<set $slaves[$i].health -= 10>>
				<<set $slaves[$i].devotion += 5>>
				<<set $slaves[$i].trust += 5>>
			<<elseif $slaves[$i].inflation == 2>>
				Throughout the week, she @@color:hotpink;eagerly@@ sucks $slaves[$j].slaveName's cock until her stomach is bloated with nearly four liters of cum, leaving her looking pregnant. She rubs her taut belly @@color:mediumaquamarine;contently@@, anticipating her next feeding.
				<<set $slaves[$i].devotion += 4>>
				<<set $slaves[$i].trust += 4>>
			<<elseif $slaves[$i].inflation == 1>>
				Throughout the week, she @@color:hotpink;eagerly@@ sucks $slaves[$j].slaveName's cock until her stomach is bloated with nearly two liters of cum, leaving her belly noticeably distended. She rubs her sloshing belly @@color:mediumaquamarine;contently@@, anticipating her next meal.
				<<set $slaves[$i].devotion += 3>>
				<<set $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. @@color:yellow;Her inflation regimen has been ended.@@
				<<set $slaves[$i].inflation = 0>>
				<<set $slaves[$i].inflationType = 0>>
				<<set $slaves[$i].inflationMethod = 0>>
			<<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 @@color: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 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. @@color:yellow;Her inflation regimen has been ended.@@
				<<set $slaves[$i].inflation = 0>>
				<<set $slaves[$i].inflationType = 0>>
				<<set $slaves[$i].inflationMethod = 0>>
			<<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 @@color: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>>
			<<for $j to 0; $j < $slaves.length; $j++>>
				<<if $slaves[$i].cumSource == $slaves[$j].ID>>
					<<break>>
				<</if>>
			<</for>>
			<<if $slaves[$j].balls == 0>>
					$slaves[$j].slaveName has no longer has testicles and thus can no longer keep $slaves[$i].slaveName filled with cum. @@color:yellow;Her inflation regimen has been ended.@@
				<<set $slaves[$i].inflation = 0>>
				<<set $slaves[$i].inflationType = 0>>
				<<set $slaves[$i].inflationMethod = 0>>
				<<set $slaves[$i].cumSource = 0>>
			<<elseif $slaves[$i].inflation == 3>>
				Throughout the week, she makes sure keep sucking $slaves[$j].slaveName's cock until she is filled with nearly two gallons of cum, leaving her looking ready to burst. She keeps herself @@color:red;painfully full@@ for you.
				<<set $slaves[$i].health -= 10>>
			<<elseif $slaves[$i].inflation == 2>>
				Throughout the week, she makes sure keep sucking $slaves[$j].slaveName's cock 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[$j].slaveName's cock 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>>
<</if>>

<<if $slaves[$i].fetish == "cumslut">>
<<if $slaves[$i].inflationType == "cum">>
	Being so full of cum fills her with @@color:hotpink;absolute bliss@@.
	<<set $slaves[$i].devotion += 5>>
<</if>>
<</if>>
<<if $slaves[$i].behavioralQuirk is "fitness">>
<<if $slaves[$i].inflationType == "milk" || $slaves[$i].inflationType == "cum">>
	She vows to exercise more to deal with @@color:mediumorchid;the bloated belly you forced on her@@. Though gaining weight just means more opportunities to work out.
	<<set $slaves[$i].devotion -= 3>>
<</if>>
<</if>>

<<if $slaves[$i].inflationType == "milk" && $slaves[$i].inflation > 1>>
	<<if $slaves[$i].weight < 100>>
		Her body @@color:lime;grows a little more padded@@ as it absorbs the milk contained in her digestive track.
		<<set $slaves[$i].weight += 2>>
	<</if>>
	<<if random(1,100) > 50>>
	<<if $slaves[$i].boobs < 3000>>
		Her breasts @@color:lime;swell@@ with added fat as she digests the milk contained in her digestive track.
		<<set $slaves[$i].boobs += 200>>
	<</if>>
	<<if $slaves[$i].butt < 7>>
		Her butt @@color:lime;swells@@ with added fat as she digests the milk contained in her digestive track.
		<<set $slaves[$i].butt += 1>>
	<</if>>
	<</if>>
<</if>>


code:
:: SE Burst [nobr]

<<set $nextButton to "Continue">>
<<set $returnTo to "Scheduled Event">>

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

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

<<set $activeSlave = $slaves[$i]>>
<<display "Remove activeSlave">>

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

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

repo_name: ThreadAnon/fc


code:
:: SE husk slave delivery [nobr]

<<set $nextButton to "Continue">>
<<set $nextLink to "Scheduled Event">>
<<set $returnTo to "Scheduled Event">>
<<set $showEncyclopedia to 1>><<set $encyclopedia to "Enslaving People">>

<<set $huskSlaveOrdered to 0>>

<<set $activeSlaveOneTimeMinAge to $huskSlave.age>>
<<set $activeSlaveOneTimeMaxAge to $huskSlave.age>>
<<if $huskSlave.sex == 2>>
	<<display "Generate XY Slave">>
	<<set $activeSlave.boobs = 0>>
	<<set $activeSlave.boobsImplant = 0>>
<<else>>
	<<display "Generate XX Slave">>
<</if>>

<<set $activeSlave.slaveName to "irrelavant">>
<<set $activeslave.birthName to "">>
<<set $activeSlave.nationality = $huskSlave.nationality>>
<<set $activeSlave.race = $huskSlave.race>>
<<set $activeSlave.origin to "You reserved a mindless slave like her from the Flesh Heap.">>
<<set $activeSlave.devotion = 0)>>
<<set $activeSlave.trust = 0>>

<<if $activeSlave.race is "black">>
	<<set $activeSlave.skin to either("black", "brown", "light brown")>>
	<<set $activeSlave.hColor to either("black", "black", "black", "brown")>>
	<<set $activeSlave.hStyle to either("shoulder-length", "short", "very short", "shaved bald", "crinkled")>>
<<elseif $activeSlave.race is "white">>
	<<set $activeSlave.skin to either("pale", "tanned", "fair")>>
	<<set $activeSlave.eyeColor to either("blue", "brown", "green")>>
	<<set $activeSlave.hColor to either("black", "blonde", "red", "brown")>>
	<<set $activeSlave.hStyle to either("ass-length", "long", "shoulder-length", "short", "very short", "shaved bald")>>
<<elseif $activeSlave.race is "latina">>
    <<set $activeSlave.skin to either("olive", "brown", "light brown", "tanned", "fair")>>
	<<set $activeSlave.hColor to either("black", "black", "brown", "brown")>>
	<<set $activeSlave.hStyle to either("ass-length", "long", "shoulder-length", "short", "very short", "shaved bald")>>
<<elseif $activeSlave.race is "asian">>
	<<set $activeSlave.skin to either("pale", "dark", "light")>>
	<<set $activeSlave.hColor to either("black")>>
	<<set $activeSlave.hStyle to either("ass-length", "long", "shoulder-length", "short", "very short", "shaved bald")>>
<<elseif ($activeSlave.race is "indo-aryan") || ($activeSlave.race is "malay") || ($activeSlave.race is "pacific islander") || ($activeSlave.race is "amerindian")>>
	<<set $activeSlave.skin to either("pale", "dark", "light")>>
	<<set $activeSlave.hColor to either("black")>>
	<<set $activeSlave.hStyle to either("ass-length", "long", "shoulder-length", "short", "very short", "shaved bald")>>
<<elseif ($activeSlave.race is "middle eastern") || ($activeSlave.race is "semitic") || ($activeSlave.race is "southern European")>>
	<<set $activeSlave.skin to either("pale", "dark", "light")>>
	<<set $activeSlave.hColor to either("black")>>
	<<set $activeSlave.hStyle to 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.behavioralFlaw = "none">>
<<set $activeSlave.behavioralQuirk = "none">>
<<set $activeSlave.sexualFlaw = "none">>
<<set $activeSlave.sexualQuirk = "none">>
<<set $activeSlave.intelligence = -3>>
<<set $activeSlave.intilligenceImplant = 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.forskin = 2>>
	<<set $activeSlave.balls = 1>>
	<<if $activeSlave.physicalAge >= $potencyAge>>
		<<set $activeSlave.pubertyXY = 1>>
	<</if>>
<</if>>
<<if $activeSlave.balls > 0>>
	<<set $activeSlave.scrotum to $activeSlave.balls>>
<</if>>
<<if $activeSlave.vagina is -1>>
	<<set $activeSlave.clit to 0>>
<</if>>
<<if $huskSlave.virgin == 0>>
	<<set $activeSlave.anus = 0>>
	<<if $activeSlave.vagina > -1>>
		<<set $activeSlave.vagina = 0>>
	<</if>>
<</if>>

\
\

A slave come in matching 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 to 1>><<display "Long Slave Description">><<set $saleDescription to 0>>

<<if $cash >= $slaveCost>>\
	<<click "Accept the offered slave">>
	<<set $slaves.push($activeSlave)>>
	<<set $cash -= $slaveCost>>
	<<replace "#result">>
	She has been reasonably broken by the dealer that offered her to you. She has also picked up on the fact that she was specially selected, and is a little hopeful that this means she may be treated well. She is now awaiting your instructions.
	<<set $nextLink to "AS Dump">>\
	<<set $returnTo to "Random Nonindividual Event">>\
	<<display "New Slave Intro">>
	<</replace>>
<</click>>
<<else>>\
	//You can't sustain her and thus must return her.//
<</if>>\


code:
:: SE Player Birth [nobr]

<<set $nextButton to "Continue">>
<<set $nextLink to "Scheduled Event">>

/*
PC.pregSource documentation
0  - unknown
-1 - Societal Elite
-2 - client
-3 - former master
-4 - male arc owner
*/

<<if $PC.births == 0>>
	<<set $badBirth = 30>>
<<else>>
	<<set $badBirth = 10>>
<</if>>

<<set $PC.preg = 0>>
<<set $PC.labor = 0>>
<<set $PC.births += 1>>
<<if $PC.pregSource == 0>>
	<<set $birthOther += 1>>
<<elseif $PC.pregSource == -1>>
	<<set $birthElite += 1>>
<<elseif $PC.pregSource == -2>>
	<<set $birthClient += 1>>
<<elseif $PC.pregSource == -3>>
	<<set $birthMaster += 1>>
<<elseif $PC.pregSource == -4>>
	<<set $birthArcOwner += 1>>
<<else>>
	<<set $birthDegenerate += 1>>
<</if>>

<<set $babyGender to either(1,2)>>
<<if $Cash4Babies == 1>>
	<<set $seed = random(1,10)>>
<</if>>

<<if $PC.pregSource == -1>>
	Since you are heavily pregnant with a child of the Societal Elite, you are quickly taken to the finest clinic the arcology has to offer. After a quick sedation, you awake to find your belly no longer round with child; that and a note stating your next breeding partner and a notice that ¤50000 has been added to your account. The Societal Elite are @@color:green;very pleased@@ at their new addition to the ranks. You just wish you could have seen your little <<if $babyGender == 1>>girl<<else>>boy<</if>> before they took <<if $babyGender == 1>>her<<else>>him<</if>> away to be raised into a proper member of the future world.
<<else>>
While sitting at your desk planning your day, @@color:lime;your water breaks,@@ thoroughly soaking your crotch and the slave servicing it. You pull your laboring body to its feet, notify $assistantName that it's time, and begin heading towards
<<if $masterSuite != 0 && $masterSuiteUpgradePregnancy == 1>>
	$masterSuiteName, since you had it redesigned to accommodate pregnant slaves. You should be able to give birth in both luxury and privacy there.
<<elseif $clinic != 0>>
	$clinicName, everything you'll need to give birth can be found there. Though you don't know how much privacy you'll be able to get there.
<<elseif $masterSuite != 0>>
	$masterSuiteName, since you'd like to be as comfortable as possible for the upcoming birth. You should be able to give birth in relative privacy there.
<<else>>
	your bed, since you'd like to be as comfortable as possible for the upcoming birth. You should be able to give birth in complete privacy there.
<</if>>

After what feels like a mile run, you finally waddle into your destination finding
<<if $Nurse != 0>>
	@@color:pink;$Nurse.slaveName@@ waiting for you with everything she needs to be a capable midwife to you.<<if $Concubine != 0>> @@color:pink;$Concubine.slaveName@@ wraps her arms around you from behind, letting you know she'll be here to comfort you while you labor.<</if>>
<<elseif $Bodyguard != 0>>
	@@color:pink;$Bodyguard.slaveName@@ waiting for you. Ever since she realized she was protecting for two, she made sure to hone her skills as a midwife to make sure she could protect you and your unborn child from any dangers.<<if $Concubine != 0>> @@color:pink;$Concubine.slaveName@@ wraps her arms around you from behind, letting you know she'll be here to comfort you while you labor.<</if>>
<<elseif $HeadGirl != 0>>
	@@color:pink;$HeadGirl.slaveName@@ is waiting for you. She promises to do everything she can to help you.<<if $Concubine != 0>> @@color:pink;$Concubine.slaveName@@ wraps her arms around you from behind, letting you know she'll be here to comfort you while you labor.<</if>>
<<elseif $Concubine != 0>>
	@@color:pink;$Concubine.slaveName@@ is waiting for you. She believes, if anything, that she could at least comfort you while you give birth.
<<else>>
	it quite empty. At least $assistantName knows where you are should anything go wrong.
<</if>>

You arrange yourself to give birth, relaxing until your body urges you to begin bearing down and pushing your child into the world.<<if $Concubine != 0>>$Concubine.slaveName settles in beside you, one hand soothing your contraction wracked middle and the other <<if $PC.dick == 1>>stroking your hardening dick<<else>>teasing your stiffening clit<</if>>.<</if>>
<<if $badBirth > random(1,100)>> /* shits going wrong */
	<<if $Nurse != 0>>
		You keep pushing and pushing, but your child is not coming out.<<if $Concubine != 0>> $Concubine.slaveName shifts to massaging your gravid middle, while whispering words of encouragement into your ear. Until $Nurse.slaveName shoos her away so she can take over and get this baby out of you.<</if>> $Nurse.slaveName was prepared for this possibility, adjusts your position and timings, and before long is holding your @@color:lime;new baby <<if $babyGender == 1>>girl<<else>>boy<</if>>@@ in her arms.
	<<elseif $BodyGuard != 0>>
		You keep pushing and pushing, but your child is not coming out.<<if $Concubine != 0>> $Concubine.slaveName shifts to massaging your gravid middle, while whispering words of encouragement into your ear. She begins to worry as her lover weakens in front of her. $Bodyguard.slaveName quickly pulls her away from you, fearing the worst.<</if>> $Bodyguard.slaveName read about this possibility and tries everything she can to coax your child out. As time passes, she notices your consciousness begin to fade as exhaustion kicks in. Fearing for your lives, and desperate to save you, she draws her sword from its sheath, hands unsteady from what she is about to do. Carefully, she slits your lower abdomen, allowing your baby-filled womb to pop out through the incision. Doing her best, she cuts open your uterus, pulls your child from you and severs the umbilical cord.

		You awake some time later in the remote surgery, your stomach extremely sore; you quickly realize you're no longer round with child. As you try to rise, $Bodyguard.slaveName stops you; she hefts you into a bridal carry and takes you to a recovery room, before gently placing you into a warm bed, tucking you in, and hurrying out of the room. Before you can call out, she returns carrying @@color:lime;your baby <<if $babyGender == 1>>girl<<else>>boy<</if>>@@ in her arms.
	<<elseif $HeadGirl != 0>>
		You keep pushing and pushing, but your child is not coming out.<<if $Concubine != 0>> $Concubine.slaveName shifts to massaging your gravid middle, while whispering words of encouragement into your ear. She begins to worry as her lover weakens in front of her. $HeadGirl.slaveName quickly pulls to her feet and orders her to help her carry you to the remote surgery.<<else>> $HeadGirl.slaveName notices your distress and carries you to the remote surgery.<</if>>

		You awake some time later in a recovery room<<if $Concubine != 0>>, $Concubine.slaveName beside you<</if>>, your stomach extremely sore; a quick glance at the prominent scar tells you everything you need to know. Seeing you're awake, $HeadGirl.slaveName catches your attention. In her arms is @@color:lime;your baby <<if $babyGender == 1>>girl<<else>>boy<</if>>@@, <<if $HeadGirl.lactation > 0>>happily nursing from her breast, <</if>>alive and well.
	<<elseif $Concubine != 0>>
		You keep pushing and pushing, but your child is not coming out. In a panic, $Concubine.slaveName carries you to the remote surgery.

		You awake some time later in a recovery room, your stomach extremely sore; a quick glance at the prominent scar tells you everything you need to know. A content sigh comes from beside you; $Concubine.slaveName is snuggled next to you, snoozing with @@color:lime;your baby <<if $babyGender == 1>>girl<<else>>boy<</if>>@@ in her arms.<<if $Concubine.lactation > 0>> Your child has managed to free one of $Concubine.slaveName's breasts and is eagerly suckling from her milky nipple.<</if>>
	<<else>>
		You keep pushing and pushing, but your child is not coming out. @@color:red;Something is wrong,@@ but you keep persisting.
		<<set $gameover to "birth complications">>
		<<set $nextButton to "Have to keep trying!">>
		<<set $nextLink to "Gameover">>
	<</if>>
<<else>>
	<<if $Nurse != 0>>
		Under $Nurse.slaveName's guidance, childbirth is a breeze for you.<<if $Concubine != 0>> Or it would have been, had $Concubine.slaveName not driven you to an intense orgasm right as your child entered the world.<</if>> $Nurse.slaveName cuts the cord, swaddles your child, and hands you @@color:lime;your new baby <<if $babyGender == 1>>girl<<else>>boy<</if>>.@@
	<<elseif $Bodyguard != 0>>
		With $Bodyguard.slaveName watching over you, you feel safe enough to let your guard down and focus on giving birth. Once you are relaxed, you feel your child begin to inch down your birth canal. Before long you've completed the job without any trouble.<<if $Concubine != 0>> Or it would have, had $Concubine.slaveName not driven you to an intense orgasm right as your child entered the world.<</if>> $Bodyguard.slaveName cuts the cord with her blade, and hands you @@color:lime;your new baby <<if $babyGender == 1>>girl<<else>>boy<</if>>.@@
	<<elseif $HeadGirl != 0>>
		With $HeadGirl.slaveName waiting with everything you need, childbirth goes by without a hitch.<<if $Concubine != 0>> Or it would have, had $Concubine.slaveName not driven you to an intense orgasm right as your child entered the world.<</if>> $Nurse.slaveName cuts the cord, swaddles your child, and hands you @@color:lime;your new baby <<if $babyGender == 1>>girl<<else>>boy<</if>>.@@
	<<elseif $Concubine != 0>>
		 $Concubine.slaveName alternates between calming your nerves and driving your to orgasm. It works fairly well, as your child rapidly enters the world alongside a particularly powerful climax. You reach down and draw @@color:lime;your new baby <<if $babyGender == 1>>girl<<else>>boy<</if>>@@ into your arms, while $Concubine.slaveName shifts to eagerly "clean" your crotch with her tongue.
	<<else>>
		You keep pushing and pushing, your child slowly working its way from your body. With the last of your strength, you bear down, freeing your child from your body at last. Panting, you gather @@color:lime;your new baby <<if $babyGender == 1>>girl<<else>>boy<</if>>@@ and drift off into a much deserved rest.
	<</if>>
<</if>>

<<if $PC.pregSource > 0>>
	<<for $i to 0; $i < $slaves.length; $i++>>
		<<if $slaves[$i].ID == $PC.pregSource>>
			Rumors spread that your child was fathered by a slave, @@color:red;harming your lasting reputation.@@
			<<set $PC.degeneracy += 20>>
			<<if $arcologies[0].FSSupremacist != "unset">>
				<<if $slaves[$i].race != $arcologies[0].FSSupremacistRace>>
					Furthermore, word is that your child was not $arcologies[0].FSSupremacistRace, @@color:red;hurting your lasting reputation.@@
					<<set $PC.degeneracy += 10>>
				<</if>>
			<</if>>
			<<if $arcologies[0].FSSubjugationist != "unset">>
				<<if $slaves[$i].race == $arcologies[0].FSSubjugationistRace>>
					In addition, there is a nasty rumor that you gave birth to a $arcologies[0].FSSubjugationistRace child, @@color:red;devastating your lasting reputation.@@
					<<set $PC.degeneracy += 50>>
				<</if>>
			<</if>>
		<</if>>
	<</for>>
<</if>>

Now you are faced with a decision of what to do with your new child. You're far too busy to keep it yourself, but you could @@color:orange;send your <<if $babyGender == 1>>daughter<<else>>son<</if>> to a boarding school to be raised until they are of age to serve as your heir.@@ The other option is to @@color:orange;send them to become a slave at a slave orphanage.@@<<if $Cash4Babies == 1>> Alternatively, since it is @@color:orange;legal to sell slave babies@@, your child should be worth quite a pretty ¤ at auction.<</if>>

What will it be?

<<click "Boarding School">><<replace "#choice">><<print "You have decided to send them away to be raised in your stead.">><</replace>><</click>> | <<click "Slave Orphanage">><<replace "#choice">><<print "You have decided to send them to a slave orphanage to be raised to $minimumSlaveAge and sold. Perhaps you'll even see them again, though you are unlikely to recognize them if you do.">><</replace>><</click>><<if $Cash4Babies == 1>> | <<click "Auction Them">><<replace "#choice">><<print "You send the child to be sold at auction amongst other prestigious slaves. The winning big for your offspring came in at @@color:yellowgreen;¤<<print 1000*$seed>>.@@">><</replace>><<set $cash += 1000*$seed>><</click>><</if>>
<</if>>

<<set $babyGender = 0>>
<<set $badBirth = 0>>
<<set $PC.pregSource = 0>>
<<set $seed = 0>>


code:
:: Slave Age Intro

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

[[No.|Gender Intro][$minimumSlaveAge to 18, $pedo_mode to 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 "Gender Intro">> [[Continue|Gender Intro][$pedo_mode to 0]]
[[I just want lots of lolis.|Gender Intro][$minimumSlaveAge to 5, $pedo_mode to 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.|Gender Intro][$minimumSlaveAge to 3, $pedo_mode to 0, $precociousPuberty to 1, $fertilityAge to 10, $potencyAge to 12, $seeAge to 1]] //Preset. Slaves' age will be random from minimal possible age. They can be made fertile yonger than normal puberty age (10) in some cases, and grow up naturally.//


code:
:: SlaveOnSlaveFeedingWorkAround [nobr]

<<set $nextButton to "Back">>
<<set $nextLink to "Slave Interact">>

<<set $milkTap to 0>>
<<set $descM to "milk">>
<<set $descC to "cum">>
<<set $eligibilityMilk2 to 0>>
<<set $eligibilityMilk4 to 0>>
<<set $eligibilityMilk8 to 0>>
<<set $eligibilityCum2 to 0>>
<<set $eligibilityCum4 to 0>>
<<set $eligibilityCum8 to 0>>

<<for $i to 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 to 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 preped 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 to 0; $i < $slaves.length; $i++>>
	<<if $slaves[$i].milkOutput >= 2>>
		<<if ($slaves[$i].ID != $activeSlave.ID)>>
		<<print "[[$slaves[$i].slaveName|FSlaveFeed][$milkTap to $slaves[" + $i + "], $activeSlave.inflation to 1, $activeSlave.inflationType to $descM, $activeSlave.inflationMethod to 3]]">>
		<<set $eligibilityMilk2 to 1>>

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

__4 Liters__

<<for $i to 0; $i < $slaves.length; $i++>>
	<<if $slaves[$i].milkOutput >= 4>>
		<<if ($slaves[$i].ID != $activeSlave.ID)>>
		<<print "[[$slaves[$i].slaveName|FSlaveFeed][$milkTap to $slaves[" + $i + "], $activeSlave.inflation to 2, $activeSlave.inflationType to $descM, $activeSlave.inflationMethod to 3]]">>
		<<set $eligibilityMilk4 to 1>>

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

__8 Liters__

<<for $i to 0; $i < $slaves.length; $i++>>
	<<if $slaves[$i].milkOutput >= 8>>
		<<if ($slaves[$i].ID != $activeSlave.ID)>>\
		<<print "[[$slaves[$i].slaveName|FSlaveFeed][$milkTap to $slaves[" + $i + "], $activeSlave.inflation to 3, $activeSlave.inflationType to $descM, $activeSlave.inflationMethod to 3]]">>
		<<set $eligibilityMilk8 to 1>>

		<</if>>
	<</if>>
<</for>>
<<if ($eligibilityMilk8 == 0)>>
	//You have no slaves capable of producing eight liters of milk.//
<</if>>

__Cum Slaves__

__2 Liters__

<<for $i to 0; $i < $slaves.length; $i++>>
	<<if $slaves[$i].cumOutput >= 2>>
		<<if ($slaves[$i].ID != $activeSlave.ID)>>
		<<print "[[$slaves[$i].slaveName|FSlaveFeed][$milkTap to $slaves[" + $i + "], $activeSlave.inflation to 1, $activeSlave.inflationType to $descC, $activeSlave.inflationMethod to 3]]">>
		<<set $eligibilityCum2 to 1>>

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

__4 Liters__

<<for $i to 0; $i < $slaves.length; $i++>>
	<<if $slaves[$i].cumOutput >= 4>>
		<<if ($slaves[$i].ID != $activeSlave.ID)>>
		<<print "[[$slaves[$i].slaveName|FSlaveFeed][$milkTap to $slaves[" + $i + "], $activeSlave.inflation to 2, $activeSlave.inflationType to $descC, $activeSlave.inflationMethod to 3]]">>
		<<set $eligibilityCum4 to 1>>

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

__8 Liters__

<<for $i to 0; $i < $slaves.length; $i++>>
	<<if $slaves[$i].cumOutput >= 8>>
		<<if ($slaves[$i].ID != $activeSlave.ID)>>
		<<print "[[$slaves[$i].slaveName|FSlaveFeed][$milkTap to $slaves[" + $i + "], $activeSlave.inflation to 3, $activeSlave.inflationType to $descC, $activeSlave.inflationMethod to 3]]">>
		<<set $eligibilityCum8 to 1>>

		<</if>>
	<</if>>
<</for>>
<<if ($eligibilityCum8 == 0)>>
	//You have no slaves capable of producing eight liters of cum.//
<</if>>


code:
:: Add custom descriptors

<<nobr>>

<<set $nextButton to "Continue">>
<<set $nextLink to "AS Dump">>
<<set $returnTo to "Main">>

<<set $oldName to $activeSlave.slaveName>>

<</nobr>>\
\
You may enter custom descriptors for your slave's hair color, hair style, tattoos, or anything else here. After typing, press enter to commit your change. These custom descriptors will appear in descriptions of your slave, but will have no gameplay effect. Changing them is free.

<<nobr>>

<<if (($activeSlave.devotion >= -50) || ($activeSlave.trust < -20)) && ($activeSlave.birthName != $activeSlave.slaveName)>>
	Rename her (birth name was $activeSlave.birthName): <<textbox "$activeSlave.slaveName" $activeSlave.slaveName "Rename">>
	<<click "Restore her birth name">><<set $activeSlave.slaveName to $activeSlave.birthName>><<goto "Rename">><</click>>
	<<if $arcologies[0].FSPastoralist != "unset">>
	<<if $activeSlave.lactation > 0>>
	 | <<click "Give her a random cow name">><<set $activeSlave.slaveName to $cowSlaveNames.random()>><<goto "Rename">><</click>>
	<</if>>
	<</if>>
	<<if $arcologies[0].FSChattelReligionist != "unset">>
	 | <<click "Give her a random devotional name">><<set $activeSlave.slaveName to $chattelReligionistSlaveNames.random()>><<goto "Rename">><</click>>
	<</if>>
	<<if $arcologies[0].FSRomanRevivalist != "unset">>
	 | <<click "Give her a random Roman name">><<set $activeSlave.slaveName to $romanSlaveNames.random()>><<goto "Rename">><</click>>
	<<elseif $arcologies[0].FSEgyptianRevivalist != "unset">>
	 | <<click "Give her a random ancient Egyptian name">><<set $activeSlave.slaveName to $ancientEgyptianSlaveNames.random()>><<goto "Rename">><</click>>
	<<elseif $arcologies[0].FSEdoRevivalist != "unset">>
	 | <<click "Give her a random feudal Japanese name">><<set $activeSlave.slaveName to $edoSlaveNames.random()>><<goto "Rename">><</click>>
	<</if>>
	<<if $arcologies[0].FSDegradationist > -1>>
	 | <<click "Give her a degrading name">><<display "Degrading Name">><<goto "Rename">><</click>>
	<</if>>
<<elseif (($activeSlave.devotion > 20) || ($activeSlave.trust < -20))>>
	Rename her: <<textbox "$activeSlave.slaveName" $activeSlave.slaveName "Rename">>
	<<if $arcologies[0].FSPastoralist != "unset">>
	<<if $activeSlave.lactation > 0>>
	 | <<click "Give her a random cow name">><<set $activeSlave.slaveName to $cowSlaveNames.random()>><<goto "Rename">><</click>>
	<</if>>
	<</if>>
	<<if $arcologies[0].FSChattelReligionist != "unset">>
	 | <<click "Give her a random devotional name">><<set $activeSlave.slaveName to $chattelReligionistSlaveNames.random()>><<goto "Rename">><</click>>
	<</if>>
	<<if $arcologies[0].FSRomanRevivalist != "unset">>
	<<click "Give her a random Roman name">><<set $activeSlave.slaveName to $romanSlaveNames.random()>><<goto "Rename">><</click>>
	<<elseif $arcologies[0].FSEgyptianRevivalist != "unset">>
	<<click "Give her a random ancient Egyptian name">><<set $activeSlave.slaveName to $ancientEgyptianSlaveNames.random()>><<goto "Rename">><</click>>
	<<elseif $arcologies[0].FSEdoRevivalist != "unset">>
	 | <<click "Give her a random feudal Japanese name">><<set $activeSlave.slaveName to $edoSlaveNames.random()>><<goto "Rename">><</click>>
	<</if>>
	<<if $arcologies[0].FSDegradationist > -1>>
	<<click "Give her a degrading name">><<display "Degrading Name">><<goto "Rename">><</click>>
	<</if>>
<<else>>
	//You must break her will further before you can successfully force a new name on her.//
<</if>>

<</nobr>>

Her hair is $activeSlave.hStyle.
Custom hair description: <<textbox "$activeSlave.hStyle" $activeSlave.hStyle "Add custom descriptors">>
//For best results, use a short, uncapitalized and unpunctuated description; for example: 'back in a ponytail'//

Her hair is $activeSlave.hColor in color.
Custom hair color: <<textbox "$activeSlave.hColor" $activeSlave.hColor "Add custom descriptors">>
//For best results, use a short, uncapitalized and unpunctuated description; for example: 'black with purple highlights'//

Change her custom tattoo: <<textbox "$activeSlave.customTat" $activeSlave.customTat "Add custom descriptors">> //For best results, use complete, capitalized and punctuated sentences; for example: 'She has blue stars tattooed along her cheekbones, and a blue arrow down each arm.'//

Change her custom description: <<textbox "$activeSlave.customDesc" $activeSlave.customDesc "Add custom descriptors">>
//For best results, use complete, capitalized and punctuated sentences; for example: 'She has a beauty mark above her left nipple.'//

Change her custom label: <<textbox "$activeSlave.customLabel" $activeSlave.customLabel "Add custom descriptors">>
//For best results, use a short phrase; for example: 'Breeder.'//


code:
:: Arcade

<<nobr>>
<<set $nextButton to "Back to Main">>
<<set $nextLink to "Main">>
<<set $returnTo to "Arcade">>

<<if $arcadeName != "the Arcade">>
	<<set $arcadeNameCaps to $arcadeName.replace("the ", "The ")>>
<</if>>

<<set $arcadeSlaves to 0>>
<<set $notArcadeSlaves to 0>>
<<for _i to 0; _i < $slaves.length; _i++>>
	<<if $slaves[_i].assignment is "be confined in the arcade">>
		<<set $arcadeSlaves += 1>>
	<<else>>
		<<set $notArcadeSlaves += 1>>
	<</if>>
<</for>>

$arcadeNameCaps
<<switch $arcadeDecoration>>
<<case "Roman Revivalist">>
	is built out as a Roman street restaurant, with the bar containing the inmates. Citizens can amuse themselves at either side of the bar while enjoying some wine and olives and talking over the day's events.
<<case "Egyptian Revivalist">>
	is built to look like an ancient Egyptian temple, with a long altar of sacrifice serving as the wall in which the inmates are held. Incongruously, it's piled with fresh flowers.
<<case "Edo Revivalist">>
	is built to look like an Edo onsen, with discreet partitions allowing citizens a modicum of privacy as they use the services here. There are baths available so they can wash themselves afterward.
<<case "Arabian Revivalist">>
	is built to look like a fantastical Arabian dungeon, with the inmates kept in iron cages that hold their holes in place for use.
<<case "Chinese Revivalist">>
	is set up to look like a rough bar in an ancient Chinese city, with the inmates immured in the bar itself. Rowdy citizens can drink and fuck the holes here while shouting and boasting over the slaves' heads.
<<case "Chattel Religionist">>
	is well decorated with severe religious iconography, since this place is an acceptable if not respectable place for a citizen to find relief, so long as they keep the service of the slave they use here in mind.
<<case "Degradationist">>
	is nothing but a system of harnesses to hold slaves in the usual posture they would hold within a normal Free Cities sex arcade. This way, no iota of their degradation here is missed.
<<case "Asset Expansionist">>
	is constructed so that the slaves lie within the arcade facing up. The wall itself ends at waist height, so their breasts stick up to be groped while they are used from either end.
<<case "Repopulation Focus">>
	is constructed so that the slaves lie within the arcade facing up. A hole is situated above them, so that their belly has room to protrude upwards as they are fucked pregnant.
<<case "Eugenics">>
	is designed to only allow access to a slave's ass and mouth. Anti-pregnancy propaganda plays on screens overhead to further indoctrinate lower class patrons to the Societal Elite's views.
<<case "Transformation Fetishist">>
	reveals more of its inmates' bodies than the typical Free Cities sex arcade. There's no attempt to hide the feeding arrangements or injection lines, since transformation into a human sex toy is considered arousing here.
<<case "Gender Radicalist">>
	is built to reveal most of its inmate's bellies, butts, groins, and thighs. Whatever a slave here has between her legs, it's available to be fucked, played with, or abused.
<<case "Gender Fundamentalist">>
	is built to block the lower part of its inmates' butts from view and use. The slaves within are thus limited to their anuses for service here, but any slave can be disposed of in $arcadeName without offending fundamentalist sensibilities.
<<case "Physical Idealist">>
	logs customers' performance for their own athletic information. It keeps track of personal bests and all-time high scores, and pays out cash prizes to customers who fuck the holes faster, harder, or for longer than the previous record holder.
<<case "Supremacist">>
	is constructed so that the inmates' entire heads stick out of the mouth wall, though they're still masked and their jaws are held apart by ring gags. After all, seeing the anguish of the subhumans here is one of the main attractions.
<<case "Subjugationist">>
	is constructed so that the inmates' entire heads stick out of the mouth wall, though they're still masked and their jaws are held apart by ring gags. After all, seeing the anguish of the $arcologies[0].FSSubjugationistRace slaves here is one of the main attractions.
<<case "Paternalist">>
	is constructed so that nothing at all of the slaves is visible. The arcade is just a row of holes. In this way, good, paternalistic citizens can partake of a Free Cities sex arcade without being confronted with what they're doing.
<<case "Pastoralist">>
	is constructed so that the slaves lie within the arcade facing up. If a slave is lactating, her breasts are kept bare and under the maximum sustainable dose of lactation drugs, so that any penetration of her holes produces amusing squirts of milk.
<<case "Maturity Preferentialist">>
	is constructed so that nothing but the slaves' holes can be seen. This makes it possible to maintain the appearance of offering MILFs while using $arcadeName to get value out of of useless young bitches' holes.
<<case "Youth Preferentialist">>
	is constructed so that nothing but the slaves' holes can be seen. This makes it possible to maintain the appearance of offering nothing but young slaves while using $arcadeName to get value out of of old bitches' holes.
<<case "Body Purist">>
	is built out in such a way that much more of the slaves' rears and faces are visible than in a standard Free Cities sex arcade. This makes it much easier to check them for purity before using their holes.
<<case "Slimness Enthusiast">>
	is barely distinguishable from a standard Free Cities sex arcade. The difference is a fun one, though: since the butts sticking out of the wall are much skinnier than usual, there's no padding to get in the way of hilting oneself in the holes.
<<default>>
	is a standard Free Cities sex arcade: a pair of hallways extend away from the entrance, lined with doorless stalls like those in a public restroom. One hallway offers mouths, the other <<if $seeDicks != 2>>vaginas and <</if>>anuses.
<</switch>>

<<if $arcadeSlaves > 2>>
	It's busy. Customers are entering and exiting, leaving a few ¤ behind in the charge machines and loads of semen behind in the holes.
<<elseif $arcadeSlaves > 0>>
	It's understaffed; there are lines here and there for the few holes available.
<<else>>
	It's empty and quiet. [[Decommission the arcade|Main][$arcade to 0, $arcadeUpgradeInjectors to 0, $arcadeUpgradeFuckdolls to 0]]
<</if>>

It can support $arcade inmates.
<<if $arcade < $arcadeSlaves>>
<<if $arcadeUpgradeFuckdolls == 1>>
	@@color:yellow;$arcadeNameCaps is overcrowded;@@ the least popular inmate will be sold as a standard Fuckdoll this week.
<</if>>
<</if>>
[[Expand the arcade|Arcade][$cash -= Math.trunc($arcade*1000*$upgradeMultiplierArcology), $arcade += 5]] //Costs ¤<<print Math.trunc($arcade*1000*$upgradeMultiplierArcology)>> and will increase upkeep costs//

<<if $arcadeUpgradeInjectors == 1>>
	It has been upgraded with aphrodisiac injection systems and electroshock applicators. If the aphrodisiacs fail to force an orgasm from an inmate, she is shocked to tighten her holes regardless.
<<else>>
	It is a standard arcade. [[Upgrade the arcade with invasive performance-enhancing systems|Arcade][$cash -= Math.trunc(10000*$upgradeMultiplierArcology), $arcadeUpgradeInjectors to 1]] //Costs ¤<<print Math.trunc(10000*$upgradeMultiplierArcology)>> and will increase upkeep costs//
<</if>>

<<if $arcadeUpgradeCollectors == 1>>
	It has been retrofitted to milk lactating slaves<<if $seeDicks != 0>> and cockmilk slaves capable of ejaculating<</if>>, though less efficiently than a dedicated facility.
<<else>>
	There is no special provision for lactating<<if $seeDicks != 0>> or ejaculating<</if>> slaves. [[Retrofit the arcade to collect useful fluids|Arcade][$cash -= Math.trunc(10000*$upgradeMultiplierArcology), $arcadeUpgradeCollectors to 1]] //Costs ¤<<print Math.trunc(10000*$upgradeMultiplierArcology)>> and will increase upkeep costs//
<</if>>

<<if $arcadeUpgradeFuckdolls == 1>>
	$arcadeNameCaps is equipped to convert surplus inmates into standard Fuckdolls.
<<else>>
	$arcadeNameCaps is not equipped to convert surplus inmates into standard Fuckdolls. [[Upgrade the arcade to create Fuckdolls|Arcade][$cash -= Math.trunc(5000*$upgradeMultiplierArcology), $arcadeUpgradeFuckdolls to 1]] //Costs ¤<<print Math.trunc(5000*$upgradeMultiplierArcology)>>//
<</if>>

<<if $arcadeSlaves > 0>>

''Bring a slave out of $arcadeName:''
	<<set $Flag to 1>>
	<<display "Slave Summary">>
<</if>>

<<if $notArcadeSlaves > 0>>

''Confine a slave in $arcadeName:''
	<<set $Flag to 0>>
	<<display "Slave Summary">>
<</if>>
<<unset $Flag>>

Rename $arcadeName: <<textbox "$arcadeName" $arcadeName "Arcade">> //Use a noun or similar short phrase//
<</nobr>>


code:
:: Arcade Report [nobr]

''Arcade Report''

<<set $milked to 0>>
<<set $cockmilked to 0>>
<<set $implanted to 0>>
<<set $arcadeSlaves to 0>>
<<set $profits to 0>>

<<for $i to 0; $i < $slaves.length; $i++>>
<<if ($slaves[$i].assignment is "be confined in the arcade")>>
	<<if $seeImages == 1>><<SlaveArt $slaves[$i] 0 0>><</if>>
	<<set $slaves[$i].trust -= 5>>
	<<set $arcadeSlaves += 1>>
	<<silently>>
	<<if ($arcadeUpgradeInjectors == 1)>>
	<<if ($slaves[$i].health < -60)>>
		<<set $slaves[$i].health = -60>>
	<<elseif ($slaves[$i].health > -50)>>
		<<set $slaves[$i].health -= 10>>
	<</if>>
	<<set $slaves[$i].aphrodisiacs = 2>>
	<<display "SA drugs">>
	<<set $slaves[$i].devotion -= 5>>
	<<set $slaves[$i].trust -= 5>>
	<<else>>
	<<if ($slaves[$i].health < -60)>>
		<<set $slaves[$i].health += 20>>
	<<elseif ($slaves[$i].health < 10)>>
		<<set $slaves[$i].health += 10>>
	<<elseif ($slaves[$i].health > 20)>>
		<<set $slaves[$i].health -= 10>>
	<</if>>
	<</if>>
	<<set $oldCash to $cash>>
	<<display [[SA work a glory hole]]>>
	<<if ($arcadeUpgradeCollectors > 0)>>
	<<if ($slaves[$i].lactation < 2)>>
		<<set $slaves[$i].lactation to 2>>
		<<set $slaves[$i].health -= 10>>
		<<set $cash -= $surgeryCost>>
		<<set $implanted += 1>>
	<<elseif ($slaves[$i].lactation > 0) || ($slaves[$i].balls > 0)>>
		<<display [[SA get milked]]>>
		<<if ($slaves[$i].boobs < 2000)>>
		<<set $slaves[$i].boobs += 100>>
		<<elseif ($slaves[$i].boobs < 5000)>>
		<<set $slaves[$i].boobs += 50>>
		<<elseif ($slaves[$i].boobs < 10000)>>
		<<set $slaves[$i].boobs += 25>>
		<</if>>
		<<if ($slaves[$i].balls > 0)>>
		<<if ($slaves[$i].balls < 6)>>
		<<if (random(1,100) > (40+(10*$slaves[$i].balls)))>>
			<<set $slaves[$i].balls += 1>>
		<</if>>
		<</if>>
		<</if>>
		<<if ($slaves[$i].dick > 0)>>
		<<if ($slaves[$i].dick < 6)>>
		<<if (random(1,100) > (40+(10*$slaves[$i].dick)))>>
			<<set $slaves[$i].dick += 1>>
		<</if>>
		<</if>>
		<</if>>
		<<if ($slaves[$i].lactation > 0)>>
		<<set $milked += 1>>
		<</if>>
		<<if ($slaves[$i].balls > 0)>>
		<<set $cockmilked += 1>>
		<</if>>
	<</if>>
	<</if>>
	<<set $profits += $cash-$oldCash>>
	<<display "SA long term effects">>
	<</silently>>
<</if>>
<</for>>

<<if ($arcadeSlaves > 0)>>
	<<if $seeImages == 1>>
<</if>>
	<<if ($arcadeSlaves == 1)>>''There is one inmate confined in $arcadeName.''<<else>>''There are $arcadeSlaves inmates confined in $arcadeName.''<</if>>
	<<if $milked == 1>>
	One of them is lactating and spends her time in $arcadeName being simultaneously milked and fucked.
	<<elseif $milked > 1>>
	$milked of them are lactating and spend their time in $arcadeName being simultaneously milked and fucked.
	<</if>>
	<<if $implanted == 1>>
	One of them was not lactating, so she is implanted with long-acting lactation inducing drugs.
	<<elseif $implanted > 1>>
	$implanted of them were not lactating, so they are implanted with long-acting lactation inducing drugs.
	<</if>>
	<<if $cockmilked == 1>>
	One of them retains testicles and is brutally cockmilked as she is used.
	<<elseif $cockmilked > 1>>
	$cockmilked of them retain testicles and are brutally cockmilked as they are used.
	<</if>>
	The arcade makes you @@color:yellowgreen;¤$profits@@ this week.
	<<if ($arcologies[0].FSDegradationist > 20)>>
	<<if $arcologies[0].FSDegradationistLaw == 1>>
		The tenants located near the arcade don't mind having it nearby, even though the crowd of menial slaves waiting their turn spills out into the hallway, 24 hours a day.
	<<else>>
		The tenants located near the arcade don't mind having it nearby.
	<</if>>
	<<elseif ($arcologies[0].FSPaternalist > 20)>>
	Many of the better tenants located near the arcade consider it an @@color:red;intolerable@@ establishment to have nearby.
	<<set $repGain -= Math.trunc($profits/20)>>
	<<else>>
	Some of the better tenants located near the arcade consider it an @@color:red;obnoxious@@ establishment to have nearby.
	<<set $repGain -= Math.trunc($profits/100)>>
	<</if>>

	<<if $arcadeUpgradeFuckdolls == 1>>
	<<if $arcade < $arcadeSlaves>>
		<<set $activeSlave = 0>>
		<<for $i to 0; $i < $slaves.length; $i++>>
		<<if $slaves[$i].assignment == "be confined in the arcade">>
			<<if $slaves[$i].fetish == "mindbroken">>
			<<if $slaves[$i].fuckdoll == 0>>
			<<if $slaves[$i].physicalAge > 35>>
			<<set $activeSlave to $slaves[$i]>>
			<<break>>
			<</if>>
			<</if>>
			<</if>>
		<</if>>
		<</for>>
		<<if $activeSlave == 0>>
			<<for $i to 0; $i < $slaves.length; $i++>>
			<<if $slaves[$i].assignment == "be confined in the arcade">>
				<<if $slaves[$i].fetish == "mindbroken">>
				<<if $slaves[$i].fuckdoll == 0>>
				<<set $activeSlave to $slaves[$i]>>
				<<break>>
				<</if>>
				<</if>>
			<</if>>
			<</for>>
		<</if>>
		<<if $activeSlave == 0>>
			<<for $i to 0; $i < $slaves.length; $i++>>
			<<if $slaves[$i].assignment == "be confined in the arcade">>
				<<if $slaves[$i].fetish == "mindbroken">>
				<<set $activeSlave to $slaves[$i]>>
				<<break>>
				<</if>>
			<</if>>
			<</for>>
		<</if>>
		<<if $activeSlave == 0>>
			<<for $i to 0; $i < $slaves.length; $i++>>
			<<if $slaves[$i].assignment == "be confined in the arcade">>
				<<set $activeSlave to $slaves[$i]>>
				<<break>>
			<</if>>
			<</for>>
		<</if>>
		$activeSlave.slaveName is low-quality and surplus to the needs of the arcade, so she has been converted into a Fuckdoll.
		<<set $fuckdolls += 1>>
		<<display "Remove activeSlave">>
	<</if>>
	<</if>>

	<<if $arcadeDecoration != "standard">>
	$arcadeNameCaps's customers enjoy @@color:green;getting off in $arcadeDecoration surroundings.@@
	<</if>>

<<else>>
	''$arcadeNameCaps is empty.''
<</if>>


code:
:: Arcology Opinion [nobr]

<<if ndef $activeArcology.FSNull>><<set $activeArcology.FSNull to "unset">><</if>>
<<if ndef $targetArcology.FSNull>><<set $targetArcology.FSNull to "unset">><</if>>

<<set $opinion to 0>>

<<if $activeArcology.FSSubjugationist != "unset">>
	<<if $targetArcology.FSSubjugationist != "unset">>
	<<if $targetArcology.FSSubjugationistRace is $activeArcology.FSSubjugationistRace>>
		<<set $opinion += $activeArcology.FSSubjugationist>>
		<<set $opinion += $targetArcology.FSSubjugationist>>
	<<else>>
		<<set $opinion -= $activeArcology.FSSubjugationist>>
		<<set $opinion -= $targetArcology.FSSubjugationist>>
	<</if>>
	<<elseif $targetArcology.FSSupremacist != "unset">>
	<<if $targetArcology.FSSupremacistRace is $activeArcology.FSSubjugationistRace>>
		<<set $opinion -= $activeArcology.FSSubjugationist>>
		<<set $opinion -= $targetArcology.FSSupremacist>>
	<</if>>
	<</if>>
<</if>>
<<if $activeArcology.FSSupremacist != "unset">>
	<<if $targetArcology.FSSupremacist != "unset">>
	<<if $targetArcology.FSSupremacistRace is $activeArcology.FSSupremacistRace>>
		<<set $opinion += $activeArcology.FSSupremacist>>
		<<set $opinion += $targetArcology.FSSupremacist>>
	<<else>>
		<<set $opinion -= $activeArcology.FSSupremacist>>
		<<set $opinion -= $targetArcology.FSSupremacist>>
	<</if>>
	<<elseif $targetArcology.FSSubjugationist != "unset">>
	<<if $targetArcology.FSSubjugationistRace is $activeArcology.FSSupremacistRace>>
		<<set $opinion -= $activeArcology.FSSupremacist>>
		<<set $opinion -= $targetArcology.FSSubjugationist>>
	<</if>>
	<</if>>
<</if>>
<<if $activeArcology.FSRepopulationFocus != "unset">>
	<<if $targetArcology.FSRepopulationFocus != "unset">>
	<<set $opinion += $activeArcology.FSRepopulationFocus>>
	<<set $opinion += $targetArcology.FSRepopulationFocus>>
	<<elseif $targetArcology.FSRestart != "unset">>
	<<set $opinion -= $activeArcology.FSRepopulationFocus>>
	<<set $opinion -= $targetArcology.FSRestart>>
	<</if>>
<<elseif $activeArcology.FSRestart != "unset">>
	<<if $targetArcology.FSRestart != "unset">>
	<<set $opinion += $activeArcology.FSRestart>>
	<<set $opinion += $targetArcology.FSRestart>>
	<<elseif $targetArcology.FSRepopulationFocus != "unset">>
	<<set $opinion -= $activeArcology.FSRestart>>
	<<set $opinion -= $targetArcology.FSRepopulationFocus>>
	<</if>>
<</if>>
<<if $activeArcology.FSGenderRadicalist != "unset">>
	<<if $targetArcology.FSGenderRadicalist != "unset">>
	<<set $opinion += $activeArcology.FSGenderRadicalist>>
	<<set $opinion += $targetArcology.FSGenderRadicalist>>
	<<elseif $targetArcology.FSGenderFundamentalist != "unset">>
	<<set $opinion -= $activeArcology.FSGenderRadicalist>>
	<<set $opinion -= $targetArcology.FSGenderFundamentalist>>
	<</if>>
<<elseif $activeArcology.FSGenderFundamentalist != "unset">>
	<<if $targetArcology.FSGenderFundamentalist != "unset">>
	<<set $opinion += $activeArcology.FSGenderFundamentalist>>
	<<set $opinion += $targetArcology.FSGenderFundamentalist>>
	<<elseif $targetArcology.FSGenderRadicalist != "unset">>
	<<set $opinion -= $activeArcology.FSGenderFundamentalist>>
	<<set $opinion -= $targetArcology.FSGenderRadicalist>>
	<</if>>
<</if>>
<<if $activeArcology.FSPaternalist != "unset">>
	<<if $targetArcology.FSPaternalist != "unset">>
	<<set $opinion += $activeArcology.FSPaternalist>>
	<<set $opinion += $targetArcology.FSPaternalist>>
	<<elseif $targetArcology.FSDegradationist != "unset">>
	<<set $opinion -= $activeArcology.FSPaternalist>>
	<<set $opinion -= $targetArcology.FSDegradationist>>
	<</if>>
<<elseif $activeArcology.FSDegradationist != "unset">>
	<<if $targetArcology.FSDegradationist != "unset">>
	<<set $opinion += $activeArcology.FSDegradationist>>
	<<set $opinion += $targetArcology.FSDegradationist>>
	<<elseif $targetArcology.FSPaternalist != "unset">>
	<<set $opinion -= $activeArcology.FSDegradationist>>
	<<set $opinion -= $targetArcology.FSPaternalist>>
	<</if>>
<</if>>
<<if $activeArcology.FSBodyPurist != "unset">>
	<<if $targetArcology.FSBodyPurist != "unset">>
	<<set $opinion += $activeArcology.FSBodyPurist>>
	<<set $opinion += $targetArcology.FSBodyPurist>>
	<<elseif $targetArcology.FSTransformationFetishist != "unset">>
	<<set $opinion -= $activeArcology.FSBodyPurist>>
	<<set $opinion -= $targetArcology.FSTransformationFetishist>>
	<</if>>
<<elseif $activeArcology.FSTransformationFetishist != "unset">>
	<<if $targetArcology.FSTransformationFetishist != "unset">>
	<<set $opinion += $activeArcology.FSTransformationFetishist>>
	<<set $opinion += $targetArcology.FSTransformationFetishist>>
	<<elseif $targetArcology.FSBodyPurist != "unset">>
	<<set $opinion -= $activeArcology.FSTransformationFetishist>>
	<<set $opinion -= $targetArcology.FSBodyPurist>>
	<</if>>
<</if>>
<<if $activeArcology.FSYouthPreferentialist != "unset">>
	<<if $targetArcology.FSYouthPreferentialist != "unset">>
	<<set $opinion += $activeArcology.FSYouthPreferentialist>>
	<<set $opinion += $targetArcology.FSYouthPreferentialist>>
	<<elseif $targetArcology.FSMaturityPreferentialist != "unset">>
	<<set $opinion -= $activeArcology.FSYouthPreferentialist>>
	<<set $opinion -= $targetArcology.FSMaturityPreferentialist>>
	<</if>>
<<elseif $activeArcology.FSMaturityPreferentialist != "unset">>
	<<if $targetArcology.FSMaturityPreferentialist != "unset">>
	<<set $opinion += $activeArcology.FSMaturityPreferentialist>>
	<<set $opinion += $targetArcology.FSMaturityPreferentialist>>
	<<elseif $targetArcology.FSYouthPreferentialist != "unset">>
	<<set $opinion -= $activeArcology.FSMaturityPreferentialist>>
	<<set $opinion -= $targetArcology.FSYouthPreferentialist>>
	<</if>>
<</if>>
<<if $activeArcology.FSSlimnessEnthusiast != "unset">>
	<<if $targetArcology.FSSlimnessEnthusiast != "unset">>
	<<set $opinion += $activeArcology.FSSlimnessEnthusiast>>
	<<set $opinion += $targetArcology.FSSlimnessEnthusiast>>
	<<elseif $targetArcology.FSAssetExpansionist != "unset">>
	<<set $opinion -= $activeArcology.FSSlimnessEnthusiast>>
	<<set $opinion -= $targetArcology.FSAssetExpansionist>>
	<</if>>
<<elseif $activeArcology.FSAssetExpansionist != "unset">>
	<<if $targetArcology.FSAssetExpansionist != "unset">>
	<<set $opinion += $activeArcology.FSAssetExpansionist>>
	<<set $opinion += $targetArcology.FSAssetExpansionist>>
	<<elseif $targetArcology.FSSlimnessEnthusiast != "unset">>
	<<set $opinion -= $activeArcology.FSAssetExpansionist>>
	<<set $opinion -= $targetArcology.FSSlimnessEnthusiast>>
	<</if>>
<</if>>
<<if $activeArcology.FSPastoralist != "unset">>
	<<if $targetArcology.FSPastoralist != "unset">>
	<<set $opinion += $activeArcology.FSPastoralist>>
	<<set $opinion += $targetArcology.FSPastoralist>>
	<<elseif $targetArcology.FSPhysicalIdealist != "unset">>
	<<set $opinion -= $activeArcology.FSPastoralist>>
	<<set $opinion -= $targetArcology.FSPhysicalIdealist>>
	<</if>>
<<elseif $activeArcology.FSPhysicalIdealist != "unset">>
	<<if $targetArcology.FSPhysicalIdealist != "unset">>
	<<set $opinion += $activeArcology.FSPhysicalIdealist>>
	<<set $opinion += $targetArcology.FSPhysicalIdealist>>
	<<elseif $targetArcology.FSPastoralist != "unset">>
	<<set $opinion -= $activeArcology.FSPhysicalIdealist>>
	<<set $opinion -= $targetArcology.FSPastoralist>>
	<</if>>
<</if>>
<<if $activeArcology.FSChattelReligionist != "unset">>
	<<if $targetArcology.FSChattelReligionist != "unset">>
	<<set $opinion += $activeArcology.FSChattelReligionist>>
	<<set $opinion += $targetArcology.FSChattelReligionist>>
	<<elseif $targetArcology.FSNull != "unset">>
	<<set $opinion -= $activeArcology.FSChattelReligionist>>
	<<set $opinion -= $targetArcology.FSNull>>
	<</if>>
<<elseif $activeArcology.FSNull != "unset">>
  <<if $targetArcology.FSNull != "unset">>
	<<set $opinion += $activeArcology.FSNull>>
	<<set $opinion += $targetArcology.FSNull>>
  <<elseif $targetArcology.FSChattelReligionist != "unset">>
	<<set $opinion -= $activeArcology.FSNull>>
	<<set $opinion -= $targetArcology.FSChattelReligionist>>
  <<else>>
	<<set $opinion += $activeArcology.FSNull>>
  <</if>>
<<elseif $targetArcology.FSNull != "unset">>
  <<set $opinion += $targetArcology.FSNull>>
<</if>>
<<if $activeArcology.FSRomanRevivalist != "unset">>
	<<if $targetArcology.FSRomanRevivalist != "unset">>
	<<set $opinion += $activeArcology.FSRomanRevivalist>>
	<<set $opinion += $targetArcology.FSRomanRevivalist>>
	<<elseif $targetArcology.FSEgyptianRevivalist != "unset">>
	<<set $opinion -= $activeArcology.FSRomanRevivalist>>
	<<set $opinion -= $targetArcology.FSEgyptianRevivalist>>
	<<elseif $targetArcology.FSEdoRevivalist != "unset">>
	<<set $opinion -= $activeArcology.FSRomanRevivalist>>
	<<set $opinion -= $targetArcology.FSEdoRevivalist>>
	<<elseif $targetArcology.FSArabianRevivalist != "unset">>
	<<set $opinion -= $activeArcology.FSRomanRevivalist>>
	<<set $opinion -= $targetArcology.FSArabianRevivalist>>
	<<elseif $targetArcology.FSChineseRevivalist != "unset">>
	<<set $opinion -= $activeArcology.FSRomanRevivalist>>
	<<set $opinion -= $targetArcology.FSChineseRevivalist>>
	<</if>>
<<elseif $activeArcology.FSEgyptianRevivalist != "unset">>
	<<if $targetArcology.FSEgyptianRevivalist != "unset">>
	<<set $opinion += $activeArcology.FSEgyptianRevivalist>>
	<<set $opinion += $targetArcology.FSEgyptianRevivalist>>
	<<elseif $targetArcology.FSRomanRevivalist != "unset">>
	<<set $opinion -= $activeArcology.FSEgyptianRevivalist>>
	<<set $opinion -= $targetArcology.FSRomanRevivalist>>
	<<elseif $targetArcology.FSEdoRevivalist != "unset">>
	<<set $opinion -= $activeArcology.FSEgyptianRevivalist>>
	<<set $opinion -= $targetArcology.FSEdoRevivalist>>
	<<elseif $targetArcology.FSArabianRevivalist != "unset">>
	<<set $opinion -= $activeArcology.FSEgyptianRevivalist>>
	<<set $opinion -= $targetArcology.FSArabianRevivalist>>
	<<elseif $targetArcology.FSChineseRevivalist != "unset">>
	<<set $opinion -= $activeArcology.FSEgyptianRevivalist>>
	<<set $opinion -= $targetArcology.FSChineseRevivalist>>
	<</if>>
<<elseif $activeArcology.FSEdoRevivalist != "unset">>
	<<if $targetArcology.FSEdoRevivalist != "unset">>
	<<set $opinion += $activeArcology.FSEdoRevivalist>>
	<<set $opinion += $targetArcology.FSEdoRevivalist>>
	<<elseif $targetArcology.FSEgyptianRevivalist != "unset">>
	<<set $opinion -= $activeArcology.FSEdoRevivalist>>
	<<set $opinion -= $targetArcology.FSEgyptianRevivalist>>
	<<elseif $targetArcology.FSRomanRevivalist != "unset">>
	<<set $opinion -= $activeArcology.FSEdoRevivalist>>
	<<set $opinion -= $targetArcology.FSRomanRevivalist>>
	<<elseif $targetArcology.FSArabianRevivalist != "unset">>
	<<set $opinion -= $activeArcology.FSEdoRevivalist>>
	<<set $opinion -= $targetArcology.FSArabianRevivalist>>
	<<elseif $targetArcology.FSChineseRevivalist != "unset">>
	<<set $opinion -= $activeArcology.FSEdoRevivalist>>
	<<set $opinion -= $targetArcology.FSChineseRevivalist>>
	<</if>>
<<elseif $activeArcology.FSArabianRevivalist != "unset">>
	<<if $targetArcology.FSArabianRevivalist != "unset">>
	<<set $opinion += $activeArcology.FSArabianRevivalist>>
	<<set $opinion += $targetArcology.FSArabianRevivalist>>
	<<elseif $targetArcology.FSEgyptianRevivalist != "unset">>
	<<set $opinion -= $activeArcology.FSArabianRevivalist>>
	<<set $opinion -= $targetArcology.FSEgyptianRevivalist>>
	<<elseif $targetArcology.FSEdoRevivalist != "unset">>
	<<set $opinion -= $activeArcology.FSArabianRevivalist>>
	<<set $opinion -= $targetArcology.FSEdoRevivalist>>
	<<elseif $targetArcology.FSRomanRevivalist != "unset">>
	<<set $opinion -= $activeArcology.FSArabianRevivalist>>
	<<set $opinion -= $targetArcology.FSRomanRevivalist>>
	<<elseif $targetArcology.FSChineseRevivalist != "unset">>
	<<set $opinion -= $activeArcology.FSArabianRevivalist>>
	<<set $opinion -= $targetArcology.FSChineseRevivalist>>
	<</if>>
<<elseif $activeArcology.FSChineseRevivalist != "unset">>
	<<if $targetArcology.FSChineseRevivalist != "unset">>
	<<set $opinion += $activeArcology.FSChineseRevivalist>>
	<<set $opinion += $targetArcology.FSChineseRevivalist>>
	<<elseif $targetArcology.FSEgyptianRevivalist != "unset">>
	<<set $opinion -= $activeArcology.FSChineseRevivalist>>
	<<set $opinion -= $targetArcology.FSEgyptianRevivalist>>
	<<elseif $targetArcology.FSEdoRevivalist != "unset">>
	<<set $opinion -= $activeArcology.FSChineseRevivalist>>
	<<set $opinion -= $targetArcology.FSEdoRevivalist>>
	<<elseif $targetArcology.FSArabianRevivalist != "unset">>
	<<set $opinion -= $activeArcology.FSChineseRevivalist>>
	<<set $opinion -= $targetArcology.FSArabianRevivalist>>
	<<elseif $targetArcology.FSRomanRevivalist != "unset">>
	<<set $opinion -= $activeArcology.FSChineseRevivalist>>
	<<set $opinion -= $targetArcology.FSRomanRevivalist>>
	<</if>>
<</if>>

<<set $activeArcology to 0>>
<<set $targetArcology to 0>>


code:
:: Assign

<<if $returnTo is "Pit">>
	<<set $fighterIDs.push($activeSlave.ID)>>
	<<goto "Pit">>
<<else>>
<<if $returnTo is "Coursing Association">>
	<<set $Lurcher to $activeSlave>>
	<<goto "Coursing Association">>
<<else>>

<<if $returnTo is "Arcade">>
	<<set $activeSlave.assignment to "be confined in the arcade">>
	<<set $activeSlave.clothes to "no clothing">>
<<elseif $returnTo is "Head Girl Suite">>
	<<set $activeSlave.assignment to "live with your Head Girl">>
<<elseif $returnTo is "Master Suite">>
	<<set $activeSlave.assignment to "serve in the master suite">>
<<elseif $returnTo is "Clinic">>
	<<set $activeSlave.assignment to "get treatment in the clinic">>
<<elseif $returnTo is "Spa">>
	<<set $activeSlave.assignment to "rest in the spa">>
<<elseif $returnTo is "Cellblock">>
	<<set $activeSlave.assignment to "be confined in the cellblock">>
<<elseif $returnTo is "Schoolroom">>
	<<set $activeSlave.assignment to "learn in the schoolroom">>
<<elseif $returnTo is "Servants' Quarters">>
	<<set $activeSlave.assignment to "work as a servant">>
<<elseif $returnTo is "Dairy">>
	<<set $activeSlave.assignment to "work in the dairy">>
	<<if $dairyRestraintsSetting > 1>>
		<<set $activeSlave.collar to "none">>
		<<set $activeSlave.clothes to "no clothing">>
		<<set $activeSlave.buttplug to "none">>
		<<set $activeSlave.vaginalAccessory to "none">>
	<</if>>
<<elseif $returnTo is "Brothel">>
	<<set $activeSlave.assignment to "work in the brothel">>
<<elseif $returnTo is "Club">>
	<<set $activeSlave.assignment to "serve in the club">>
<</if>>

<<if $returnTo is "Master Suite">>
	<<if $masterSuiteUpgradeLuxury == 1>>
	<<set $activeSlave.livingRules to "luxurious">>
	<<else>>
	<<set $activeSlave.livingRules to "spare">>
	<</if>>
<<else>>
	<<set $activeSlave.livingRules to "spare">>
<</if>>
<<set $activeSlave.assignmentVisible to 0>>
<<set $activeSlave.choosesOwnAssignment to 0>>
<<set $activeSlave.standardPunishment to "situational">>
<<set $activeSlave.standardReward to "situational">>
<<set $activeSlave.releaseRules to "restrictive">>
<<set $activeSlave.drugs to "no drugs">>
<<set $activeSlave.sentence to 0>>

<<if $activeSlave.ID is $personalAttention>>
	<<if $PC.career == "escort">>
		<<set $personalAttention to "whoring">>
	<<elseif $PC.career == "servant">>
		<<set $personalAttention to "upkeep">>
	<<else>>
		<<set $personalAttention to "business">>
	<</if>>
<</if>>

<<if $activeSlave.ID is $HeadGirl.ID>>
	<<set $HeadGirl to 0>>
<</if>>
<<if $activeSlave.ID is $Recruiter.ID>>
	<<set $Recruiter to 0>>
<</if>>
<<if $activeSlave.ID is $Bodyguard.ID>>
	<<set $Bodyguard to 0>>
<</if>>

<<for $i to 0; $i < $slaves.length; $i++>>
<<if $activeSlave.ID == $slaves[$i].ID>>
<<set $slaves[$i] to $activeSlave>>
<<if $slaves[$i].choosesOwnClothes == 1>><<display "SA chooses own clothes">><</if>>
<<break>>
<</if>>
<</for>>

<<if ($showAssignToScenes != 1)>>
	<<goto $returnTo>>
<<elseif ($activeSlave.fetish is "mindbroken")>>
	<<goto $returnTo>>
<<elseif ($returnTo is "Dairy") && (($dairyStimulatorsSetting >= 2) || ($dairyFeedersSetting >= 2) || ($dairyPregSetting >= 2))>>
	<<goto "Industrial Dairy Assignment Scene">>
<<elseif ($returnTo is "Dairy") && ($dairyRestraintsSetting == 0 && $activeSlave.devotion > 0)>>
	<<goto "Free Range Dairy Assignment Scene">>
<<elseif ($returnTo is "Brothel")>>
	<<goto "Brothel Assignment Scene">>
<<else>>
	<<goto $returnTo>>
<</if>>

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


code:
:: Assistant Autosurgery

<<nobr>>

<<set $surgeries = []>>

<<if $HGTastes == 1>>
	<<set $thisSurgery to {lactation: 0, cosmetic: 1, faceShape: "cute", lips: 10, hips: 0, hipsImplant: 0, butt: 0, accent: 0, shoulders: 0, shouldersImplant: 0, boobs: 0, holes: 0}>>
	<<elseif $HGTastes is 2>>
	<<set $thisSurgery to {lactation: 0, cosmetic: 1, faceShape: "cute", lips: 60, hips: 0, hipsImplant: 0, butt: 4, accent: 0, shoulders: 0, shouldersImplant: 0, boobs: 1200, holes: 0}>>
<<else>>
	<<set $thisSurgery to {lactation: 0, cosmetic: 1, faceShape: "cute", lips: 95, hips: 0, hipsImplant: 0, butt: 8, accent: 0, shoulders: 0, shouldersImplant: 0, boobs: 10000, holes: 2}>>
<</if>>

<<set $seed to 0>>
<<for $seed == 0>>

<<if ($slaves[$i].health <= 40)>>
	<<set $seed = 1>>
<<else>>
<<if ($slaves[$i].lactation != 2) && ($thisSurgery.lactation == 1)>>
	<<set $surgeries.push("lactation inducing implanted drugs")>>
	<<set $slaves[$i].lactation to 2>>
	<<set $cash -= $surgeryCost>>
	<<if $PC.career is "medicine">><<set $slaves[$i].health -= 5>><<else>><<set $slaves[$i].health -= 10>><</if>>
<<elseif ($slaves[$i].anus > 3) && ($thisSurgery.cosmetic > 0)>>
	<<set $surgeries.push("a restored anus")>>
	<<set $slaves[$i].anus to 3>>
	<<if $slaves[$i].analSkill > 10>>
		<<set $slaves[$i].analSkill -= 10>>
	<</if>>
	<<set $cash -= $surgeryCost>>
	<<if $PC.career is "medicine">><<set $slaves[$i].health -= 5>><<else>><<set $slaves[$i].health -= 10>><</if>>
<<elseif ($slaves[$i].vagina > 3) && ($thisSurgery.cosmetic > 0)>>
	<<set $surgeries.push("a restored pussy")>>
	<<set $slaves[$i].vagina to 3>>
	<<if $slaves[$i].vaginalSkill > 10>>
		<<set $slaves[$i].vaginalSkill -= 10>>
	<</if>>
	<<set $cash -= $surgeryCost>>
	<<if $PC.career is "medicine">><<set $slaves[$i].health -= 5>><<else>><<set $slaves[$i].health -= 10>><</if>>
<<elseif ($slaves[$i].faceImplant == 0) && ($slaves[$i].face < 3) && ($thisSurgery.cosmetic != 0)>>
	<<set $surgeries.push("a nicer face")>>
	<<if $slaves[$i].faceShape is "masculine">><<set $slaves[$i].faceShape to "androgynous">><</if>>
	<<set $slaves[$i].faceImplant to 1>>
	<<set $slaves[$i].face += 1>>
	<<set $cash -= $surgeryCost>>
	<<if $PC.career is "medicine">><<set $slaves[$i].health -= 5>><<else>><<set $slaves[$i].health -= 10>><</if>>
<<elseif ($slaves[$i].ageImplant != 1) && ($slaves[$i].physicalAge >= 25) && ($thisSurgery.cosmetic != 0)>>
	<<set $surgeries.push("an age lift")>>
	<<set $slaves[$i].ageImplant to 1>>
	<<if $slaves[$i].visualAge > 80>>
		<<set $slaves[$i].visualAge -= 40>>
	<<elseif $slaves[$i].visualAge >= 70>>
		<<set $slaves[$i].visualAge -= 30>>
	<<elseif $slaves[$i].visualAge > 50>>
		<<set $slaves[$i].visualAge -= 20>>
	<<elseif $slaves[$i].visualAge > 36>>
		<<set $slaves[$i].visualAge -= 10>>
	<<else>>
		<<set $slaves[$i].visualAge -= 5>>
	<</if>>
	<<set $cash -= $surgeryCost>>
	<<if $PC.career is "medicine">><<set $slaves[$i].health -= 5>><<else>><<set $slaves[$i].health -= 10>><</if>>
<<elseif ($slaves[$i].waist == 0) && ($thisSurgery.cosmetic != 0)>>
	<<set $surgeries.push("a narrower waist")>>
	<<set $slaves[$i].waist to 1>>
	<<set $cash -= $surgeryCost>>
	<<if $PC.career is "medicine">><<set $slaves[$i].health -= 5>><<else>><<set $slaves[$i].health -= 10>><</if>>
<<elseif ($slaves[$i].voice == 1) && ($slaves[$i].voiceImplant == 0) && ($thisSurgery.cosmetic != 0)>>
	<<set $surgeries.push("a feminine voice")>>
	<<set $slaves[$i].voice += 1>>
	<<set $slaves[$i].voiceImplant += 1>>
	<<set $cash -= $surgeryCost>>
	<<if $PC.career is "medicine">><<set $slaves[$i].health -= 5>><<else>><<set $slaves[$i].health -= 10>><</if>>
<<elseif ($slaves[$i].lips < $thisSurgery.lips)>>
	<<set $surgeries.push("bigger lips")>>
	<<set $slaves[$i].lipsImplant += 10>>
	<<set $slaves[$i].lips += 10>>
	<<if $slaves[$i].oralSkill > 10>>
		<<set $slaves[$i].oralSkill -= 10>>
	<</if>>
	<<set $cash -= $surgeryCost>>
	<<if $PC.career is "medicine">><<set $slaves[$i].health -= 5>><<else>><<set $slaves[$i].health -= 10>><</if>>
<<elseif ($slaves[$i].faceImplant == 1) && ($slaves[$i].face < 3) && ($thisSurgery.cosmetic is 2)>>
	<<set $surgeries.push("a nicer face")>>
	<<if $slaves[$i].faceShape is "masculine">><<set $slaves[$i].faceShape to "androgynous">><</if>>
	<<set $slaves[$i].faceImplant to 2>>
	<<set $slaves[$i].face += 1>>
	<<set $cash -= $surgeryCost>>
	<<if $PC.career is "medicine">><<set $slaves[$i].health -= 5>><<else>><<set $slaves[$i].health -= 10>><</if>>
<<elseif ($slaves[$i].faceImplant > 0) && ($slaves[$i].face < 3) && ($surgeryUpgrade == 1) && ($thisSurgery.cosmetic is 2)>>
	<<set $surgeries.push("a nicer face")>>
	<<if $slaves[$i].faceShape is "masculine">><<set $slaves[$i].faceShape to "androgynous">><</if>>
	<<set $slaves[$i].faceImplant to 2>>
	<<set $slaves[$i].face += 1>>
	<<set $cash -= $surgeryCost>>
	<<if $PC.career is "medicine">><<set $slaves[$i].health -= 5>><<else>><<set $slaves[$i].health -= 10>><</if>>
<<elseif ($slaves[$i].waist == 1) && ($thisSurgery.cosmetic is 2) && ($seeExtreme == 1)>>
	<<set $surgeries.push("a narrower waist")>>
	<<set $slaves[$i].waist to 2>>
	<<set $cash -= $surgeryCost>>
	<<if $PC.career is "medicine">><<set $slaves[$i].health -= 30.5>><<else>><<set $slaves[$i].health -= 4>><</if>>
<<elseif ($slaves[$i].voice < 3) && ($slaves[$i].voiceImplant == 0) && ($thisSurgery.cosmetic is 2)>>
	<<set $surgeries.push("a bimbo's voice")>>
	<<set $slaves[$i].voice += 1>>
	<<set $slaves[$i].voiceImplant += 1>>
	<<set $cash -= $surgeryCost>>
	<<if $PC.career is "medicine">><<set $slaves[$i].health -= 5>><<else>><<set $slaves[$i].health -= 10>><</if>>
<<elseif ($slaves[$i].butt <= 3) && ($slaves[$i].butt < $thisSurgery.butt)>>
	<<set $surgeries.push("a bigger butt")>>
	<<set $slaves[$i].buttImplant to 1>>
	<<set $slaves[$i].butt += 1>>
	<<set $cash -= $surgeryCost>>
	<<if $PC.career is "medicine">><<set $slaves[$i].health -= 5>><<else>><<set $slaves[$i].health -= 10>><</if>>
<<elseif ($slaves[$i].boobs <= 600) && ($slaves[$i].lactation < 2) && ($slaves[$i].boobs+400 <= $thisSurgery.boobs)>>
	<<set $surgeries.push("bigger boobs")>>
	<<set $slaves[$i].boobsImplant += 400>>
	<<set $slaves[$i].boobs += 400>>
	<<set $cash -= $surgeryCost>>
	<<if $PC.career is "medicine">><<set $slaves[$i].health -= 5>><<else>><<set $slaves[$i].health -= 10>><</if>>
<<elseif ($slaves[$i].boobs <= 600) && ($slaves[$i].lactation < 2) && ($slaves[$i].boobs+200 <= $thisSurgery.boobs)>>
	<<set $surgeries.push("modestly bigger boobs")>>
	<<set $slaves[$i].boobsImplant += 200>>
	<<set $slaves[$i].boobs += 200>>
	<<set $cash -= $surgeryCost>>
	<<if $PC.career is "medicine">><<set $slaves[$i].health -= 5>><<else>><<set $slaves[$i].health -= 10>><</if>>
<<elseif ($slaves[$i].butt <= 5) && ($slaves[$i].butt < $thisSurgery.butt)>>
	<<set $surgeries.push("a bigger butt")>>
	<<set $slaves[$i].buttImplant to 1>>
	<<set $slaves[$i].butt += 1>>
	<<set $cash -= $surgeryCost>>
	<<if $PC.career is "medicine">><<set $slaves[$i].health -= 5>><<else>><<set $slaves[$i].health -= 10>><</if>>
<<elseif ($slaves[$i].boobs <= 2000) && ($slaves[$i].lactation < 2) && ($slaves[$i].boobs+400 < $thisSurgery.boobs)>>
	<<set $surgeries.push("bigger boobs")>>
	<<set $slaves[$i].boobsImplant += 400>>
	<<set $slaves[$i].boobs += 400>>
	<<set $cash -= $surgeryCost>>
	<<if $PC.career is "medicine">><<set $slaves[$i].health -= 5>><<else>><<set $slaves[$i].health -= 10>><</if>>
<<elseif ($slaves[$i].anus > 0) && ($surgeryUpgrade == 1) && ($thisSurgery.holes is 2)>>
	<<set $surgeries.push("a virgin anus")>>
	<<set $slaves[$i].anus to 0>>
	<<if $slaves[$i].analSkill > 10>>
		<<set $slaves[$i].analSkill -= 10>>
	<</if>>
	<<set $cash -= $surgeryCost>>
	<<if $PC.career is "medicine">><<set $slaves[$i].health -= 5>><<else>><<set $slaves[$i].health -= 10>><</if>>
<<elseif ($slaves[$i].vagina > 0) && ($surgeryUpgrade == 1) && ($thisSurgery.holes is 2)>>
	<<set $surgeries.push("a virgin pussy")>>
	<<set $slaves[$i].vagina to 0>>
	<<if $slaves[$i].vaginalSkill > 10>>
		<<set $slaves[$i].vaginalSkill -= 10>>
	<</if>>
	<<set $cash -= $surgeryCost>>
	<<if $PC.career is "medicine">><<set $slaves[$i].health -= 5>><<else>><<set $slaves[$i].health -= 10>><</if>>
<<elseif ($slaves[$i].anus > 1) && ($thisSurgery.holes == 1)>>
	<<set $surgeries.push("a tighter anus")>>
	<<set $slaves[$i].anus to 1>>
	<<if $slaves[$i].analSkill > 10>>
		<<set $slaves[$i].analSkill -= 10>>
	<</if>>
	<<set $cash -= $surgeryCost>>
	<<if $PC.career is "medicine">><<set $slaves[$i].health -= 5>><<else>><<set $slaves[$i].health -= 10>><</if>>
<<elseif ($slaves[$i].vagina > 1) && ($thisSurgery.holes == 1)>>
	<<set $surgeries.push("a tighter pussy")>>
	<<set $slaves[$i].vagina to 1>>
	<<if $slaves[$i].vaginalSkill > 10>>
		<<set $slaves[$i].vaginalSkill -= 10>>
	<</if>>
	<<set $cash -= $surgeryCost>>
	<<if $PC.career is "medicine">><<set $slaves[$i].health -= 5>><<else>><<set $slaves[$i].health -= 10>><</if>>
<<elseif ($slaves[$i].butt <= 8) && ($slaves[$i].butt < $thisSurgery.butt)>>
	<<set $surgeries.push("a bigger butt")>>
	<<set $slaves[$i].buttImplant to 1>>
	<<set $slaves[$i].butt += 1>>
	<<set $cash -= $surgeryCost>>
	<<if $PC.career is "medicine">><<set $slaves[$i].health -= 5>><<else>><<set $slaves[$i].health -= 10>><</if>>
<<elseif ($slaves[$i].boobs <= 9000) && ($slaves[$i].lactation < 2) && ($slaves[$i].boobs < $thisSurgery.boobs)>>
	<<set $surgeries.push("bigger boobs")>>
	<<set $slaves[$i].boobsImplant += 200>>
	<<set $slaves[$i].boobs += 200>>
	<<set $cash -= $surgeryCost>>
	<<if $PC.career is "medicine">><<set $slaves[$i].health -= 5>><<else>><<set $slaves[$i].health -= 10>><</if>>
<<else>>
	<<set $seed = 1>>
<</if>>
<</if>>

<</for>>

<<if $surgeries.length > 0>>

<<set $surgeriesDisplay to "">>

<<for $j to 0; $j < $surgeries.length; $j++>>
	<<set $seed to $surgeries[$j]>>
	<<set $surgeriesDisplay to ($surgeriesDisplay + $seed)>>
	<<if $j < $surgeries.length-2>>
	<<set $surgeriesDisplay to ($surgeriesDisplay + ", ")>>
	<<elseif $j < $surgeries.length-1>>
	<<if $surgeries.length > 2>>
		<<set $surgeriesDisplay to ($surgeriesDisplay + ", and ")>>
	<<else>>
		<<set $surgeriesDisplay to ($surgeriesDisplay + " and ")>>
	<</if>>
	<</if>>
<</for>>

<<if $assistantName is "your personal assistant">>Your personal assistant<<else>>$assistantName<</if>>, ordered to apply surgery at will, gives $slaves[$i].slaveName @@color:lime;$surgeriesDisplay.@@

<</if>>

<</nobr>>