code:
:: Incubator Report [nobr]

<<set $incubatorSlaves = 0, $readySlaves = 0>>
<<if $incubatorImprintSetting == 0>><<set $incubatorImprintSetting = "trust">><</if>>

<<for _inc = 0; _inc < $tanks.length; _inc++>>
	<<setLocalPronouns $tanks[_inc]>>
	<<set $tanks[_inc].birthWeek += 1>>
	<<if $tanks[_inc].birthWeek >= 52>>
		<<set $tanks[_inc].birthWeek = 0>>
		<<if $seeAge == 1>>
			<<set $tanks[_inc].actualAge++, $tanks[_inc].ovaryAge++>>
		<</if>>
	<</if>>
	<<set $incubatorSlaves += 1>>
	<<if $tanks[_inc].growTime > 0>>
		<<set $tanks[_inc].growTime -= $incubatorUpgradeSpeed>>

@@.pink;<<print $tanks[_inc].slaveName>>'s@@ growth is currently being accelerated. $He <<if Math.round($tanks[_inc].growTime/$incubatorUpgradeSpeed) <= 0>>is @@.lime;ready for release.@@ $He will be ejected from $his tank upon your approach<<else>>will be ready for release in about <<print Math.round($tanks[_inc].growTime/$incubatorUpgradeSpeed)>> weeks<</if>>.
	<<else>>
		@@.pink;$tanks[_inc].slaveName@@ is @@.lime;ready for release.@@ $He will be ejected from $his tank upon your approach.
		<<set $readySlaves = 1>>
	<</if>>

	<<if $incubatorUpgradeWeight == 1>>

		<<if $incubatorWeightSetting == 1>>
			<<if $tanks[_inc].weight < 200>>
				<<if $incubatorUpgradeSpeed == 52>>
					<<set $tanks[_inc].weight += 70>>
				<<elseif $incubatorUpgradeSpeed == 18>>
					<<set $tanks[_inc].weight += 40>>
				<<elseif $incubatorUpgradeSpeed == 9>>
					<<set $tanks[_inc].weight += 20>>
				<<elseif $incubatorUpgradeSpeed == 6>>
					<<set $tanks[_inc].weight += 10>>
				<<elseif $incubatorUpgradeSpeed == 5>>
					<<set $tanks[_inc].weight += 5>>
				<</if>>
			<</if>>
			The weight monitoring systems are overloading $his intake causing @@.red;rapid weight gain.@@
		<<elseif $incubatorWeightSetting == 2>>
			<<if $tanks[_inc].weight > 10>>
				<<if $incubatorUpgradeSpeed == 52>>
					<<set $tanks[_inc].weight -= 30>>
				<<elseif $incubatorUpgradeSpeed == 18>>
					<<set $tanks[_inc].weight -= 10>>
				<<elseif $incubatorUpgradeSpeed == 9>>
					<<set $tanks[_inc].weight -= 5>>
				<<elseif $incubatorUpgradeSpeed == 6>>
					<<set $tanks[_inc].weight -= 2>>
				<<elseif $incubatorUpgradeSpeed == 5>>
					<<set $tanks[_inc].weight -= 1>>
				<</if>>
				The weight monitoring systems detect $he is overweight and @@.green;decrease $his caloric intake.@@
			<<elseif $tanks[_inc].weight < -10>>
				<<if $incubatorUpgradeSpeed == 52>>
					<<set $tanks[_inc].weight += 30>>
				<<elseif $incubatorUpgradeSpeed == 18>>
					<<set $tanks[_inc].weight += 10>>
				<<elseif $incubatorUpgradeSpeed == 9>>
					<<set $tanks[_inc].weight += 5>>
				<<elseif $incubatorUpgradeSpeed == 6>>
					<<set $tanks[_inc].weight += 2>>
				<<elseif $incubatorUpgradeSpeed == 5>>
					<<set $tanks[_inc].weight += 1>>
				<</if>>
				The weight monitoring systems detect $he is underweight and @@.green;increase $his caloric intake.@@
			<<else>>
				$He is @@.lime;currently at a healthy weight;@@ efforts will be made to maintain it.
			<</if>>
		<<elseif $incubatorWeightSetting == 0>>
			<<if $tanks[_inc].weight > -100>>
				$His developing body @@.red;quickly sheds its gained weight.@@
				<<set $tanks[_inc].weight -= 40>>
			<</if>>
		<</if>>
	<<else>>
		<<if $tanks[_inc].weight > -100>>
			$His developing body @@.red;quickly sheds its gained weight.@@
			<<set $tanks[_inc].weight -= 40>>
		<</if>>
	<</if>>

	<<if $incubatorUpgradeMuscles == 1>>

		<<if $incubatorMusclesSetting == 2>>
			<<if $tanks[_inc].muscles < 100>>
				<<if $incubatorUpgradeSpeed == 52>>
					<<set $tanks[_inc].muscles += 70>>
				<<elseif $incubatorUpgradeSpeed == 18>>
					<<set $tanks[_inc].muscles += 40>>
				<<elseif $incubatorUpgradeSpeed == 9>>
					<<set $tanks[_inc].muscles += 20>>
				<<elseif $incubatorUpgradeSpeed == 6>>
					<<set $tanks[_inc].muscles += 10>>
				<<elseif $incubatorUpgradeSpeed == 5>>
					<<set $tanks[_inc].muscles += 5>>
				<</if>>
			<</if>>
			The strength monitoring systems are overloading $him with steroids causing @@.green;rapid muscle development.@@
		<<elseif $incubatorMusclesSetting == 1>>
			<<if $tanks[_inc].muscles > 10>>
				<<if $incubatorUpgradeSpeed == 52>>
					<<set $tanks[_inc].muscles -= 30>>
				<<elseif $incubatorUpgradeSpeed == 18>>
					<<set $tanks[_inc].muscles -= 10>>
				<<elseif $incubatorUpgradeSpeed == 9>>
					<<set $tanks[_inc].muscles -= 5>>
				<<elseif $incubatorUpgradeSpeed == 6>>
					<<set $tanks[_inc].muscles -= 2>>
				<<elseif $incubatorUpgradeSpeed == 5>>
					<<set $tanks[_inc].muscles-->>
				<</if>>
				The strength monitoring systems detect $he is overly muscular and @@.green;decrease $his steroid dosage.@@
			<<elseif $tanks[_inc].muscles < -10>>
				<<if $incubatorUpgradeSpeed == 52>>
					<<set $tanks[_inc].muscles += 30>>
				<<elseif $incubatorUpgradeSpeed == 18>>
					<<set $tanks[_inc].muscles += 10>>
				<<elseif $incubatorUpgradeSpeed == 9>>
					<<set $tanks[_inc].muscles += 5>>
				<<elseif $incubatorUpgradeSpeed == 6>>
					<<set $tanks[_inc].muscles += 2>>
				<<elseif $incubatorUpgradeSpeed == 5>>
					<<set $tanks[_inc].muscles++>>
				<</if>>
				The strength monitoring systems detect $he is weak and @@.green;increase $his steroid dosage.@@
			<<else>>
				$He has @@.lime;a healthy musculature;@@ efforts will be made to maintain it.
			<</if>>
		<<elseif $incubatorMusclesSetting == 0>>
			<<if $tanks[_inc].muscles > -100>>
				$His developing body @@.red;quickly loses its gained muscle.@@
				<<set $tanks[_inc].muscles -= 40>>
			<</if>>
		<</if>>
	<<else>>
		<<if $tanks[_inc].muscles > -100>>
			$His developing body @@.red;quickly loses its gained muscle.@@
			<<set $tanks[_inc].muscles -= 40>>
		<</if>>
	<</if>>

	<<if $incubatorUpgradeGrowthStims == 1 && $incubatorGrowthStimsSetting != 0>>

		<<set _heightLimit = Math.trunc(Math.clamp((Height.mean($tanks[_inc]) * 1.25),0,274))>>
		<<set _heightLimitAge = Height.forAge($tanks[_inc].height, $tanks[_inc])>>
		<<if $tanks[_inc].geneticQuirks.dwarfism == 2 && $tanks[_inc].geneticQuirks.gigantism != 2>>
			<<set _heightLimit = Math.min(_heightLimit, 160)>>
		<</if>>
		<<if $tanks[_inc].geneMods.NCS == 1>>
			/*
			** NCS should block physical growth beyond that of a toddler, but some players might like
			** a little more or less. So using $minimumSlaveAge or 8, whichever is lesser.
			*/
			<<set _limitAge = Math.min(8, $minimumSlaveAge)>>
			<<set _heightLimitAge = Height.forAge($tanks[_inc].height, _limitAge, $tanks[_inc].genes)>>
			<<set _heightLimit = _heightLimitAge>>
		<</if>>
		<<if $tanks[_inc].height >= _heightLimit>>
			The monitoring system detects $his body is not able to support further increases in height, so it carefully regulates stimulant injections to @@.yellow;maintain $his current stature.@@
			<<set $tanks[_inc].height = _heightLimit>>
		<<elseif $incubatorGrowthStimsSetting == 2>>
			<<if $tanks[_inc].geneMods.NCS == 1>>
				The monitoring system floods $his body with growth stimulants, but $his @@.orange;NCS prevents an increase in $his growth rate.@@
				<<set $tanks[_inc].height = _heightLimitAge>>
			<<else>>
				The monitoring system floods $his body with growth stimulants, causing @@.green;a sharp increase in growth rate.@@
				<<if $incubatorWeightSetting >= 1 && $incubatorMusclesSetting <= 1 && $incubatorReproductionSetting <= 1>>
					<<if $incubatorUpgradeSpeed == 52>>
						<<set $tanks[_inc].height += random(3,6)>>
					<<elseif $incubatorUpgradeSpeed == 18>>
						<<set $tanks[_inc].height += random(2,5)>>
					<<elseif $incubatorUpgradeSpeed == 9>>
						<<set $tanks[_inc].height += random(1,4)>>
					<<elseif $incubatorUpgradeSpeed == 6>>
						<<set $tanks[_inc].height += random(1,3)>>
					<<elseif $incubatorUpgradeSpeed == 5>>
						<<set $tanks[_inc].height += random(1,2)>>
					<</if>>
				<<else>>
					<<if $incubatorUpgradeSpeed == 52>>
						<<set $tanks[_inc].height += random(2,5)>>
					<<elseif $incubatorUpgradeSpeed == 18>>
						<<set $tanks[_inc].height += random(1,4)>>
					<<elseif $incubatorUpgradeSpeed == 9>>
						<<set $tanks[_inc].height += random(1,3)>>
					<<elseif $incubatorUpgradeSpeed == 6>>
						<<set $tanks[_inc].height += random(1,2)>>
					<<elseif $incubatorUpgradeSpeed == 5>>
						<<set $tanks[_inc].height += random(0,1)>>
					<</if>>
				<</if>>
			<</if>>
		<<elseif $incubatorGrowthStimsSetting == 1>>
			<<if $tanks[_inc].geneMods.NCS == 1>>
				The monitoring system detects $he is near the expected height for $his @@.orange;NCS@@ condition, so it carefully regulates stimulant injections to @@.yellow;maintain $his current stature.@@
				<<set $tanks[_inc].height = _heightLimitAge>>
			<<elseif $tanks[_inc].height > _heightLimitAge>>
				The monitoring systems detect $he is near the expected height, so it carefully regulates stimulant injections to @@.yellow;maintain $his current stature.@@
				<<if random(1,10) == 10>>
					<<if $incubatorUpgradeSpeed == 52>>
						<<set $tanks[_inc].height += random(1,4)>>
					<<elseif $incubatorUpgradeSpeed == 18>>
						<<set $tanks[_inc].height += random(1,3)>>
					<<elseif $incubatorUpgradeSpeed == 9>>
						<<set $tanks[_inc].height += random(1,2)>>
					<<elseif $incubatorUpgradeSpeed == 6>>
						<<set $tanks[_inc].height += random(0,1)>>
					<<elseif $incubatorUpgradeSpeed == 5>>
						<<set $tanks[_inc].height += random(0,1)>>
					<</if>>
				<</if>>
			<<else>>
				The monitoring systems detect $his body is capable of developing more rapidly and @@.green;increase $his growth stimulant dosage.@@
				<<if $incubatorUpgradeSpeed == 52>>
					<<set $tanks[_inc].height += random(1,4)>>
				<<elseif $incubatorUpgradeSpeed == 18>>
					<<set $tanks[_inc].height += random(1,3)>>
				<<elseif $incubatorUpgradeSpeed == 9>>
					<<set $tanks[_inc].height += random(1,2)>>
				<<elseif $incubatorUpgradeSpeed == 6>>
					<<set $tanks[_inc].height += random(0,1)>>
				<<elseif $incubatorUpgradeSpeed == 5>>
					<<set $tanks[_inc].height += random(0,1)>>
				<</if>>
			<</if>>
		<</if>>
		<<set $tanks[_inc].height = Math.clamp($tanks[_inc].height, 0, _heightLimit)>>
	<<else>>

		With the growth stimulant injections offline, $his body is left to develop naturally.
	<</if>>

	<<if $incubatorUpgradeReproduction == 1>>

		<<set _rearQuirk = $tanks[_inc].geneticQuirks.rearLipedema == 2 ? 2 : 1>>
		<<if $incubatorReproductionSetting == 2>>
			$His developing body is being flooded with hormones.
			<<if $incubatorWeightSetting == 1>>
				Combined with the abundant food provided to $him, $his body grows rapidly.
				<<if $tanks[_inc].ovaries == 1>>
					<<set $tanks[_inc].pubertyXX = 1>>
					<<if $tanks[_inc].hormoneBalance < 500>>
						<<set $tanks[_inc].hormoneBalance += 100>>
					<</if>>
					<<if $seeHyperPreg == 1>>
						<<set $tanks[_inc].readyOva = random(25,45)>>
					<<else>>
						<<set $tanks[_inc].readyOva = random(3,8)>>
					<</if>>
					<<if $tanks[_inc].geneMods.NCS == 1>>
						/* NCS blocks hormonal growth of all secondary sexual characteristics */
						$His @@.orange;NCS blocks all growth@@ despite the excess estrogen-laced growth hormones flooding $his body.
					<<elseif $incubatorUpgradeSpeed == 52>>
						<<if $tanks[_inc].boobs < 8000>>
							The excess estrogen-laced growth hormones @@.green;rapidly balloon $his breasts.@@
							<<set $tanks[_inc].boobs += 2000>>
						<</if>>
						<<if $tanks[_inc].hips < 2 && random(1,100) > 50>>
							The excess estrogen-laced growth hormones @@.green;cause $his hips to widen for childbirth.@@
							<<set $tanks[_inc].hips += 2>>
						<</if>>
						<<if $tanks[_inc].butt < 12*_rearQuirk && random(1,100) > 30/_rearQuirk>>
							The excess estrogen-laced growth hormones @@.green;cause $his rear to grow fatter.@@
							<<set $tanks[_inc].butt += 4>>
						<</if>>
					<<elseif $incubatorUpgradeSpeed == 18>>
						<<if $tanks[_inc].boobs < 8000>>
							The excess estrogen-laced growth hormones @@.green;rapidly balloon $his breasts.@@
							<<set $tanks[_inc].boobs += 500>>
						<</if>>
						<<if $tanks[_inc].hips < 2 && random(1,100) > 50>>
							The excess estrogen-laced growth hormones @@.green;cause $his hips to widen for childbirth.@@
							<<set $tanks[_inc].hips++>>
						<</if>>
						<<if $tanks[_inc].butt < 12*_rearQuirk && random(1,100) > 50/_rearQuirk>>
							The excess estrogen-laced growth hormones @@.green;cause $his rear to grow fatter.@@
							<<set $tanks[_inc].butt += 3>>
						<</if>>
					<<elseif $incubatorUpgradeSpeed == 9>>
						<<if $tanks[_inc].boobs < 8000>>
							The excess estrogen-laced growth hormones @@.green;rapidly balloon $his breasts.@@
							<<set $tanks[_inc].boobs += 200>>
						<</if>>
						<<if $tanks[_inc].hips < 2 && random(1,100) > 60>>
							The excess estrogen-laced growth hormones @@.green;causes $his hips to widen for childbirth.@@
							<<set $tanks[_inc].hips++>>
						<</if>>
						<<if $tanks[_inc].butt < 12*_rearQuirk && random(1,100) > 50/_rearQuirk>>
							The excess estrogen-laced growth hormones @@.green;cause $his rear grow fatter.@@
							<<set $tanks[_inc].butt += 2>>
						<</if>>
					<<elseif $incubatorUpgradeSpeed == 6>>
						<<if $tanks[_inc].boobs < 8000>>
							The excess estrogen-laced growth hormones @@.green;rapidly balloon $his breasts.@@
							<<set $tanks[_inc].boobs += 100>>
						<</if>>
						<<if $tanks[_inc].hips < 2 && random(1,100) > 70>>
							The excess estrogen-laced growth hormones @@.green;cause $his hips to widen for childbirth.@@
							<<set $tanks[_inc].hips++>>
						<</if>>
						<<if $tanks[_inc].butt < 12*_rearQuirk && random(1,100) > 60/_rearQuirk>>
							The excess estrogen-laced growth hormones @@.green;cause $his rear to grow fatter.@@
							<<set $tanks[_inc].butt++>>
						<</if>>
					<<elseif $incubatorUpgradeSpeed == 5>>
						<<if $tanks[_inc].boobs < 8000>>
							The excess estrogen-laced growth hormones @@.green;rapidly balloon $his breasts.@@
							<<set $tanks[_inc].boobs += 100>>
						<</if>>
						<<if $tanks[_inc].hips < 2 && random(1,100) > 80>>
							The excess estrogen-laced growth hormones @@.green;cause $his hips to widen for childbirth.@@
							<<set $tanks[_inc].hips++>>
						<</if>>
						<<if $tanks[_inc].butt < 12*_rearQuirk && random(1,100) > 70/_rearQuirk>>
							The excess estrogen-laced growth hormones @@.green;cause $his rear to grow fatter.@@
							<<set $tanks[_inc].butt++>>
						<</if>>
					<</if>>
				<<elseif $tanks[_inc].balls > 0>>
					<<set $tanks[_inc].pubertyXY = 1>>
					<<if $tanks[_inc].hormoneBalance > -500>>
						<<set $tanks[_inc].hormoneBalance -= 100>>
					<</if>>
					<<if $tanks[_inc].geneMods.NCS == 1>>
						/* NCS blocks hormonal growth of all secondary sexual characteristics */
						$His @@.orange;NCS blocks all growth@@ despite the excess testosterone-laced growth hormones flooding $his body.
					<<elseif $incubatorUpgradeSpeed == 52>>
						<<if $tanks[_inc].balls < 40>>
							The excess testosterone-laced growth hormones @@.green;cause $his balls to balloon for extra cum production.@@
							<<set $tanks[_inc].balls += 16>>
						<</if>>
						<<if $tanks[_inc].dick < 10 && random(1,100) > 20>>
							The excess testosterone-laced growth hormones @@.green;cause $his penis to swell.@@
							<<set $tanks[_inc].dick += 4>>
						<</if>>
					<<elseif $incubatorUpgradeSpeed == 18>>
						<<if $tanks[_inc].balls < 40 && random(1,100) > 10>>
							The excess testosterone-laced growth hormones @@.green;cause $his balls to balloon for extra cum production.@@
							<<set $tanks[_inc].balls += 9>>
						<</if>>
						<<if $tanks[_inc].dick < 10 && random(1,100) > 30>>
							The excess testosterone-laced growth hormones @@.green;cause $his penis to swell.@@
							<<set $tanks[_inc].dick += 3>>
						<</if>>
					<<elseif $incubatorUpgradeSpeed == 9>>
						<<if $tanks[_inc].balls < 40 && random(1,100) > 20>>
							The excess testosterone-laced growth hormones @@.green;cause $his balls to balloon for extra cum production.@@
							<<set $tanks[_inc].balls += 4>>
						<</if>>
						<<if $tanks[_inc].dick < 10 && random(1,100) > 50>>
							The excess testosterone-laced growth hormones @@.green;cause $his penis to swell.@@
							<<set $tanks[_inc].dick += 2>>
						<</if>>
					<<elseif $incubatorUpgradeSpeed == 6>>
						<<if $tanks[_inc].balls < 40 && random(1,100) > 30>>
							The excess testosterone-laced growth hormones @@.green;cause $his balls to balloon for extra cum production.@@
							<<set $tanks[_inc].balls += 2>>
						<</if>>
						<<if $tanks[_inc].dick < 10 && random(1,100) > 70>>
							The excess testosterone-laced growth hormones @@.green;cause $his penis to swell.@@
							<<set $tanks[_inc].dick++>>
						<</if>>
					<<elseif $incubatorUpgradeSpeed == 5>>
						<<if $tanks[_inc].balls < 40 && random(1,100) > 30>>
							The excess testosterone-laced growth hormones @@.green;cause $his balls to balloon for extra cum production.@@
							<<set $tanks[_inc].balls++>>
						<</if>>
						<<if $tanks[_inc].dick < 10 && random(1,100) > 80>>
							The excess testosterone-laced growth hormones @@.green;cause $his penis to swell.@@
							<<set $tanks[_inc].dick++>>
						<</if>>
					<</if>>
				<</if>>
			<<elseif $incubatorWeightSetting == 2>>
				Combined with the healthy food provided to $him, $his body grows readily.
				<<if $tanks[_inc].ovaries == 1>>
					<<set $tanks[_inc].pubertyXX = 1>>
					<<if $tanks[_inc].hormoneBalance < 500>>
						<<set $tanks[_inc].hormoneBalance += 100>>
					<</if>>
					<<if $seeHyperPreg == 1>>
						<<set $tanks[_inc].readyOva = random(15,25)>>
					<<else>>
						<<set $tanks[_inc].readyOva = random(2,6)>>
					<</if>>
					<<if $tanks[_inc].geneMods.NCS == 1>>
						/* NCS blocks hormonal growth of all secondary sexual characteristics */
						$His @@.orange;NCS blocks all growth@@ despite the excess estrogen-laced growth hormones flooding $his body.
					<<elseif $incubatorUpgradeSpeed == 52>>
						<<if $tanks[_inc].boobs < 4000>>
							The excess estrogen-laced growth hormones @@.green;rapidly balloon $his breasts.@@
							<<set $tanks[_inc].boobs += 1000>>
						<</if>>
						<<if $tanks[_inc].hips < 2 && random(1,100) > 70>>
							The excess estrogen-laced growth hormones @@.green;cause $his hips to widen for childbirth.@@
							<<set $tanks[_inc].hips++>>
						<</if>>
						<<if $tanks[_inc].butt < 8*_rearQuirk && random(1,100) > 50/_rearQuirk>>
							The excess estrogen-laced growth hormones @@.green;cause $his rear to grow fatter.@@
							<<set $tanks[_inc].butt += 3>>
						<</if>>
					<<elseif $incubatorUpgradeSpeed == 18>>
						<<if $tanks[_inc].boobs < 4000>>
							The excess estrogen-laced growth hormones @@.green;rapidly balloon $his breasts.@@
							<<set $tanks[_inc].boobs += 500>>
						<</if>>
						<<if $tanks[_inc].hips < 2 && random(1,100) > 80>>
							The excess estrogen-laced growth hormones @@.green;cause $his hips to widen for childbirth.@@
							<<set $tanks[_inc].hips++>>
						<</if>>
						<<if $tanks[_inc].butt < 8*_rearQuirk && random(1,100) > 50/_rearQuirk>>
							The excess estrogen-laced growth hormones @@.green;cause $his rear to grow fatter.@@
							<<set $tanks[_inc].butt++>>
						<</if>>
					<<elseif $incubatorUpgradeSpeed == 9>>
						<<if $tanks[_inc].boobs < 4000>>
							The excess estrogen-laced growth hormones @@.green;rapidly balloon $his breasts.@@
							<<set $tanks[_inc].boobs += 200>>
						<</if>>
						<<if $tanks[_inc].hips < 2 && random(1,100) > 90>>
							The excess estrogen-laced growth hormones @@.green;cause $his hips to widen for childbirth.@@
							<<set $tanks[_inc].hips++>>
						<</if>>
						<<if $tanks[_inc].butt < 8*_rearQuirk && random(1,100) > 60/_rearQuirk>>
							The excess estrogen-laced growth hormones @@.green;cause $his rear to grow fatter.@@
							<<set $tanks[_inc].butt++>>
						<</if>>
					<<elseif $incubatorUpgradeSpeed == 6>>
						<<if $tanks[_inc].boobs < 4000>>
							The excess estrogen-laced growth hormones @@.green;rapidly balloon $his breasts.@@
							<<set $tanks[_inc].boobs += 100>>
						<</if>>
						<<if $tanks[_inc].hips < 2 && random(1,100) > 95>>
							The excess estrogen-laced growth hormones @@.green;cause $his hips to widen for childbirth.@@
							<<set $tanks[_inc].hips++>>
						<</if>>
						<<if $tanks[_inc].butt < 8*_rearQuirk && random(1,100) > 70/_rearQuirk>>
							The excess estrogen-laced growth hormones @@.green;cause $his rear to grow fatter.@@
							<<set $tanks[_inc].butt++>>
						<</if>>
					<<elseif $incubatorUpgradeSpeed == 5>>
						<<if $tanks[_inc].boobs < 4000>>
							The excess estrogen-laced growth hormones @@.green;rapidly balloon $his breasts.@@
							<<set $tanks[_inc].boobs += 100>>
						<</if>>
						<<if $tanks[_inc].hips < 2 && random(1,100) > 95>>
							The excess estrogen-laced growth hormones @@.green;cause $his hips to widen for childbirth.@@
							<<set $tanks[_inc].hips++>>
						<</if>>
						<<if $tanks[_inc].butt < 8*_rearQuirk && random(1,100) > 80/_rearQuirk>>
							The excess estrogen-laced growth hormones @@.green;cause $his rear to grow fatter.@@
							<<set $tanks[_inc].butt++>>
						<</if>>
					<</if>>
				<<elseif $tanks[_inc].balls > 0>>
					<<set $tanks[_inc].pubertyXY = 1>>
					<<if $tanks[_inc].hormoneBalance > -500>>
						<<set $tanks[_inc].hormoneBalance -= 100>>
					<</if>>
					<<if $tanks[_inc].geneMods.NCS == 1>>
						/* NCS blocks hormonal growth of all secondary sexual characteristics */
						$His @@.orange;NCS blocks all growth@@ despite the excess testosterone-laced growth hormones flooding $his body.
					<<elseif $incubatorUpgradeSpeed == 52>>
						<<if $tanks[_inc].balls < 10>>
							The excess testosterone-laced growth hormones @@.green;cause $his balls to balloon for extra cum production.@@
							<<set $tanks[_inc].balls += 3>>
						<</if>>
						<<if $tanks[_inc].dick < 7 && random(1,100) > 20>>
							The excess testosterone-laced growth hormones @@.green;cause $his penis to swell.@@
							<<set $tanks[_inc].dick += 2>>
						<</if>>
					<<elseif $incubatorUpgradeSpeed == 18>>
						<<if $tanks[_inc].balls < 10 && random(1,100) > 10>>
							The excess testosterone-laced growth hormones @@.green;cause $his balls to balloon for extra cum production.@@
							<<set $tanks[_inc].balls += 2>>
						<</if>>
						<<if $tanks[_inc].dick < 7 && random(1,100) > 30>>
							The excess testosterone-laced growth hormones @@.green;cause $his penis to swell.@@
							<<set $tanks[_inc].dick++>>
						<</if>>
					<<elseif $incubatorUpgradeSpeed == 9>>
						<<if $tanks[_inc].balls < 10 && random(1,100) > 20>>
							The excess testosterone-laced growth hormones @@.green;cause $his balls to balloon for extra cum production.@@
							<<set $tanks[_inc].balls++>>
						<</if>>
						<<if $tanks[_inc].dick < 7 && random(1,100) > 50>>
							The excess testosterone-laced growth hormones @@.green;cause $his penis to swell.@@
							<<set $tanks[_inc].dick++>>
						<</if>>
					<<elseif $incubatorUpgradeSpeed == 6>>
						<<if $tanks[_inc].balls < 10 && random(1,100) > 30>>
							The excess testosterone-laced growth hormones @@.green;cause $his balls to balloon for extra cum production.@@
							<<set $tanks[_inc].balls++>>
						<</if>>
						<<if $tanks[_inc].dick < 7 && random(1,100) > 70>>
							The excess testosterone-laced growth hormones @@.green;cause $his penis to swell.@@
							<<set $tanks[_inc].dick++>>
						<</if>>
					<<elseif $incubatorUpgradeSpeed == 5>>
						<<if $tanks[_inc].balls < 10 && random(1,100) > 30>>
							The excess testosterone-laced growth hormones @@.green;cause $his balls to balloon for extra cum production.@@
							<<set $tanks[_inc].balls++>>
						<</if>>
						<<if $tanks[_inc].dick < 7 && random(1,100) > 80>>
							The excess testosterone-laced growth hormones @@.green;cause $his penis to swell.@@
							<<set $tanks[_inc].dick++>>
						<</if>>
					<</if>>
				<</if>>
			<<else>>
				Since $his body has little to work with, $his growth is fairly minor.
				<<if $tanks[_inc].ovaries == 1>>
					<<set $tanks[_inc].pubertyXX = 1>>
					<<if $tanks[_inc].hormoneBalance < 500>>
						<<set $tanks[_inc].hormoneBalance += 100>>
					<</if>>
					<<if $seeHyperPreg == 1>>
						<<set $tanks[_inc].readyOva = random(10,15)>>
					<<else>>
						<<set $tanks[_inc].readyOva = random(2,4)>>
					<</if>>
					<<if $tanks[_inc].geneMods.NCS == 1>>
						/* NCS blocks hormonal growth of all secondary sexual characteristics */
						$His @@.orange;NCS blocks all growth@@ despite the excess estrogen-laced growth hormones flooding $his body.
					<<elseif $incubatorUpgradeSpeed == 52>>
						<<if $tanks[_inc].boobs < 2000>>
							The excess estrogen-laced growth hormones @@.green;rapidly balloon $his breasts.@@
							<<set $tanks[_inc].boobs += 700>>
						<</if>>
						<<if $tanks[_inc].hips < 2 && random(1,100) > 90>>
							The excess estrogen-laced growth hormones @@.green;cause $his hips to widen for childbirth.@@
							<<set $tanks[_inc].hips += 2>>
						<</if>>
						<<if $tanks[_inc].butt < 6*_rearQuirk && random(1,100) > 70/_rearQuirk>>
							The excess estrogen-laced growth hormones @@.green;cause $his rear to grow fatter.@@
							<<set $tanks[_inc].butt += 2>>
						<</if>>
					<<elseif $incubatorUpgradeSpeed == 18>>
						<<if $tanks[_inc].boobs < 2000>>
							The excess estrogen-laced growth hormones @@.green;rapidly balloon $his breasts.@@
							<<set $tanks[_inc].boobs += 200>>
						<</if>>
						<<if $tanks[_inc].hips < 2 && random(1,100) > 80>>
							The excess estrogen-laced growth hormones @@.green;cause $his hips to widen for childbirth.@@
							<<set $tanks[_inc].hips++>>
						<</if>>
						<<if $tanks[_inc].butt < 6*_rearQuirk && random(1,100) > 70/_rearQuirk>>
							The excess estrogen-laced growth hormones @@.green;cause $his rear to grow fatter.@@
							<<set $tanks[_inc].butt++>>
						<</if>>
					<<elseif $incubatorUpgradeSpeed == 9>>
						<<if $tanks[_inc].boobs < 2000>>
							The excess estrogen-laced growth hormones @@.green;rapidly balloon $his breasts.@@
							<<set $tanks[_inc].boobs += 50>>
						<</if>>
						<<if $tanks[_inc].hips < 2 && random(1,100) > 80>>
							The excess estrogen-laced growth hormones @@.green;cause $his hips to widen for childbirth.@@
							<<set $tanks[_inc].hips++>>
						<</if>>
						<<if $tanks[_inc].butt < 6*_rearQuirk && random(1,100) > 90/_rearQuirk>>
							The excess estrogen-laced growth hormones @@.green;cause $his rear to grow fatter.@@
							<<set $tanks[_inc].butt++>>
						<</if>>
					<<elseif $incubatorUpgradeSpeed == 6>>
						<<if $tanks[_inc].boobs < 2000>>
							The excess estrogen-laced growth hormones @@.green;rapidly grow $his breasts.@@
							<<set $tanks[_inc].boobs += 20>>
						<</if>>
						<<if $tanks[_inc].hips < 2 && random(1,100) > 90>>
							The excess estrogen-laced growth hormones @@.green;cause $his hips to widen for childbirth.@@
							<<set $tanks[_inc].hips++>>
						<</if>>
						<<if $tanks[_inc].butt < 6*_rearQuirk && random(1,100) > 90/_rearQuirk>>
							The excess estrogen-laced growth hormones @@.green;cause $his rear to grow fatter.@@
							<<set $tanks[_inc].butt++>>
						<</if>>
					<<elseif $incubatorUpgradeSpeed == 5>>
						<<if $tanks[_inc].boobs < 2000>>
							The excess estrogen-laced growth hormones @@.green;rapidly grow $his breasts.@@
							<<set $tanks[_inc].boobs += 10>>
						<</if>>
						<<if $tanks[_inc].hips < 2 && random(1,100) > 95>>
							The excess estrogen-laced growth hormones @@.green;cause $his hips to widen for childbirth.@@
							<<set $tanks[_inc].hips++>>
						<</if>>
						<<if $tanks[_inc].butt < 6*_rearQuirk && random(1,100) > 90/_rearQuirk>>
							The excess estrogen-laced growth hormones @@.green;cause $his rear to grow fatter.@@
							<<set $tanks[_inc].butt++>>
						<</if>>
					<</if>>
				<<elseif $tanks[_inc].balls > 0>>
					<<set $tanks[_inc].pubertyXY = 1>>
					<<if $tanks[_inc].hormoneBalance > -500>>
						<<set $tanks[_inc].hormoneBalance -= 100>>
					<</if>>
					<<if $tanks[_inc].geneMods.NCS == 1>>
						/* NCS blocks hormonal growth of all secondary sexual characteristics */
						$His @@.orange;NCS blocks all growth@@ despite the excess testosterone-laced growth hormones flooding $his body.
					<<elseif $incubatorUpgradeSpeed == 52>>
						<<if $tanks[_inc].balls < 6>>
							The excess testosterone-laced growth hormones @@.green;cause $his balls to grow for extra cum production.@@
							<<set $tanks[_inc].balls += 2>>
						<</if>>
						<<if $tanks[_inc].dick < 4 && random(1,100) > 60>>
							The excess testosterone-laced growth hormones @@.green;cause $his penis to swell.@@
							<<set $tanks[_inc].dick++>>
						<</if>>
					<<elseif $incubatorUpgradeSpeed == 18>>
						<<if $tanks[_inc].balls < 6 && random(1,100) > 50>>
							The excess testosterone-laced growth hormones @@.green;cause $his balls to grow for extra cum production.@@
							<<set $tanks[_inc].balls++>>
						<</if>>
						<<if $tanks[_inc].dick < 4 && random(1,100) > 60>>
							The excess testosterone-laced growth hormones @@.green;cause $his penis to swell.@@
							<<set $tanks[_inc].dick++>>
						<</if>>
					<<elseif $incubatorUpgradeSpeed == 9>>
						<<if $tanks[_inc].balls < 6 && random(1,100) > 60>>
							The excess testosterone-laced growth hormones @@.green;cause $his balls to balloon for extra cum production.@@
							<<set $tanks[_inc].balls++>>
						<</if>>
						<<if $tanks[_inc].dick < 4 && random(1,100) > 70>>
							The excess testosterone-laced growth hormones @@.green;cause $his penis to swell.@@
							<<set $tanks[_inc].dick += 2>>
						<</if>>
					<<elseif $incubatorUpgradeSpeed == 6>>
						<<if $tanks[_inc].balls < 6 && random(1,100) > 70>>
							The excess testosterone-laced growth hormones @@.green;cause $his balls to grow for extra cum production.@@
							<<set $tanks[_inc].balls++>>
						<</if>>
						<<if $tanks[_inc].dick < 4 && random(1,100) > 80>>
							The excess testosterone-laced growth hormones @@.green;cause $his penis to swell.@@
							<<set $tanks[_inc].dick++>>
						<</if>>
					<<elseif $incubatorUpgradeSpeed == 5>>
						<<if $tanks[_inc].balls < 6 && random(1,100) > 80>>
							The excess testosterone-laced growth hormones @@.green;cause $his balls to grow for extra cum production.@@
							<<set $tanks[_inc].balls++>>
						<</if>>
						<<if $tanks[_inc].dick < 4 && random(1,100) > 90>>
							The excess testosterone-laced growth hormones @@.green;cause $his penis to swell.@@
							<<set $tanks[_inc].dick++>>
						<</if>>
					<</if>>
				<</if>>
			<</if>>
		<<elseif $incubatorReproductionSetting == 1>>
			$His hormone levels are being carefully managed, @@.green;encouraging early puberty.@@
			<<if $tanks[_inc].ovaries == 1>>
				<<set $tanks[_inc].pubertyXX = 1>>
				<<set $tanks[_inc].hormoneBalance = 250>>
				<<if $tanks[_inc].geneMods.NCS == 1>>
					/* NCS blocks hormonal growth of all secondary sexual characteristics */
					$His @@.orange;NCS blocks growth@@ despite the added estrogen.
				<<else>>
					<<if $tanks[_inc].boobs < 400 && random(1,100) > 60>>
						The added estrogen @@.green;causes $his breasts to swell.@@
						<<set $tanks[_inc].boobs += 50>>
					<</if>>
					<<if $tanks[_inc].hips < 2 && random(1,100) > 90>>
						The added estrogen @@.green;causes $his hips to widen.@@
						<<set $tanks[_inc].hips++>>
					<</if>>
					<<if $tanks[_inc].butt < 5*_rearQuirk && random(1,100) > 80/_rearQuirk>>
						The added estrogen @@.green;causes $his butt to grow.@@
						<<set $tanks[_inc].butt++>>
					<</if>>
				<</if>>
			<<elseif $tanks[_inc].balls > 0>>
				<<set $tanks[_inc].pubertyXY = 1>>
				<<set $tanks[_inc].hormoneBalance = -250>>
				<<if $tanks[_inc].geneMods.NCS == 1>>
					/* NCS blocks hormonal growth of all secondary sexual characteristics */
					$His @@.orange;NCS blocks all growth@@ despite the added testosterone.
				<<else>>
					<<if $tanks[_inc].balls < 3 && random(1,100) > 80>>
						The added testosterone @@.green;causes $his balls to swell.@@
						<<set $tanks[_inc].balls++>>
					<</if>>
					<<if $tanks[_inc].dick < 3 && random(1,100) > 60>>
						The added testosterone @@.green;causes $his penis to grow.@@
						<<set $tanks[_inc].dick++>>
					<</if>>
				<</if>>
			<</if>>
		<<else>>
			<<if $tanks[_inc].hormoneBalance > 100>>
				<<set $tanks[_inc].hormoneBalance -= 50>>
			<<elseif $tanks[_inc].hormoneBalance < -100>>
				<<set $tanks[_inc].hormoneBalance += 50>>
			<</if>>
			<<if $tanks[_inc].balls > 0>>
				<<if $tanks[_inc].balls > 1>>
					<<set $tanks[_inc].balls -= 5>>
				<</if>>
				<<if $tanks[_inc].dick > 1>>
					<<set $tanks[_inc].dick -= 5>>
				<</if>>
				<<if $tanks[_inc].balls <= 0>>
					<<set $tanks[_inc].balls = 1>>
				<</if>>
				<<if $tanks[_inc].dick <= 0>>
					<<set $tanks[_inc].dick = 1>>
				<</if>>
			<</if>>
			<<if $tanks[_inc].boobs > 0>>
				<<set $tanks[_inc].boobs -= 500>>
			<</if>>
			<<if $tanks[_inc].butt > 0>>
				<<set $tanks[_inc].butt -= 4>>
			<</if>>
		<</if>>
	<<else>>
		<<if $tanks[_inc].hormoneBalance > 100>>
			<<set $tanks[_inc].hormoneBalance -= 50>>
		<<elseif $tanks[_inc].hormoneBalance < -100>>
			<<set $tanks[_inc].hormoneBalance += 50>>
		<</if>>
		<<if $tanks[_inc].balls > 0>>
			<<if $tanks[_inc].balls > 1>>
				<<set $tanks[_inc].balls -= 5>>
			<</if>>
			<<if $tanks[_inc].dick > 1>>
				<<set $tanks[_inc].dick -= 5>>
			<</if>>
			<<if $tanks[_inc].balls <= 0>>
				<<set $tanks[_inc].balls = 1>>
			<</if>>
			<<if $tanks[_inc].dick <= 0>>
				<<set $tanks[_inc].dick = 1>>
			<</if>>
		<</if>>
		<<if $tanks[_inc].boobs > 0>>
			<<set $tanks[_inc].boobs -= 500>>
		<</if>>
		<<if $tanks[_inc].butt > 0>>
			<<set $tanks[_inc].butt -= 4>>
		<</if>>
	<</if>>

	<<if $incubatorReproductionSetting == 2>>
		<<set $tanks[_inc].energy = 80, $tanks[_inc].need = 100>>
	<<elseif $incubatorReproductionSetting == 1>>
		<<set $tanks[_inc].energy = 50, $tanks[_inc].need = 20>>
	<<else>>
		<<set $tanks[_inc].energy = 0, $tanks[_inc].need = 0>>
	<</if>>

	<<if ($incubatorPregAdaptationSetting == 1 && $tanks[_inc].genes == "XX") || ($incubatorPregAdaptationSetting == 2 && $tanks[_inc].genes == "XY") || $incubatorPregAdaptationSetting == 3>>

		The incubator is working on adapting $his abdomen and reproductive organs for future pregnancies.

		<<set _weekAdapt = $tanks[_inc].incubatorPregAdaptationInWeek * $incubatorUpgradeSpeed>>
		<<if isNaN(_weekAdapt)>> /* NaN check AFTER multiply operation, against it result is critical here. Need to be absolutely sure about this operation, not about just tank[x] property itself. This give me two very unpleasant hours to catch this */
			<<set $tanks[_inc].incubatorPregAdaptationInWeek = (15000 / 2000 - $tanks[_inc].pregAdaptation) / $tanks[_inc].growTime>>
		<</if>>
		<<set _weekAdapt = $tanks[_inc].incubatorPregAdaptationInWeek * $incubatorUpgradeSpeed>> /* Now it's should be fine */
		<<set _weekAdapt *= 1 + ($incubatorReproductionSetting / 5)>>
		<<set _weekAdapt *= 1 + ($tanks[_inc].hormoneBalance / 1500)>>
		/*And now we done*/
		<<set $tanks[_inc].pregAdaptation += _weekAdapt>>
		/* here goes side effect from intense and extreme settings: */
		<<if (random(0, 100) <= ($tanks[_inc].incubatorPregAdaptationPower - 1) * ($incubatorUpgradeSpeed / 2 + 1))>>
			<<switch random(1, 9)>> /*side effect selection*/
			<<case 1>>
				<<set $tanks[_inc].preg = -2>>
				It caused @@.red;reproductive damage@@ when excessive meddling damaged an organ.
			<<case 2>>
				<<if $tanks[_inc].ovaries == 1 || $tanks[_inc].mpreg == 1>>
					<<set $tanks[_inc].preg = -3>>
				<</if>>
				<<if $tanks[_inc].balls > 0>>
					<<set $tanks[_inc].ballType = "sterile">>
				<</if>>
				It caused @@.red;severe reproductive damage@@ when excessive hormones shut down the associated organs.
			<<case 3>>
				<<set $tanks[_inc].lactation = 1>>
				It has @@.orange;triggered a hormonal disorder,@@ causing $his breast glands begin producing milk.
			<<case 4>>
				<<set $tanks[_inc].bellySag = 100, $tanks[_inc].bellySagPreg = 100>>
				It activated @@.red;emergency protocols@@ when overpressure to $his abdominal tissues and skin reached critical levels. $His belly has lost muscle tone and has begun to strongly sag.
			<<case 5>>
				<<set $tanks[_inc].health.condition -= 15>>
				Overzealous prodding caused some @@.red;internal bleeding.@@
			<<case 6>>
				<<set $tanks[_inc].weight += 50>>
				An unexpected shift in hormones spurred @@.red;massive weight gain@@ before it could be corrected.
			<<case 7>>
				<<set $tanks[_inc].weight -= 50>>
				An unexpected shift in hormones spurred @@.red;massive weight loss@@ before it could be corrected.
			<<case 8>>
				<<set $tanks[_inc].boobs += 5000>>
				<<set $tanks[_inc].boobShape = "saggy">>
				An unexpected shift in hormones encouraged @@.green;explosive breast growth@@ before it could be corrected.
			<<case 9>>
				<<set $tanks[_inc].hips = 3>>
				A malfunction in the skeletal reconstruction software caused it to @@.green;overwiden $his hips.@@
			<</switch>>
		<</if>>
	<</if>>

	<<set $tanks[_inc].weight = Math.clamp($tanks[_inc].weight, -100, 200)>>
	<<set $tanks[_inc].muscles = Math.clamp($tanks[_inc].muscles, -100, 100)>>
	<<set $tanks[_inc].dick = Math.clamp($tanks[_inc].dick, 0, 10)>>
	<<set $tanks[_inc].hips = Math.clamp($tanks[_inc].hips, -2, 2)>>
	<<set $tanks[_inc].balls = Math.clamp($tanks[_inc].balls, 0, 40)>>
	<<set $tanks[_inc].boobs = Math.clamp($tanks[_inc].boobs, 25, 30000)>>
	<<set $tanks[_inc].height = Math.clamp($tanks[_inc].height, 0, 274)>>
	<<set $tanks[_inc].hormoneBalance = Math.clamp($tanks[_inc].hormoneBalance, -500, 500)>>

