code:
:: SA inflation [nobr]

<<if $slaves[$i].assignment == "be confined in the arcade" || $slaves[$i].assignment == "work in the dairy">>
	<<set $slaves[$i].inflation = 0, $slaves[$i].inflationType = 0, $slaves[$i].inflationMethod = 0, $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>>
	<<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, $slaves[$i].inflationType = 0, $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, $slaves[$i].devotion -= 8, $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, $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, $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, $slaves[$i].inflationType = 0, $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, $slaves[$i].devotion -= 8, $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,$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, $slaves[$i].trust -= 3>>
			<</if>>
		<<elseif $slaves[$i].inflationMethod == 3>>
			<<for $j = 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, $slaves[$i].inflationType = 0, $slaves[$i].inflationMethod = 0, $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, $slaves[$i].devotion -= 8, $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, $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, $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, $slaves[$i].inflationType = 0, $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, $slaves[$i].devotion += 5, $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, $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, $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, $slaves[$i].inflationType = 0, $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, $slaves[$i].devotion += 4, $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, $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, $slaves[$i].trust += 1>>
			<</if>>
		<<elseif $slaves[$i].inflationMethod == 3>>
			<<for $j = 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, $slaves[$i].inflationType = 0, $slaves[$i].inflationMethod = 0, $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, $slaves[$i].devotion += 5, $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, $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, $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, $slaves[$i].inflationType = 0, $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, $slaves[$i].inflationType = 0, $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 = 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, $slaves[$i].inflationType = 0, $slaves[$i].inflationMethod = 0, $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, $slaves[$i].inflationType = 0, $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, $slaves[$i].devotion -= 8, $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, $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, $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, $slaves[$i].inflationType = 0, $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, $slaves[$i].devotion -= 8, $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, $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, $slaves[$i].trust -= 3>>
			<</if>>
		<<elseif $slaves[$i].inflationMethod == 3>>
			<<for $j = 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, $slaves[$i].inflationType = 0, $slaves[$i].inflationMethod = 0, $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, $slaves[$i].devotion -= 8, $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, $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, $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, $slaves[$i].inflationType = 0, $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, $slaves[$i].devotion += 5, $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, $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, $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, $slaves[$i].inflationType = 0, $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, $slaves[$i].devotion += 4, $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, $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++, $slaves[$i].trust++>>
			<</if>>
		<<elseif $slaves[$i].inflationMethod == 3>>
			<<for $j = 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, $slaves[$i].inflationType = 0, $slaves[$i].inflationMethod = 0, $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, $slaves[$i].devotion += 5, $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, $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, $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, $slaves[$i].inflationType = 0, $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, $slaves[$i].inflationType = 0, $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 = 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, $slaves[$i].inflationType = 0, $slaves[$i].inflationMethod = 0, $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 == "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 = "Continue", $returnTo = "Scheduled Event">>

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

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

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

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

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

repo_name: TheBoi/fc


code:
:: SE husk slave delivery [nobr]

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

<<set $huskSlaveOrdered = 0>>

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

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

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

<<set $activeSlave.fetish = "mindbroken">>
<<set $activeSlave.fetishStrength = 10>>
<<set $activeSlave.fetishKnown = 1>>
<<set $activeSlave.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 = $activeSlave.balls>>
<</if>>
<<if $activeSlave.vagina == -1>>
	<<set $activeSlave.clit = 0>>
<</if>>
<<if $huskSlave.virgin == 0>>
	<<set $activeSlave.anus = 0>>
	<<if $activeSlave.vagina > -1>>
		<<set $activeSlave.vagina = 0>>
	<</if>>
<</if>>

\
\

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

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


code:
:: SE Player Birth [nobr]

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

<<set _gaveBirth = 0>>
<<set _PCDegree = 0>>

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

<<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 $PC.birthOther += 1>>
<<elseif $PC.pregSource == -1>>
	<<set $PC.birthElite += 1>>
<<elseif $PC.pregSource == -2>>
	<<set $PC.birthClient += 1>>
<<elseif $PC.pregSource == -3>>
	<<set $PC.birthMaster += 1>>
<<elseif $PC.pregSource == -4>>
	<<set $PC.birthArcOwner += 1>>
<<elseif $PC.pregSource == -5>>
	<<set $PC.birthCitizen += 1>>
<<else>>
	<<set $PC.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 = "birth complications", $nextButton = "Have to keep trying!", $nextLink = "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 _gaveBirth == 0>>

<<include "Generate Child">>

<<if $activeSlave.race == $PC.race>>
	<<set _PCDegree++>>
<</if>>
<<if $activeSlave.hColor == $PC.hColor>>
	<<set _PCDegree++>>
<</if>>
<<if $activeSlave.skin == $PC.skin>>
	<<set _PCDegree++>>
<</if>>
<<if $activeSlave.eyeColor == $PC.eyeColor>>
	<<set _PCDegree++>>
<</if>>

Your little <<if $babyGender == 1>>girl<<else>>boy<</if>>
<<if _PCDegree == 4>>
	looks just like you; she will likely grow up to closely resemble yourself.
<<elseif $activeSlave.eyeColor == $PC.eyeColor>>
	has your lovely $PC.eyeColor eyes.
<<elseif _PCDegree > 0>>
	looks a little like you, enough that <<if $babyGender == 1>>she<<else>>he<</if>>'ll be recognizable as yours.
<<else>>
	looks nothing like you; it's hard to believe <<if $babyGender == 1>>she's your daughter<<else>>he's you son<</if>>
<</if>>

<<if $PC.physicalAge >= 55 && $playerAging != 0>>
	You are getting too old to have children; you feel like this may be your last.
	<<set $PC.preg = -2>>
<</if>>

<<if $PC.pregSource > 0>>
	<<for $i = 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 $activeSlave.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 $activeSlave.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>><<if $incubator > 0>><<if $incubator > $incubatorSlaves>> An incubation tank is empty and ready to accept a child, should you wish to @@color:orange;keep your child as a slave@@<<else>>All the incubation tanks are occupied; there is no room for your newborn child<</if>>.<</if>>

What will it be?

<<link "Boarding School">><<replace "#choice">><<print "You have decided to send them away to be raised in your stead.">><</replace>><</link>> |
<<link "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>><</link>>
<<if $Cash4Babies == 1>> | <<link "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>><</link>><</if>>
<<if ($incubator > $incubatorSlaves) && ($reservedChildren < ($incubator-$incubatorSlaves))>>
	| <<link "Incubation">><<replace "#choice">><<print "You place the child into an incubation chamber to be aged until they can legally serve as your slave.">><</replace>><<display "Incubator Workaround">><</link>>
<</if>>

<</if>> /*closes gaveBirth*/
<</if>> /*closes SE*/

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


code:
:: Slave Age Intro

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