<</for>>
/*
<<if $incubatorSlaves == 0>>
$incubatorNameCaps is currently unused.
<</if>>
*/


code:
:: Incubator Retrieval Workaround [nobr]

<<set $nextLink = "AS Dump", $returnTo = "Main">>

<<if $readySlave != 0>>
	<<setLocalPronouns $readySlave>>
	$readySlave.slaveName has been discharged from $incubatorName and is ready for $his first ever inspection.

	<<set $activeSlave = $readySlave>>
	<<set $incubatorSlaves-->>
	<<includeDOM App.Desc.longSlave(V.activeSlave)>>
	<<if $readySlave.tankBaby != 3>>
		<<if $incubatorOrgans.length > 0>>
			<<for _irw = 0; _irw < $incubatorOrgans.length; _irw++>>
				<<if $incubatorOrgans[_irw].ID == $incubatorOldID>>
					<<set _newOrgan = {type: $incubatorOrgans[_irw].type, weeksToCompletion: $incubatorOrgans[_irw].weeksToCompletion, ID: $activeSlave.ID}>>
					<<if _newOrgan.weeksToCompletion <= 0>>
						<<set $completedOrgans.push($incubatorOrgans[_irw])>>
					<<else>>
						<<set $organs.push(_newOrgan)>>
					<</if>>
					<<set $incubatorOrgans.deleteAt(_irw), _irw-->>
				<</if>>
			<</for>>
		<</if>>
		<<run newSlave($activeSlave)>>
		<<include "New Child Intro">>
	<<else>>
		A husk is ready to be used.

		//As expected, $he is a complete vegetable, but that is what you wanted after all. You lack the facilities to care for $him in this state, so you should do what you are planning quickly. Or you could sell $him to the Flesh Heap.//

		<<if $cash >= $surgeryCost>>

[[Contact the bodyswap surgeon.|husk Slave Swap Workaround]] //Will significantly increase the selected slave's upkeep.//

[[Sell the husk to Flesh Heap.|Main][cashX(Math.trunc(slaveCost($activeSlave)/3), "slaveTransfer")]]
			//This body can be bought by the Flesh Heap for <<print cashFormat(Math.trunc(slaveCost($activeSlave)/3))>>//.
		<<else>>
			<<run cashX(Math.trunc(slaveCost($activeSlave)/3), "slaveTransfer")>>
			//You can't sustain $him and thus must sell $him for <<print cashFormat(Math.trunc(slaveCost($activeSlave)/3))>>.//
		<</if>>

	<</if>>
<<else>>
	The following slaves were discharged from $incubatorName:

	<<for _irw = 0; _irw < $newSlavePool.length; _irw++>>

		<<set $incubatorSlaves-->>
		<<set _newSlave = $newSlavePool[_irw].object>>

		Name: <<= SlaveFullName(_newSlave)>>

Mother:
		<<if _newSlave.mother > 0>>
			<<set _tempMom = getSlave(_newSlave.mother)>>
			<<if ndef _tempMom>>
				Unknown.
			<<else>>
				<<= SlaveFullName(_tempMom)>>
			<</if>>
		<<elseif _newSlave.mother == -1>>
			<<= PlayerName()>>.
		<<else>>
			Your former slave, $missingTable[_newSlave.mother].slaveName.
		<</if>>