[[No.|PC Body Intro][$minimumSlaveAge = 18, $pedo_mode = 0]] //All slaves will be at least 18 years old, and slavery of children will be illegal in the Free Cities.//
Yes, I wish to see girls as young as <<textbox "$minimumSlaveAge" $minimumSlaveAge "PC Body Intro">> [[Continue|PC Body Intro][$pedo_mode = 0]]
[[I just want lots of lolis.|PC Body Intro][$minimumSlaveAge = 3, $pedo_mode = 1]] //Nearly all randomly generated slaves will be under the age of 18, although custom slaves and slaves related to specific events may be older.//
[[I wish to see them grow up and become fertile.|PC Body Intro][$minimumSlaveAge = 3, $pedo_mode = 0, $precociousPuberty = 1, $fertilityAge = 10, $potencyAge = 12, $seeAge = 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 = "Back", $nextLink = "Slave Interact">>

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

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

//$activeSlave.slaveName is 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 = 0; _i < $slaves.length; _i++>>
	<<if $slaves[_i].milkOutput >= 2>>
		<<if ($slaves[_i].ID != $activeSlave.ID)>>
		<<print "[[$slaves[_i].slaveName|FSlaveFeed][$milkTap = $slaves[" + _i + "], $activeSlave.inflation = 1, $activeSlave.inflationType = _descM, $activeSlave.inflationMethod = 3]]">>
		<<set _eligibilityMilk2 = 1>>

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

__4 Liters__

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

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

__8 Liters__

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

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

__Cum Slaves__

__2 Liters__

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

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

__4 Liters__

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

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

__8 Liters__

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

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


code:
:: test genetics [nobr]

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

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

Name ID Origin

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

	$genePool[_i].slaveName $genePool[_i].ID $genePool[_i].origin
<</for>>

slaves:
<<for _i = 0; _i < $slaves.length; _i++>>

	<<for _k = 0; _k < $genePool.length; _k++>>
		<<if $slaves[_i].ID == $genePool[_k].ID>>
			<<set _seed = 1>>
			<<break>>
		<</if>>
	<</for>>
	<<if _seed == 1>>
		@@color:green;$slaves[_i].slaveName $slaves[_i].ID $slaves[_i].origin@@
	<<else>>
		@@color:red;$slaves[_i].slaveName $slaves[_i].ID $slaves[_i].origin@@
	<</if>>
<</for>>


code:
:: economy widgets [widget nobr]

<<widget "BrothelStatistics">>
	<<if ($showEconomicDetails)>>
	<<if (!$facility || !$facility.brothel)>>

- No statistics for $brothelName gathered this week -

	<<else>>
		<<set _details = $args[0]>>
		<<set _b = $facility.brothel>>

			Items
			Revenue
			Expenses
			Net Income
			Rep. Change

			Total whoring income
			@@color:yellowgreen;¤<<= _b.whoreIncome.toFixedHTML(2)>>@@

			@@color:yellowgreen;¤<<= _b.whoreIncome.toFixedHTML(2)>>@@
			<<if (_b.rep > 0)>>@@color:green;+<<= _b.rep.toFixedHTML(1)>>@@<<elseif (_b.rep < 0)>>@@color:red;<<= _b.rep.toFixedHTML(1)>>@@<<else>>±<<= Number(0).toFixedHTML(1)>><</if>>

			Total whore living costs

			@@color:red;¤<<= _b.whoreCosts.toFixedHTML(2)>>@@
			@@color:red;¤-<<= _b.whoreCosts.toFixedHTML(2)>>@@

		<<if _details>>

			Whore details

				Whore
				Customers
				Revenue
				Expenses
				Net Income
				Rep. Change

			<<set _slaveDetails = _b.income.values()>>
			<<set _slaveInfo = _slaveDetails.next()>>
			<<for !_slaveInfo.done>>
				<<set _revenue = _slaveInfo.value.income + _slaveInfo.value.adsIncome, _netIncome = _revenue - _slaveInfo.value.cost>>

					<<if (_slaveInfo.value.customLabel)>>(@@color:yellow;''_slaveInfo.value.customLabel''@@) <</if>>_slaveInfo.value.slaveName
					<<if (_slaveInfo.value.customers <= 0)>>@@color:red;none@@<<else>>_slaveInfo.value.customers<</if>>
					@@color:yellowgreen;¤<<= _revenue.toFixedHTML(2)>>@@<<if (_slaveInfo.value.adsIncome > 0)>> (@@color:yellowgreen;¤<<= _slaveInfo.value.adsIncome.toFixedHTML(2)>>@@ due to advertising)<</if>>
					@@color:red;¤<<= _slaveInfo.value.cost.toFixedHTML(2)>>@@
					<<if (_netIncome > 0)>>@@color:yellowgreen;¤<<= _netIncome.toFixedHTML(2)>>@@<<elseif (_netIncome < 0)>>@@color:red;¤<<= _netIncome.toFixedHTML(2)>>@@<<else>>¤<<= _netIncome.toFixedHTML(2)>><</if>>
					<<if (_slaveInfo.value.rep > 0)>>@@color:green;+<<= _slaveInfo.value.rep.toFixedHTML(1)>>@@<<elseif (_slaveInfo.value.rep < 0)>>@@color:red;<<= _slaveInfo.value.rep.toFixedHTML(1)>>@@<<else>><</if>>

				<<set _slaveInfo = _slaveDetails.next()>>
			<</for>>

		<</if>>
		<<if (_b.adsIncome > 0)>>

			Additional income
			@@color:yellowgreen;¤<<= _b.adsIncome.toFixedHTML(2)>>@@

			@@color:yellowgreen;¤<<= _b.adsIncome.toFixedHTML(2)>>@@

		<</if>>

			Brothel maintenance

			@@color:red;¤<<= _b.maintenance.toFixedHTML(2)>>@@
			@@color:red;¤-<<= _b.maintenance.toFixedHTML(2)>>@@

		<<if (_b.adsCosts > 0)>>

			Advertising program

			@@color:red;¤<<= _b.adsCosts.toFixedHTML(2)>>@@
			@@color:red;¤-<<= _b.adsCosts.toFixedHTML(2)>>@@

		<</if>>

			Total
			@@color:yellowgreen;¤<<= _b.totalIncome.toFixedHTML(2)>>@@
			@@color:red;¤<<= _b.totalExpenses.toFixedHTML(2)>>@@
			<<if (_b.profit > 0)>>@@color:yellowgreen;¤<<= _b.profit.toFixedHTML(2)>>@@<<elseif (_b.profit < 0)>>@@color:red;¤<<= _b.profit.toFixedHTML(2)>>@@<<else>>¤<<= _b.profit.toFixedHTML(2)>><</if>>
			<<if (_b.rep > 0)>>@@color:green;+<<= _b.rep.toFixedHTML(1)>>@@<<elseif (_b.rep < 0)>>@@color:red;<<= _b.rep.toFixedHTML(1)>>@@<<else>>±<<= Number(0).toFixedHTML(1)>><</if>>

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

/* Call with <<CorpDevBuySell "asset" "Numasset">>  TODO: replace eval parse with appropriate functions */
<<widget "CorpDevBuySell">>
<<set _textboxMLArg = '_'+$args[1]>>
| Trade Qty
<<textbox `'_Num' + $args[0]` `eval(parse('_Num' + $args[0]))`>><>:
<<link "Buy">>
	<<if Number.isInteger(Number.parseFloat(eval(parse('_Num' + $args[0])))) == false>> /* Checks if _Numasset is string */
/* Buy all */
		<<if State.temporary[$args[1]].toLowerCase() == "all" || "max">>
			<<set State.temporary[$args[1]] = Math.floor($corpCash/(State.variables[$args[0]+"AssetPrice"] * 500))>>
			<<replace `'#'+$args[0]+'AssetsPurchasing'`>>
				Bought <<print Math.floor($corpCash/(State.variables[$args[0]+"AssetPrice"] * 500))>> units for ¤<<print Math.floor($corpCash/(State.variables[$args[0]+"AssetPrice"] * 500))*500*State.variables[$args[0]+"AssetPrice"]>>
			<</replace>>
			<<set State.variables[$args[0]+"Assets"] += (eval(parse('_Num' + $args[0]))) * 500>>
			<<set $corpCash -= (eval(parse('_Num' + $args[0]))) * 500 * State.variables[$args[0]+"AssetPrice"]>>
			<<replace '#cashOnHand'>>
				¤<<print $corpCash>>
			<</replace>>
			<<replace `'#'+$args[0]+'AssetsDisp'`>>
				¤<<print State.variables[$args[0]+"AssetPrice"] * State.variables[$args[0]+"Assets"]>> (<<print Math.floor(State.variables[$args[0]+"Assets"]/500)>> unit<<if State.variables[$args[0]+"Assets"]/500 > 1>>s<</if>>)
			<</replace>>
			<<replace `'#'+'controls'+$args[0]`>><<CorpDevBuySell $args[0] $args[1]>><</replace>><>
		<<else>>
/* Error if decimal or not "all" or "max" string */
			<<replace `'#'+$args[0]+'AssetsPurchasing'`>> Please input a round number. <</replace>>
		<</if>>
/* Buy % */
		<<elseif State.temporary[$args[1]].toString().includes("%")>>
		<<set _DesPerc = State.temporary[$args[1]]>>
		<<set State.temporary[$args[1]] = Math.floor((Math.clamp((Number.parseFloat(State.temporary[$args[1]])/100),0,1)*$corpCash)/(State.variables[$args[0]+"AssetPrice"] * 500))>>
		<<replace `'#'+$args[0]+'AssetsPurchasing'`>>
			Purchased <<print State.temporary[$args[1]]>> units (<<print (State.temporary[$args[1]]*(State.variables[$args[0]+"AssetPrice"] * 50000)/$corpCash).toFixed(2)>>% of cash, desired was _DesPerc)
		<</replace>>
		<<set State.variables[$args[0]+"Assets"] += (eval(parse('_Num' + $args[0]))) * 500>>
		<<set $corpCash -= (eval(parse('_Num' + $args[0]))) * 500 * State.variables[$args[0]+"AssetPrice"]>>
		<<replace '#cashOnHand'>>
			¤<<print $corpCash>>
		<</replace>>
		<<replace `'#'+$args[0]+'AssetsDisp'`>>
			¤<<print State.variables[$args[0]+"AssetPrice"] * State.variables[$args[0]+"Assets"]>> (<<print Math.floor(State.variables[$args[0]+"Assets"]/500)>> unit<<if State.variables[$args[0]+"Assets"]/500 > 1>>s<</if>>)
		<</replace>>
		<<replace `'#'+'controls'+$args[0]`>><<CorpDevBuySell $args[0] $args[1]>><</replace>><>
/* Successful buy */
	<<elseif (eval(parse('_Num' + $args[0]))) * 500 * State.variables[$args[0]+"AssetPrice"] < $corpCash>>
		<<set State.variables[$args[0]+"Assets"] += (eval(parse('_Num' + $args[0]))) * 500>>
		<<set $corpCash -= (eval(parse('_Num' + $args[0]))) * 500 * State.variables[$args[0]+"AssetPrice"]>>
		<<replace '#cashOnHand'>>
			¤<<print $corpCash>>
		<</replace>>
		<<replace `'#'+$args[0]+'AssetsDisp'`>>
			¤<<print State.variables[$args[0]+"AssetPrice"] * State.variables[$args[0]+"Assets"]>> (<<print Math.floor(State.variables[$args[0]+"Assets"]/500)>> unit<<if State.variables[$args[0]+"Assets"]/500 > 1>>s<</if>>)
		<</replace>>
		<<replace `'#'+$args[0]+'AssetsPurchasing'`>><</replace>>
/* Unsuccessful buy but have enough cash for more than 1 unit */
	<<elseif $corpCash > 500 * State.variables[$args[0]+"AssetPrice"]>>
		<<replace `'#'+$args[0]+'AssetsPurchasing'`>>
			The corp can only buy <<print Math.floor($corpCash/(State.variables[$args[0]+"AssetPrice"] * 500))>> more unit<<if Math.floor($corpCash/(State.variables[$args[0]+"AssetPrice"] * 500)) > 1 >>s<</if>> of $args[0] assets.
		<</replace>>
		<<set State.temporary[$args[1]] = Math.floor($corpCash/(State.variables[$args[0]+"AssetPrice"] * 500))>>
		<<replace `'#'+'controls'+$args[0]`>><<CorpDevBuySell $args[0] $args[1]>><</replace>><>
/* Unsuccessful buy */
	<<else>>
	<<replace `'#'+$args[0]+'AssetsPurchasing'`>>There are insufficient funds for additional purchases.<</replace>>
	<</if>>
<</link>>
| <<link "Sell">>
	<<if Number.isInteger(Number.parseFloat(eval(parse('_Num' + $args[0])))) == false>>
/* Sell all */
		<<if State.temporary[$args[1]].toLowerCase() == "all" || "max">>
			<<replace `'#'+$args[0]+'AssetsPurchasing'`>>
				Sold <<print Math.ceil((State.variables[$args[0]+"Assets"]-500)/500)>> units for ¤<<print Math.ceil((State.variables[$args[0]+"Assets"]-500)/500)*500*State.variables[$args[0]+"AssetPrice"]>>
			<</replace>>
			<<set State.temporary[$args[1]] = Math.ceil((State.variables[$args[0]+"Assets"]-500)/500)>>
			<<set State.variables[$args[0]+"Assets"] -= eval(parse('_Num' + $args[0])) * 500>>
			<<set $corpCash += eval(parse('_Num' + $args[0])) * 500 * State.variables[$args[0]+"AssetPrice"]>>
			<<replace '#cashOnHand'>>
				¤<<print $corpCash>>
			<</replace>>
			<<replace `'#'+$args[0]+'AssetsDisp'`>>
				¤<<print State.variables[$args[0]+"AssetPrice"] * State.variables[$args[0]+"Assets"]>> (<<if Math.ceil(State.variables[$args[0]+"Assets"]/500) <1>> <1 <<else>><<print Math.ceil(State.variables[$args[0]+"Assets"]/500)>> <</if>>unit<<if State.variables[$args[0]+"Assets"]/500 > 1>>s<</if>>)
			<</replace>>
			<<replace `'#'+'controls'+$args[0]`>><<CorpDevBuySell $args[0] $args[1]>><</replace>><>
/* Error if decimal or not "all" or "max" string */
		<<else>>
			<<replace `'#'+$args[0]+'AssetsPurchasing'`>> Please input a round number. <</replace>>
		<</if>>
/* Sell % */
	<<elseif State.temporary[$args[1]].toString().includes("%")>>
		<<set _DesPerc = State.temporary[$args[1]]>>
		<<set State.temporary[$args[1]] = Math.ceil((State.variables[$args[0]+"Assets"]-500)/500*(Math.clamp((Number.parseFloat(State.temporary[$args[1]])/100),0,1)))>>
		<<replace `'#'+$args[0]+'AssetsPurchasing'`>>
			Sold <<print State.temporary[$args[1]]>> units (<<print (State.temporary[$args[1]]*100/((State.variables[$args[0]+"Assets"]-500)/500)).toFixed(2)>>% of $args[0] assets, desired was _DesPerc)
		<</replace>>
		<<set State.variables[$args[0]+"Assets"] -= eval(parse('_Num' + $args[0])) * 500>>
		<<set $corpCash += eval(parse('_Num' + $args[0])) * 500 * State.variables[$args[0]+"AssetPrice"]>>
		<<replace '#cashOnHand'>>
			¤<<print $corpCash>>
		<</replace>>
		<<replace `'#'+$args[0]+'AssetsDisp'`>>
			¤<<print State.variables[$args[0]+"AssetPrice"] * State.variables[$args[0]+"Assets"]>> (<<if Math.ceil(State.variables[$args[0]+"Assets"]/500) <1>> <1 <<else>><<print Math.ceil(State.variables[$args[0]+"Assets"]/500)>> <</if>>unit<<if State.variables[$args[0]+"Assets"]/500 > 1>>s<</if>>)
		<</replace>>
		<<replace `'#'+'controls'+$args[0]`>><<CorpDevBuySell $args[0] $args[1]>><</replace>><>
/* Successful sell */
	<<elseif State.variables[$args[0]+"Assets"] > 500 && eval(parse('_Num' + $args[0])) * 500 < State.variables[$args[0]+"Assets"]>>
		<<set State.variables[$args[0]+"Assets"] -= eval(parse('_Num' + $args[0])) * 500>>
		<<set $corpCash += eval(parse('_Num' + $args[0])) * 500 * State.variables[$args[0]+"AssetPrice"]>>
		<<replace '#cashOnHand'>>
			¤<<print $corpCash>>
		<</replace>>
		<<replace `'#'+$args[0]+'AssetsDisp'`>>
			¤<<print State.variables[$args[0]+"AssetPrice"] * State.variables[$args[0]+"Assets"]>> (<<if (State.variables[$args[0]+"Assets"]/500) <1>> <1 <<else>><<print Math.ceil(State.variables[$args[0]+"Assets"]/500)>> <</if>>unit<<if State.variables[$args[0]+"Assets"]/500 > 1>>s<</if>>)
		<</replace>>
		<<replace `'#'+$args[0]+'AssetsPurchasing'`>><</replace>>
/* Unsuccessful sell but have enough assets for more than 1 unit */
	<<elseif State.variables[$args[0]+"Assets"] > 500>>
		<<replace `'#'+$args[0]+'AssetsPurchasing'`>>
			The corp can only sell <<print Math.ceil((State.variables[$args[0]+"Assets"]-500)/500)>> more unit<<if Math.ceil((State.variables[$args[0]+"Assets"]-500)/500) > 1 >>s<</if>> of $args[0] assets.
		<</replace>>
		<<set State.temporary[$args[1]] = Math.ceil((State.variables[$args[0]+"Assets"]-500)/500)>>
		<<replace `'#'+'controls'+$args[0]`>><<CorpDevBuySell $args[0] $args[1]>><</replace>><>
/* Unsuccessful sell */
	<<else>>
	<<replace `'#'+$args[0]+'AssetsPurchasing'`>>The corp cannot sell any more $args[0] assets.<</replace>>
	<</if>>
<</link>>
<</widget>>


code:
:: extended family widgets [nobr widget]

<<widget "Family">>

/*testtest PC parent passage - determines if the current slave is your mother or father*/
<<if $activeSlave.ID == $PC.mother && $activeSlave.ID == $PC.father>>
	She @@color:lightgreen;is both your mother and father, $pronoun impregnated <<print $object>>self with you.@@
<<elseif $activeSlave.ID == $PC.mother>>
	$pronounCap @@color:lightgreen;is your mother.@@
<<elseif $activeSlave.ID == $PC.father>>
	$pronounCap @@color:lightgreen;is your father.@@
<</if>>

<<if $activeSlave.father == -1 && $activeSlave.mother == -1>>
	$pronounCap's @@color:lightgreen;your child;@@ you knocked yourself up and gave birth to $object.
<</if>>

<<if $activeSlave.father == -1 && $activeSlave.mother != -1>>
	$pronounCap's @@color:lightgreen;your child;@@ you knocked $possessive mother up.
<<elseif $activeSlave.father > 0>>
	<<for $i = 0; $i < $slaves.length; $i++>>
		<<if $slaves[$i].ID == $activeSlave.father>>
			$pronounCap was @@color:lightgreen;fathered by $slaves[$i].slaveName's@@ virile dick.
			<<break>>
		<</if>>
	<</for>>
<</if>>

<<if $activeSlave.father != -1 && $activeSlave.mother == -1>>
	$pronounCap's @@color:lightgreen;your child;@@ you gave birth to $object.
<<elseif $activeSlave.mother > 0>>
	<<for $i = 0; $i < $slaves.length; $i++>>
		<<if $slaves[$i].ID == $activeSlave.mother>>
			$pronounCap was @@color:lightgreen;born from $slaves[$i].slaveName's@@ fertile womb.
			<<break>>
		<</if>>
	<</for>>
<</if>>

<<for $i = 0; $i < $slaves.length; $i++>>
	<<if $activeSlave.ID == $slaves[$i].father>>
		<<set $children.push($slaves[$i])>>
	<</if>>
<</for>>
<<if $children.length > 2>>
	$pronounCap @@color:lightgreen;fathered
	<<for $j to 0; $j < $children.length; $j++>>
		<<if $j < $children.length-1>>
			$children[$j].slaveName,
		<<else>>
			and $children[$j].slaveName.@@
		<</if>>
	<</for>>
<<elseif $children.length > 1>>
	$pronounCap @@color:lightgreen;fathered a pair of your slaves: $children[0].slaveName, and $children[1].slaveName.@@
<<elseif $children.length > 0>>
	$pronounCap @@color:lightgreen;fathered a single slave of yours: $children[0].slaveName.@@
<</if>>
<<set $children = []>>

<<for $i = 0; $i < $slaves.length; $i++>>
	<<if $activeSlave.ID == $slaves[$i].mother>>
		<<set $children.push($slaves[$i])>>
	<</if>>
<</for>>
<<if $children.length > 2>>
	$pronounCap @@color:lightgreen;gave birth to
	<<for $j to 0; $j < $children.length; $j++>>
		<<if $j < $children.length-1>>
			$children[$j].slaveName,
		<<else>>
			and $children[$j].slaveName.@@
		<</if>>
	<</for>>
<<elseif $children.length > 1>>
	$pronounCap @@color:lightgreen;gave birth to a pair of your slaves: $children[0].slaveName, and $children[1].slaveName.@@
<<elseif $children.length > 0>>
	$pronounCap @@color:lightgreen;gave birth to a single of your slaves: $children[0].slaveName.@@
<</if>>
<<set $children = []>>

/*testtest maternal grandma passage - determines if the current slave has a maternal grandmother*/
<<for $i = 0; $i < $slaves.length; $i++>>
	<<if $slaves[$i].ID != $activeSlave.ID && $slaves[$i].ID == $activeSlave.mother>>
		<<for $j to 0; $j < $slaves.length; $j++>>
			<<if $slaves[$j].ID != $activeSlave.ID && $slaves[$j].ID != $slaves[$i].ID && $slaves[$j].ID == $slaves[$i].mother>>
				$possessiveCap maternal @@color:lightgreen;grandmother is $slaves[$j].slaveName.@@
			<</if>>
		<</for>>
	<<elseif $PC.ID == $activeSlave.mother && $slaves[$i].ID == $PC.mother>>
		$possessiveCap maternal @@color:lightgreen;grandmother is $slaves[$i].slaveName.@@
	<</if>>
<</for>>

/*testtest maternal grandpa passage - determines if the current slave has a maternal grandfather*/
<<for $i = 0; $i < $slaves.length; $i++>>
	<<if $slaves[$i].ID != $activeSlave.ID && $slaves[$i].ID == $activeSlave.mother>>
		<<for $j to 0; $j < $slaves.length; $j++>>
			<<if $slaves[$j].ID != $activeSlave.ID && $slaves[$j].ID != $slaves[$i].ID && $slaves[$j].ID == $slaves[$i].father>>
				$possessiveCap maternal @@color:lightgreen;grandfather is $slaves[$j].slaveName.@@
			<</if>>
		<</for>>
	<<elseif $PC.ID == $activeSlave.mother && $slaves[$i].ID == $PC.father>>
		$possessiveCap maternal @@color:lightgreen;grandfather is $slaves[$i].slaveName.@@
	<</if>>
<</for>>

/*testtest paternal grandma passage - determines if the current slave has a paternal grandmother*/
<<for $i = 0; $i < $slaves.length; $i++>>
	<<if $slaves[$i].ID != $activeSlave.ID && $slaves[$i].ID == $activeSlave.father>>
		<<for $j to 0; $j < $slaves.length; $j++>>
			<<if $slaves[$j].ID != $activeSlave.ID && $slaves[$j].ID != $slaves[$i].ID && $slaves[$j].ID == $slaves[$i].mother>>
				$possessiveCap paternal @@color:lightgreen;grandmother is $slaves[$j].slaveName.@@
			<</if>>
		<</for>>
	<<elseif $PC.ID == $activeSlave.father && $slaves[$i].ID == $PC.mother>>
		$possessiveCap paternal @@color:lightgreen;grandmother is $slaves[$i].slaveName.@@
	<</if>>
<</for>>

/*testtest paternal grandpa passage - determines if the current slave has a paternal grandfather*/
<<for $i = 0; $i < $slaves.length; $i++>>
	<<if $slaves[$i].ID != $activeSlave.ID && $slaves[$i].ID == $activeSlave.father>>
		<<for $j to 0; $j < $slaves.length; $j++>>
			<<if $slaves[$j].ID != $activeSlave.ID && $slaves[$j].ID != $slaves[$i].ID && $slaves[$j].ID == $slaves[$i].father>>
				$possessiveCap paternal @@color:lightgreen;grandfather is $slaves[$j].slaveName.@@
			<</if>>
		<</for>>
	<<elseif $PC.ID == $activeSlave.father && $slaves[$i].ID == $PC.father>>
		$possessiveCap paternal @@color:lightgreen;grandfather is $slaves[$i].slaveName.@@
	<</if>>
<</for>>

/*testtest PC grandparents passage - determines if the current slave is your grandparent*/
<<for $i = 0; $i < $slaves.length; $i++>>
	<<if $slaves[$i].ID != $activeSlave.ID>>
	<<if $activeSlave.ID == $slaves[$i].mother && $slaves[$i].ID == $PC.mother && $activeSlave.ID == $slaves[$i].father && $slaves[$i].ID == $PC.father>>
		$pronounCap is @@color:lightgreen;your grandparent.@@ $pronounCap impregnated <<print $object>>self with your mother/father who in turn impregnated themselves with you.
	<<elseif $activeSlave.ID == $slaves[$i].mother>>
		<<if $slaves[$i].ID == $PC.mother>>
			$pronounCap is @@color:lightgreen;your maternal grandmother.@@
		<<elseif $slaves[$i].ID == $PC.father>>
			$pronounCap is @@color:lightgreen;your paternal grandmother.@@
		<</if>>
	<<elseif $activeSlave.ID == $slaves[$i].father>>
		<<if $slaves[$i].ID == $PC.mother>>
			$pronounCap is @@color:lightgreen;your maternal grandfather.@@
		<<elseif $slaves[$i].ID == $PC.father>>
			$pronounCap is @@color:lightgreen;your paternal grandfather.@@
		<</if>>
	<</if>>
	<</if>>
<</for>>

/*testtest grandchild passage - determines how many grandchildren the current slave has*/
<<for $i = 0; $i < $slaves.length; $i++>>
	<<if $slaves[$i].ID != $activeSlave.ID>>
	<<if $activeSlave.ID == $slaves[$i].mother or $activeSlave.ID == $slaves[$i].father>>
		<<for $j to 0; $j < $slaves.length; $j++>>
			<<if $slaves[$i].ID != $slaves[$j].ID>>
			<<if $slaves[$i].ID == $slaves[$j].mother or $slaves[$i].ID == $slaves[$j].father>>
				<<set $children.push($slaves[$j])>>
			<</if>>
			<</if>>
		<</for>>
	<</if>>
	<</if>>
<</for>>
<<if $children.length > 0>>
	$pronounCap
<<if $children.length > 2>>
	has @@color:lightgreen;many grandchildren,
	<<for $j to 0; $j < $children.length; $j++>>
		<<if $j < $children.length-1>>
			$children[$j].slaveName,
		<<else>>
			and $children[$j].slaveName amongst your slaves.@@
		<</if>>
	<</for>>
<<elseif $children.length > 1>>
	has @@color:lightgreen;two grandchildren, $children[0].slaveName, and $children[1].slaveName as your slaves.@@
<<elseif $children.length > 0>>
	has a @@color:lightgreen;grandchild, $children[0].slaveName as your slave.@@
<</if>>
<</if>>
<<set $children = []>>

/*testtest PC aunt passage - determines how many aunts you have*/
<<for $i = 0; $i < $slaves.length; $i++>>
	<<if $slaves[$i].ID != $activeSlave.ID>>
	<<if areSisters($slaves[$i], $activeSlave) == 1 ||  areSisters($slaves[$i], $activeSlave) == 2>>
	<<if $slaves[$i].ID == $PC.mother || $slaves[$i].ID == $PC.father>>
		<<for $j to 0; $j < $slaves.length; $j++>>
			<<if $slaves[$i].ID != $slaves[$j].ID >>
			<<if $slaves[$j].vagina > -1>>
			<<if areSisters($slaves[$j], $activeSlave) == 1 ||  areSisters($slaves[$j], $activeSlave) == 2>>
				<<set $children.push($slaves[$j])>>
			<</if>>
			<</if>>
			<</if>>
		<</for>>
	<</if>>
	<</if>>
	<</if>>
<</for>>
<<if $activeSlave.vagina > -1 && $children.length > 0>>
	$pronounCap
	<<if $children.length > 2>>
		is @@color:lightgreen;your aunt along with
		<<for $j to 0; $j < $children.length; $j++>>
			<<if $j < $children.length-1>>
				$children[$j].slaveName,
			<<else>>
				and $children[$j].slaveName.@@
			<</if>>
		<</for>>
	<<elseif $children.length > 1>>
		is @@color:lightgreen;your aunt along with $children[0].slaveName.@@
	<<elseif $children.length > 0>>
		<<for $i = 0; $i < $slaves.length; $i++>>
			<<if $slaves[$i].ID != $activeSlave.ID && $activeSlave.vagina > -1>>
			<<if areSisters($slaves[$i], $activeSlave) == 1 ||  areSisters($slaves[$i], $activeSlave) == 2>>
			<<if $slaves[$i].ID == $PC.mother || $slaves[$i].ID == $PC.father>>
				$pronounCap is @@color:lightgreen;your aunt.@@
			<</if>>
			<</if>>
			<</if>>
		<</for>>
	<</if>>
<</if>>
<<set $children = []>>

/*testtest PC uncle passage - determines how many uncles you have*/
<<for $i = 0; $i < $slaves.length; $i++>>
	<<if $slaves[$i].ID != $activeSlave.ID>>
	<<if areSisters($slaves[$i], $activeSlave) == 1 ||  areSisters($slaves[$i], $activeSlave) == 2>>
	<<if $slaves[$i].ID == $PC.mother || $slaves[$i].ID == $PC.father>>
		<<for $j to 0; $j < $slaves.length; $j++>>
			<<if $slaves[$i].ID != $slaves[$j].ID && $slaves[$j].dick > 0 && $slaves[$j].vagina == -1>>
			<<if areSisters($slaves[$j], $activeSlave) == 1 ||  areSisters($slaves[$j], $activeSlave) == 2>>
				<<set $children.push($slaves[$j])>>
			<</if>>
			<</if>>
		<</for>>
	<</if>>
	<</if>>
	<</if>>
<</for>>
<<if $activeSlave.dick > 0 && $activeSlave.vagina == -1 && $children.length > 0>>
	$pronounCap
	<<if $children.length > 2>>
		is @@color:lightgreen;your uncle along with
		<<for $j to 0; $j < $children.length; $j++>>
			<<if $j < $children.length-1>>
				$children[$j].slaveName,
			<<else>>
				and $children[$j].slaveName.@@
			<</if>>
		<</for>>
	<<elseif $children.length > 1>>
		is @@color:lightgreen;your uncle along with $children[0].slaveName.@@
	<<elseif $children.length > 0>>
		<<for $i = 0; $i < $slaves.length; $i++>>
			<<if $slaves[$i].ID != $activeSlave.ID && $activeSlave.dick > 0 && $activeSlave.vagina == -1>>
			<<if areSisters($slaves[$i], $activeSlave) == 1 ||  areSisters($slaves[$i], $activeSlave) == 2>>
			<<if $slaves[$i].ID == $PC.mother || $slaves[$i].ID == $PC.father>>
				$pronounCap is @@color:lightgreen;your uncle.@@
			<</if>>
			<</if>>
			<</if>>
		<</for>>
	<</if>>
<</if>>
<<set $children = []>>

/*testtest aunt passage - determines how many aunts a slave has*/
<<for $i = 0; $i < $slaves.length; $i++>>
	<<if $slaves[$i].ID != $activeSlave.ID>>
	<<if $slaves[$i].ID == $activeSlave.mother || $slaves[$i].ID == $activeSlave.father>>
		<<for $j to 0; $j < $slaves.length; $j++>>
			<<if $slaves[$j].vagina > -1>>
			<<if areSisters($slaves[$j], $slaves[$i]) == 1 || areSisters($slaves[$j], $slaves[$i]) == 2>>
				<<set $children.push($slaves[$j])>>
			<</if>>
			<</if>>
		<</for>>
	<</if>>
	<</if>>
<</for>>
<<if $children.length > 0>>
	$pronounCap
<<if $children.length > 2>>
	has @@color:lightgreen;many aunts,
	<<for $j to 0; $j < $children.length; $j++>>
		<<if $j < $children.length-1>>
			$children[$j].slaveName,
		<<else>>
			and $children[$j].slaveName.@@
		<</if>>
	<</for>>
<<elseif $children.length > 1>>
	 has @@color:lightgreen;two aunts, $children[0].slaveName, and $children[1].slaveName.@@
<<elseif $children.length > 0>>
	 has @@color:lightgreen;an aunt, $children[0].slaveName.@@
<</if>>
<</if>>
<<set $children = []>>

/*testtest uncle passage - determines how many uncles a slave has*/
<<for $i = 0; $i < $slaves.length; $i++>>
	<<if $slaves[$i].ID != $activeSlave.ID>>
	<<if $slaves[$i].ID == $activeSlave.mother || $slaves[$i].ID == $activeSlave.father>>
		<<for $j to 0; $j < $slaves.length; $j++>>
			<<if $slaves[$j].dick > 0 && $slaves[$j].vagina == -1>>
			<<if areSisters($slaves[$j], $slaves[$i]) == 1 || areSisters($slaves[$j], $slaves[$i]) == 2>>
				<<set $children.push($slaves[$j])>>
			<</if>>
			<</if>>
		<</for>>
	<</if>>
	<</if>>
<</for>>
<<if $activeSlave.vagina > -1 && $children.length > 0>>
	$pronounCap
<<if $children.length > 2>>
	has @@color:lightgreen;many aunts,
	<<for $j to 0; $j < $children.length; $j++>>
		<<if $j < $children.length-1>>
			$children[$j].slaveName,
		<<else>>
			and $children[$j].slaveName.@@
		<</if>>
	<</for>>
<<elseif $children.length > 1>>
	 has @@color:lightgreen;two aunts, $children[0].slaveName, and $children[1].slaveName.@@
<<elseif $children.length > 0>>
	 has @@color:lightgreen;an aunt, $children[0].slaveName.@@
<</if>>
<</if>>
<<set $children = []>>

/*testtest PC niece passage - determines how many nieces you have*/
<<for $i = 0; $i < $slaves.length; $i++>>
	<<if $slaves[$i].ID != $activeSlave.ID>>
	<<if areSisters($slaves[$i], $PC) == 1 || areSisters($slaves[$i], $PC) == 2>>
	<<if $slaves[$i].ID == $activeSlave.mother || $slaves[$i].ID == $activeSlave.father>>
		<<for $j to 0; $j < $slaves.length; $j++>>
			<<if $slaves[$i].ID != $slaves[$j].ID && $slaves[$j].vagina > -1>>
			<<if $slaves[$i].ID == $slaves[$j].mother || $slaves[$i].ID == $slaves[$j].father>>
				<<set $children.push($slaves[$j])>>
			<</if>>
			<</if>>
		<</for>>
	<</if>>
	<</if>>
	<</if>>
<</for>>
<<if $activeSlave.vagina > -1 && $children.length > 0>>
	$pronounCap
<<if $children.length > 2>>
	is @@color:lightgreen;your niece along with
	<<for $j = 0; $j < $children.length; $j++>>
		<<if $j < $children.length-1>>
			$children[$j].slaveName,
		<<else>>
			 and $children[$j].slaveName.@@
		<</if>>
	<</for>>
<<elseif $children.length > 1>>
	is @@color:lightgreen;your niece along with $children[0].slaveName.@@
<<elseif $children.length > 0>>
<<for $i = 0; $i < $slaves.length; $i++>>
	<<if $slaves[$i].ID != $activeSlave.ID && $activeSlave.vagina > -1>>
	<<if areSisters($slaves[$i], $PC) == 1 || areSisters($slaves[$i], $PC) == 2>>
	<<if $slaves[$i].ID == $activeSlave.mother || $slaves[$i].ID == $activeSlave.father>>
		$pronounCap is @@color:lightgreen;your niece.@@
	<</if>>
	<</if>>
	<</if>>
<</for>>
<</if>>
<</if>>
<<set $children = []>>

/* testtest niece passage - determines how many nieces a slave has*/
<<for $i = 0; $i < $slaves.length; $i++>>
	<<if $slaves[$i].ID != $activeSlave.ID>>
	<<if areSisters($slaves[$i], $activeSlave) > 0>>
		<<for $j = 0; $j < $slaves.length; $j++>>
			<<if $slaves[$i].ID != $slaves[$j].ID && $slaves[$j].vagina > -1>>
			<<if $slaves[$i].ID == $slaves[$j].mother || $slaves[$i].ID == $slaves[$j].father>>
				<<set $children.push($slaves[$j])>>
			<</if>>
			<</if>>
		<</for>>
	<</if>>
	<</if>>
<</for>>
<<if $activeSlave.vagina > -1 && $children.length > 0>>
	$pronounCap
<<if $children.length > 2>>
	has @@color:lightgreen;many nieces,
	<<for $j = 0; $j < $children.length; $j++>>
		<<if $j < $children.length-1>>
			$children[$j].slaveName,
		<<else>>
			and $children[$j].slaveName, who are your slaves.@@
		<</if>>
	<</for>>
<<elseif $children.length > 1>>
	has @@color:lightgreen;two nieces, $children[0].slaveName, and $children[1].slaveName, who are your slaves.@@
<<elseif $children.length > 0>>
	has @@color:lightgreen;a niece, $children[0].slaveName, who is your slave.@@
<</if>>
<</if>>
<<set $children = []>>

/*testtest PC nephew passage - determines how many nephews you have*/
<<for $i = 0; $i < $slaves.length; $i++>>
	<<if $slaves[$i].ID != $activeSlave.ID>>
	<<if areSisters($slaves[$i], $PC) == 1 || areSisters($slaves[$i], $PC) == 2>>
	<<if $slaves[$i].ID == $activeSlave.mother || $slaves[$i].ID == $activeSlave.father>>
		<<for $j = 0; $j < $slaves.length; $j++>>
			<<if $slaves[$i].ID != $slaves[$j].ID && $slaves[$i].dick > 0 && $slaves[$i].vagina == -1>>
			<<if $slaves[$i].ID == $slaves[$j].mother || $slaves[$i].ID == $slaves[$j].father>>
				<<set $children.push($slaves[$j])>>
			<</if>>
			<</if>>
		<</for>>
	<</if>>
	<</if>>
	<</if>>
<</for>>
<<if $activeSlave.dick > 0 && $activeSlave.vagina == -1 && $children.length > 0>>
	$pronounCap
<<if $children.length > 2>>
	is @@color:lightgreen;your nephew along with
	<<for $j = 0; $j < $children.length; $j++>>
		<<if $j < $children.length-1>>
			$children[$j].slaveName,
		<<else>>
			 and $children[$j].slaveName.@@
		<</if>>
	<</for>>
<<elseif $children.length > 1>>
	is @@color:lightgreen;your nephew along with $children[0].slaveName.@@
<<elseif $children.length > 0>>
<<for $i = 0; $i < $slaves.length; $i++>>
	<<if $slaves[$i].ID != $activeSlave.ID && $activeSlave.dick > 0 && $activeSlave.vagina == -1>>
	<<if areSisters($slaves[$i], $PC) == 1 || areSisters($slaves[$i], $PC) == 2>>
	<<if $slaves[$i].ID == $activeSlave.mother || $slaves[$i].ID == $activeSlave.father>>
		$pronounCap is @@color:lightgreen;your nephew.@@
	<</if>>
	<</if>>
	<</if>>
<</for>>
<</if>>
<</if>>
<<set $children = []>>

/* testtest nephew passage - determines how many nephews a slave has*/
<<for $i = 0; $i < $slaves.length; $i++>>
	<<if $slaves[$i].ID != $activeSlave.ID>>
	<<if areSisters($slaves[$i], $activeSlave) > 0>>
		<<for $j = 0; $j < $slaves.length; $j++>>
			<<if $slaves[$i].ID != $slaves[$j].ID && $slaves[$j].dick > 0 && $slaves[$j].vagina == -1>>
			<<if $slaves[$i].ID == $slaves[$j].mother || $slaves[$i].ID == $slaves[$j].father>>
				<<set $children.push($slaves[$j])>>
			<</if>>
			<</if>>
		<</for>>
	<</if>>
	<</if>>
<</for>>
<<if $activeSlave.vagina > -1 && $children.length > 0>>
	$pronounCap
<<if $children.length > 2>>
	has @@color:lightgreen;many nieces,
	<<for $j = 0; $j < $children.length; $j++>>
		<<if $j < $children.length-1>>
			$children[$j].slaveName,
		<<else>>
			and $children[$j].slaveName, who are your slaves.@@
		<</if>>
	<</for>>
<<elseif $children.length > 1>>
	has @@color:lightgreen;two nieces, $children[0].slaveName, and $children[1].slaveName, who are your slaves.@@
<<elseif $children.length > 0>>
	has @@color:lightgreen;a niece, $children[0].slaveName, who is your slave.@@
<</if>>
<</if>>
<<set $children = []>>

/*testtest PC sibling passages - determines how many siblings you have*/
<<set $children = []>>
<<set _rel_num = areSisters($activeSlave, $PC)>>
<<if(_rel_num > 0)>>
	<<if ($activeSlave.vagina > -1)>>
		<<set _rel_type = "sister">>
	<<else>>
		<<set _rel_type = "brother">>
	<</if>>
	<<if (_rel_num == 1)>>
		<<set _rel_desc = "your twin">>
	<<elseif _rel_num == 2>>
		<<set _rel_desc = "your ">>
	<<elseif _rel_num == 3>>
		<<set _rel_desc = "your half-">>
	<</if>>
	<<for $i = 0; $i < $slaves.length; $i++>>
		<<if $slaves[$i].ID != $activeSlave.ID>>
			<<if _rel_num == areSisters($activeSlave, $slaves[$i]) && ($activeSlave.vagina > -1) == ($slaves[$i].vagina > -1)>>
				<<set console.log('sisters', $slaves[$i].birthName)>>
				<<set $children.push($slaves[$i])>>
			<</if>>
		<</if>>
	<</for>>
	$pronounCap
<<if $children.length > 1>>
	@@color:lightgreen;is _rel_desc _rel_type along with
	<<for $j = 0; $j < $children.length; $j++>>
		<<if $j < $children.length-1>>
			$children[$j].slaveName,
		<<else>>
			and $children[$j].slaveName.@@
		<</if>>
	<</for>>
<<elseif $children.length > 0>>
	is @@color:lightgreen;_rel_desc _rel_type with $children[0].slaveName.@@
<<else>>
	is @@color:lightgreen;_rel_desc _rel_type.@@
<</if>>
<</if>>
<<set $children = []>>

/*testtest PC twin passages - determines how many twins you have but not implemented yet
<<for $i = 0; $i < $slaves.length; $i++>>
	<<if $slaves[$i].ID != $activeSlave.ID>>
	<<if areSisters($activeSlave, $PC) == 1 && areSisters($slaves[$i], $activeSlave) == 1>>
		<<set $children.push($slaves[$i])>>
	<</if>>
	<</if>>
<</for>>
<<if $children.length > 2>>
	$pronounCap @@color:lightgreen;shared a cramped womb with you
	<<for $j = 0; $j < $children.length; $j++>>
		<<if $j < $children.length-1>>
			, $children[$j].slaveName
		<<else>>
			and $children[$j].slaveName.@@
		<</if>>
	<</for>>
<<elseif $children.length > 1>>
	$pronounCap is @@color:lightgreen;your twin along with $children[0].slaveName.@@
<<elseif $children.length > 0>>
	$pronounCap is @@color:lightgreen;your twin sister.@@
<</if>>
<<set $children = []>>

testtest PC sister passages - determines how many sisters you have
<<for $i = 0; $i < $slaves.length; $i++>>
	<<if $slaves[$i].ID != $activeSlave.ID>>
	<<if areSisters($activeSlave, $PC) == 2 && areSisters($slaves[$i], $activeSlave) < 3 && areSisters($slaves[$i], $activeSlave) > 0 && $slaves[$i].vagina > -1>>
		<<set $children.push($slaves[$i])>>
	<</if>>
	<</if>>
<</for>>
<<if $activeSlave.vagina > -1 && $children.length > 0>>
	$pronounCap
<<if $children.length > 2>>
	@@color:lightgreen;is your sister along with
	<<for $j = 0; $j < $children.length; $j++>>
		<<if $j < $children.length-1>>
			$children[$j].slaveName,
		<<else>>
			and $children[$j].slaveName.@@
		<</if>>
	<</for>>
<<elseif $children.length > 1>>
	is @@color:lightgreen;your sister along with $children[0].slaveName.@@
<<elseif $children.length > 0>>
	is @@color:lightgreen;your sister.@@
<</if>>
<</if>>
<<set $children = []>>

testtest PC brother passages - determines how many brothers you have
<<for $i = 0; $i < $slaves.length; $i++>>
	<<if $slaves[$i].ID != $activeSlave.ID>>
	<<if areSisters($activeSlave, $PC) == 2 && areSisters($slaves[$i], $activeSlave) < 2 && areSisters($slaves[$i], $activeSlave) > 0 && $slaves[$i].dick > 0 && $slaves[$i].vagina == -1>>
		<<set $children.push($slaves[$i])>>
	<</if>>
	<</if>>
<</for>>
<<if $activeSlave.dick > 0 && $activeSlave.vagina == -1 && $children.length > 0>>
	$pronounCap
<<if $children.length > 2>>
	@@color:lightgreen;is your brother along with
	<<for $j = 0; $j < $children.length; $j++>>
		<<if $j < $children.length-1>>
			$children[$j].slaveName,
		<<else>>
			and $children[$j].slaveName.@@
		<</if>>
	<</for>>
<<elseif $children.length > 1>>
	is @@color:lightgreen;your brother along with $children[0].slaveName.@@
<<elseif $children.length > 0>>
	is @@color:lightgreen;your brother.@@
<</if>>
<</if>>
<<set $children = []>>

testtest PC half-sister passages - determines how many half-sisters you have
<<for $i = 0; $i < $slaves.length; $i++>>
	<<if $slaves[$i].ID != $activeSlave.ID>>
	<<if areSisters($activeSlave, $PC) == 3 && areSisters($slaves[$i], $PC) == 3 && $slaves[$i].vagina > -1>>
		<<set $children.push($slaves[$i])>>
	<</if>>
	<</if>>
<</for>>
<<if $activeSlave.vagina > -1 && $children.length > 0>>
	$pronounCap
<<if $children.length > 2>>
	is @@color:lightgreen;your half-sister along with
	<<for $j = 0; $j < $children.length; $j++>>
		<<if $j < $children.length-1>>
			$children[$j].slaveName,
		<<else>>
			and $children[$j].slaveName.@@
		<</if>>
	<</for>>
<<elseif $children.length > 1>>
	is @@color:lightgreen;your half-sister along with $children[0].slaveName.@@
<<elseif $children.length > 0>>
	is @@color:lightgreen;your half-sister.@@
<</if>>
<</if>>
<<set $children = []>>

testtest PC half-brother passages - determines how many half-brothers you have
<<for $i = 0; $i < $slaves.length; $i++>>
	<<if $slaves[$i].ID != $activeSlave.ID>>
	<<if areSisters($activeSlave, $PC) == 3 && areSisters($slaves[$i], $PC) == 3 && $slaves[$i].dick > 0 && $slaves[$i].vagina == -1>>
		<<set $children.push($slaves[$i])>>
	<</if>>
	<</if>>
<</for>>
<<if $activeSlave.dick > 0 && $activeSlave.vagina == -1 && $children.length > 0>>
	$pronounCap
<<if $children.length > 2>>
	is @@color:lightgreen;your half-brother along with
	<<for $j = 0; $j < $children.length; $j++>>
		<<if $j < $children.length-1>>
			$children[$j].slaveName,
		<<else>>
			and $children[$j].slaveName.@@
		<</if>>
	<</for>>
<<elseif $children.length > 1>>
	is @@color:lightgreen;your half-brother along with $children[0].slaveName.@@
<<elseif $children.length > 0>>
	is @@color:lightgreen;your half-brother.@@
<</if>>
<</if>>
<<set $children = []>>
*/

/*testtest twins? - determines how many twins a slave has*/
<<for $i = 0; $i < $slaves.length; $i++>>
	<<if $slaves[$i].ID != $activeSlave.ID>>
		<<if areSisters($activeSlave, $slaves[$i]) == 1>>
			<<set $children.push($slaves[$i])>>
		<</if>>
	<</if>>
<</for>>
<<if $children.length > 2>>
	$pronounCap @@color:lightgreen;shared a cramped womb with
	<<for $j = 0; $j < $children.length; $j++>>
		<<if $j < $children.length-1>>
			$children[$j].slaveName,
		<<else>>
			and $children[$j].slaveName.@@
		<</if>>
	<</for>>
<<elseif $children.length > 1>>
	$pronounCap is a @@color:lightgreen;one of a set of triplets; $children[0].slaveName, and $children[1].slaveName@@ complete the trio.
<<elseif $children.length > 0>>
	$pronounCap is @@color:lightgreen;twins with $children[0].slaveName.@@
<</if>>
<<set $children = []>>

/*testtest sister - determines how many sisters a slave has*/
<<for $i = 0; $i < $slaves.length; $i++>>
	<<if $slaves[$i].ID != $activeSlave.ID>>
		<<if areSisters($activeSlave, $slaves[$i]) == 2 && $slaves[$i].vagina > -1>>
			<<set $children.push($slaves[$i])>>
		<</if>>
	<</if>>
<</for>>
<<if $children.length > 2>>
	$pronounCap is @@color:lightgreen;sisters with
	<<for $j = 0; $j < $children.length; $j++>>
		<<if $j < $children.length-1>>
			$children[$j].slaveName,
		<<else>>
			and $children[$j].slaveName.@@
		<</if>>
	<</for>>
<<elseif $children.length > 1>>
	$pronounCap is @@color:lightgreen;sisters with $children[0].slaveName and $children[1].slaveName.@@
<<elseif $children.length > 0>>
	$pronounCap is @@color:lightgreen;sisters with $children[0].slaveName.@@
<</if>>
<<set $children = []>>

/*testtest brother - determines how many brothers a slave has*/
<<for $i = 0; $i < $slaves.length; $i++>>
	<<if $slaves[$i].ID != $activeSlave.ID>>
		<<if areSisters($activeSlave, $slaves[$i]) == 2 && $slaves[$i].dick > 0 && $slaves[$i].vagina == -1>>
			<<set $children.push($slaves[$i])>>
		<</if>>
	<</if>>
<</for>>
<<if $children.length > 2>>
	$pronounCap is @@color:lightgreen;brothers with
	<<for $j = 0; $j < $children.length; $j++>>
		<<if $j < $children.length-1>>
			$children[$j].slaveName,
		<<else>>
			and $children[$j].slaveName.@@
		<</if>>
	<</for>>
<<elseif $children.length > 1>>
	$pronounCap is @@color:lightgreen;brothers with $children[0].slaveName and $children[1].slaveName.@@
<<elseif $children.length > 0>>
	$pronounCap is @@color:lightgreen;brothers with $children[0].slaveName.@@
<</if>>
<<set $children = []>>

/*testtest half-sister - determines how many half-sisters a slave has*/
<<for $i = 0; $i < $slaves.length; $i++>>
	<<if $slaves[$i].ID != $activeSlave.ID>>
		<<if areSisters($activeSlave, $slaves[$i]) == 3 && $slaves[$i].vagina > -1>>
			<<set $children.push($slaves[$i])>>
		<</if>>
	<</if>>
<</for>>
<<if $children.length > 2>>
	$pronounCap is @@color:lightgreen;half-sisters with
	<<for $j = 0; $j < $children.length; $j++>>
		<<if $j < $children.length-1>>
			$children[$j].slaveName,
		<<else>>
			and $children[$j].slaveName.@@
		<</if>>
	<</for>>
<<elseif $children.length > 1>>
	$pronounCap is a @@color:lightgreen;half-sister to $children[0].slaveName and $children[1].slaveName.@@
<<elseif $children.length > 0>>
	$pronounCap is a @@color:lightgreen;half-sister to $children[0].slaveName.@@
<</if>>
<<set $children = []>>

/*testtest half-brother - determines how many half-brothers a slave has*/
<<for $i = 0; $i < $slaves.length; $i++>>
	<<if $slaves[$i].ID != $activeSlave.ID>>
		<<if areSisters($activeSlave, $slaves[$i]) == 3 && $slaves[$i].dick > 0 && $slaves[$i].vagina == -1>>
			<<set $children.push($slaves[$i])>>
		<</if>>
	<</if>>
<</for>>
<<if $children.length > 2>>
	$pronounCap is @@color:lightgreen;half-brothers with
	<<for $j = 0; $j < $children.length; $j++>>
		<<if $j < $children.length-1>>
			$children[$j].slaveName,
		<<else>>
			and $children[$j].slaveName.@@
		<</if>>
	<</for>>
<<elseif $children.length > 1>>
	$pronounCap is a @@color:lightgreen;half-brother to $children[0].slaveName and $children[1].slaveName.@@
<<elseif $children.length > 0>>
	$pronounCap is a @@color:lightgreen;half-brother to $children[0].slaveName.@@
<</if>>
<<set $children = []>>

<</widget>>

<<widget PlayerFamily>>

<br><br>Your present family includes:

/*Player parents, lists both your parents, or just one.*/
<<for $i = 0; $i < $slaves.length; $i++>>
<<if $slaves[$i].ID == $PC.father || $slaves[$i].ID == $PC.mother>>
			<<set $children.push($slaves[$i])>>
<</if>>
<</for>>
	<<if $children.length > 1>>
		<br>Your parents are @@color:lightgreen;$children[0].slaveName and $children[1].slaveName@@.
	<<elseif $children.length > 0>>
		<br>You know one of your parents, @@color:lightgreen;$children[0].slaveName@@.
	<</if>>
<<set $children = []>>

/*Sister Test with aresisters*/
<<for $i = 0; $i < $slaves.length; $i++>>
	<<if $slaves[$i].ID != $PC.ID>>
		<<if areSisters($PC, $slaves[$i]) === 2 && areSisters($slaves[$i], $PC) === 2>>
			<<set $children.push($slaves[$i])>>
		<</if>>
	<</if>>
<</for>>
<<if $children.length > 2>>
	<br>You are @@color:lightgreen;sisters with
	<<for $j = 0; $j < $children.length; $j++>>
		<<if $j < $children.length-1>>
			$children[$j].slaveName,
		<<else>>
			and $children[$j].slaveName.@@
		<</if>>
	<</for>>
<<elseif $children.length > 1>>
	<br>You are sisters with @@color:lightgreen;$children[0].slaveName and $children[1].slaveName.@@
<<elseif $children.length > 0>>
	<br>Your sister is @@color:lightgreen;$children[0].slaveName.@@
<</if>>
<<set $children = []>>

/*Half-Sister Test with aresisters */
<<for $i = 0; $i < $slaves.length; $i++>>
	<<if $slaves[$i].ID != $PC.ID>>
	<<if areSisters($slaves[$i], $PC) == 3 && areSisters($PC, $slaves[$i]) == 3>>
			<<set $children.push($slaves[$i])>>
	<</if>>
<</if>>
<</for>>
<<if $children.length > 2>>
	<br>You are half-sisters with @@color:lightgreen;
	<<for $j = 0; $j < $children.length; $j++>>
		<<if $j < $children.length-1>>
			$children[$j].slaveName,
		<<else>>
			and $children[$j].slaveName@@.
		<</if>>
	<</for>>
<<elseif $children.length > 1>>
	<br>You are half-sisters with @@color:lightgreen;$children[0].slaveName and $children[1].slaveName@@.
<<elseif $children.length > 0>>
	<br>You have one half-sisters, @@color:lightgreen;$children[0].slaveName@@.
<</if>>
<<set $children = []>>

/*Player is Father, lists children you fathered*/
<<for $i = 0; $i < $slaves.length; $i++>>
	<<if $PC.ID == $slaves[$i].father>>
		<<set $children.push($slaves[$i])>>
	<</if>>
<</for>>
<<if $children.length > 2>>
	<br>You are the father of @@color:lightgreen;
	<<for $j = 0; $j < $children.length; $j++>>
		<<if $j < $children.length-1>>
			$children[$j].slaveName,
		<<else>>
			and $children[$j].slaveName@@.
		<</if>>
	<</for>>
<<elseif $children.length > 1>>
	<br>You are the father of two of your slaves, @@color:lightgreen;$children[0].slaveName, and $children[1].slaveName@@.
<<elseif $children.length > 0>>
	<br>You are the father of one of your slaves, @@color:lightgreen;$children[0].slaveName@@.
<</if>>
<<set $children = []>>

/*Player is Mother, lists birthed children*/
<<for $i = 0; $i < $slaves.length; $i++>>
	<<if $PC.ID == $slaves[$i].mother>>
		<<set $children.push($slaves[$i])>>
	<</if>>
<</for>>
<<if $children.length > 2>>
	<br>You are the mother of@@color:lightgreen;
	<<for $j = 0; $j < $children.length; $j++>>
		<<if $j < $children.length-1>>
			$children[$j].slaveName,
		<<else>>
			and $children[$j].slaveName.@@
		<</if>>
	<</for>>
<<elseif $children.length > 1>>
	<br>You are the mother of two of your slaves, @@color:lightgreen;$children[0].slaveName, and $children[1].slaveName@@.
<<elseif $children.length > 0>>
	<br>You are the mother of one of your slaves, @@color:lightgreen;$children[0].slaveName@@.
<</if>>
<<set $children = []>>

<</widget>>