Father:
		<<if _newSlave.father > 0>>
			<<set _tempDad = getSlave(_newSlave.father)>>
			<<if ndef _tempDad>>
				Unknown.
			<<else>>
				<<= SlaveFullName(_tempDad)>>
			<</if>>
		<<elseif _newSlave.father == -1>>
			<<= PlayerName()>>.
		<<elseif _newSlave.father == -2>>
			Unknown citizen.
		<<elseif _newSlave.father == -3>>
			Your former Master.
		<<elseif _newSlave.father == -4>>
			Another arcology's owner.
		<<elseif _newSlave.father == -5>>
			One of your clients.
		<<elseif _newSlave.father == -6>>
			Societal Elite.
		<<elseif _newSlave.father == -7>>
			Lab crafted.
		<<elseif _newSlave.father == -8>>
			//Error! Animal fathered children shouldn't be here!//
		<<elseif _newSlave.father == -9>>
			Futanari Sister.
		<<else>>
			<<if def $missingTable[_newSlave.father]>>
				Your former slave, $missingTable[_newSlave.father].slaveName.
			<<else>>
				Unknown.
			<</if>>
		<</if>>

		<<run newSlave(_newSlave)>>
		<<if $incubatorOrgans.length > 0>>
			<<for _irw2 = 0; _irw2 < $incubatorOrgans.length; _irw2++>>
				<<if $incubatorOrgans[_irw2].ID == $newSlavePool[_irw].ID>>
					<<set _newOrgan = {type: $incubatorOrgans[_irw2].type, weeksToCompletion: $incubatorOrgans[_irw2].weeksToCompletion, ID: _newSlave.ID}>>
					<<if _newOrgan.weeksToCompletion <= 0>>
						<<set $completedOrgans.push($incubatorOrgans[_irw2])>>
					<<else>>
						<<set $organs.push(_newOrgan)>>
					<</if>>
					<<set $incubatorOrgans.deleteAt(_irw2), _irw2-->>
				<</if>>
			<</for>>
		<</if>>

	<</for>>
	<<set $newSlavePool = 0>>
<</if>>

repo_name: NovX/fc

license: mit


code:
:: Incubator Workaround [nobr]

<<if $tanks.length < $incubator>>
	<<set $activeChild.growTime = Math.trunc($targetAge*52)>>
	<<set $activeChild.incubatorPregAdaptationPower = $incubatorPregAdaptationPower>>
	<<if $incubatorPregAdaptationPower == 1>>
		<<set _fullAdapt = 45000 / 2000>>
	<<elseif $incubatorPregAdaptationPower == 2>>
		<<set _fullAdapt = 100000 / 2000>>
	<<elseif $incubatorPregAdaptationPower == 3>>
		<<set _fullAdapt = 150000 / 2000>>
	<<else>>
		<<set _fullAdapt = 15000 / 2000>>
	<</if>>
	<<set $activeChild.incubatorPregAdaptationInWeek = (_fullAdapt - $activeChild.pregAdaptation) / $activeChild.growTime>>
	<<set $tanks.push($activeChild)>>
	<<set $incubatorSlaves++>>
<</if>>


code:
:: KillSlave [nobr]

<<set _qualifiedFS = []>>
<<if $arcologies[0].FSRomanRevivalist != "unset">>
	<<set _qualifiedFS.push("roman revivalist"), _weapon = 'gladius'>>
<<elseif $arcologies[0].FSAztecRevivalist != "unset">>
	<<set _qualifiedFS.push("aztec revivalist"), _weapon = 'Tecpatl'>>
<<elseif $arcologies[0].FSEgyptianRevivalist != "unset">>
	<<set _qualifiedFS.push("egyptian revivalist"), _weapon = 'kopesh'>>
<<elseif $arcologies[0].FSEdoRevivalist != "unset">>
	<<set _qualifiedFS.push("edo revivalist"), _weapon = 'katana'>>
<<elseif $arcologies[0].FSArabianRevivalist != "unset">>
	<<set _qualifiedFS.push("arabian revivalist"), _weapon = 'scimitar'>>
<<elseif $arcologies[0].FSChineseRevivalist != "unset">>
	<<set _qualifiedFS.push("chinese revivalist"), _weapon = 'jian'>>
<</if>>

<<if _qualifiedFS.length < 1>>
	<<set _weapon = 'handgun'>>
<</if>>

<<if canWalk($activeSlave)>>
	You call $activeSlave.slaveName into your office.
<<else>>
	You have $activeSlave.slaveName brought into your office.
<</if>>

<<if $activeSlave.fuckdoll <= 0>>
	$He looks at you
	<<if $activeSlave.fetish != "mindbroken">>
		with
		<<if $activeSlave.devotion > 50>>
			adoration
		<<elseif ($activeSlave.devotion) > 20 && ($activeSlave.devotion <= 50)>>
			calmly
		<<elseif ($activeSlave.devotion >= -20) && ($activeSlave.devotion <= 20)>>
			apprehension
		<<elseif $activeSlave.devotion < -20>>
			hatred
		<</if>>
	<<else>>
		blankly
	<</if>>
	and waits for you to continue.
<<else>>
	It's hard to tell the expression on the Fuckdoll's face, but your guess is it's
	<<if $activeSlave.fetish != "mindbroken">>
		one of
		<<if $activeSlave.devotion > 50>>
			adoration.
		<<elseif ($activeSlave.devotion) > 20 && ($activeSlave.devotion <= 50)>>
			calm.
		<<elseif ($activeSlave.devotion >= -20) && ($activeSlave.devotion <= 20)>>
			apprehension.
		<<elseif $activeSlave.devotion < -20>>
			hatred.
		<</if>>
	<<else>>
		blank.
	<</if>>
<</if>>
	You tell $him that you've gotten tired of having $him around and that you have decided it is time you got rid of $him.

<<if $activeSlave.fuckdoll <= 0>>
	<<if $activeSlave.fetish != "mindbroken">> $His expression changes to one of
		<<if $activeSlave.devotion > 50>>
			pure sorrow
		<<elseif ($activeSlave.devotion) > 20 && ($activeSlave.devotion <= 50)>>
			sadness
		<<else>>
			relief
		<</if>>
		until
	<<else>>
		$He just nods dumbly and continues to watch you with a vacant expression, even as
	<</if>>
<<else>>
	$He simply nods, not being able to see
<</if>>
you <<if canHear($activeSlave)>>quietly <</if>>reach behind your desk and pull out your trusty _weapon<<if $activeSlave.fuckdoll <= 0 && canSee($activeSlave)>><<if $activeSlave.fetish != "mindbroken">>, at which point abject fear fills $his face. $He immediately <<if hasBothLegs($activeSlave)>>drops to $his knees and <</if>>begins openly begging for you to have mercy.<<else>>, to which $he still doesn't respond.<</if>><<else>>.<</if>>

<<if $killChoice == -1>>

<<link "Kill $him">><<set $killChoice = 0>>
	<<replace "#killScene">>
		<<if _S.Bodyguard>>
			<<setLocalPronouns _S.Bodyguard 2>>
		<</if>>

		<<set _qualifiedFS = []>>
		<<if $arcologies[0].FSRomanRevivalist != "unset">>
			<<set _qualifiedFS.push("roman revivalist"), _weapon = 'gladius'>>
		<<elseif $arcologies[0].FSAztecRevivalist != "unset">>
			<<set _qualifiedFS.push("aztec revivalist"), _weapon = 'Tecpatl'>>
		<<elseif $arcologies[0].FSEgyptianRevivalist != "unset">>
			<<set _qualifiedFS.push("egyptian revivalist"), _weapon = 'kopesh'>>
		<<elseif $arcologies[0].FSEdoRevivalist != "unset">>
			<<set _qualifiedFS.push("edo revivalist"), _weapon = 'katana'>>
		<<elseif $arcologies[0].FSArabianRevivalist != "unset">>
			<<set _qualifiedFS.push("arabian revivalist"), _weapon = 'scimitar'>>
		<<elseif $arcologies[0].FSChineseRevivalist != "unset">>
			<<set _qualifiedFS.push("chinese revivalist"), _weapon = 'jian'>>
		<</if>>

		<<if $activeSlave.fuckdoll <= 0 && $activeSlave.fetish != "mindbroken">>
			You simply smile at $him and tell $him not to worry
		<<else>>
			You say nothing
		<</if>>
		as you continue

		<<if _qualifiedFS.length > 0>>
			sharpening your _weapon.
		<<else>>
			threading on a suppressor.
		<</if>>

		$activeSlave.slaveName
		<<if $activeSlave.fuckdoll <= 0 && $activeSlave.fetish != "mindbroken">>
			gives an audible sigh of relief and begins to thank you profusely, though $his thanks are cut short as the sound of
		<<else>>
			continues to stand there dumbly until the sound of
		<</if>>

		<<if _qualifiedFS.length > 0>>
			a sharp edge slicing though flesh
		<<else>>
			a suppressed gunshot
		<</if>>

		rings through the room. You have another servant clean up the mess as you continue with what you were previously doing.

		<<for _ss = 0; _ss < $slaves.length; _ss++>>
			<<if $activeSlave.mother == $slaves[_ss].ID>>
				<<setLocalPronouns $slaves[_ss] 2>>
				$slaves[_ss].slaveName is @@.mediumorchid;grieved@@ that you have killed _his2 $daughter.

				<<set $slaves[_ss].devotion -= 30>>
			<</if>>
			<<if $activeSlave.father == $slaves[_ss].ID>>
				<<setLocalPronouns $slaves[_ss] 2>>
				$slaves[_ss].slaveName is @@.mediumorchid;disappointed@@ that you have killed _his2 $daughter.

				<<set $slaves[_ss].devotion -= 20>>
			<</if>>
			<<if $activeSlave.ID == $slaves[_ss].father>>
				<<setLocalPronouns $slaves[_ss] 2>>
				$slaves[_ss].slaveName is @@.mediumorchid;saddened@@ that you have killed _his2 father.

				<<set $slaves[_ss].devotion -= 20>>
			<</if>>
			<<if $activeSlave.ID == $slaves[_ss].mother>>
				<<setLocalPronouns $slaves[_ss] 2>>
				$slaves[_ss].slaveName is @@.mediumorchid;grieved@@ that you have killed _his2 mother.

				<<set $slaves[_ss].devotion -= 30>>
			<</if>>
			<<switch areSisters($activeSlave, $slaves[_ss])>>
			<<case 1>>
				<<setLocalPronouns $slaves[_ss] 2>>
				$slaves[_ss].slaveName is @@.mediumorchid;devastated@@ that you have killed _his2 twin.

				<<set $slaves[_ss].devotion -= 30>>
			<<case 2>>
				<<setLocalPronouns $slaves[_ss] 2>>
				$slaves[_ss].slaveName is @@.mediumorchid;grieved@@ that you have killed _his2 $sister.

				<<set $slaves[_ss].devotion -= 30>>
			<<case 3>>
				<<setLocalPronouns $slaves[_ss] 2>>
				$slaves[_ss].slaveName is @@.mediumorchid;disheartened@@ that you have killed _his2 half-<<= $sister>>.

				<<set $slaves[_ss].devotion -= 20>>
			<</switch>>
		<</for>>
		<<if $activeSlave.relationship > 0>>
			<<set _ss = $slaveIndices[$activeSlave.relationshipTarget]>>
			<<if (def _ss) && $slaves[_ss].fetish != "mindbroken">>
				<<setLocalPronouns $slaves[_ss] 2>>
				$slaves[_ss].slaveName is @@.mediumorchid;grieved@@ that you have killed _his2 best source of comfort and companionship in a life of bondage.

				<<set $slaves[_ss].devotion -= $slaves[_ss].relationship*10>>
			<</if>>
		<<elseif $activeSlave.relationship == -3>>
			Killing one of your slave $wives is @@.red;socially unacceptable.@@ In addition, your other devoted slaves are @@.gold;worried@@ that you may not respect their status.

			<<run repX(-200, "event")>>
			<<for _ss = 0; _ss < $slaves.length; _ss++>>
				<<if $slaves[_ss].devotion > 50>>
					<<set $slaves[_ss].trust -= 10>>
				<</if>>
			<</for>>
		<</if>>
		<<if $activeSlave.rivalry != 0>>
			<<set _ss = $slaveIndices[$activeSlave.rivalryTarget]>>
			<<if (def _ss) && $slaves[_ss].fetish != "mindbroken">>
				<<setLocalPronouns $slaves[_ss] 2>>
				$slaves[_ss].slaveName is @@.hotpink;pleased@@ that $he won't have to see _his2 rival any more.

				<<set $slaves[_ss].devotion += $slaves[_ss].rivalry*3>>
			<</if>>
		<</if>>

		<<= removeActiveSlave() >>
		<<set $nextLink = "Main", $killChoice = -1>>
	<</replace>><</link>>

<<link "Have mercy on $him">><<set $killChoice = 1>>
	<<replace "#killScene">>

		<<if $activeSlave.fuckdoll <= 0 && $activeSlave.fetish != "mindbroken">>
			You make a show of considering sparing $his life, then, with a heavy sigh, unbuckle your pants and sit down at your desk. You beckon to $him, and $he just about trips over $himself as $he hastily makes $his way over to you. $His blowjob isn't the best you've ever had, $him @@.gold;sobbing@@ as much as $he is; but $his enthusiasm more than makes up for it. After you finish deep in $his throat, $he sits back and wipes away $his tears, sniffling and @@.hotpink;thanking you again@@ for giving $him another chance.

			<<if $activeSlave.devotion <= 30>>
				<<set $activeSlave.devotion = 30>>
			<<else>>
				<<set $activeSlave.devotion += 20>>
			<</if>>
			<<set $activeSlave.trust = -100>>
		<<else>>
			You change your mind, and with a wave of your hand, send $activeSlave.slaveName back to $his duties. Maybe some other time.
		<</if>>
		<<set $killChoice = -1>>
	<</replace>><</link>>
	<<if $activeSlave.assignment != "guard you" && $pit && _S.Bodyguard && $activeSlave.fuckdoll <= 0 && $activeSlave.fetish != "mindbroken">>
		<<if ($pitLethal == 1)>>

<<link "Let $him win $his life in combat">><<set $killChoice = 2>>
			<<replace "#killScene">>
				    You tell $him that you'll let your bodyguard _S.Bodyguard.slaveName decide $his fate — if $he wants to live, $he'll have to beat _him2 in hand-to-hand combat in $pitName.
				<<if $activeSlave.skill.combat == 0>>
					The fear on $his face is palpable, though $he nods slowly and agrees, not seeing another choice.
				<<else>>
					$He nods $his head and straightens up, as though mentally preparing $himself for the fight for $his life.
				<</if>>

				<<set $slaveFightingBG = $activeSlave, $pitAnimal = 0, $killChoice = -1>>
			<</replace>><</link>>
		<<else>>

//You must allow lethal fights in $pitName to have $activeSlave.slaveName fight your bodyguard for $his life//
		<</if>>
	<</if>>

<<else>>
	<<if $activeSlave.fetish != "mindbroken" || $activeSlave.fuckdoll <= 0>>
		You abruptly cut $his begging short once you
	<<else>>
		You change your mind as you suddenly
	<</if>>
	realize $slaveFightingBG.slaveName is already fighting your bodyguard _S.Bodyguard.slaveName for $his life this week. [[Cancel the fight|KillSlave][$killChoice = -1]]
<</if>>


code:
:: Manage Personal Affairs [nobr jump-to-safe jump-from-safe]

<<set $nextButton = "Back", $nextLink = "Main", $encyclopedia = "Being in Charge">>

<<set _ML = $marrying.length>>

<<if $cheatMode == 1>>

[[Cheat Edit Player|PCCheatMenu][$cheater = 1]]

<</if>>

Personal Affairs

Appearance

		You pause for a moment from your busy day to day life to return to <<if $masterSuite != 0>>$masterSuiteName<<else>>your room<</if>> to consider some things about yourself.

<<if $geneticMappingUpgrade >= 1>>

		<<if $PC.genes === "XY" && $seeDicksAffectsPregnancy === 0>>
			Analysis of your sperm shows that you have a <<= $PC.spermY>>% chance of fathering a son.
		<</if>>

<</if>>

		You take yourself in a full length mirror. You are <<= addA($PC.race)>> <<if $PC.dick != 0 && $PC.vagina != -1>>futanari<<elseif $PC.dick != 0>>man<<else>>woman<</if>> with<<if $PC.markings == "freckles">> freckled<<elseif $PC.markings == "heavily freckled">> heavily freckled<</if>> <<print $PC.skin>> skin, $PC.hColor hair, <<print App.Desc.eyesColor($PC)>> and a perfect $PC.faceShape face.
		<<if $PC.actualAge >= 65>>
			You're @@.orange;$PC.actualAge@@ and definitely feeling it.<<if $PC.visualAge > $PC.actualAge>> You've taken measures to @@.lime;look an older $PC.visualAge,@@ though perhaps it might be time to undo it.<<elseif $PC.visualAge < $PC.actualAge>> You've taken measures to @@.lime;look a younger $PC.visualAge,@@ now if only your body agreed with your looks.<</if>>
		<<elseif $PC.actualAge >= 50>>
			You're @@.orange;$PC.actualAge@@ and starting to feel it.<<if $PC.visualAge > $PC.actualAge>> You've taken measures to @@.lime;look an older $PC.visualAge.@@<<elseif $PC.visualAge < $PC.actualAge>> You've taken measures to @@.lime;look a younger $PC.visualAge.@@<</if>>
		<<elseif $PC.actualAge >= 35>>
			You're @@.orange;$PC.actualAge@@ and strong.<<if $PC.visualAge > $PC.actualAge>> You've taken measures to @@.lime;look an older $PC.visualAge@@ and reap the respect that comes with it.<<elseif $PC.visualAge < $PC.actualAge>> You've taken measures to @@.lime;look a younger $PC.visualAge@@ recapturing your youth.<</if>>
		<<else>>
			You're @@.orange;$PC.actualAge@@ and full of vigor.<<if $PC.visualAge > $PC.actualAge>> You've taken measures to @@.lime;look an older $PC.visualAge@@ and reap the respect that comes with it.<<elseif $PC.visualAge < $PC.actualAge>> You've taken measures to @@.lime;look a younger $PC.visualAge,@@ even though society may find your looks uncomfortable.<</if>>
		<</if>>
		<<if ($playerAging != 0)>>Your birthday is <<if $PC.birthWeek == 51>>next week<<else>>in <<print 52-$PC.birthWeek>> weeks<</if>>.<</if>>
		Looking down,
		<<= App.Desc.Player.boobs()>>
		<<= App.Desc.Player.belly()>>
		<<if $PC.prostate > 2 && $PC.belly < 10000>> Your pubic mound bulges outward noticeably thanks to your massive prostate.<<elseif $PC.prostate == 2 && $PC.belly < 5000>> Your pubic mound swells outward slightly due to your oversized prostate.<</if>>
		Beneath all that,
		<<= App.Desc.Player.crotch()>>
		Around back,
		<<= App.Desc.Player.butt()>>

		<<if $playerSurgery == 0>>[[Visit your plastic surgeon.|Elective Surgery][$playerSurgery = 4]]<<elseif $playerSurgery == 1>>Your favorite plastic surgeon is booked solid for the next week.<<else>>Your favorite plastic surgeon is booked solid for the next $playerSurgery weeks.<</if>>

	<<includeDOM App.Medicine.Modification.eyeSelector($PC, true)>>

		You have a selection of hair dyes available:

		<<if $PC.origHColor == $PC.hColor>>Your hair is its natural color.<<else>>[[Remove dye|Manage Personal Affairs][$PC.hColor = $PC.origHColor]]<</if>>
		<<if $PC.origHColor != "auburn">>| [[Auburn|Manage Personal Affairs][$PC.hColor = "auburn"]]<</if>>
		<<if $PC.origHColor != "black">>| [[Hazel|Manage Personal Affairs][$PC.hColor = "black"]]<</if>>
		<<if $PC.origHColor != "blonde">>| [[Blonde|Manage Personal Affairs][$PC.hColor = "blonde"]]<</if>>
		<<if $PC.origHColor != "blue">>| [[Blue|Manage Personal Affairs][$PC.hColor = "blue"]]<</if>>
		<<if $PC.origHColor != "blue-violet">>| [[Blue-Violet|Manage Personal Affairs][$PC.hColor = "blue-violet"]]<</if>>
		<<if $PC.origHColor != "brown">>| [[Brown|Manage Personal Affairs][$PC.hColor = "brown"]]<</if>>
		<<if $PC.origHColor != "burgundy">>| [[Burgundy|Manage Personal Affairs][$PC.hColor = "burgundy"]]<</if>>
		<<if $PC.origHColor != "chestnut">>| [[Chestnut|Manage Personal Affairs][$PC.hColor = "chestnut"]]<</if>>
		<<if $PC.origHColor != "chocolate brown">>| [[Chocolate|Manage Personal Affairs][$PC.hColor = "chocolate brown"]]<</if>>
		<<if $PC.origHColor != "copper">>| [[Copper|Manage Personal Affairs][$PC.hColor = "copper"]]<</if>>
		<<if $PC.origHColor != "crimson">>| [[Crimson|Manage Personal Affairs][$PC.hColor = "crimson"]]<</if>>
		<<if $PC.origHColor != "dark blue">>| [[Dark Blue|Manage Personal Affairs][$PC.hColor = "dark blue"]]<</if>>
		<<if $PC.origHColor != "dark brown">>| [[Dark Brown|Manage Personal Affairs][$PC.hColor = "dark brown"]]<</if>>
		<<if $PC.origHColor != "dark orchid">>| [[Dark Orchid|Manage Personal Affairs][$PC.hColor = "dark orchid"]]<</if>>
		<<if $PC.origHColor != "ginger">>| [[Ginger|Manage Personal Affairs][$PC.hColor = "ginger"]]<</if>>
		<<if $PC.origHColor != "golden">>| [[Golden|Manage Personal Affairs][$PC.hColor = "golden"]]<</if>>
		<<if $PC.origHColor != "green">>| [[Green|Manage Personal Affairs][$PC.hColor = "green"]]<</if>>
		<<if $PC.origHColor != "green-yellow">>| [[Green-Yellow|Manage Personal Affairs][$PC.hColor = "green-yellow"]]<</if>>
		<<if $PC.origHColor != "grey">>| [[Grey|Manage Personal Affairs][$PC.hColor = "grey"]]<</if>>
		<<if $PC.origHColor != "hazel">>| [[Hazel|Manage Personal Affairs][$PC.hColor = "hazel"]]<</if>>
		<<if $PC.origHColor != "jet black">>| [[Jet Black|Manage Personal Affairs][$PC.hColor = "jet black"]]<</if>>
		<<if $PC.origHColor != "pink">>| [[Pink|Manage Personal Affairs][$PC.hColor = "pink"]]<</if>>
		<<if $PC.origHColor != "platinum blonde">>| [[Platinum Blonde|Manage Personal Affairs][$PC.hColor = "platinum blonde"]]<</if>>
		<<if $PC.origHColor != "purple">>| [[Purple|Manage Personal Affairs][$PC.hColor = "purple"]]<</if>>
		<<if $PC.origHColor != "red">>| [[Red|Manage Personal Affairs][$PC.hColor = "red"]]<</if>>
		<<if $PC.origHColor != "sea green">>| [[Sea Green|Manage Personal Affairs][$PC.hColor = "sea green"]]<</if>>
		<<if $PC.origHColor != "silver">>| [[Silver|Manage Personal Affairs][$PC.hColor = "silver"]]<</if>>
		<<if $PC.origHColor != "strawberry-blonde">>| [[Strawberry-Blonde|Manage Personal Affairs][$PC.hColor = "strawberry-blonde"]]<</if>>
		<<if $PC.origHColor != "white">>| [[White|Manage Personal Affairs][$PC.hColor = "white"]]<</if>>

<<if $weddingPlanned > 0>>

Wedding

		<<set _slave1 = getSlave($marrying[0])>>
		<<if _ML > 1>>
			<<if _ML >= 2>>
				<<set _slave2 = getSlave($marrying[1])>>
			<</if>>
			<<if _ML >= 3>>
				<<set _slave3 = getSlave($marrying[2])>>
			<</if>>
			<<if _ML == 4>>
				<<set _slave4 = getSlave($marrying[3])>>
			<</if>>
		<</if>>

		/* yes, I am aware this looks horrendous - if you can find a way to clean this up, by all means */
		You have a wedding planned for this weekend; you are <<if $weddingPlanned == 1>>marrying<<elseif $weddingPlanned == 2>>sharing<<elseif $weddingPlanned == 3>>knocking up<</if>> <<print "[[SlaveFullName(_slave1)|Slave Interact][$activeSlave = _slave1]]">><<if _ML > 2>>, <<elseif _ML == 2>> and <<print "[[SlaveFullName(_slave2)|Slave Interact][$activeSlave = _slave2]]">><</if>><<if _ML > 2>><<print "[[SlaveFullName(_slave2)|Slave Interact][$activeSlave = _slave2]]">><<if _ML == 3>> and <<else>>, <</if>><<print "[[SlaveFullName(_slave3)|Slave Interact][$activeSlave = _slave3]]">><<if _ML == 4>> and <<print "[[SlaveFullName(_slave4)|Slave Interact][$activeSlave = _slave4]]">><</if>> <<if $weddingPlanned == 2>>with your honored guests<</if>><</if>>.
		[[Cancel it|Manage Personal Affairs][$weddingPlanned = -1, $marrying = []]]

<</if>>

<<if $FCTV.receiver > 0>>

FCTV

		<<if $FCTV.pcViewership.frequency == 1>>
			You make sure to tune in to FCTV at least once a week. [[Watch every other week|Manage Personal Affairs][$FCTV.pcViewership.frequency = 2]] | [[Watch once a month|Manage Personal Affairs][$FCTV.pcViewership.frequency = 4]] | [[Ignore it|Manage Personal Affairs][$FCTV.pcViewership.frequency = -1]]
		<<elseif $FCTV.pcViewership.frequency == 2>>
			You make sure to tune in to FCTV at least every two weeks. [[Watch every week|Manage Personal Affairs][$FCTV.pcViewership.frequency = 1]] | [[Watch once a month|Manage Personal Affairs][$FCTV.pcViewership.frequency = 4]] | [[Ignore it|Manage Personal Affairs][$FCTV.pcViewership.frequency = -1]]
		<<elseif $FCTV.pcViewership.frequency == 4>>
			You make sure to check in on FCTV at least once a month. [[Watch every week|Manage Personal Affairs][$FCTV.pcViewership.frequency = 1]] | [[Watch every other week|Manage Personal Affairs][$FCTV.pcViewership.frequency = 2]] | [[Ignore it|Manage Personal Affairs][$FCTV.pcViewership.frequency = -1]]
		<<else>>
			You don't watch FCTV. [[Watch every week|Manage Personal Affairs][$FCTV.pcViewership.frequency = 1]] | [[Watch every other week|Manage Personal Affairs][$FCTV.pcViewership.frequency = 2]] | [[Watch once a month|Manage Personal Affairs][$FCTV.pcViewership.frequency = 4]]
		<</if>>
		<<if $saveImported > 0 && !$FCTV.remote>>

				You know TVs should have a remote. [[Buy one yourself|Manage Personal Affairs][$FCTV.remote = 1, cashX(forceNeg(100*$upgradeMultiplierTrade), "capEx")]]

		<</if>>

<</if>>

<>

Personal Skills

	You ponder what skills may be useful in running your arcology.

		Trading:
		<<if $PC.skill.trading >= 100>>
			You are a master at economics and trading.
		<<elseif $PC.skill.trading >= 80>>
			You are an expert at economics and trading.
		<<elseif $PC.skill.trading >= 60>>
			You are skilled in economics and trading.
		<<elseif $PC.skill.trading >= 40>>
			You know some things about economics and trading.
		<<elseif $PC.skill.trading >= 20>>
			You are a beginner in economics.
		<<elseif $PC.skill.trading >= 0>>
			You know only the basics of trading.
		<<elseif $PC.skill.trading >= -20>>
			You know how to haggle a little.
		<<elseif $PC.skill.trading >= -40>>
			You know how to shop around.
		<<elseif $PC.skill.trading >= -60>>
			You know not to pay sticker price.
		<<elseif $PC.skill.trading >= -80>>
			People always give you discounts, but you never save any money.
		<<else>>
			They said it was a bear market, so where are the bears?
		<</if>>

		Warfare:
		<<if $PC.skill.warfare >= 100>>
			You are a master of warfare.
		<<elseif $PC.skill.warfare >= 80>>
			You are an expert at tactics and strategy.
		<<elseif $PC.skill.warfare >= 60>>
			You are skilled in combat.
		<<elseif $PC.skill.warfare >= 40>>
			You know some things about combat.
		<<elseif $PC.skill.warfare >= 20>>
			You are a beginner in tactics and strategy.
		<<elseif $PC.skill.warfare >= 0>>
			You know only the basics of fighting.
		<<elseif $PC.skill.warfare >= -20>>
			You know how to hold a gun.
		<<elseif $PC.skill.warfare >= -40>>
			You know how to stab with a knife.
		<<elseif $PC.skill.warfare >= -60>>
			Go for the throat?
		<<elseif $PC.skill.warfare >= -80>>
			Just kick them in the balls, right?
		<<else>>
			People like you are usually the first raped in a war.
		<</if>>

		Slaving:
		<<if $PC.skill.slaving >= 100>>
			You are a master slaver.
		<<elseif $PC.skill.slaving >= 80>>
			You are an expert at enslaving.
		<<elseif $PC.skill.slaving >= 60>>
			You are skilled in slaving.
		<<elseif $PC.skill.slaving >= 40>>
			You know some things about getting slaves.
		<<elseif $PC.skill.slaving >= 20>>
			You are a beginner in slaving.
		<<elseif $PC.skill.slaving >= 0>>
			You know only the basics of slaving.
		<<elseif $PC.skill.slaving >= -20>>
			You know how to avoid becoming a slave.
		<<elseif $PC.skill.slaving >= -40>>
			You know to read contracts before you sign them.
		<<elseif $PC.skill.slaving >= -60>>
			You know to be careful.
		<<elseif $PC.skill.slaving >= -80>>
			You know better than to trust anyone.
		<<else>>
			It would be easy to enslave you.
		<</if>>

		Engineering:
		<<if $PC.skill.engineering >= 100>>
			You are a master engineer.
		<<elseif $PC.skill.engineering >= 80>>
			You are an expert at engineering.
		<<elseif $PC.skill.engineering >= 60>>
			You are skilled in engineering.
		<<elseif $PC.skill.engineering >= 40>>
			You know some things about engineering.
		<<elseif $PC.skill.engineering >= 20>>
			You are a beginner in engineering.
		<<elseif $PC.skill.engineering >= 0>>
			You know only the basics of engineering.
		<<elseif $PC.skill.engineering >= -20>>
			You can build a gingerbread house that doesn't collapse.
		<<elseif $PC.skill.engineering >= -40>>
			You can tie a tight knot, does that count?
		<<elseif $PC.skill.engineering >= -60>>
			Glue is your friend; lots of it.
		<<elseif $PC.skill.engineering >= -80>>
			You know better than to even try to build something.
		<<else>>
			You can cook; that's sort of like building something, right?
		<</if>>

		Medicine:
		<<if $PC.skill.medicine >= 100>>
			You are a master surgeon.
		<<elseif $PC.skill.medicine >= 80>>
			You are an expert at medicine and surgery.
		<<elseif $PC.skill.medicine >= 60>>
			You are skilled in surgery.
		<<elseif $PC.skill.medicine >= 40>>
			You know some things about medicine.
		<<elseif $PC.skill.medicine >= 20>>
			You are a beginner in medicine.
		<<elseif $PC.skill.medicine >= 0>>
			You know the basics of treating injuries.
		<<elseif $PC.skill.medicine >= -20>>
			You can stop a wound from getting infected.
		<<elseif $PC.skill.medicine >= -40>>
			Gauze is your friend. Just keep wrapping.
		<<elseif $PC.skill.medicine >= -60>>
			You know how to apply a band-aid.
		<<elseif $PC.skill.medicine >= -80>>
			Cure-alls are wonderful. Why aren't they sold in stores, though?
		<<else>>
			Alcohol makes pain go away, right?
		<</if>>

		Hacking:
		<<if $PC.skill.hacking >= 100>>
			You are a master of hacking.
		<<elseif $PC.skill.hacking >= 80>>
			You are an expert at hacking.
		<<elseif $PC.skill.hacking >= 60>>
			You are skilled in hacking.
		<<elseif $PC.skill.hacking >= 40>>
			You know some things about hacking.
		<<elseif $PC.skill.hacking >= 20>>
			You are a beginner in hacking.
		<<elseif $PC.skill.hacking >= 0>>
			You know only the basics of hacking.
		<<elseif $PC.skill.hacking >= -20>>
			You know how to click a mouse.
		<<elseif $PC.skill.hacking >= -40>>
			Enter does something?
		<<elseif $PC.skill.hacking >= -60>>
			Where is the "any" key?
		<<elseif $PC.skill.hacking >= -80>>
			You can push the power button, good job.
		<<else>>
			This black box thingy is magical.
		<</if>>

Reputation

Name

	On formal occasions, you are announced as <<= PCTitle()>>. By slaves, however, you prefer to be called <<= properMaster()>>.

			<<if ndef $PC.customTitle>>
				<<link "Set a custom title for slaves to address you">>
					<<replace "#result">>
						Custom title: <<textbox "$PC.customTitle" $PC.customTitle>>
						<<link "Apply">>
							<<replace "#result">>
								Your title is now $PC.customTitle.
								<<set $PC.customTitleLisp = lispReplace($PC.customTitle)>>
							<</replace>>
						<</link>>
					<</replace>>
				<</link>>
			<<else>>
				Your custom title is <<textbox "$PC.customTitle" $PC.customTitle>>
				<<link "Apply">>
					<<replace "#result">>
						Your title is now $PC.customTitle.
						<<set $PC.customTitleLisp = lispReplace($PC.customTitle)>>
					<</replace>>
				<</link>> |
				<<link "Stop using a custom title">>
					<<replace "#result">>
						You stop using a custom title
						<<set $PC.customTitle = undefined>>
						<<set $PC.customTitleLisp = undefined>>
					<</replace>>
				<</link>>
			<</if>>

			<<link "Rename yourself">>
				<<replace "#nameResult">>
				New name: <<textbox "_PCNamet" $PC.slaveName>>
					<<link "Apply">>
						<<run repX(-500, "event")>>
						<<replace "#nameResult">>
							<<set $PC.slaveName = _PCNamet>>
							You will now be known as <<= PlayerName()>>.
						<</replace>>
					<</link>>
				<</replace>>
			<</link>> Will cost you some reputation.

<<if $PC.degeneracy > 0>>

Rumors

		<<if $PC.degeneracy > 100>>
			There are severe and devastating rumors about you spreading across the arcology.
		<<elseif $PC.degeneracy > 75>>
			There are severe rumors about you spreading across the arcology.
		<<elseif $PC.degeneracy > 50>>
			There are bad rumors about you spreading across the arcology.
		<<elseif $PC.degeneracy > 25>>
			There are rumors about you spreading across the arcology.
		<<elseif $PC.degeneracy > 10>>
			There are minor rumors about you spreading across the arcology.
		<<else>>
			The occasional rumor about you can be heard throughout the arcology.
		<</if>>

<</if>>

Family

			<<link "Pull up the file on your family tree.">>
				<<replace #family-tree-link>>
					<<run renderFamilyTree($slaves, -1)>>
				<</replace>>
			<</link>>

	<<if totalPlayerRelatives($PC) > 0 || ($showMissingSlaves && ($PC.mother in $missingTable || $PC.father in $missingTable))>>

			<<= App.Desc.family($PC)>>

	<</if>>

<<if $PC.vagina != -1>>

Contraceptives and Fertility

		<<if $PC.preg < 6 && $PC.pregKnown == 1>>
			Your period is late, so the first thing you do is test yourself for a potential pregnancy: @@.lime;you are pregnant.@@
			<<if ($arcologies[0].FSRestart == "unset" || $eugenicsFullControl == 1 || ($PC.pregSource != -1 && $PC.pregSource != -6))>>
				<<link "Abort your child">><<replace "#mini-scene">><<run TerminatePregnancy($PC)>><<print "You take a syringe filled with abortifacients and make yourself comfortable. Injecting the vial through your belly into your womb, your close your eyes and wait for what is coming. Once you feel it is over, you clean yourself up and go on your way, child free.">><</replace>><</link>>
			<</if>>
		<<elseif $PC.labor == 1>>
			You are beginning to feel contractions; you'll be giving birth soon.
		<<elseif $PC.preg >= 39>>
			Your due date is looming, but your <<if $PC.pregType > 1>>children don't<<else>>child doesn't<</if>> seem to be interested in coming out just yet. [[Induce childbirth|Manage Personal Affairs][$PC.labor = 1]]
		<<elseif $PC.pregKnown == 1>>
			You're pregnant, something rather unbecoming for an arcology owner.
			<<if ($arcologies[0].FSRestart == "unset" || $eugenicsFullControl == 1 || ($PC.pregSource != -1 && $PC.pregSource != -6))>>
				<<link "Abort your child">><<replace "#mini-scene">><<run TerminatePregnancy($PC)>><<print "You take a syringe filled with abortifacients and make yourself comfortable. Injecting the vial through your belly into your womb, your close your eyes and wait for what is coming. Once you feel it is over, you clean yourself up and go on your way, child free.">><</replace>><</link>>
			<</if>>
		<</if>>

	<<if $PC.counter.birthsTotal > 0>>

			In total, you have given birth to:
			<<if $PC.counter.birthElite > 0>>

					<<print $PC.counter.birthElite>> bab<<if $PC.counter.birthElite > 1>>ies<<else>>y<</if>> for the Societal Elite.

			<</if>>
			<<if $PC.counter.birthMaster > 0>>

					<<print $PC.counter.birthMaster>> bab<<if $PC.counter.birthMaster > 1>>ies<<else>>y<</if>> for your former Master.

			<</if>>
			<<if $PC.counter.birthClient > 0>>

					<<print $PC.counter.birthClient>> bab<<if $PC.counter.birthClient > 1>>ies<<else>>y<</if>> from clients you've slept with.

			<</if>>
			<<if $PC.counter.birthDegenerate > 0>>

					<<print $PC.counter.birthDegenerate>> bastard<<if $PC.counter.birthDegenerate > 1>>s<</if>> from getting fucked by slaves.

			<</if>>
			<<if $PC.counter.birthArcOwner > 0>>

					<<print $PC.counter.birthArcOwner>> bab<<if $PC.counter.birthArcOwner > 1>>ies<<else>>y<</if>> from your time with male arcology owners.

			<</if>>
			<<if $PC.counter.birthCitizen > 0>>

					<<print $PC.counter.birthCitizen>> bab<<if $PC.counter.birthCitizen > 1>>ies<<else>>y<</if>> from sex with arcology citizens.

			<</if>>
			<<if $PC.counter.birthOther > 0>>

					<<print $PC.counter.birthOther>> bab<<if $PC.counter.birthOther > 1>>ies<<else>>y<</if>> from sources you can't quite recall.

			<</if>>
			<<if $PC.counter.birthSelf > 0>>

					<<print $PC.counter.birthSelf>> bab<<if $PC.counter.birthSelf > 1>>ies<<else>>y<</if>> that <<if $PC.counter.birthSelf > 1>>are<<else>>is<</if>> literally all you.

			<</if>>
			<<if $PC.counter.birthLab > 0>>

					<<print $PC.counter.birthLab>> bab<<if $PC.counter.birthLab > 1>>ies<<else>>y<</if>> specially designed in the lab.

			<</if>>

	<</if>>
	<<if $PC.counter.slavesKnockedUp > 0>>

			<<if $PC.dick > 0>>
				You've knocked up <<print num($PC.counter.slavesKnockedUp)>> fertile slave girl<<if $PC.counter.slavesKnockedUp > 1>>s<</if>><<if $PC.counter.slavesFathered > 0>> and fathered <<print num($PC.counter.slavesFathered)>> new slave<<if $PC.counter.slavesFathered > 1>>s<</if>><</if>> as an arcology owner so far.
			<<else>>
				Before your sex change, you knocked up <<print num($PC.counter.slavesKnockedUp)>> fertile slave girl<<if $PC.counter.slavesKnockedUp > 1>>s<</if>><<if $PC.counter.slavesFathered > 0>> and fathered <<print num($PC.counter.slavesFathered)>> new slave<<if $PC.counter.slavesFathered > 1>>s<</if>><</if>>.
			<</if>>

	<<else>>
		<<if $PC.counter.slavesFathered > 0>>

				<<if $PC.dick != 0>>
					You've fathered <<print num($PC.counter.slavesFathered)>> new slave<<if $PC.counter.slavesFathered > 1>>s<</if>> as an arcology owner so far.
				<<else>>
					Before your sex change, you fathered <<print num($PC.counter.slavesFathered)>> new slave<<if $PC.counter.slavesFathered > 1>>s<</if>>.
				<</if>>

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

		<<if $PC.preg >= 8>>
			You're currently <<print $PC.preg>> week<<if $PC.preg > 1>>s<</if>> pregnant, so contraception doesn't matter right now.
		<<elseif $PC.preg >= 6>>
			You're having morning sickness.
		<<elseif $PC.preg > 1>>
			You've missed your period. This could be bad.
		<<elseif $PC.preg > 0>>
			Your fertile pussy has been thoroughly seeded; there is a chance you are pregnant.
			<<if ($arcologies[0].FSRestart == "unset" || $eugenicsFullControl == 1 || ($PC.pregSource != -1 && $PC.pregSource != -6))>>
				<<link "Pop some morning after pills">><<set WombFlush($PC)>><<goto "Manage Personal Affairs">><</link>>
			<</if>>
		<<elseif $PC.pregWeek < 0>>
			You're still recovering from your recent pregnancy.
		<<elseif $PC.preg == -2>>
			You're menopausal. Your time to bear children has passed.
		<<elseif $PC.preg == -1>>
			You're currently on birth control.
			[[Stop taking it|Manage Personal Affairs][$PC.preg = 0]]
		<<elseif $PC.preg == 0>>
			You're currently fertile.
			[[Start taking birth control|Manage Personal Affairs][$PC.preg = -1, $PC.fertDrugs = 0]]
			<<set _toSearch = $PC.refreshment.toLowerCase(), _fertRefresh = 0>>
			<<if _toSearch.indexOf("fertility") != -1>>
				<<set _fertRefresh = 1>>
			<</if>>

			<<if $PC.fertDrugs == 1>>
				You are currently taking fertility supplements<<if _fertRefresh == 1>>on top of the <<print $PC.refreshment>>s.<<else>>.<<if $PC.forcedFertDrugs > 0>> You feel a strange eagerness whenever you think of bareback sex.<</if>><</if>> [[Stop taking fertility drugs|Manage Personal Affairs][$PC.fertDrugs = 0]]
			<<else>>
				You are not on any fertility supplements<<if _fertRefresh == 1>>, other than the $PC.refreshment, of course.<<else>>.<<if $PC.forcedFertDrugs > 0>> You feel a strange eagerness whenever you think of bareback sex.<</if>><</if>> [[Start taking fertility drugs|Manage Personal Affairs][$PC.fertDrugs = 1]]
			<</if>>

		<</if>>

	<<if ($PC.preg > 0 && $pregnancyMonitoringUpgrade == 1)>>

			[[Inspect pregnancy|Analyze PC Pregnancy]]

	<</if>>
	<<if $PC.preg >= 0 && $PC.ovaries == 1 && $PC.ovaryAge < 47>>

			[[Harvest and implant an egg|Surrogacy Workaround][$donatrix = $PC, $impregnatrix = "Undecided", $receptrix = "Undecided", $nextLink = "Manage Personal Affairs"]]

	<</if>>

<<if $arcologies[0].FSRestartDecoration >= 100>>

		<<if $playerBred == 0>>
			You are currently not bearing children for the Societal Elite.
			[[List your womb as available|Manage Personal Affairs][$playerBred = 1, $playerBredTube = 0]] | [[Sign up for artificial insemination|Manage Personal Affairs][$playerBred = 1, $playerBredTube = 1]]
		<<else>>
			Your womb is dedicated to carrying the Societal Elites' children.
			<<if $PC.counter.birthElite > 0>>
				[[List your womb as unavailable|Manage Personal Affairs][$playerBred = 0]]
			<<else>>
				You must bear at least one child for the Societal Elite before removing yourself from the breeding program.
			<</if>>
		<</if>>

<</if>>

<<if $PC.preg == 0 && $PC.pregWeek == 0>>
	<<if $dairyPiping == 1 && ($cumSlaves > 0 || $arcologies[0].FSPastoralistLaw == 1)>>

			<<if $PC.skill.cumTap == 0>>
				The tap connected to $dairyName has a variety of attachments, one of which being a very tantalizing dick-shaped nozzle. It looks like it would be a perfect fit for you, if you were curious, that is.

[[No one is looking...|FSelf]]

			<<else>>
				The tap connected to $dairyName is calling to you. Begging to let it fill you with cum again. If you wanted to try and go bigger, that is.

[[Sounds fun!|FSelf]]

<<link "You only want to get pregnant." "Manage Personal Affairs">><<set $PC.preg = 1, $PC.pregWeek = 1, $PC.pregSource = 0, $PC.pregKnown = 1>><<set $PC.pregType = setPregType($PC)>><<set WombImpregnate($PC, $PC.pregType, 0, 1)>><</link>>

			<</if>>

	<</if>>
	<<if $PC.vagina >= 1 && $PC.dick != 0>>

			<<if $PC.counter.birthSelf > 0>>
				Who better to impregnate you than you? [[Impregnate yourself.|MpregSelf]]
			<<else>>
				You have an empty vagina, a working set of balls, and a strong craving for a hot creampie. Who better to give it to you than you? [[Grab an extra syringe.|MpregSelf]]
			<</if>>

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

<<else>> /* no vagina */

<<if $PC.counter.births > 0>>

		Before your sex change, you had given birth to:
		<<if $PC.counter.birthElite > 0>>

				<<print num($PC.counter.birthElite)>> bab<<if $PC.counter.birthElite > 1>>ies<<else>>y<</if>> for the Societal Elite.

		<</if>>
		<<if $PC.counter.birthMaster > 0>>

				<<print num($PC.counter.birthMaster)>> bab<<if $PC.counter.birthMaster > 1>>ies<<else>>y<</if>> for your former Master.

		<</if>>
		<<if $PC.counter.birthClient > 0>>

				<<print num($PC.counter.birthClient)>> bab<<if $PC.counter.birthClient > 1>>ies<<else>>y<</if>> from clients you've slept with.

		<</if>>
		<<if $PC.counter.birthDegenerate > 0>>

				<<print num($PC.counter.birthDegenerate)>> bastard<<if $PC.counter.birthDegenerate > 1>>s<</if>> from getting fucked by slaves.

		<</if>>
		<<if $PC.counter.birthArcOwner > 0>>

				<<print num($PC.counter.birthArcOwner)>> bab<<if $PC.counter.birthArcOwner > 1>>ies<<else>>y<</if>> from your time with male arcology owners.

		<</if>>
		<<if $PC.counter.birthCitizen > 0>>

				<<print num($PC.counter.birthCitizen)>> bab<<if $PC.counter.birthCitizen > 1>>ies<<else>>y<</if>> from sex with arcology citizens.

		<</if>>
		<<if $PC.counter.birthFutaSis > 0>>

				<<print num($PC.counter.birthFutaSis)>> bab<<if $PC.counter.birthFutaSis > 1>>ies<<else>>y<</if>> conceived during orgies with the Futanari Sisters.

		<</if>>
		<<if $PC.counter.birthOther > 0>>

				<<print num($PC.counter.birthOther)>> bab<<if $PC.counter.birthOther > 1>>ies<<else>>y<</if>> from sources you can't quite recall.

		<</if>>
		<<if $PC.counter.birthSelf > 0>>

				<<print num($PC.counter.birthSelf)>> bab<<if $PC.counter.birthSelf > 1>>ies<<else>>y<</if>> that <<if $PC.counter.birthSelf > 1>>were<<else>>was<</if>> literally all you.

		<</if>>
		<<if $PC.counter.birthLab > 0>>

				<<print $PC.counter.birthLab>> bab<<if $PC.counter.birthLab > 1>>ies<<else>>y<</if>> specially designed in the lab.

		<</if>>

<</if>>

	<<if $PC.counter.slavesKnockedUp > 0>>
		You've knocked up <<print num($PC.counter.slavesKnockedUp)>> fertile slave girl<<if $PC.counter.slavesKnockedUp > 1>>s<</if>><<if $PC.counter.slavesFathered > 0>> and fathered <<print num($PC.counter.slavesFathered)>> new slave<<if $PC.counter.slavesFathered > 1>>s<</if>><</if>> as an arcology owner so far.
	<<else>>
		<<if $PC.counter.slavesFathered > 0>>
			You've fathered <<print num($PC.counter.slavesFathered)>> new slave<<if $PC.counter.slavesFathered > 1>>s<</if>> as an arcology owner so far.
		<</if>>
	<</if>>

<</if>> /* vagina check */

<<if $PC.lactation == 1>>

Lactation

		Your breasts are laden with milk.
		<<if $PC.rules.lactation == "sell">>
			You are spending time with the penthouse milkers and making a quick ¤ from your efforts. [[Stop milking yourself|Manage Personal Affairs][$PC.rules.lactation = "none"]] | [[Stop using the milkers|Manage Personal Affairs][$PC.rules.lactation = "maintain"]]
		<<elseif $PC.rules.lactation == "maintain">>
			You are taking the time to keep yourself lactating. [[Stop milking yourself|Manage Personal Affairs][$PC.rules.lactation = "none"]]<<if $servantMilkers == 1>> | [[Use the penthouse milkers|Manage Personal Affairs][$PC.rules.lactation = "sell"]]<</if>>
		<<else>>
			You are currently letting nature run its course. [[Keep yourself milked|Manage Personal Affairs][$PC.rules.lactation = "maintain"]]<<if $servantMilkers == 1>> | [[Use the penthouse milkers|Manage Personal Affairs][$PC.rules.lactation = "sell"]]<</if>>
		<</if>>

<</if>>

Drugs

	<<if $PC.staminaPills == 1>>
		You are currently taking stamina enhancing pills in order to enjoy more slaves per week. [[Stop taking stamina enhancing drugs|Manage Personal Affairs][$PC.staminaPills = 0]]
	<<else>>
		You are not on any stamina enhancers. [[More stamina means more sex|Manage Personal Affairs][$PC.staminaPills = 1]]
	<</if>>

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

Elite Breeder Qualifications

		<<if ndef $activeStandard>>
			<<InitStandards>>
		<<else>>
			<<UpdateStandards>>
			<<BreedingStandards>>
		<</if>>

<</if>>


code:
:: Nueva Universidad de Libertad [nobr]

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

//Nueva Universidad de Libertad is a unique slave school operating in the Free Cities. Its business model is to offer as close to asexuality as a sex slave can possess. All students have their sex organs surgically removed at a very young age, before the onset of puberty. This is followed by numerous cosmetic surgery alternations, alongside a steady regimen of hormone blockers, throughout their education. The result is an utterly physically androgynous slave. <<if $NUL.schoolUpgrade != 0>>

You have endowed the school with advanced training courses in <<if $NUL.schoolUpgrade == 1>>entertainment and conversation<<else>>the various sexual arts<</if>>. As a major financial supporter of the institution, you also receive a discount on them.<</if>>//

Nueva Universidad de Libertad offers a fresh graduate for inspection via video call. The interview takes place in said graduate's dormitory. The room is sparse and utilitarian, and immaculately clean. Likely by design, it looks like the set from an old sci-fi movie.

<<set _marketResult = generateMarketSlave("NUL")>>
<<set $activeSlave = _marketResult.slave>>
<<print _marketResult.text>>
<<set _slaveCost = slaveCost($activeSlave)>>
<<if $NUL.schoolSale != 0>>
	<<set _slaveCost = Math.trunc(_slaveCost*0.5)>>
<<elseif $NUL.schoolUpgrade != 0>>
	<<set _slaveCost = Math.trunc(_slaveCost*0.8)>>
<</if>>
<<if $slavesSeen > $slaveMarketLimit>><<set _slaveCost += Math.trunc(_slaveCost*(($slavesSeen-$slaveMarketLimit)*0.1))>><</if>>

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

<<setLocalPronouns $activeSlave>>
<<buyingFromSchoolControls $NUL "slave" "slaves">>


code:
:: Organ Farm [nobr jump-to-safe jump-from-safe]

<<set $nextButton = "Back", $nextLink = "Manage Penthouse", $encyclopedia = "The Pharmaceutical Fab.", _PCSkillCheck = Math.min($upgradeMultiplierMedicine, $HackingSkillMultiplier)>>

The Organ Farm

		<<if $organFarmUpgrade > 2>>
			The organ farm is running smoothly. It can rapidly grow tailored organs for implantation in slaves. It can easily produce altered variants should you obtain the data necessary to create them.
		<<elseif $organFarmUpgrade > 1>>
			The organ farm is running smoothly. It can quickly grow tailored organs for implantation in slaves, though there will be side-effects. It can easily produce altered variants should you obtain the data necessary to create them.
		<<elseif ($organFarmUpgrade > 0)>>
			The organ farm is running smoothly. It can grow tailored organs for implantation in slaves. It can easily produce altered variants should you obtain the data necessary to create them.
		<</if>>

	<<if ($organFarmUpgrade < 3) && ($rep <= 10000*_PCSkillCheck)>>

			You lack the reputation to access experimental organ farm parts.

	<<elseif $dispensary == 0 && $organFarmUpgrade == 2>>

			An upgraded pharmaceutical fabricator is required by the perfected organ farm.

	<<elseif $dispensary == 0 && $organFarmUpgrade == 1>>

			A pharmaceutical fabricator is required to produce the chemicals for the accelerated organ farm.

	<<elseif $dispensaryUpgrade == 0 && $organFarmUpgrade == 2>>

			The pharmaceutical fabricator must be upgraded in order to produce the drugs required by the perfected organ farm.

	<<elseif $organs.length > 0>>

			The organ farm cannot be upgraded while it is use.

	<<elseif ($organFarmUpgrade == 2) && ($rep > 10000*_PCSkillCheck)>>

			[[Upgrade the organ farm to the cutting edge model|Organ Farm][cashX(forceNeg(150000*_PCSkillCheck), "capEx"), $organFarmUpgrade = 3]]
			Costs <<print cashFormat(150000*_PCSkillCheck)>>

			Will allow the organ farm to rapidly grow organs without risk to the implantee's health.

	<<elseif ($organFarmUpgrade == 1) && ($rep > 10000*_PCSkillCheck)>>

			[[Upgrade the organ farm with an experimental growth accelerator|Organ Farm][cashX(forceNeg(75000*_PCSkillCheck), "capEx"), $organFarmUpgrade = 2]]
			Costs <<print cashFormat(75000*_PCSkillCheck)>>

			Will allow the organ farm to quickly grow organs. Implanted organs may cause health issues.

	<</if>>

	<<if ($youngerOvaries != 1) && ($rep <= 10000*_PCSkillCheck)>>

			You lack the reputation to access designs for cloning fertile ovaries for menopausal slaves.

	<<elseif ($youngerOvaries != 1) && ($rep > 10000*_PCSkillCheck)>>

			[[Purchase designs for cloning fertile ovaries for menopausal slaves|Organ Farm][cashX(forceNeg(30000*_PCSkillCheck), "capEx"), $youngerOvaries = 1]]
			Costs <<print cashFormat(30000*_PCSkillCheck)>>

			Will allow the growth of younger, fertile ovaries for menopausal slaves. Restored fertility will only last for a couple years at most.

	<<elseif ($youngerOvaries > 0)>>

			The organ farm is capable of growing fertile ovaries for postmenopausal slaves.

	<</if>>

	<<if $asexualReproduction == 1>>

			The organ farm is capable of growing modified ovary pairs capable of self-fertilization.

	<</if>>

	<<if $seePreg != 0 && $seeBestiality == 1 && $experimental.animalOvaries == 1>>
		<<if $animalOvaries < 1>>

				You lack the required designs for cloning animal ovaries for slaves.

		<<else>>

				The organ farm is capable of growing animal ovaries for slaves.

		<</if>>

		<<if $animalTesticles < 1>>

				You lack the required designs for cloning animal testicles for slaves.

		<<else>>

				The organ farm is capable of growing animal testicles for slaves.

		<</if>>

		<<if $arcologies[0].FSGenderRadicalistResearch == 1>>
			<<if $animalMpreg < 1>>

					You lack the required designs for cloning animal anal wombs and ovaries for slaves.

			<<else>>

					The organ farm is capable of growing animal anal wombs and ovaries for slaves.

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

Organ Production

	<<= App.Medicine.OrganFarm.currentlyGrowing()>>

Future Societies Research

	<<if $seePreg != 0>>

		<<if $arcologies[0].FSGenderRadicalistDecoration == 100>>
			<<if ($arcologies[0].FSGenderRadicalistResearch == 0)>>
				<<if ($rep >= 10000*_PCSkillCheck)>>
					[[Fund research into developing male pregnancy methods|Organ Farm][cashX(forceNeg(50000*_PCSkillCheck), "capEx"),$arcologies[0].FSGenderRadicalistResearch = 1]]

						Costs <<print cashFormat(50000*_PCSkillCheck)>>.

Will allow cloning and production of anal uteri and ovaries.

				<<else>>
					You lack the reputation to access the research necessary to develop anal uteri and ovaries.

				<</if>>
			<<else>>
				The organ farm has been upgraded with schematics for modified uteri and ovaries.

			<</if>>
		<<elseif $arcologies[0].FSGenderRadicalistResearch == 1>>
			The organ farm has been upgraded with schematics for modified uteri and ovaries.
		<<else>>
			Gender Radicalist focused research unavailable.
		<</if>>

	<</if>>


code:
:: Ova Transplant Workaround [nobr]

<<set $nextButton = "Cancel", $receptrix = 0, _eligibility = 0>>

//You've decided which fertilized ovum is to be transplanted; now you must select whose womb will be its new home.//

__Select a slave to serve as the host__

<<for _otw = 0; _otw < $slaves.length; _otw++>>
	<<capture _otw>>
		<<if ($donatrix.ID != $slaves[_otw].ID && $slaves[_otw].ovaries > 0 || $slaves[_otw].mpreg > 0) && isSlaveAvailable($slaves[_otw]) && $slaves[_otw].preg >= 0 && $slaves[_otw].preg < $slaves[_otw].pregData.normalBirth/10 && $slaves[_otw].pregWeek >= 0 && $slaves[_otw].pubertyXX == 1 && $slaves[_otw].pregType < 12 && $slaves[_otw].bellyImplant == -1 && $slaves[_otw].broodmother == 0 && $slaves[_otw].inflation <= 2 && $slaves[_otw].physicalAge < 70>>
			<<set _name = SlaveFullName($slaves[_otw])>>

[[_name|Surrogacy][$receptrix = $slaves[_otw], cashX(forceNeg($surgeryCost*2), "slaveSurgery"), $surgeryType = "transplant"]] <<if $slaves[_otw].pregType >= 4>>//Using a slave carrying multiples is inadvisable//<</if>>
			<<set _eligibility = 1>>
		<</if>>
	<</capture>>
<</for>>
<<if (_eligibility == 0)>>

//You have no slaves capable of acting as a surrogate.//
<</if>>

<<if $PC.vagina != -1 && $donatrix.ID != -1 && $PC.preg >= 0 && $PC.preg < 4 && $PC.pregType < 8 && $PC.physicalAge < 70>>

	[[Use your own womb|Surrogacy][$receptrix = $PC, cashX(forceNeg($surgeryCost*2), "slaveSurgery"), $surgeryType = "transplant"]]
<</if>>


code:
:: P Bodyswap Reveal [nobr]

<<set $nextButton = "Continue", $nextLink = "Random Nonindividual Event">>

<<set $bodyswapAnnounced = 1>>
<<set $fcnn.push("...transferring consciousness from one body to another is morally wrong, but financially...")>>

You receive countless messages throughout the day; mostly worthless spam, several uninteresting business offers and the occasional enslavement request. This one catches your eye however. It's an offer from a top surgeon who has recently been experimenting with radical new surgeries. You've been loosely following their work for the last few weeks, ever since they successfully swapped the consciousness from one slave to another with minimal side effects, assuming they are kept on a special suppressant, and it seems they are now offering their work to anyone with a surgical suite capable of performing the surgery and willing to undertake the risk.

It's an interesting offer and your remote surgery will suffice should you want to change up your slaves' bodies more than any drug or implant ever could. You'll need a slave to swap them with, however. Perhaps one of the mindless slaves from the Flesh Heap will suit your needs, should you not wish to use your own stock.