code:
:: forceFeeding [nobr]

<<run clearSummaryCache($activeSlave)>>
<<setLocalPronouns $activeSlave>>

<<set _belly = bellyAdjective($activeSlave)>>
<<set $activeSlave.bellyAccessory = "none", _isDone = $activeSlave.inflation-1, _pregDiscovery = 0>>
You call $him over and ask $him to wait patiently for a moment.
<<if $activeSlave.fetish == "mindbroken">>
	$He shows no response as
<<else>>
	$He barely has time to ponder why you called for $him when
<</if>>
another slave carries in a pair of
<<if $activeSlave.inflation == 3>>
	gallon
<<elseif $activeSlave.inflation == 2>>
	two liter
<<else>>
	liter
<</if>>
buckets overflowing with slave food.
$He is going to eat it all and you're going to enjoy $him as $he does it.

<<if $activeSlave.inflation > 1 && $activeSlave.preg > 1>>
	$He looks nauseated by the sight of the food.
<<elseif $activeSlave.fetish == "submissive" && $activeSlave.devotion >= -20>>
	$He blushes at the thought of being forced to eat for another's amusement.
<<elseif $activeSlave.behavioralFlaw == "gluttonous" && $activeSlave.devotion >= -20>>
	$He's awestruck that you approve of $his gluttony enough to present $him a feast.
<<elseif $activeSlave.behavioralFlaw == "gluttonous">>
	$He's hesitant about your intent, but $he gives in as $his belly begins to growl at the
	<<if canSee($activeSlave)>>sight<<else>>smell<</if>> of $his waiting meal.
<<elseif $activeSlave.behavioralFlaw == "anorexic">>
	$He grimaces at the
	<<if canSee($activeSlave)>>sight<<else>>smell<</if>>
	of the food that will soon be going into $him. $He knows you won't let it come back up later.
<</if>>

<<if canWalk($activeSlave)>>
	You instruct $him to take a seat on your lap and open
	<<if $activeSlave.fetish == "mindbroken">>
		wide, but $he remains still and unresponsive.
		Talking to a broken mind is pointless.
	<<else>>
		wide.
	<</if>>
	<<if $activeSlave.devotion < -20>>
		Opposed to the thought of being forced to eat all that food, $he tries to step back,
		but you catch $him and pull $him into your lap, wrapping an arm
	<<elseif $activeSlave.fetish == "submissive">>
		$He meekly settles into your lap and shudders as $he feels your dominant hand wrap
	<<elseif $activeSlave.behavioralFlaw == "gluttonous">>
		$He wastes no time getting into position with $his mouth agape as you wrap your hand
	<<elseif $activeSlave.devotion <= 20>>
		$He complies without comment and settles $himself onto your lap, shuddering slightly as you wrap your arm
	<<elseif $activeSlave.devotion <= 50>>
		$He hesitates but eventually settles onto your lap as you wrap your arm
	<<else>>
		$He eagerly settles $himself onto your lap as you wrap your arm
	<</if>>
<<elseif ($activeSlave.amp == 1)>>
	<<if $activeSlave.devotion < -20>>
		$He's opposed to the thought of being forced to eat all that food, but as an amputee can do nothing about it.
		You heft $him onto your lap, wrapping an arm
	<<elseif $activeSlave.fetish == "submissive">>
		$He's opposed to the thought of being forced to eat all that food, but as an amputee can do nothing about it;
		not that $he'd go against your orders anyway.
		$He shudders with pleasure as you heft $him onto your lap, wrapping a dominant arm
	<<elseif $activeSlave.behavioralFlaw == "gluttonous">>
		$He can't wait to chow down, but as an amputee can do nothing to get in position.
		$He shudders with anticipation as you heft $him onto your lap, wrapping an arm
	<<elseif $activeSlave.devotion <= 20>>
		$He's hesitant of being forcefed, but as an amputee can do nothing about it.
		You heft $him onto your lap, wrapping your arm
	<<elseif $activeSlave.devotion <= 50>>
		$He's mildly hesitant of being forcefed, but as an amputee can do nothing about it.
		You heft $him onto your lap, wrapping your arm
	<<else>>
		$He devotedly
		<<if canSee($activeSlave)>>looks<<else>>smiles<</if>>
		at you heft $him onto your lap, wrapping your arm
	<</if>>
<<else>>
	You inform $him $he'll be taking a seat on your lap and opening wide for $his meal.
	<<if $activeSlave.devotion < -20>>
		$He's opposed to the thought of being forced to eat all that food, but since $he is immobile, can't escape.
		You heft $him onto your lap, wrapping an arm
	<<elseif $activeSlave.fetish == "submissive">>
		$He accepts your orders without question.
		$He shudders with pleasure as you heft $him onto your lap, wrapping a dominant arm
	<<elseif $activeSlave.behavioralFlaw == "gluttonous">>
		$He eagerly tries to get to your lap faster.
		$He shudders with anticipation as you heft $his onto your lap, wrapping your arm
	<<elseif $activeSlave.devotion <= 20>>
		$He complies without comment. You heft $him onto your lap, wrapping an arm
	<<elseif $activeSlave.devotion <= 50>>
		$He hesitates for a moment, before demonstrating acceptance.
		You heft $him onto your lap, wrapping an arm
	<<else>>
		$He squirms with excitement as you heft $him onto your lap, wrapping an arm
	<</if>>
<</if>>
<<if $activeSlave.fetish == "mindbroken">>
	You reach out and wrap you arms
<</if>>

around $his
<<if $activeSlave.weight > 190>>
	immensely soft
<<elseif $activeSlave.belly >= 150000>>
	_belly
<<elseif $activeSlave.weight > 160>>
	massive soft
<<elseif $activeSlave.weight > 130>>
	giant soft
<<elseif $activeSlave.belly >= 1500>>
	_belly
<<elseif $activeSlave.weight > 95>>
	huge soft
<<elseif $activeSlave.weight > 30>>
	big soft
<<elseif $activeSlave.weight > 10>>
	soft
<<elseif $activeSlave.muscles > 95>>
	chiseled
<<elseif $activeSlave.muscles > 30>>
	muscular
<<elseif $activeSlave.muscles > 5>>
	firm, ripped
<<else>>
	firm, flat
<</if>>
<<if $activeSlave.fetish == "mindbroken">>
	belly, pulling $him into your lap.
<<else>>
	belly.
<</if>>

You hold $him tight as you pull $his meal closer, dip in a cup and bring it to $his lips.
<<if $activeSlave.fetish == "mindbroken">>
	It takes little effort to get $him to gulp down the contents
<<elseif $activeSlave.devotion < -20>>
	$He struggles in your lap and refuses to open $his mouth.
	You drop the cup back into the bucket and lean in close.
	You quickly clip $his nose shut, eliciting a panicked thrash from the $girl.
	<<if $activeSlave.amp != 1>>
		You warn $him that $his punishment will be severe if $he comes that close to kicking over the buckets again.
	<</if>>
	With $his mouth forced open, you now have a clear avenue with which to pour the slave food into $his mouth.
	$He sputters as $he struggles to swallow with $his nose shut.
	After several cups, tears are streaming down $his face from the discomfort.
	Weeping, $he implores you to remove the clamp so that $he may drink like a good $girl.
<<elseif $activeSlave.fetish == "submissive">>
	$He submissively drinks the contents and readies $his lips for the next,
<<elseif $activeSlave.behavioralFlaw == "gluttonous">>
	$He hurriedly gulps down the contents and opens wide for the next,
<<elseif $activeSlave.devotion <= 20>>
	$He wordless drinks the contents,
<<elseif $activeSlave.devotion <= 50>>
	$He drinks the contents without hesitation,
<<else>>
	$He happily downs the contents,
<</if>>

<<if $activeSlave.fetish != "mindbroken" && $activeSlave.devotion < -20>>
	You readily comply and waste no time in bring cupful after cupful to $his lips.
<<else>>
	so you keep the cupfuls coming.
<</if>>

You can feel $his $activeSlave.skin belly swelling with $activeSlave.inflationType as it pushes out against your hand.
Once $he has downed two liters, you give $his bloated belly a slap, eliciting
<<if $activeSlave.fetish == "mindbroken">>
	a small burp from the broken slave
<<elseif $activeSlave.devotion < -20>>
	a shudder from the groaning slave
<<elseif $activeSlave.fetish == "submissive">>
	a subtle belch that the moaning slave quickly apologizes for,
<<elseif $activeSlave.behavioralFlaw == "gluttonous">>
	a subtle belch from the moaning slave
<<elseif $activeSlave.devotion <= 20>>
	a small shudder from the bloated slave
<<elseif $activeSlave.devotion <= 50>>
	a small hiccup that the overfilled slave immediately apologizes for,
<<else>>
	a cute burp from the bloated slave, followed by $his tongue running over $his lips
<</if>>
and a little jiggle from $his gut.

<<if $activeSlave.pregKnown == 0 && $activeSlave.preg > 3 && _isDone > 0>>
	As soon as the next helping enters $him you feel something is wrong. $He begins to heave,
	<<if $activeSlave.fetish != "mindbroken" && $activeSlave.devotion > 50>>
		struggling to keep down the slave food,
		however $he shortly expels the entirety of $his stomach across the floor.
	<<else>>
		shortly expelling the entirety of $his stomach
	<</if>>
	<<if $activeSlave.fetish == "mindbroken">>
		all over $himself and your lap.
	<<elseif $activeSlave.devotion < -20>>
		all over $himself and your lap.
	<<elseif $activeSlave.fetish == "submissive">>
		onto your floor.
	<<elseif $activeSlave.behavioralFlaw == "gluttonous">>
		all over $himself and your lap.
	<<elseif $activeSlave.devotion <= 20>>
		all over $himself and your lap.
	<<elseif $activeSlave.devotion <= 50>>
		across the floor.
	<</if>>
	It didn't seem to be willful,
	<<if $activeSlave.fetish == "mindbroken">>
		not that much is with $him, but is still unacceptable.
	<<elseif $activeSlave.devotion < -20>>
		given how pathetically $he is cowering from your wrath, but is completely unacceptable.
	<<elseif $activeSlave.fetish == "submissive">>
		given how $he is begging to clean it up with $his tongue, but is completely unacceptable.
	<<elseif $activeSlave.behavioralFlaw == "gluttonous">>
		given how $he is in tears over the loss of such a meal, but is completely unacceptable.
	<<elseif $activeSlave.devotion <= 20>>
		given how $he is begging you to try again, but is completely unacceptable.
	<<elseif $activeSlave.devotion <= 50>>
		given how disappointed $he is in failing you, but is completely unacceptable.
	<<else>>
		given how disappointed $he is in failing you, but is worrying. Such a good slave shouldn't do such bad things.
	<</if>>

	<<set _pregDiscovery = 1>>

<<else>>
	<<if _isDone > 0>>
		<<set _isDone-->>
		But $he isn't done
		<<if $activeSlave.fetish == "mindbroken">>
			yet.
		<<elseif $activeSlave.devotion < -20>>
			yet.
		<<elseif $activeSlave.fetish == "submissive">>
			yet, not that $he minds.
		<<elseif $activeSlave.behavioralFlaw == "gluttonous">>
			yet, much to $his delight.
		<<elseif $activeSlave.devotion <= 20>>
			yet, much to $his dismay.
		<<elseif $activeSlave.devotion <= 50>>
			yet, not that $he'd risk complaining.
		<<else>>
			yet, not that $he'd complain about fulfilling your desires.
		<</if>>
		More and more you feed $him; $his belly swelling ever larger and growing even heavier as $he
		<<if $activeSlave.fetish == "mindbroken">>
			guzzles
		<<elseif $activeSlave.devotion < -20>>
			painstakingly drinks
		<<elseif $activeSlave.fetish == "submissive">>
			diligently drinks
		<<elseif $activeSlave.behavioralFlaw == "gluttonous">>
			desperately sucks down
		<<elseif $activeSlave.devotion <= 20>>
			diligently drinks
		<<elseif $activeSlave.devotion <= 50>>
			diligently drinks
		<<else>>
			diligently drinks
		<</if>>
		the slave food.
		You reposition yourself to bet a better hold on $his bulging food baby.
		As $he passes the gallon mark, you give the swollen orb a good jiggle, eliciting
		<<if $activeSlave.fetish == "mindbroken">>
			a burp from the broken slave and tons of motion under your arm.
		<<elseif $activeSlave.devotion < -20>>
			a pained burp from the crying slave and tons of motion under your arm.
		<<elseif $activeSlave.fetish == "submissive">>
			a moan of arousal over your control and tons of motion under your arm.
		<<elseif $activeSlave.behavioralFlaw == "gluttonous">>
			a load hiccup, tons of motion under your arm, and a plea for more food.
		<<elseif $activeSlave.devotion <= 20>>
			a strained burp from the full slave and tons of motion under your arm.
		<<elseif $activeSlave.devotion <= 50>>
			a small hiccup, which the bloated slave immediately apologizes for, and tons of motion under your arm.
		<<else>>
			a small sigh followed by a request for more, from the bloated slave and tons of motion under your arm.
		<</if>>

	<</if>>

	<<if _isDone > 0>>
		<<if $activeSlave.fetish == "mindbroken">>
			$He squirms a little in discomfort,
			but $he still has another gallon to go, so you continue feeding food into $his mouth.
		<<elseif $activeSlave.devotion < -20>>
			$He squirms in discomfort, but $he still has another gallon to go and $he knows it.
			You remind $him of the ways you can torment $him in this state
			so you can continue feeding food into $his mouth without too much resistance.
		<<elseif $activeSlave.fetish == "submissive">>
			$He gets comfortable as $he still has another gallon to go and $he knows it.
			Gulping, $he opens $his mouth in preparation, eager to obey $his dom.
		<<elseif $activeSlave.behavioralFlaw == "gluttonous">>
			$He still has another gallon to go and $he knows it, so $he wastes no time in letting you know $he's ready.
		<<elseif $activeSlave.devotion <= 20>>
			$He begins to struggle when $he realizes $he still has another gallon to go.
			Gulping, $he opens up as another helping approaches $his mouth.
		<<elseif $activeSlave.devotion <= 50>>
			$He still has another gallon to go and $he knows it,
			so $he tries $his best to get comfortable and give $his belly room to grow.
			Gulping, $he diligently opens up for the next serving.
		<<else>>
			$He still has another gallon to go and $he knows it,
			but if <<= WrittenMaster()>> wants $him to be stuffed like a turkey, $he'll happily comply.
			$He wastes no time in opening up for your next helping.
		<</if>>

		You can feel the pressure growing in $his middle as it fills out under your arm more and more. $He
		<<if $activeSlave.fetish == "mindbroken">>
			mechanically downs every sip you give $him with no concern for $his own health.
		<<elseif $activeSlave.devotion < -20>>
			struggles to down every sip you give $him and pants heavily whenever $he gets the chance.
		<<elseif $activeSlave.fetish == "submissive">>
			struggles to down every sip you give $him and pants heavily when ever $he gets the chance.
		<<elseif $activeSlave.behavioralFlaw == "gluttonous">>
			forces down every sip you give $him and pants heavily when $his mouth isn't full.
		<<elseif $activeSlave.devotion <= 20>>
			struggles to down every sip you give $him and pants heavily when ever $he gets the chance.
		<<elseif $activeSlave.devotion <= 50>>
			obediently downs every gulp you give $him and pants heavily between helpings.
		<<else>>
			devotedly downs every gulp you give $him and catches $his breath, while being a tease, between helpings.
		<</if>>

		Once the last of the slave food is in $his stomach, you give the firm globe a
		<<if $activeSlave.devotion > 20>>gentle<</if>>
		slap, eliciting
		<<if $activeSlave.fetish == "mindbroken">>
			a large belch from the broken slave.
		<<elseif $activeSlave.devotion < -20>>
			a large belch and a glare from the straining slave.
		<<elseif $activeSlave.fetish == "submissive">>
			a large belch and a squeak of shame from the submissive slave.
		<<elseif $activeSlave.behavioralFlaw == "gluttonous">>
			a large belch and a content sigh from the bloated glutton.
		<<elseif $activeSlave.devotion <= 20>>
			a restrained gag from the overfilled slave.
		<<elseif $activeSlave.devotion <= 50>>
			a small hiccup from the overfilled slave, which $he immediately apologizes for.
		<<else>>
			a large belch and a playfully stuck out tongue from the stuffed slave.
		<</if>>
		$His belly is as taut as a drum; you
		<<if $activeSlave.devotion > 20>>
			rub it some more
		<<else>>
			pat it several more times
		<</if>>
		as you appreciate its size.

	<</if>>

	Knocking the empty buckets aside, you help $his
	<<if $activeSlave.fetish == "mindbroken">>
		hiccuping
	<<elseif $activeSlave.devotion < -20>>
		hiccuping
	<<elseif $activeSlave.fetish == "submissive">>
		hiccuping
	<<elseif $activeSlave.behavioralFlaw == "gluttonous">>
		hiccuping
	<<elseif $activeSlave.devotion <= 20>>
		heaving
	<<elseif $activeSlave.devotion <= 50>>
		hefty
	<<else>>
		hefty
	<</if>>
	bulk onto the couch to recover.

	<<if $activeSlave.fetish == "mindbroken">>
		After a few minutes of rest, and several glares from you when it appears $his meal might be coming back up,
	<<elseif $activeSlave.devotion < -20>>
		$He
		<<if canSee($activeSlave)>>looks in your eyes<<else>>faces you<</if>>,
		as though almost demanding answers.
		$He looks apprehensive about what you will do next.
		After a few minutes of rest, and several glares from you when it appears $his meal might be coming back up,
	<<elseif $activeSlave.fetish == "submissive">>
		$He
		<<if canSee($activeSlave)>>looks in your eyes<<else>>faces you<</if>>;
		a satisfied smile on $his face.
		$He almost looks sad that it's over, though $his gurgling middle says otherwise.
		After a few minutes of rest,
	<<elseif $activeSlave.behavioralFlaw == "gluttonous">>
		$He
		<<if canSee($activeSlave)>>looks in your eyes<<else>>faces you<</if>>;
		a satisfied smile on $his face.
		$He almost looks sad that it's over,
		and $his stomach audibly grumbles its displeasure that no more food is working down $his throat.
		After a few minutes of rest,
	<<elseif $activeSlave.devotion <= 20>>
		$He looks up at you quizzically, unsure about what you will do next.
		$His meal attempts to come back up on $him several times,
		but $he holds it down for fear of punishment should $he vomit.
		After a few minutes of rest,
	<<elseif $activeSlave.devotion <= 50>>
		$He sighs contently, hoping you'll give $him more attention.
		$His meal attempts to come back up on $him several times, but $he holds $he dutifully holds it down.
		After a few minutes of rest,
	<<else>>
		$He sighs contently, hoping you'll give $him more attention.
		$He is proud to let you know that you could fit even more in $him if you wanted.
		After a few minutes of rest,
	<</if>>
	you order $him to continue stuffing $himself to maintain $his current size until you say otherwise.
	<<if $activeSlave.fetish != "mindbroken" && $activeSlave.devotion >= -20 && $activeSlave.behavioralFlaw == "gluttonous">>
		$He squeals with glee at the order.
	<</if>>

	You spend $his remaining time in recovery
	<<if $activeSlave.fetish == "mindbroken">>
		teasing $his belly until you tire of $him and send $him on $his way.
	<<elseif $activeSlave.devotion < -20>>
		tormenting $his gurgling belly until you tire of $his sobbing and send $him on $his way.
	<<elseif $activeSlave.fetish == "submissive">>
		toying with $his belly until you tire of moaning and send $him on $his way.
	<<elseif $activeSlave.behavioralFlaw == "gluttonous">>
		massaging $his stuffed belly until you tire of $him and send $him on $his way.
	<<elseif $activeSlave.devotion <= 20>>
		tormenting $his gurgling belly until you tire of $his groaning and send $him on $his way.
	<<elseif $activeSlave.devotion <= 50>>
		lavishing attention on $his gurgling belly, much to $his delight, until you tire of $him and send $him on $his way.
	<<else>>
		playing with $his belly. $He joins you in the endeavor, happy that you are pleased with the
		<<if _doMe != 1>>
			outcome.
		<<else>>
			outcome, but $his
			<<if canSee($activeSlave)>>eyes tell<<else>>face tells<</if>>
			you $he wants more.
		<</if>>

		<<set _doMe = 1>>
		<<if canDoVaginal($activeSlave) && $activeSlave.vagina > 0>>
			<<set _sexType = "vaginal">>
		<<elseif canDoAnal($activeSlave) && $activeSlave.anus > 0>>
			<<set _sexType = "anal">>
		<<else>>
			<<set _sexType = "none">>
		<</if>>

		<<if _sexType != "none">>
			<<if $PC.belly >= 10000>>
				<<set _doMe = 0>>

				$His
				<<if _sexType == "vaginal">>pussy<<else>>ass<</if>>
				is under a lot of pressure from $his swollen middle and surely would feel amazing;
				it's even
				<<if _sexType == "vaginal">>sopping wet for<<else>>eagerly winking at<</if>>
				you.
				Unfortunately, no matter how hard you try,
				you can't find a position that will accommodate both $his food-stuffed stomach and your own gravid middle.
				Sighing, you settle for $his mouth instead.
			<<else>>
				<<if $PC.dick == 1>>
					You're already rock hard so you
				<<else>>
					<<if _sexType == "vaginal">>
						You don a strap-on and
					<<else>>
						You don a strap-on, lube up,
					<</if>>
				<</if>>
				pull $his legs apart,
				<<if _sexType == "vaginal">>
					revealing $his
					<<if $activeSlave.vaginaLube > 1>>
						sopping wet,
					<<elseif $activeSlave.vaginaLube > 0>>
						moist,
					<<else>>
						moist, relative to its usual dryness,
					<</if>>
					<<if $activeSlave.vagina == 10>>
						devastated
					<<elseif $activeSlave.vagina > 3>>
						cavernous
					<<elseif $activeSlave.vagina > 2>>
						loose
					<<elseif $activeSlave.vagina > 1>>
						used
					<<else>>
						tight
					<</if>>
					pussy.
				<<else>>
					and heft $his bulk up to reveal $his
					<<if $activeSlave.anus > 3>>
						gaping asshole.
					<<elseif $activeSlave.anus > 2>>
						loose anus.
					<<elseif $activeSlave.anus > 1>>
						used asshole.
					<<else>>
						tight asshole.
					<</if>>
				<</if>>

				$His belly is putting so much pressure on it that
				<<if _sexType == "vaginal">>
					<<set _looseness = $activeSlave.vagina>>
				<<else>>
					<<set _looseness = $activeSlave.anus>>
				<</if>>
				<<if _sexType == "vaginal" && _looseness >= 10>>
					you might be able to get some decent friction now.
					<<if $PC.dick == 1>>
						You can actually feel the sides of $his cunt as you slide in.
					<<else>>
						You slide in like it's still nothing.
					<</if>>
				<<elseif _looseness > 3>>
					you should be able to get a decent fuck out of it.
					<<if $PC.dick == 1>>
						You can't help but be amazed that you're getting some resistance as you slide in.
					<<else>>
						You slide in like it's nothing.
					<</if>>
				<<elseif _looseness > 2>>
					it won't feel so
					<<if _sexType == "vaginal">>
						worn out.
					<<else>>
						stretched.
					<</if>>
					<<if $PC.dick == 1>>
						$He gives some nice resistance as you squeeze into $him.
					<<else>>
						You squeeze in without problem.
					<</if>>
				<<elseif _looseness > 1>>
					it'll feel positively tight.
					<<if $PC.dick == 1>>
						$His
						<<if _sexType == "vaginal">>pussy<<else>>anus<</if>>
						feels great, you practically had to squeeze in.
					<<else>>
						You squeeze in with a little effort.
					<</if>>
				<<else>>
					you'll barely be able to fit it in.
					<<if $PC.dick == 1>>
						$His
						<<if _sexType == "vaginal">>vagina<<else>>rear<</if>>
						is so tight you can barely get it in,
						but with a little work, you manage to squeeze into its tight confines.
						$He's tighter than any
						<<if _sexType == "anal">>anal<</if>>
						virgin you've every fucked.
					<<else>>
						You have to
						<<if _sexType == "vaginal">>
							lube up some,
						<<else>>
							get a little rough,
						<</if>>
						but eventually you manage to slide into $his extremely tight
						<<if _sexType == "vaginal">>vagina<<else>>anus<</if>>.
					<</if>>
				<</if>>

				Once you're hilted, you bring your hands to $his distended belly,
				eager to feel it move as you fuck $him.
				<<if $activeSlave.amp != 1>>
					$His own join yours atop the taut dome.
				<</if>>
				Every thrust into the stuffed $desc forces $his full middle to leap back
				before slamming into your stomach alongside a moaning groan.
				As you pick up the pace, $he begins to buck against you, adding even more motion to $his body.
				It doesn't take long for you to reach your peak and after cumming, catch sight of $his own climax.
				Watching $his middle attempt to contract around the mass of slave food inside $him
				invigorates you for a second round.
				<<if $PC.balls == 3>>
					By the time you're done, $he's positively massive;
					your copious seed flows out of $him in spurts
					as $his body desperately struggles to relieve the extra pressure your huge balls pumped into $him.
				<</if>>
				Once you are spent,
				<<if $PC.balls == 3>>and $he's forced out all your cum,<</if>>
				you settle down beside $him and rest your head against $his belly;
				it almost feels like a water-filled pillow, albeit a little noisy.
				You and $activeSlave.slaveName doze off together for a much needed nap.
				You don't get much rest;
				$his stomach's constant groaning and burbling keeping you up, so you send $him on $his way.
				$He blows you one last kiss and eagerly looks forward to next time.

				<<if _sexType == "vaginal">>
					<<= VaginalVCheck(2)>>
				<<else>>
					<<= AnalVCheck(2)>>
				<</if>>
			<</if>>
		<<else>>
			<<set _doMe = 0>>
		<</if>>

		<<if _doMe == 0>>
			<<if $PC.dick == 1>>
				You crawl onto the couch above $his head and lower your erect cock straight into $his waiting mouth.
				$He eagerly sucks you off, $his belly wobbling with every thrust into $his throat.
				You cum fast and hard into $him, a product of being on the edge during $his feeding;
				<<if $activeSlave.behavioralFlaw == "gluttonous">>
					$he takes it like nothing and resumes sucking, $his gluttony showing no bounds.
				<<else>>
					$he swallows it promptly and keeps sucking. You'd swear $he was a glutton at this point.
				<</if>>
			<<else>>
				You crawl onto the couch above $his head and lower your needy pussy straight onto $his outstretched tongue.
				$He eagerly eats you out, $his belly wobbling along to $his vigorous licking.
				You cum fast and hard onto $him, a product of being on the edge during $his feeding;
				<<if $activeSlave.behavioralFlaw == "gluttonous">>
					$he laps it all up and resumes pleasuring you, $his gluttony showing no bounds.
				<<else>>
					$he laps it promptly and resumes pleasuring you. You'd swear $he was a glutton at this point.
				<</if>>
			<</if>>
			Once you are spent, you slide down beside $him and rest your head against $his belly;
			it almost feels like a water-filled pillow, albeit a little noisy.
			You and $activeSlave.slaveName doze off together for a much needed nap.
			You don't get much rest;
			$his stomach's constant groaning and burbling keeping you up, so you send $him on $his way.
			$He blows you one last kiss and eagerly looks forward to next time.
			<<set $activeSlave.oralCount += 2, $oralTotal += 2>>
		<</if>>
	<</if>>
<</if>>

<<if _pregDiscovery == 1>>
	Once you've managed to stop $him heaving and clean up, you get to the root of this mess.
	While most of the tests come back normal, one in particular catches your eye;
	@@.lime;$He is pregnant
		<<if $activeSlave.preg > 10>> and surprisingly far along<</if>>.@@
	<<set $activeSlave.inflation = 0,
		$activeSlave.inflationType = "none",
		$activeSlave.inflationMethod = 0,
		$activeSlave.pregKnown = 1>>
<<else>>
	<<if $activeSlave.inflation == 3>>
		<<if canWalk($activeSlave)>>
			$He gingerly leaves your office, massaging $his over-stuffed belly as $he goes.
		<<else>>
			$His belly wobbles heavily as $he is helped from your office.
		<</if>>
		Being filled so full @@.red;surely had negative effects@@ on $his health.
		<<set $activeSlave.health -= 10>>
	<<elseif $activeSlave.inflation == 2>>
		<<if canWalk($activeSlave)>>
			$He gingerly leaves your office, massaging $his stuffed belly as $he goes.
		<<else>>
			$His belly wobbles heavily as $he is helped from your office.
		<</if>>
	<<elseif $activeSlave.inflation == 1>>
		<<if canWalk($activeSlave)>>
			$He gingerly leaves your office, massaging $his distended belly as
			$he goes.
		<<else>>
			$His belly wobbles as $he is helped from your office.
		<</if>>
	<</if>>
	<<if $activeSlave.fetish == "mindbroken">>
		You question if the broken $girl understood your commands,
		but relish the idea of forcefeeding $him even more should $he fail you.
	<</if>>
<</if>>

<<run SetBellySize($activeSlave)>>


code:
:: Generate Child [nobr]

<<if $mom != 0>>
	<<set $mergeMom = 0>>
	<<set $mergeDad = 0>>
	<<for $m = 0; $m < $genePool.length; $m++>>
		<<if $mom.ID == $genePool[$m].ID>>
			<<set $mergeMom = clone($genePool[$m])>>
		<</if>>
		<<if $mom.pregSource == $genePool[$m].ID>>
			<<set $mergeDad = clone($genePool[$m])>>
		<</if>>
	<</for>>
	<<if $mom.pregSource == -1>>
		<<set $mergeDad = $PC>>
	<<elseif $mom.pregSource == 0 || $mom.pregSource < -1>>
		<<set $mergeDad = $mergeMom>>
	<</if>>
<</if>>

<<set $activeSlaveOneTimeMinAge = $targetAge>>
<<set $activeSlaveOneTimeMaxAge = $targetAge>>
<<set $one_time_age_overrides_pedo_mode = 1>>
<<set $ageAdjustOverride = 1>>

<<if $babyGender == 1>>
	<<include "Generate XX Slave">>
	<<if $PC.pregSource < 1>>
		<<set $activeSlave.slaveName = "Your daughter">>
		<<set $activeSlave.mother = -1>>
		<<if $PC.pregSource != -6>>
			<<set $activeSlave.father = $missingParent>>
			<<set $activeSlave.nationality = "Stateless">>
			<<set $activeSlave.eyeColor = either($PC.origEye, "brown", "blue", "brown", "green", "hazel", "green")>>
			<<set $activeSlave.hColor = either($PC.origHColor, "brown", "blonde", "black", "brown")>>
		<<else>>
			<<set $activeSlave.father = -1>>
			<<set $activeSlave.nationality = $PC.nationality>>
			<<set $activeSlave.eyeColor = $PC.origEye>>
			<<set $activeSlave.hColor = $PC.origHColor>>
		<</if>>
		<<if $PC.pregSource == -2 && $arcologies[0].FSSupremacist != "unset">>
			<<set $activeSlave.race = either($PC.origRace, $arcologies[0].FSSubjugationistRace, $arcologies[0].FSSubjugationistRace)>>
			<<if $PC.origRace != $arcologies[0].FSSubjugationistRace>>
				<<if random(1,100) > 50>>
					<<set $activeSlave.race = "mixed race">>
				<</if>>
			<</if>>
		<<else>>
			<<set $activeSlave.race = $PC.origRace>>
		<</if>>
		<<set $activeSlave.skin = $PC.origSkin>>
		<<set $activeSlave.pubicHColor = $activeSlave.hColor>>
		<<set $activeSlave.underArmHColor = $activeSlave.hColor>>
		<<set $activeSlave.sexualFlaw = "none">>
		<<set $activeSlave.sexualQuirk = "none">>
		<<set $activeSlave.behavioralFlaw = "none">>
		<<set $activeSlave.behavioralQuirk = "none">>
		<<set $activeSlave.fetish = "none">>
		<<if $PC.markings != "none" && random(1,100) > 50>>
			<<set $activeSlave.markings = $PC.markings>>
		<</if>>
	<<else>>
		<<for $m = 0; $m < $genePool.length; $m++>>
			<<if $PC.pregSource == $genePool[$m].ID>>
				<<set $mergeDad = $genePool[$m]>>
				<<break>>
			<</if>>
		<</for>>
		<<set $activeSlave.slaveName = String("Your and " + $mergeDad.slaveName + "'s daughter")>>
		<<set $activeSlave.mother = -1>>
		<<set $activeSlave.father = $mergeDad.ID>>
		<<if $PC.nationality == $mergeDad.nationality>>
			<<set $activeSlave.nationality = $mergeDad.nationality>>
		<<else>>
			<<set $activeSlave.nationality = "Stateless">>
		<</if>>
		<<if $PC.origRace == $mergeDad.origRace>>
			<<set $activeSlave.race = $mergeDad.origRace>>
		<<elseif random(1,4) == 4>>
			<<if def $mergeDad.origRace>>
				<<set $activeSlave.race = either($PC.origRace, $mergeDad.origRace)>>
			<<else>>
				<<set $activeSlave.race = $PC.origRace>>
			<</if>>
		<<else>>
			<<set $activeSlave.race = "mixed race">>
		<</if>>
		<<if $PC.origSkin == $mergeDad.origSkin>>
			<<set $activeSlave.skin = $PC.origSkin>>
		<<else>>
			<<GenSkinTone $PC $mergeDad>>
		<</if>>
		<<if $PC.origEye == $mergeDad.origEye>>
			<<set $activeSlave.eyeColor = $PC.origEye>>
		<<elseif $PC.origEye == "red" || $PC.origEye == "pale red" || $PC.origEye == "light red" || $PC.origEye == "pale gray">>
			<<set $activeSlave.eyeColor = $mergeDad.origEye>>
		<<elseif $mergeDad.origEye == "red" || $mergeDad.origEye == "pale red" || $mergeDad.origEye == "light red" || $mergeDad.origEye == "pale gray" || $mergeDad.origEye == "milky white">>
			<<set $activeSlave.eyeColor = $PC.origEye>>
		<<elseif $PC.origEye == "blue">>
			<<if random(1,4) == 2>>
				<<set $activeSlave.eyeColor = $PC.origEye>>
			<<else>>
				<<set $activeSlave.eyeColor = $mergeDad.origEye>>
			<</if>>
		<<elseif $mergeDad.origEye == "blue">>
			<<if random(1,4) == 2>>
				<<set $activeSlave.eyeColor = $mergeDad.origEye>>
			<<else>>
				<<set $activeSlave.eyeColor = $PC.origEye>>
			<</if>>
		<<else>>
			<<set $activeSlave.eyeColor = either($PC.origEye, $mergeDad.origEye)>>
		<</if>>
		<<if $PC.origHColor == $mergeDad.origHColor>>
			<<set $activeSlave.hColor = $PC.origHColor>>
		<<elseif $PC.origHColor == "black">>
			<<set $activeSlave.hColor = $PC.origHColor>>
		<<elseif $mergeDad.origHColor == "black">>
			<<set $activeSlave.hColor = $mergeDad.origHColor>>
		<<elseif $PC.origHColor == "brown">>
			<<set $activeSlave.hColor = $PC.origHColor>>
		<<elseif $mergeDad.origHColor == "brown">>
			<<set $activeSlave.hColor = $mergeDad.origHColor>>
		<<elseif $PC.origHColor == "white">>
			<<if random(1,100) == 69>>
				<<set $activeSlave.hColor = $PC.origHColor>>
			<<else>>
				<<set $activeSlave.hColor = $mergeDad.origHColor>>
			<</if>>
		<<elseif $mergeDad.origHColor == "white">>
			<<if random(1,100) == 69>>
				<<set $activeSlave.hColor = $PC.origHColor>>
			<<else>>
				<<set $activeSlave.hColor = $mergeDad.origHColor>>
			<</if>>
		<<else>>
			<<set $activeSlave.hColor = either($PC.origHColor, $mergeDad.origHColor)>>
		<</if>>
		<<set $activeSlave.pubicHColor = $activeSlave.hColor>>
		<<set $activeSlave.underArmHColor = $activeSlave.hColor>>
		<<if $mergeDad.underArmHStyle == "hairless">>
			<<if random(1,5) == 3>>
				<<set $activeSlave.underArmHStyle = "hairless">>
			<</if>>
		<</if>>
		<<if $mergeDad.pubicHStyle == "hairless">>
			<<if random(1,5) == 3>>
				<<set $activeSlave.pubicHStyle = "hairless">>
			<</if>>
		<</if>>
		<<set $activeSlave.sexualFlaw = either("none", "none", "none", "none", "none", $mergeDad.sexualFlaw)>>
		<<set $activeSlave.sexualQuirk = either("none", "none", "none", "none", "none", $mergeDad.sexualFlaw)>>
		<<set $activeSlave.behavioralFlaw = either("none", "none", "none", "none", "none", $mergeDad.sexualFlaw)>>
		<<set $activeSlave.behavioralQuirk = either("none", "none", "none", "none", "none", $mergeDad.sexualFlaw)>>
		<<set $activeSlave.fetish = either("none", "none", "none", "none", "none", $mergeDad.fetish)>>
		<<if $activeSlave.markings == "none">>
			<<set $activeSlave.markings = either($PC.markings, $mergeDad.markings, "none", "none")>>
		<</if>>
	<</if>>
	<<set $activeSlave.slaveSurname = $PC.surname>>
<<elseif $babyGender == 2>>
	<<include "Generate XY Slave">>
	<<if $PC.pregSource < 1>>
		<<set $activeSlave.slaveName = "Your son">>
		<<set $activeSlave.mother = -1>>
		<<if $PC.pregSource != -6>>
			<<set $activeSlave.father = $missingParent>>
			<<set $activeSlave.nationality = "Stateless">>
			<<set $activeSlave.eyeColor = either($PC.origEye, "brown", "blue", "brown", "green", "hazel", "green")>>
			<<set $activeSlave.hColor = either($PC.origHColor, "brown", "blonde", "black", "brown")>>
		<<else>>
			<<set $activeSlave.father = -1>>
			<<set $activeSlave.nationality = $PC.nationality>>
			<<set $activeSlave.eyeColor = $PC.origEye>>
			<<set $activeSlave.hColor = $PC.origHColor>>
		<</if>>
		<<if $PC.pregSource == -2 && $arcologies[0].FSSupremacist != "unset">>
			<<set $activeSlave.race = either($PC.origRace, $arcologies[0].FSSubjugationistRace, $arcologies[0].FSSubjugationistRace)>>
			<<if $PC.origRace != $arcologies[0].FSSubjugationistRace>>
				<<if random(1,100) > 50>>
					<<set $activeSlave.race = "mixed race">>
				<</if>>
			<</if>>
		<<else>>
			<<set $activeSlave.race = $PC.origRace>>
		<</if>>
		<<set $activeSlave.skin = $PC.origSkin>>
		<<set $activeSlave.pubicHColor = $PC.origHColor>>
		<<set $activeSlave.underArmHColor = $PC.origHColor>>
		<<set $activeSlave.sexualFlaw = "none">>
		<<set $activeSlave.sexualQuirk = "none">>
		<<set $activeSlave.behavioralFlaw = "none">>
		<<set $activeSlave.behavioralQuirk = "none">>
		<<set $activeSlave.fetish = "none">>
		<<if $PC.markings != "none" && random(1,100) > 50>>
			<<set $activeSlave.markings = $PC.markings>>
		<</if>>
	<<else>>
		<<for $m = 0; $m < $genePool.length; $m++>>
			<<if $PC.pregSource == $genePool[$m].ID>>
				<<set $mergeDad = $genePool[$m]>>
				<<break>>
			<</if>>
		<</for>>
		<<set $activeSlave.slaveName = String("Your and " + $mergeDad.slaveName + "'s son")>>
		<<set $activeSlave.mother = -1>>
		<<set $activeSlave.father = $mergeDad.ID>>
		<<if $PC.nationality == $mergeDad.nationality>>
			<<set $activeSlave.nationality = $mergeDad.nationality>>
		<<else>>
			<<set $activeSlave.nationality = "Stateless">>
		<</if>>
		<<if $PC.origRace == $mergeDad.origRace>>
			<<set $activeSlave.race = $mergeDad.origRace>>
		<<elseif random(1,4) == 4>>
			<<if def $mergeDad.origRace>>
				<<set $activeSlave.race = either($PC.origRace, $mergeDad.origRace)>>
			<<else>>
				<<set $activeSlave.race = $PC.origRace>>
			<</if>>
		<<else>>
			<<set $activeSlave.race = "mixed race">>
		<</if>>
		<<if $PC.origSkin == $mergeDad.origSkin>>
			<<set $activeSlave.skin = $PC.origSkin>>
		<<else>>
			<<GenSkinTone $PC $mergeDad>>
		<</if>>
		<<if $PC.origEye == $mergeDad.origEye>>
			<<set $activeSlave.eyeColor = $PC.origEye>>
		<<elseif $PC.origEye == "red" || $PC.origEye == "pale red" || $PC.origEye == "light red" || $PC.origEye == "pale gray">>
			<<set $activeSlave.eyeColor = $mergeDad.origEye>>
		<<elseif $mergeDad.origEye == "red" || $mergeDad.origEye == "pale red" || $mergeDad.origEye == "light red" || $mergeDad.origEye == "pale gray" || $mergeDad.origEye == "milky white">>
			<<set $activeSlave.eyeColor = $PC.origEye>>
		<<elseif $PC.origEye == "blue">>
			<<if random(1,4) == 2>>
				<<set $activeSlave.eyeColor = $PC.origEye>>
			<<else>>
				<<set $activeSlave.eyeColor = $mergeDad.origEye>>
			<</if>>
		<<elseif $mergeDad.origEye == "blue">>
			<<if random(1,4) == 2>>
				<<set $activeSlave.eyeColor = $mergeDad.origEye>>
			<<else>>
				<<set $activeSlave.eyeColor = $PC.origEye>>
			<</if>>
		<<else>>
			<<set $activeSlave.eyeColor = either($PC.origEye, $mergeDad.origEye)>>
		<</if>>
		<<if $PC.origHColor == $mergeDad.origHColor>>
			<<set $activeSlave.hColor = $PC.origHColor>>
		<<elseif $PC.origHColor == "black">>
			<<set $activeSlave.hColor = $PC.origHColor>>
		<<elseif $mergeDad.origHColor == "black">>
			<<set $activeSlave.hColor = $mergeDad.origHColor>>
		<<elseif $PC.origHColor == "brown">>
			<<set $activeSlave.hColor = $PC.origHColor>>
		<<elseif $mergeDad.origHColor == "brown">>
			<<set $activeSlave.hColor = $mergeDad.origHColor>>
		<<elseif $PC.origHColor == "white">>
			<<if random(1,100) == 69>>
				<<set $activeSlave.hColor = $PC.origHColor>>
			<<else>>
				<<set $activeSlave.hColor = $mergeDad.origHColor>>
			<</if>>
		<<elseif $mergeDad.origHColor == "white">>
			<<if random(1,100) == 69>>
				<<set $activeSlave.hColor = $PC.origHColor>>
			<<else>>
				<<set $activeSlave.hColor = $mergeDad.origHColor>>
			<</if>>
		<<else>>
			<<set $activeSlave.hColor = either($PC.origHColor, $mergeDad.origHColor)>>
		<</if>>
		<<if $mergeDad.underArmHStyle == "hairless">>
			<<if random(1,5) == 3>>
				<<set $activeSlave.underArmHStyle = "hairless">>
			<</if>>
		<</if>>
		<<if $mergeDad.pubicHStyle == "hairless">>
			<<if random(1,5) == 3>>
				<<set $activeSlave.pubicHStyle = "hairless">>
			<</if>>
		<</if>>
		<<set $activeSlave.pubicHColor = $activeSlave.hColor>>
		<<set $activeSlave.underArmHColor = $activeSlave.hColor>>
		<<set $activeSlave.sexualFlaw = either("none", "none", "none", "none", "none", $mergeDad.sexualFlaw)>>
		<<set $activeSlave.sexualQuirk = either("none", "none", "none", "none", "none", $mergeDad.sexualQuirk)>>
		<<set $activeSlave.behavioralFlaw = either("none", "none", "none", "none", "none", $mergeDad.behavioralFlaw)>>
		<<set $activeSlave.behavioralQuirk = either("none", "none", "none", "none", "none", $mergeDad.behavioralQuirk)>>
		<<set $activeSlave.fetish = either("none", "none", "none", "none", "none", $mergeDad.fetish)>>
		<<if $activeSlave.markings == "none">>
			<<set $activeSlave.markings = either($PC.markings, $mergeDad.markings, "none", "none")>>
		<</if>>
	<</if>>
	<<set $activeSlave.slaveSurname = $PC.surname>>
<<else>>
	<<if random(0,100) >= $seeDicks>>
		<<include "Generate XX Slave">>
	<<else>>
		<<include "Generate XY Slave">>
	<</if>>
	<<set $activeSlave.mother = $mergeMom.ID>>
	<<if $mom.pregSource > 0>>
		<<set _currentFather = getSlave($mom.pregSource)>>
		<<set $activeSlave.father = $mergeDad.ID>>
		<<set $activeSlave.slaveName = String($mom.slaveName + " and " + _currentFather.slaveName + "'s child")>>
		<<if def $mom.slaveSurname && $mom.slaveSurname != "">><<set $activeSlave.slaveSurname = $mom.slaveSurname>><<elseif def _currentFather.slaveSurname && _currentFather.slaveSurname != "">><<set $activeSlave.slaveSurname = _currentFather.slaveSurname>><<else>><<set $activeSlave.slaveSurname = 0>><</if>>
	<<elseif $mom.pregSource == -1>>
		<<set $activeSlave.father = -1>>
		<<set $activeSlave.slaveName = String($mom.slaveName + " and my child")>>
		<<set $activeSlave.slaveSurname = $PC.surname>>
	<<else>>
		<<set $activeSlave.father = $missingParent>>
		<<set $activeSlave.slaveName = String($mom.slaveName + "'s slut child")>>
		<<if def $mom.slaveSurname && $mom.slaveSurname != "">><<set $activeSlave.slaveSurname = $mom.slaveSurname>><<else>><<set $activeSlave.slaveSurname = 0>><</if>>
	<</if>>
	<<if $mergeMom.nationality == $mergeDad.nationality>>
		<<set $activeSlave.nationality = $mergeDad.nationality>>
	<<else>>
		<<set $activeSlave.nationality = "Stateless">>
	<</if>>
	<<if $mergeMom.origRace == $mergeDad.origRace>>
		<<set $activeSlave.race = $mergeDad.origRace>>
	<<elseif random(1,4) == 4>>
		<<if def $mergeDad.origRace>>
			<<set $activeSlave.race = either($mergeMom.origRace, $mergeDad.origRace)>>
		<<else>>
			<<set $activeSlave.race = $mergeMom.origRace>>
		<</if>>
	<<else>>
		<<set $activeSlave.race = "mixed race">>
	<</if>>
	<<if $mom.pregSource == -2 && $arcologies[0].FSSupremacist != "unset">>
		<<set $activeSlave.race = either($mergeMom.origRace, $arcologies[0].FSSubjugationistRace, $arcologies[0].FSSubjugationistRace)>>
		<<if $mergeMom.origRace != $arcologies[0].FSSubjugationistRace>>
			<<if random(1,100) > 50>>
				<<set $activeSlave.race = "mixed race">>
			<</if>>
		<</if>>
	<</if>>
	<<if $mergeMom.origSkin == $mergeDad.origSkin>>
		<<set $activeSlave.skin = $mergeMom.origSkin>>
	<<else>>
		<<GenSkinTone $mergeMom $mergeDad>>
	<</if>>
	<<if $mergeMom.origEye == $mergeDad.origEye>>
		<<set $activeSlave.eyeColor = $mergeMom.origEye>>
	<<elseif $mergeMom.origEye == "red" || $mergeMom.origEye == "pale red" || $mergeMom.origEye == "light red" || $mergeMom.origEye == "pale gray" || $mergeMom.origEye == "milky white">>
		<<set $activeSlave.eyeColor = $mergeDad.origEye>>
	<<elseif $mergeDad.origEye == "red" || $mergeDad.origEye == "pale red" || $mergeDad.origEye == "light red" || $mergeDad.origEye == "pale gray" || $mergeDad.origEye == "milky white">>
		<<set $activeSlave.eyeColor = $mergeMom.origEye>>
	<<elseif $mergeMom.origEye == "blue">>
		<<if random(1,4) == 2>>
			<<set $activeSlave.eyeColor = $mergeMom.origEye>>
		<<else>>
			<<set $activeSlave.eyeColor = $mergeDad.origEye>>
		<</if>>
	<<elseif $mergeDad.origEye == "blue">>
		<<if random(1,4) == 2>>
			<<set $activeSlave.eyeColor = $mergeDad.origEye>>
		<<else>>
			<<set $activeSlave.eyeColor = $mergeMom.origEye>>
		<</if>>
	<<else>>
		<<set $activeSlave.eyeColor = either($mergeMom.origEye, $mergeDad.origEye)>>
	<</if>>
	<<if $mom.pregSource == -2 || $mom.pregSource == 0>>
		<<set $activeSlave.eyeColor = either($mergeMom.origEye, "brown", "blue", "brown", "green", "hazel", "green")>>
	<</if>>
	<<if $mergeMom.origHColor == $mergeDad.origHColor>>
		<<set $activeSlave.hColor = $mergeMom.origHColor>>
	<<elseif $mergeMom.origHColor == "white">>
		<<if random(1,100) == 69>>
			<<set $activeSlave.hColor = $mergeMom.origHColor>>
		<<else>>
			<<set $activeSlave.hColor = $mergeDad.origHColor>>
		<</if>>
	<<elseif $mergeDad.origHColor == "white">>
		<<if random(1,100) == 69>>
			<<set $activeSlave.hColor = $mergeDad.origHColor>>
		<<else>>
			<<set $activeSlave.hColor = $mergeMom.origHColor>>
		<</if>>
	<<elseif $mergeMom.origHColor == "black">>
		<<set $activeSlave.hColor = either($mergeMom.origHColor, $mergeMom.origHColor, $mergeMom.origHColor, $mergeMom.origHColor, $mergeMom.origHColor, $mergeMom.origHColor, $mergeMom.origHColor, $mergeDad.origHColor)>>
	<<elseif $mergeDad.origHColor == "black">>
		<<set $activeSlave.hColor = either($mergeDad.origHColor, $mergeDad.origHColor, $mergeDad.origHColor, $mergeDad.origHColor, $mergeDad.origHColor, $mergeDad.origHColor, $mergeDad.origHColor, $mergeMom.origHColor)>>
	<<elseif $mergeMom.origHColor == "brown">>
		<<set $activeSlave.hColor = either($mergeMom.origHColor, $mergeMom.origHColor, $mergeMom.origHColor, $mergeDad.origHColor)>>
	<<elseif $mergeDad.origHColor == "brown">>
		<<set $activeSlave.hColor = either($mergeDad.origHColor, $mergeDad.origHColor, $mergeDad.origHColor, $mergeMom.origHColor)>>
	<<else>>
		<<set $activeSlave.hColor = either($mergeMom.origHColor, $mergeDad.origHColor)>>
	<</if>>
	<<if $mom.pregSource == -2 || $mom.pregSource == 0>>
		<<set $activeSlave.hColor = either($mergeMom.origHColor, "brown", "blonde", "black", "brown", "black", "brown", "black")>>
	<</if>>
	<<if $mergeDad.underArmHStyle == "hairless" && $mergeMom.underArmHStyle == "hairless">>
		<<set $activeSlave.underArmHStyle = "hairless">>
	<<elseif $mergeDad.underArmHStyle == "hairless" || $mergeMom.underArmHStyle == "hairless">>
		<<if random(1,5) == 3>>
			<<set $activeSlave.underArmHStyle = "hairless">>
		<</if>>
	<</if>>
	<<if $mergeDad.pubicHStyle == "hairless" && $mergeMom.pubicHStyle == "hairless">>
		<<set $activeSlave.pubicHStyle = "hairless">>
	<<elseif $mergeDad.pubicHStyle == "hairless" || $mergeMom.pubicHStyle == "hairless">>
		<<if random(1,5) == 3>>
			<<set $activeSlave.pubicHStyle = "hairless">>
		<</if>>
	<</if>>
	<<set $activeSlave.pubicHColor = $activeSlave.hColor>>
	<<set $activeSlave.underArmHColor = $activeSlave.hColor>>
	<<if $mom.prematureBirth != 1>>
		<<set $activeSlave.sexualFlaw = either($mergeMom.sexualFlaw, "none", "none", "none", "none", "none", $mergeDad.sexualFlaw)>>
		<<set $activeSlave.sexualQuirk = either($mergeMom.sexualQuirk, "none", "none", "none", "none", "none", $mergeDad.sexualQuirk)>>
		<<set $activeSlave.behavioralFlaw = either($mergeMom.behavioralFlaw, "none", "none", "none", "none", "none", $mergeDad.behavioralFlaw)>>
		<<set $activeSlave.behavioralQuirk = either($mergeMom.behavioralQuirk, "none", "none", "none", "none", "none", $mergeDad.behavioralQuirk)>>
	<<else>>
		<<set $activeSlave.sexualFlaw = either($mergeMom.sexualFlaw, "none", $mergeDad.sexualFlaw)>>
		<<set $activeSlave.behavioralFlaw = either($mergeMom.behavioralFlaw, "none", $mergeDad.behavioralFlaw)>>
	<</if>>
	<<set $activeSlave.fetish = either("none", "none", "none", "none", "none", $mergeDad.fetish, $mergeMom.fetish)>>
	<<if $activeSlave.markings == "none">>
		<<set $activeSlave.markings = either($mergeMom.markings, $mergeDad.markings, "none", "none")>>
	<</if>>
	<<if $mom.addict > 0>>
		<<set $activeSlave.addict = Math.trunc($mom.addict/2)>>
	<</if>>
<</if>>

<<set $activeSlave.actualAge = 0>>
<<set $activeSlave.birthWeek = 0>>
<<set $activeSlave.weight = -100>>
<<set $activeSlave.muscles = -100>>
<<set $activeSlave.boobs = 0>>
<<set $activeSlave.butt = 0>>
<<set $activeSlave.energy = 0>>
<<set $activeSlave.anus = 0>>
<<set $activeSlave.chem = 990>>
<<if $activeSlave.vagina > -1>>
	<<set $activeSlave.vagina = 0>>
<</if>>
<<if $activeSlave.dick > 0>>
	<<set $activeSlave.foreskin = 1>>
	<<set $activeSlave.balls = 1>>
	<<set $activeSlave.scrotum = 1>>
<</if>>
<<if $activeSlave.fetish != "none">>
	<<set $activeSlave.fetishStrength = 20>>
<</if>>

/* Int and facial attractiveness changes to bolster eugenics and add negatives for excessive inbreeding */
<<if $activeSlave.mother == -1 && $PC.pregSource == -1>>
	<<set $activeSlave.face = random(90,100)>>
	<<set $activeSlave.intelligence = random(90,100)>>
<<elseif $activeSlave.mother == -1>>
	<<if $PC.pregSource > 0>>
		<<if $mergeDad.face < $PC.face>>
			<<set $activeSlave.face = random($mergeDad.face, $PC.face)>>
		<<else>>
			<<set $activeSlave.face = random(0,$PC.face)>>
		<</if>>
		<<if $activeSlave.face < 40>>
			<<set $activeSlave.face += random(5,20)>>
		<</if>>
		<<if $mergeDad.intelligence < $PC.intelligence>>
			<<set $activeSlave.intelligence = random($mergeDad.intelligence, $PC.intelligence)>>
		<<else>>
			<<set $activeSlave.intelligence = $PC.intelligence>>
		<</if>>
		<<if $activeSlave.intelligence <= 50>>
			<<set $activeSlave.intelligence += 30>>
		<</if>>
	<<else>>
		<<set $activeSlave.face =random(20,100)>>
		<<set $activeSlave.intelligence = random(50,100)>>
	<</if>>
<<elseif $activeSlave.father == -1>>
	<<if $PC.face > $mergeMom.face>>
		<<set $activeSlave.face = random($mergeMom.face, $PC.face)>>
	<<else>>
		<<set $activeSlave.face = either($mergeMom.face-10, $mergeMom.face+10)>>
	<</if>>
	<<if $PC.intelligence > $mergeMom.intelligence>>
		<<set $activeSlave.intelligence = random($mergeMom.intelligence, $PC.intelligence)>>
	<<else>>
		<<set $activeSlave.intelligence = $mergeMom.intelligence>>
	<</if>>
	<<if $mom.breedingMark == 1>>
		<<if $activeSlave.face < 60>>
			<<set $activeSlave.face = random(60,100)>>
		<</if>>
		<<if $activeSlave.intelligence <= 50>>
			<<set $activeSlave.intelligence = either(60,100)>>
		<</if>>
	<<elseif $inbreeding == 1>>
		<<if $activeSlave.face > -100 && random(1,100) > 60>>
			<<set $activeSlave.face -= random(2,20)>>
		<</if>>
		<<if $activeSlave.intelligence >= -95 && random(1,100) < 40>>
			<<set $activeSlave.intelligence -= random(1,10)>>
			<<if $activeSlave.intelligence >= -95 && random(1,100) < 20>>
				<<set $activeSlave.intelligence -= random(1,5)>>
			<</if>>
		<</if>>
	<</if>>
	<<if $mom.prematureBirth == 1>>
		<<set $activeSlave.intelligence -= random(0,10)>>
	<</if>>
<<else>>
	<<if $mergeDad.face < $mergeMom.face>>
		<<set $activeSlave.face = random($mergeDad.face, $mergeMom.face)>>
	<<elseif $mergeDad.face > $mergeMom.face>>
		<<set $activeSlave.face = random($mergeMom.face, $mergeDad.face)>>
	<<else>>
		<<set $activeSlave.face = $mergeMom.face>>
	<</if>>
	<<if $mergeDad.intelligence < $mergeMom.intelligence>>
		<<set $activeSlave.intelligence = random($mergeDad.intelligence, $mergeMom.intelligence)>>
	<<elseif $mergeDad.intelligence > $mergeMom.intelligence>>
		<<set $activeSlave.intelligence = random($mergeMom.intelligence, $mergeDad.intelligence)>>
	<<else>>
		<<set $activeSlave.intelligence = $mergeMom.intelligence>>
	<</if>>
	<<if $inbreeding == 1>>
		<<if $activeSlave.face > -100 && random(1,100) < 50>>
			<<set $activeSlave.face -= random(5,20)>>
		<</if>>
		<<if $activeSlave.intelligence >= -95 && random(1,100) < 50>>
			<<set $activeSlave.intelligence -= random(1,15)>>
			<<if $activeSlave.intelligence >= -95 && random(1,100) < 30>>
				<<set $activeSlave.intelligence -= random(1,15)>>
			<</if>>
		<</if>>
	<</if>>
	<<if $mom.prematureBirth == 1>>
		<<set $activeSlave.intelligence -= random(0,10)>>
	<</if>>
<</if>>

<<if $mom.prematureBirth == 1>><<set $activeSlave.premature = 1>><</if>>
<<set $activeSlave.origRace = $activeSlave.race>>
<<set $activeSlave.areolaePiercing = 0>>
<<set $activeSlave.face = Math.clamp($activeSlave.face, -100, 100)>>
<<set $activeSlave.intelligence = Math.clamp($activeSlave.intelligence, -100, 100)>>
<<set $activeSlave.corsetPiercing = 0>>
<<set $activeSlave.boobsImplant = 0>>
<<set $activeSlave.boobsImplantType = 0>>
<<set $activeSlave.nipplesPiercing = 0>>
<<set $activeSlave.areolaePiercing = 0>>
<<set $activeSlave.lactation = 0>>
<<set $activeSlave.hipsImplant = 0>>
<<set $activeSlave.buttImplant = 0>>
<<set $activeSlave.buttImplantType = 0>>
<<set $activeSlave.lipsImplant = 0>>
<<set $activeSlave.lipsPiercing = 0>>
<<set $activeSlave.tonguePiercing = 0>>
<<set $activeSlave.vaginaPiercing = 0>>
<<set $activeSlave.preg = 0>>
<<set $activeSlave.pregType = 0>>
<<set $activeSlave.pregKnown = 0>>
<<set $activeSlave.belly = 0>>
<<set $activeSlave.bellyPreg = 0>>
<<set $activeSlave.bellyFluid = 0>>
<<set $activeSlave.bellyImplant = -1>>
<<set $activeSlave.clitPiercing = 0>>
<<set $activeSlave.dickPiercing = 0>>
<<set $activeSlave.makeup = 0>>
<<set $activeSlave.nails = 0>>
<<set $activeSlave.earPiercing = 0>>
<<set $activeSlave.nosePiercing = 0>>
<<set $activeSlave.eyebrowPiercing = 0>>
<<set $activeSlave.stampTat = 0>>
<<set $activeSlave.bellyTat = 0>>
<<set $activeSlave.anusPiercing = 0>>
<<set $activeSlave.anusTat = 0>>
<<set $activeSlave.shouldersTat = 0>>
<<set $activeSlave.armsTat = 0>>
<<set $activeSlave.legsTat = 0>>
<<set $activeSlave.backTat = 0>>
<<set $activeSlave.combatSkill = 0>>
<<set $activeSlave.whoreSkill = 0>>
<<set $activeSlave.entertainSkill = 0>>
<<set $activeSlave.oralSkill = 0>>
<<set $activeSlave.analSkill = 0>>
<<set $activeSlave.vaginalSkill = 0>>
<<set $activeSlave.accent = 4>>
<<set $activeSlave.canRecruit = 0>>
<<set $activeSlave.hStyle = "long">>
<<set $activeSlave.hLength = 300>>
<<if $activeSlave.pubicHStyle != "hairless">>
	<<set $activeSlave.pubicHStyle = either("bushy", "bushy", "bushy", "bushy", "bushy", "bushy", "bushy", "bushy", "bushy", "bushy", "bushy", "bushy", "hairless")>>
<</if>>
<<if $activeSlave.underArmHStyle != "hairless">>
	<<set $activeSlave.underArmHStyle = either("bushy", "bushy", "bushy", "bushy", "bushy", "bushy", "bushy", "bushy", "bushy", "bushy", "bushy", "bushy", "hairless")>>
<</if>>
<<if $activeSlave.fetish == "mindbroken">>
	<<set $activeSlave.fetish = "none">>
<</if>>
<<if $incubatorImprintSetting == "terror">>
	<<set $activeSlave.origin = "She was conditioned from birth into mindless terror in an aging tank.">>
	<<set $activeSlave.tankBaby = 2>>
<<else>>
	<<set $activeSlave.origin = "She was conditioned from birth into trusting obedience in an aging tank.">>
	<<set $activeSlave.tankBaby = 1>>
<</if>>
<<set $activeSlave.career = "a slave since birth">>
<<set $activeSlave.birthName = $activeSlave.slaveName>>
<<set $activeSlave.birthSurname = $activeSlave.slaveSurname>>
<<set $activeSlave.intelligenceImplant = 0>>
<<set $activeSlave.navelPiercing = 0>>
<<set $activeSlave.devotion = 0>>
<<set $activeSlave.trust = 0>>
<<set $activeSlave.weekAcquired = $week>>
<<if $activeSlave.nationality == "Stateless">>
	<<if $arcologies[0].FSRomanRevivalist > 90>>
		<<set $activeSlave.nationality = "Roman Revivalist">>
	<<elseif $arcologies[0].FSAztecRevivalist > 90>>
		<<set $activeSlave.nationality = "Aztec Revivalist">>
	<<elseif $arcologies[0].FSEgyptianRevivalist > 90>>
		<<set $activeSlave.nationality = "Ancient Egyptian Revivalist">>
	<<elseif $arcologies[0].FSEdoRevivalist > 90>>
		<<set $activeSlave.nationality = "Edo Revivalist">>
	<<elseif $arcologies[0].FSArabianRevivalist > 90>>
		<<set $activeSlave.nationality = "Arabian Revivalist">>
	<<elseif $arcologies[0].FSChineseRevivalist > 90>>
		<<set $activeSlave.nationality = "Ancient Chinese Revivalist">>
	<</if>>
<</if>>

<<set $mergeMom = 0>>
<<set $mergeDad = 0>>


code:
:: Hotswap Prosthetics [nobr]

<<set $activeLimbs = $limbs.find(function(s) { return s.ID == $activeSlave.ID; })>>
<<if $activeSlave.amp < 0>>
	<<set _oldLimbs = {type: 0, armsTat: 0, legsTat: 0}>>
	<<set _oldLimbs.type = $activeSlave.amp, _oldLimbs.armsTat = $activeSlave.armsTat, _oldLimbs.legsTat = $activeSlave.legsTat>>
<<else>>
	<<unset _oldLimbs>>
<</if>>
<<set _readyLimbs = []>>
<<for _hsp = 0; _hsp < $activeSlave.readyLimbs.length; _hsp++>>
	<<set _readyLimbs.push($activeSlave.readyLimbs[_hsp].type)>>
<</for>>

	__Swap out $his prosthetics__:
	<<if $activeSlave.amp < 0>>
		<<link "Remove current prostheses">>
			<<set $activeSlave.amp = 1, $activeSlave.armsTat = 0, $activeSlave.legsTat = 0>>
			<<set $activeSlave.readyLimbs.splice(_hsp, 1, _oldLimbs)>>
			<<replace "#LimbOptions">>
			<<include "Hotswap Prosthetics">>
			<</replace>>
		<</link>> |
	<</if>>

	<<if $activeSlave.amp == -1>>
		Basic P-limbs equipped
	<<elseif _readyLimbs.includes(-1)>>
		<<link "A basic set">>
			<<set _hsp = $activeSlave.readyLimbs.findIndex(function(s) { return s.type == -1; })>>
			<<set _newLimbs = $activeSlave.readyLimbs[_hsp]>>
			<<set $activeSlave.amp = -1, $activeSlave.armsTat = _newLimbs.armsTat, $activeSlave.legsTat = _newLimbs.legsTat>>
			<<set $activeSlave.readyLimbs.splice(_hsp, 1)>>
			<<if def _oldLimbs>>
				<<set $activeSlave.readyLimbs.push(_oldLimbs)>>
			<</if>>
			<<replace "#LimbOptions">>
			<<include "Hotswap Prosthetics">>
			<</replace>>
		<</link>>
	<<elseif def $activeLimbs && $activeLimbs.type == "simple" && $activeSlave.ID == $activeLimbs.ID>>
		//Basic P-limbs being built
	<<else>>
		//Basic prostheses unavailable
	<</if>>|

	<<if $activeSlave.amp == -2>>
		Sex focused P-limbs equipped
	<<elseif _readyLimbs.includes(-2)>>
		<<link "A sex focused set">>
			<<set _hsp = $activeSlave.readyLimbs.findIndex(function(s) { return s.type == -2; })>>
			<<set _newLimbs = $activeSlave.readyLimbs[_hsp]>>
			<<set $activeSlave.amp = -2, $activeSlave.armsTat = _newLimbs.armsTat, $activeSlave.legsTat = _newLimbs.legsTat>>
			<<set $activeSlave.readyLimbs.splice(_hsp, 1)>>
			<<if def _oldLimbs>>
				<<set $activeSlave.readyLimbs.push(_oldLimbs)>>
			<</if>>
			<<replace "#LimbOptions">>
			<<include "Hotswap Prosthetics">>
			<</replace>>
		<</link>>
	<<elseif def $activeLimbs && $activeLimbs.type == "sex" && $activeSlave.ID == $activeLimbs.ID>>
		//Sex focused P-limbs being built
	<<else>>
		//Sex focused prostheses unavailable
	<</if>>|

	<<if $activeSlave.amp == -3>>
		Natural looking P-limbs equipped
	<<elseif _readyLimbs.includes(-3)>>
		<<link "A natural looking set">>
			<<set _hsp = $activeSlave.readyLimbs.findIndex(function(s) { return s.type == -3; })>>
			<<set _newLimbs = $activeSlave.readyLimbs[_hsp]>>
			<<set $activeSlave.amp = -3, $activeSlave.armsTat = _newLimbs.armsTat, $activeSlave.legsTat = _newLimbs.legsTat>>
			<<set $activeSlave.readyLimbs.splice(_hsp, 1)>>
			<<if def _oldLimbs>>
				<<set $activeSlave.readyLimbs.push(_oldLimbs)>>
			<</if>>
			<<replace "#LimbOptions">>
			<<include "Hotswap Prosthetics">>
			<</replace>>
		<</link>>
	<<elseif def $activeLimbs && $activeLimbs.type == "beauty" && $activeSlave.ID == $activeLimbs.ID>>
		//Natural looking P-limbs being built
	<<else>>
		//Natural looking prostheses unavailable
	<</if>>|

	<<if $activeSlave.amp == -4>>
		Combat P-limbs equipped
	<<elseif _readyLimbs.includes(-4)>>
		<<link "Military grade arms">>
			<<set _hsp = $activeSlave.readyLimbs.findIndex(function(s) { return s.type == -4; })>>
			<<set _newLimbs = $activeSlave.readyLimbs[_hsp]>>
			<<set $activeSlave.amp = -4, $activeSlave.armsTat = _newLimbs.armsTat, $activeSlave.legsTat = _newLimbs.legsTat>>
			<<set $activeSlave.readyLimbs.splice(_hsp, 1)>>
			<<if def _oldLimbs>>
				<<set $activeSlave.readyLimbs.push(_oldLimbs)>>
			<</if>>
			<<replace "#LimbOptions">>
			<<include "Hotswap Prosthetics">>
			<</replace>>
		<</link>>
	<<elseif def $activeLimbs && $activeLimbs.type == "combat" && $activeSlave.ID == $activeLimbs.ID>>
		//Combat P-limbs being built
	<<else>>
		//Combat prostheses unavailable
	<</if>>|

	<<if $activeSlave.amp == -5>>
		Cybernetic P-limbs equipped
	<<elseif _readyLimbs.includes(-5)>>
		<<link "Advanced cybernetics">>
			<<set _hsp = $activeSlave.readyLimbs.findIndex(function(s) { return s.type == -5; })>>
			<<set _newLimbs = $activeSlave.readyLimbs[_hsp]>>
			<<set $activeSlave.amp = -5, $activeSlave.armsTat = _newLimbs.armsTat, $activeSlave.legsTat = _newLimbs.legsTat>>
			<<set $activeSlave.readyLimbs.splice(_hsp, 1)>>
			<<if def _oldLimbs>>
				<<set $activeSlave.readyLimbs.push(_oldLimbs)>>
			<</if>>
			<<replace "#LimbOptions">>
			<<include "Hotswap Prosthetics">>
			<</replace>>
		<</link>>
	<<elseif def $activeLimbs && $activeLimbs.type == "cyber" && $activeSlave.ID == $activeLimbs.ID>>
		//Cybernetic P-limbs being built
	<<else>>
		//Cybernetic prostheses unavailable
	<</if>>


code:
:: Husk Slave [nobr]

<<set $nextButton = "Back", $nextLink = "Buy Slaves", $returnTo = "Buy Slaves", $showEncyclopedia = 1, $encyclopedia = "Kidnapped Slaves">>
<<if ($huskSlave.dick == 0) && ($huskSlave.vagina == -1)>><<set $huskSlave.vagina = 0>><</if>>

<<if $huskSlaveOrdered == 0>>You lay out a new order for a braindead slave to be put aside for your use.<<else>>You review your posted husk order.<</if>> Your order requests a body with the following characteristics:

<<set $huskSlave.age = Math.clamp($huskSlave.age, $minimumSlaveAge, $retirementAge-1)>>

Age:

<<textbox "$huskSlave.age" $huskSlave.age "Husk Slave">>

Sex:
<<if $huskSlave.sex == 1>>Female.
<<elseif $huskSlave.sex == 2>>Male.
<<elseif $huskSlave.sex == 3>>Futanari.
<</if>>

[[Female|Husk Slave][$huskSlave.sex = 1]]
| [[Male|Husk Slave][$huskSlave.sex = 2]]
| [[Both|Husk Slave][$huskSlave.sex = 3]]

Nationality:

<<textbox "$huskSlave.nationality" $huskSlave.nationality "Husk Slave">>

<<textbox "$huskSlave.race" $huskSlave.race "Husk Slave">>

[[White|Husk Slave][$huskSlave.race = "white"]]
| [[Asian|Husk Slave][$huskSlave.race = "asian"]]
| [[Latina|Husk Slave][$huskSlave.race = "latina"]]
| [[Middle Eastern|Husk Slave][$huskSlave.race = "middle eastern"]]
| [[Black|Husk Slave][$huskSlave.race = "black"]]
| [[Semitic|Husk Slave][$huskSlave.race = "semitic"]]
| [[Southern European|Husk Slave][$huskSlave.race = "southern european"]]
| [[Indo-Aryan|Husk Slave][$huskSlave.race = "indo-aryan"]]
| [[Amerindian|Husk Slave][$huskSlave.race = "amerindian"]]
| [[Pacific Islander|Husk Slave][$huskSlave.race = "pacific islander"]]
| [[Malay|Husk Slave][$huskSlave.race = "malay"]]
| [[Mixed Race|Husk Slave][$huskSlave.race = "mixed race"]]

Virginity:
<<if $huskSlave.virgin == 0>>Virgin.
<<else>>Not important.
<</if>>

[[Important|Husk Slave][$huskSlave.virgin = 0]]
| [[Not Important|Husk Slave][$huskSlave.virgin = 1]]

Reserving a body will cost <<print cashFormat(10000)>> up front. Cancelling an order will refund your money, however if a delivered body is rejected; your money will not be refunded.
<<if $huskSlaveOrdered == 1>>
[[Withdraw body order|Main][$huskSlaveOrdered = 0, $cash += 10000]]
<<elseif $cash < 10000>>
	//You lack the credits to place a body reservation.//
<<else>>
[[Post body order|Main][$huskSlaveOrdered = 1, $cash -= 10000]]
<</if>>


code:
:: Husk Slave Swap [nobr]

<<set $nextButton = "Continue">>
<<set _oldSlave = clone($swappingSlave)>>
<<set _m = $slaveIndices[$swappingSlave.ID]>>
<<run clearSummaryCache($slaves[_m])>>

You strap $slaves[_m].slaveName, and the body to which $he will be transferred, into the remote surgery and stand back as it goes to work.
<<BodySwap $slaves[_m] $activeSlave>>
<<set _gps = $genePool.findIndex(function(s) { return s.ID == $slaves[_m].ID; })>>
<<set $genePool[_gps].race = $slaves[_m].race, $genePool[_gps].origRace = $slaves[_m].origRace, $genePool[_gps].skin = $slaves[_m].skin, $genePool[_gps].markings = $slaves[_m].markings, $genePool[_gps].origEye = $slaves[_m].origEye, $genePool[_gps].origHColor = $slaves[_m].origHColor, $genePool[_gps].origSkin = $slaves[_m].origSkin, $genePool[_gps].face = $slaves[_m].face, $genePool[_gps].pubicHStyle = $slaves[_m].pubicHStyle, $genePool[_gps].underArmHStyle = $slaves[_m].underArmHStyle, $genePool[_gps].eyebrowHStyle = $slaves[_m].eyebrowHStyle>> /* special exception to swap genePool since the temporary body lacks an entry. Otherwise we could just call the widget using the genePool entries */

After an honestly impressive procedure, $slaves[_m].slaveName is recovering nicely.

<<BodySwapReaction $slaves[_m] _oldSlave>>

<<slaveCost _oldSlave>>
<<set _payout = Math.trunc($slaveCost/3)>>
$slaves[_m].slaveName's old body was bought by the Flesh Heap for <<print cashFormat(_payout)>>.
<<if $slaves[_m].bodySwap > 0>>
	<<set _myBody = $slaves.findIndex(function(s) { return s.origBodyOwnerID == $slaves[_m].ID; })>>
	<<if _myBody != -1>>
		<<set $slaves[_myBody].origBodyOwnerID = 0>>
		<<setLocalPronouns $slaves[_myBody] 2>>
		<<if $slaves[_myBody].fetish != "mindbroken" && $slaves[_myBody].fuckdoll == 0>>
			<<if $slaves[_myBody].devotion > 20>>
				$slaves[_myBody].slaveName is somewhat saddened to see _his2 body leave forever.
			<<elseif  $slaves[_myBody].devotion >= -50>>
				$slaves[_myBody].slaveName is @@.mediumorchid;disturbed@@ to find _his2 body is gone for good, damaging _his2 @@.gold;ability to trust you.@@
				<<set $slaves[_myBody].devotion -= 30, $slaves[_myBody].trust -= 30>>
			<<else>>
				$slaves[_myBody].slaveName is @@.mediumorchid;deeply upset@@ that she'll never see _his2 body again. With so little left, she finds it easy to take vengeance by @@.orangered;completely rejecting your ownership of _him2.@@
				<<set $slaves[_myBody].devotion -= 50, $slaves[_myBody].trust = 100>>
			<</if>>
		<</if>>
	<</if>>
<</if>>
<<set $slaves[_m].bodySwap++>>
<<set $cash += _payout>>
<<set $activeSlave = 0, $swappingSlave = 0>>


code:
:: husk Slave Swap Workaround [nobr]

<<set $nextButton = "Abort Operation", $nextLink = "Scheduled Event", $returnTo = "Scheduled Event">>

"This operation is neither simple nor is it perfected. There are extreme health risks involved and no guarantee of success. Strap a slave into your remote surgery to consent to the operation. Indentured servants<<if $incubator > 0>> and slaves with reserved children<</if>> not eligible."

//Select the slave whose mind will be transferred into the waiting husk.<<if $cyberMod == 1>> Amputated slaves must not be wearing prosthetics.<</if>> This operation will cost <<print cashFormat(10000)>>.//

__Select an eligible slave:__
<<for _i = 0; _i < $slaves.length; _i++>>
	<<if isSlaveAvailable($slaves[_i])>>
	<<if $slaves[_i].fuckdoll == 0>>
	<<if $slaves[_i].amp >= 0>>
	<<if $slaves[_i].indenture == -1>>
	<<if $slaves[_i].breedingMark == 0 || $propOutcome == 0>>
	<<if $slaves[_i].reservedChildren == 0>>
	<<if $slaves[_i].reservedChildrenNursery ==0>>
	<<if $slaves[_i].ID != $activeSlave.ID>>
		<<set _name = SlaveFullName($slaves[_i])>>

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


code:
:: Incubator [nobr]

<<set $nextButton = "Back to Main", $nextLink = "Main", $returnTo = "Incubator">>
<<set $targetAge = Number($targetAge) || $minimumSlaveAge>>
<<set $targetAge = Math.clamp($targetAge, $minimumSlaveAge, 42)>>

<<if $incubatorName != "the Incubator">>
	<<set $incubatorNameCaps = $incubatorName.replace("the ", "The ")>>
<</if>>

<<set $readySlaves = 0, $readySlave = 0, $incubatorSlaves = $tanks.length, $freeTanks = $incubator - $incubatorSlaves, _SL = $slaves.length, _eligibility = 0>>

$incubatorNameCaps is a clean, cold hall designed to be lined with tanks and their connected monitoring systems.

<<if $incubatorSlaves > 2>>
	It's well used. The hum of active tanks fill the air.
<<elseif $incubatorSlaves > 0>>
	It's barely used; most of the tanks lie dormant.
<<else>>
	It's empty and quiet. [[Decommission the incubator|Main][$incubator = 0, $incubatorUpgradeSpeed = 5, $incubatorUpgradeWeight = 0, $incubatorUpgradeMuscles = 0, $incubatorUpgradeReproduction = 0, $incubatorUpgradeGrowthStims = 0, $incubatorWeightSetting = 0, $incubatorMusclesSetting = 0, $incubatorReproductionSetting = 0, $incubatorGrowthStimsSetting = 0, $tanks = []]]
<</if>>

It can support $incubator <<if $incubator == 1>>child<<else>>children<</if>>. Currently $incubatorSlaves tanks are in use.
[[Add another incubation tank|Incubator][$cash -= Math.trunc(60000*$upgradeMultiplierArcology), $incubator += 1]] //Costs <<print cashFormat(Math.trunc(60000*$upgradeMultiplierArcology))>> and will increase upkeep costs//
<<if $freeTanks == 0>>
	All of the tanks are currently occupied by growing children.
<<elseif $incubator > 1 && $reservedChildren < $freeTanks>>
	[[Remove an incubation tank|Incubator][$cash -= Math.trunc(10000*$upgradeMultiplierArcology), $incubator -= 1]] //Costs <<print cashFormat(Math.trunc(10000*$upgradeMultiplierArcology))>> and will reduce upkeep costs//
<</if>>

Reserve an eligible mother-to-be's child to be placed in a tank upon birth. Of $incubator tanks, <<print $freeTanks>> <<if $freeTanks == 1>>is<<else>>are<</if>> unoccupied. Of those, $reservedChildren <<if $reservedChildren == 1>>tank is<<else>>tanks are<</if>> reserved.
/*
** With hundreds of slaves, navigating the Incubator room was giving me as much of a headache as other lists.
** So, I borrowed the sorting list and dropped a few options here.
*/
<<if (0 < _SL)>>
		<<set $sortIncubatorList = $sortIncubatorList || 'Unsorted'>>

//Sorting:// ''$sortIncubatorList.''
		<<link "Sort by Name">>
				<<set $sortIncubatorList = 'Name'>>
				<<replace "#qlIncubatorSort">>$sortIncubatorList<</replace>>
				<>
		<</link>> |
		<<link "Sort by Reserved Incubator Spots">>
				<<set $sortIncubatorList = 'Reserved Incubator Spots'>>
				<<replace "#qlIncubatorSort">>$sortIncubatorList<</replace>>
				<>
		<</link>> |
		<<link "Sort by Pregnancy Week">>
				<<set $sortIncubatorList = 'Pregnancy Week'>>
				<<replace "#qlIncubatorSort">>$sortIncubatorList<</replace>>
				<>
		<</link>> |
		<<link "Sort by Number of Children">>
				<<set $sortIncubatorList = 'Number of Children'>>
				<<replace "#qlIncubatorSort">>$sortIncubatorList<</replace>>
				<>
		<</link>>

<</if>>

<<for _u = 0; _u < _SL; _u++>>
	<<if $slaves[_u].preg > 0 && $slaves[_u].broodmother == 0 && $slaves[_u].pregKnown == 1 && $slaves[_u].eggType == "human">>
	<<if $slaves[_u].assignment == "work in the dairy" && $dairyPregSetting > 0>>
	<<else>>
		<<set _slaveId = "slave-" + $slaves[_u].ID>>
		<<set _pregCount = $slaves[_u].pregType>>
		<<set _reservedSpots = $slaves[_u].reservedChildren>>
		<<set _pregWeek = $slaves[_u].pregWeek>>
		<<set _slaveName = SlaveFullName($slaves[_u])>>

		<<print "[[_slaveName|Long Slave Description][$activeSlave = $slaves[" + _u + "], $nextLink = passage()]]">> is $slaves[_u].pregWeek weeks pregnant with
		<<if $slaves[_u].pregSource == 0 || $slaves[_u].preg <= 5>>someone's<<if $slaves[_u].preg <= 5>>, though it is too early to tell whose,<</if>>
		<<elseif $slaves[_u].pregSource == -1>>your
		<<elseif $slaves[_u].pregSource == -2>>a citizen's
		<<else>>
			<<set _t = $slaveIndices[$slaves[_u].pregSource]>>
			<<if def _t>>
				<<print $slaves[_t].slaveName>>'s
			<</if>>
		<</if>>
		<<if $slaves[_u].pregType > 1>>$slaves[_u].pregType babies<<else>>baby<</if>>.
		<<if $slaves[_u].reservedChildren > 0>>
			<<set _childrenReserved = 1>>
			<<if $slaves[_u].pregType == 1>>
				Her child will be placed in $incubatorName.
			<<elseif $slaves[_u].reservedChildren < $slaves[_u].pregType>>
				$slaves[_u].reservedChildren of her children will be placed in $incubatorName.
			<<elseif $slaves[_u].pregType == 2>>
				Both of her children will be placed in $incubatorName.
			<<else>>
				All $slaves[_u].reservedChildren of her children will be placed in $incubatorName.
			<</if>>
			<<if ($slaves[_u].reservedChildren + $slaves[_u].reservedChildrenNursery < $slaves[_u].pregType)  && ($reservedChildren < $freeTanks)>>

				<<print "[[Keep another child|Incubator][$slaves[" + _u + "].reservedChildren += 1, $reservedChildren += 1]]">>
				<<if $slaves[_u].reservedChildren > 0>>
					| <<print "[[Keep one less child|Incubator][$slaves[" + _u + "].reservedChildren -= 1, $reservedChildren -= 1]]">>
				<</if>>
				<<if $slaves[_u].reservedChildren > 1>>
					| <<print "[[Keep none of her children|Incubator][$reservedChildren -= $slaves[" + _u + "].reservedChildren, $slaves[" + _u + "].reservedChildren = 0]]">>
				<</if>>
				<<if ($reservedChildren + $slaves[_u].pregType - $slaves[_u].reservedChildren) <= $freeTanks>>
					| <<print "[[Keep the rest of her children|Incubator][$reservedChildren += ($slaves[" + _u + "].pregType - $slaves[" + _u + "].reservedChildren), $slaves[" + _u + "].reservedChildren += ($slaves[" + _u + "].pregType - $slaves[" + _u + "].reservedChildren), $slaves[" + _u + "].reservedChildrenNursery = 0]]">>
				<</if>>
			<<elseif ($slaves[_u].reservedChildren == $slaves[_u].pregType) || ($reservedChildren == $freeTanks) || ($slaves[_u].reservedChildren + $slaves[_u].reservedChildrenNursery == $slaves[_u].pregType)>>

				<<print "[[Keep one less child|Incubator][$slaves[" + _u + "].reservedChildren -= 1, $reservedChildren -= 1]]">>
				<<if $slaves[_u].reservedChildren > 1>>
					| <<print "[[Keep none of her children|Incubator][$reservedChildren -= $slaves[" + _u + "].reservedChildren, $slaves[" + _u + "].reservedChildren = 0]]">>
				<</if>>
			<</if>>
		<<elseif ($reservedChildren < $freeTanks)>>
			<<if $slaves[_u].pregType - $slaves[_u].reservedChildrenNursery == 0>>
				//$His children are already reserved for $nurseryName//

				<<print "[[Keep " + $his + " " + (($slaves[_u].pregType > 1) ? "children" : "child") + " here instead|Incubator][$slaves[" + _u + "].reservedChildren += $slaves[" + _u + "].pregType, $slaves[" + _u + "].reservedChildrenNursery = 0]]">>
			<<else>>
				You have <<if $freeTanks == 1>>an<</if>> @@.lime;available aging tank<<if $freeTanks > 1>>s<</if>>.@@

				<<print "[[Keep "+ (($slaves[_u].pregType > 1) ? "a" : "the") +" child|Incubator][$slaves[" + _u + "].reservedChildren += 1, $reservedChildren += 1]]">>
				<<if ($slaves[_u].pregType > 1) && ($reservedChildren + $slaves[_u].pregType - $slaves[_u].reservedChildren) <= $freeTanks>>
					| <<print "[[Keep all of " + $his + " children|Incubator][$reservedChildren += $slaves["+ _u + "].pregType, $slaves[" + _u + "].reservedChildren += $slaves["+ _u +"].pregType, $slaves[" + _u + "].reservedChildrenNursery = 0]]">>
				<</if>>
			<</if>>
		<<elseif $reservedChildren == $freeTanks>>

			You have @@.red;no room for her offspring.@@
		<</if>>
		<<set _eligibility = 1>>

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

<>
<<if _eligibility == 0>>

	//You have no pregnant slaves bearing eligible children.//
<</if>>
<<if $PC.pregKnown == 1 && $PC.pregSource != -1>>

''@@.pink;You're pregnant@@'' and going to have
		<<switch $PC.pregType>>
		<<case 1>>
			a baby.
		<<case 2>>
			twins.
		<<case 3>>
			triplets.
		<<case 4>>
			quadruplets.
		<<case 5>>
			quintuplets.
		<<case 6>>
			sextuplets.
		<<case 7>>
			septuplets.
		<<case 8>>
			octuplets.
		<</switch>>
	<<if ($PC.reservedChildren > 0)>>
		<<set _childrenReserved = 1>>
		<<if $PC.pregType == 1>>
			Your child will be placed in $incubatorName.
		<<elseif $PC.reservedChildren < $PC.pregType>>
			$PC.reservedChildren of your children will be placed in $incubatorName.
		<<elseif $PC.pregType == 2>>
			Both of your children will be placed in $incubatorName.
		<<else>>
			All $PC.reservedChildren of your children will be placed in $incubatorName.
		<</if>>
		<<if ($PC.reservedChildren < $PC.pregType) && ($reservedChildren < $freeTanks) && ($PC.reservedChildren - $PC.reservedChildrenNursery > 0)>>

			<<print "[[Keep another child|Incubator][$PC.reservedChildren += 1, $reservedChildren += 1]]">>
			<<if $PC.reservedChildren > 0>>
				| <<print "[[Keep one less child|Incubator][$PC.reservedChildren -= 1, $reservedChildren -= 1]]">>
			<</if>>
			<<if $PC.reservedChildren > 1>>
				| <<print "[[Keep none of your children|Incubator][$reservedChildren -= $PC.reservedChildren, $PC.reservedChildren = 0]]">>
			<</if>>
			<<if ($reservedChildren + $PC.pregType - $PC.reservedChildren) <= $freeTanks>>
				| <<print "[[Keep the rest of your children|Incubator][$reservedChildren += ($PC.pregType - $PC.reservedChildren), $PC.reservedChildren += ($PC.pregType - $PC.reservedChildren)]]">>
			<</if>>
		<<elseif ($PC.reservedChildren == $PC.pregType) || ($reservedChildren == $freeTanks) || ($PC.reservedChildren - $PC.reservedChildrenNursery >= 0)>>

			<<print "[[Keep one less child|Incubator][$PC.reservedChildren -= 1, $reservedChildren -= 1]]">>
			<<if $PC.reservedChildren > 1>>
				| <<print "[[Keep none of your children|Incubator][$reservedChildren -= $PC.reservedChildren, $PC.reservedChildren = 0]]">>
			<</if>>
		<</if>>
	<<elseif $reservedChildren < $freeTanks>>
		<<if $PC.pregType - $PC.reservedChildrenNursery == 0>>
			//Your child<<if $PC.pregType > 0>>ren are<<else>>is<</if>> already reserved for $nurseryName//
			<<print "[[Keep your" + (($PC.pregType > 1) ? "children" : "child") + " here instead|Incubator][$PC.reservedChildren += 1, $PC.reservedChildrenNursery = 0]]">>
		<<else>>
			You have <<if $freeTanks == 1>>an<</if>> @@.lime;available aging tank<<if $freeTanks > 1>>s<</if>>.@@

			<<print "[[Keep " + (($PC.pregType > 1) ? "a" : "your") +" child|Incubator][$PC.reservedChildren += 1, $reservedChildren += 1]]">>
			<<if ($PC.pregType > 1) && ($reservedChildren + $PC.pregType - $PC.reservedChildren) <= $freeTanks>>
				| [[Keep all of your children|Incubator][$reservedChildren += $PC.pregType, $PC.reservedChildren += $PC.pregType]]
			<</if>>
		<</if>>
	<<elseif $reservedChildren == $freeTanks>>

		You have @@.red;no room for your offspring.@@
	<</if>>
<</if>>
<<if $reservedChildren != 0 || _childrenReserved == 1>> /* the oops I made it go negative somehow button */

	 <<link "Clear all reserved children">>
		<<for _u = 0; _u < _SL; _u++>>
			<<if $slaves[_u].reservedChildren != 0>>
				<<set $slaves[_u].reservedChildren = 0>>
			<</if>>
		<</for>>
		<<set $PC.reservedChildren = 0>>
		<<set $reservedChildren = 0>>
		<<goto "Incubator">>
	 <</link>>
<</if>>

Target age for release: <<textbox "$targetAge" $targetAge "Incubator">> [[Minimum Legal Age|Incubator][$targetAge = $minimumSlaveAge]] | [[Average Age of Fertility|Incubator][$targetAge = $fertilityAge]] | [[Average Age of Potency|Incubator][$targetAge = $potencyAge]] | [[Legal Adulthood|Incubator][$targetAge = 18]]
//Setting will not be applied to tanks in use.//

<<if $incubatorUpgradeSpeed == 52>>
	It has been upgraded with perfected growth accelerants; children grow at the rate of 1 week to 1 year.
<<elseif $incubatorUpgradeSpeed == 18>>
	It has been upgraded with advanced experimental growth accelerants; children grow at the rate of 3 weeks to 1 year. [[Fund speculative research into maximizing growth rate|Incubator][$cash -= Math.trunc(500000*$upgradeMultiplierArcology), $incubatorUpgradeSpeed = 52]] //Costs <<print cashFormat(Math.trunc(500000*$upgradeMultiplierArcology))>> and will increase upkeep costs//
<<elseif $incubatorUpgradeSpeed == 9>>
	It has been upgraded with advanced growth accelerants; children grow at the rate of 6 weeks to 1 year. [[Fund research into increasing growth rate even further|Incubator][$cash -= Math.trunc(75000*$upgradeMultiplierArcology), $incubatorUpgradeSpeed = 18]] //Costs <<print cashFormat(Math.trunc(75000*$upgradeMultiplierArcology))>> and will increase upkeep costs//
<<elseif $incubatorUpgradeSpeed == 6>>
	It has been upgraded with growth accelerants; children grow at the rate of 9 weeks to 1 year. [[Further upgrade the incubators with specialized stem cells to speed growth|Incubator][$cash -= Math.trunc(30000*$upgradeMultiplierArcology), $incubatorUpgradeSpeed = 9]] //Costs <<print cashFormat(Math.trunc(30000*$upgradeMultiplierArcology))>> and will increase upkeep costs//
<<elseif $incubatorUpgradeSpeed == 5>>
	The incubation tanks are basic; children grow at the rate of 12 weeks to 1 year. [[Upgrade the incubators with growth accelerating drugs|Incubator][$cash -= Math.trunc(30000*$upgradeMultiplierArcology), $incubatorUpgradeSpeed = 6]] //Costs <<print cashFormat(Math.trunc(30000*$upgradeMultiplierArcology))>> and will increase upkeep costs//
<</if>>

<<if $incubatorUpgradeWeight == 1>>
	Advanced caloric monitoring systems have been installed in the tanks to monitor and maintain a developing child's weight.
<<else>>
	There are no systems in place to control a growing child's weight; they will likely come out emaciated from rapidly growing. [[Upgrade the growth tanks with weight monitoring systems|Incubator][$cash -= Math.trunc(20000*$upgradeMultiplierArcology), $incubatorUpgradeWeight = 1]] //Costs <<print cashFormat(Math.trunc(20000*$upgradeMultiplierArcology))>> and will increase upkeep costs//
<</if>>

<<if $incubatorUpgradeMuscles == 1>>
	Advanced monitoring and steroid injection systems have been installed in the tanks to monitor and maintain a developing child's musculature.
<<else>>
	There are no systems in place to control a growing child's musculature; they will likely come out frail and weak from rapidly growing. [[Upgrade the growth tanks with muscle monitoring systems|Incubator][$cash -= Math.trunc(20000*$upgradeMultiplierArcology), $incubatorUpgradeMuscles = 1]] //Costs <<print cashFormat(Math.trunc(20000*$upgradeMultiplierArcology))>> and will increase upkeep costs//
<</if>>

<<if $incubatorUpgradeReproduction == 1>>
	Advanced monitoring and hormone injection systems have been installed in the tanks to influence a developing child's reproductive organs.
<<else>>
	There are no systems in place to control a growing child's reproductive capability. [[Upgrade the growth tanks with hormone monitoring systems|Incubator][$cash -= Math.trunc(50000*$upgradeMultiplierArcology), $incubatorUpgradeReproduction = 1]] //Costs <<print cashFormat(Math.trunc(50000*$upgradeMultiplierArcology))>> and will increase upkeep costs//
<</if>>

<<if $incubatorUpgradeOrgans == 1>>
	Surgical tools have been added to the tank to be able to extract tissue samples from the occupant.
<<elseif $organFarmUpgrade >= 1>>
	The tanks lack the ability to extract tissue samples to be used by the organ fabricator. [[Upgrade the growth tanks with surgical extraction tools|Incubator][$cash -= Math.trunc(10000*$upgradeMultiplierArcology), $incubatorUpgradeOrgans = 1]] //Costs <<print cashFormat(Math.trunc(10000*$upgradeMultiplierArcology))>> and will increase upkeep costs//
<<else>>
	The tanks lack the ability to extract tissue samples and the dispensary lacks the ability to make use of them to fabricate organs.
<</if>>

<<if $incubatorUpgradeGrowthStims == 1>>
	Advanced monitoring and stimulant injection systems have been installed in the tanks to monitor and maintain a developing child's height.
<<elseif $growthStim == 1>>
	There are no systems in place to control a growing child's height. [[Upgrade the growth tanks with stimulants injection systems|Incubator][$cash -= Math.trunc(20000*$upgradeMultiplierArcology), $incubatorUpgradeGrowthStims = 1]] //Costs <<print cashFormat(Math.trunc(20000*$upgradeMultiplierArcology))>> and will increase upkeep costs//
<<else>>
	There are no systems in place to control a growing child's height and you lack the capability to fabricate growth stimulants.
<</if>>

<<if $incubatorImprintSetting == "terror">>
	The imprinting system is currently focused on making her devoted but fearful of you. The imprinting cycle is locked upon incubation start.
	[[Switch the system to focus on attachment|Incubator][$incubatorImprintSetting = "trust"]] //Only affects new infants//
<<else>>
	The imprinting system is currently focused on making her devoted and trusting of you. The imprinting cycle is locked upon incubation start.
	[[Switch the system to focus on dependence|Incubator][$incubatorImprintSetting = "terror"]] //Only affects new infants//
<</if>>

<<if $incubatorSlaves > 0>>
<<for $i = 0; $i < $incubatorSlaves; $i++>>
	<<capture $i>>

@@.pink;$tanks[$i].slaveName@@ occupies this tank. She appears to be <<if $tanks[$i].genes == "XX">>a natural girl<<else>>a natural boy<</if>>, with $tanks[$i].hColor hair<<if $tanks[$i].eyes != -2>> and $tanks[$i].eyeColor eyes.<<else>>. She most likely will be blind.<</if>>
		Statistical projections indicates that once released she will be around <<= heightToEitherUnit($tanks[$i].height + random(-5,5))>> tall. Most likely she will be
			<<if $tanks[$i].weight <= 30 && $tanks[$i].weight >= -30>>
				at a healthy weight and
			<<elseif $tanks[$i].weight >= 31 && $tanks[$i].weight <= 95>>
				quite overweight and
			<<elseif $tanks[$i].weight >= 96>>
				very overweight and
			<<elseif $tanks[$i].weight <= -31 && $tanks[$i].weight >= -95>>
				quite thin and
			<<elseif $tanks[$i].weight <= -96>>
				very thin and
			<</if>>
			<<if $tanks[$i].muscles <= 5 && $tanks[$i].muscles >= -5>>
				with a normal musculature.
			<<elseif $tanks[$i].muscles >= 6 && $tanks[$i].muscles <= 30>>
				quite toned.
			<<elseif $tanks[$i].muscles >= 31 && $tanks[$i].muscles <= 95>>
				quite muscular.
			<<elseif $tanks[$i].muscles >= 96>>
				with a powerful musculature.
			<<elseif $tanks[$i].muscles <= -6 && $tanks[$i].muscles >= -30>>
				quite weak.
			<<elseif $tanks[$i].muscles <= -31 && $tanks[$i].muscles >= -95>>
				very weak.
			<<elseif $tanks[$i].muscles <= -96>>
				extremely weak.
			<</if>>
			Her breasts are projected to be
			<<if $tanks[$i].boobs <= 799>>
				of normal size,
			<<elseif $tanks[$i].boobs <= 1799>>
				of generous size,
			<<elseif $tanks[$i].boobs <= 3249>>
				of incredible size,
			<<else>>
				of humongous size,
			<</if>>
			while her rear will be
			<<if $tanks[$i].butt <= 3>>
				a healthy size.
			<<elseif $tanks[$i].butt <= 6>>
				quite impressive.
			<<elseif $tanks[$i].butt <= 9>>
				very impressive.
			<<else>>
				immense.
			<</if>>
			<<if $tanks[$i].dick > 0>>
				<<if $tanks[$i].dick <= 3>>
					The latest analysis reported her dick will end up being around the average
				<<elseif $tanks[$i].dick >= 4 && $tanks[$i].dick <= 6>>
					The latest analysis reported her dick will end up being above average
				<<elseif $tanks[$i].dick >= 7 && $tanks[$i].dick <= 9>>
					The latest analysis reported her dick will end up being far above the average
				<<else>>
					The latest analysis reported her dick will end up being of monstrous size
				<</if>>
			<</if>>
			<<if $tanks[$i].balls > 0>>
				<<if $tanks[$i].balls <= 3>>
					and her testicles will reach a normal size.
				<<elseif $tanks[$i].balls >= 4 && $tanks[$i].balls <= 6>>
					and her testicles will be of remarkable size.
				<<elseif $tanks[$i].balls >= 7 && $tanks[$i].balls <= 9>>
					and her testicles will reach an impressive size.
				<<else>>
					and her testicles will reach a monstrous size.
				<</if>>
			<</if>>
			<<if $tanks[$i].pubertyXX == 1 && $tanks[$i].ovaries == 1>>
				Scanners report her womb is fertile.
			<<else>>
				Scanners report she is not fertile,
				<<if $tanks[$i].pubertyXX == 0>>
					as she has not yet entered puberty.
				<<else>>
					it appears her womb is sterile.
				<</if>>
			<</if>>
		<<if $tanks[$i].growTime <= 0>>
			<<set $readySlaves = 1>>

She is ready to be released from her tank.
		<<else>>

Her growth is currently being accelerated. She will be ready for release in about <<print Math.round($tanks[$i].growTime/$incubatorUpgradeSpeed)>> weeks.
		<</if>>

The tank is imprinting her with basic life and sexual skills, though she will still be very naive and inexperienced on release.
		<<if $tanks[$i].tankBaby == 2>>
			The majority of her indoctrination involves painting the world as a terrible place where only horror awaits her should she not obey her owner.
		<<else>>
			The majority of her indoctrination involves painting the world as a wonderful place only if she is unconditionally devoted to, and absolutely trusting of, her owner.
		<</if>>
		<<if $incubatorUpgradeWeight == 1>>

			<<if $incubatorWeightSetting == 1>>
				Her weight is not being properly managed, saving costs but likely causing excessive weight gain.
			<<elseif $incubatorWeightSetting == 2>>
				Her weight is being carefully managed; she will be released at a healthy weight.
			<<elseif $incubatorWeightSetting == 0>>
				Weight management systems are offline; she will likely be malnourished.
			<</if>>
		<</if>>
		<<if $incubatorUpgradeMuscles == 1>>

			<<if $incubatorMusclesSetting == 2>>
				Her strength levels are purposefully set higher than recommended; excessive muscle gain likely.
			<<elseif $incubatorMusclesSetting == 1>>
				Her musculature is being carefully managed; she will be released with near normal strength.
			<<elseif $incubatorMusclesSetting == 0>>
				Strength management systems are offline; she will likely be released extremely weak.
			<</if>>
		<</if>>
		<<if $incubatorUpgradeGrowthStims == 1>>

			<<if $incubatorGrowthStimsSetting == 2>>
				She is being injected with higher than recommended doses of stimulants; exceeding expected final height is likely.
			<<elseif $incubatorGrowthStimsSetting == 1>>
				She is injected with the recommended dosage of stimulants; she will grow to her full expected height.
			<<elseif $incubatorGrowthStimsSetting == 0>>
				Growth stimulant injection systems are offline; she will develop normally.
			<</if>>
		<</if>>
		<<if $incubatorUpgradeReproduction == 1>>

			<<if $incubatorReproductionSetting == 2>>
				Her hormone levels are purposefully set higher than recommended; over-active reproductive systems likely.
			<<elseif $incubatorReproductionSetting == 1>>
				Her hormone levels are being carefully managed; she will be released with fully functional reproductive organs.
			<<elseif $incubatorReproductionSetting == 0>>
				Reproduction management systems are offline; she will undergo normal puberty.
			<</if>>
		<</if>>
		<<if $cheatMode == 1>>

''Cheatmode:''
			<<link "Retrieve immediately">>
				<<set $incubatorOldID = $tanks[$i].ID>>
				<<set $readySlave = $tanks.pluck([$i], [$i])>>
				<<goto "Incubator Retrieval Workaround">>
			<</link>>
		<</if>>
		<<if $incubatorUpgradeOrgans == 1>>

			You can extract a sample and prepare a new organ for her to be implanted once she exits her tank.
			<<set _newOrgan = 0>>
			<<set $tankOrgans = {
				ovaries: 0,
				penis: 0,
				testicles:0,
				eyes: 0,
				voiceBox: 0}>>
			<<for _i = 0; _i < $incubatorOrgans.length; _i++>>
				<<if $tanks[$i].ID == $incubatorOrgans[_i].ID>>
					<<if $incubatorOrgans[_i].type == "ovaries">>
						<<set $tankOrgans.ovaries = 1>>
					<</if>>
					<<if $incubatorOrgans[_i].type == "testicles">>
						<<set $tankOrgans.testicles = 1>>
					<</if>>
					<<if $incubatorOrgans[_i].type == "penis">>
						<<set $tankOrgans.penis = 1>>
					<</if>>
					<<if $incubatorOrgans[_i].type == "eyes">>
						<<set $tankOrgans.eyes = 1>>
					<</if>>
					<<if $incubatorOrgans[_i].type == "voicebox">>
						<<set $tankOrgans.voicebox = 1>>
					<</if>>
				<</if>>
			<</for>>
			<<if $tanks[$i].genes == "XX">>
				Being a natural girl she possesses a functional vagina and ovaries, you can:
			<<else>>
				Being a natural boy he possesses a functional penis and balls, you can:
			<</if>>

			<<if $tanks[$i].ovaries == 0 && $tankOrgans.ovaries != 1>>
				<<link "Prepare ovaries">>
					<<set $cash -= 10000>>
					<<set _newOrgan = {type: "ovaries", weeksToCompletion: "10", ID: 0}>>
					<<set _newOrgan.ID = $tanks[$i].ID>>
					<<set $incubatorOrgans.push(_newOrgan)>>
					<<goto "Incubator">>
				<</link>>
			<</if>>
			<<if $tanks[$i].dick == 0 && $tankOrgans.penis != 1>>
				<<link "Prepare penis">>
					<<set $cash -= 5000>>
					<<set _newOrgan = {type: "penis", weeksToCompletion: "5", ID: 0}>>
					<<set _newOrgan.ID = $tanks[$i].ID>>
					<<set $incubatorOrgans.push(_newOrgan)>>
					<<goto "Incubator">>
				<</link>>
			<</if>>
			<<if $tanks[$i].balls == 0 && $tankOrgans.testicles != 1>>
				|
				<<link "Prepare testicles">>
					<<set $cash -= 5000>>
					<<set _newOrgan = {type: "testicles", weeksToCompletion: "10", ID: 0}>>
					<<set _newOrgan.ID = $tanks[$i].ID>>
					<<set $incubatorOrgans.push(_newOrgan)>>
					<<goto "Incubator">>
				<</link>>
			<</if>>
			<<if $tanks[$i].eyes == -2 && $tankOrgans.eyes != 1>>

She appears to be blind:
				<<link "Prepare eyes">>
					<<set $cash -= 10000>>
					<<set _newOrgan = {type: "eyes", weeksToCompletion: "10", ID: 0}>>
					<<set _newOrgan.ID = $tanks[$i].ID>>
					<<set $incubatorOrgans.push(_newOrgan)>>
					<<goto "Incubator">>
				<</link>>
			<</if>>
			<<if $tanks[$i].voice == 0 && $tankOrgans.voicebox != 1>>

It appears she was born a mute:
				<<link "Prepare vocal cords">>
					<<set $cash -= 5000>>
					<<set _newOrgan = {type: "voicebox", weeksToCompletion: "5", ID: 0}>>
					<<set _newOrgan.ID = $tanks[$i].ID>>
					<<set $incubatorOrgans.push(_newOrgan)>>
					<<goto "Incubator">>
				<</link>>
			<</if>>
		<</if>>
	<</capture>>
<</for>>
<</if>>

<<if $incubatorUpgradeWeight == 1>>
	<<if $incubatorWeightSetting == 1>>
		Weight is not being properly managed, saving costs but likely causing excessive weight gain. [[Monitor|Incubator][$incubatorWeightSetting = 2]] | [[Disable|Incubator][$incubatorWeightSetting = 0]]
	<<elseif $incubatorWeightSetting == 2>>
		Weight is being carefully managed; children will be released at a healthy weight. [[Estimate only|Incubator][$incubatorWeightSetting = 1]] | [[Disable|Incubator][$incubatorWeightSetting = 0]]
	<<elseif $incubatorWeightSetting == 0>>
		Weight management systems are offline; children will likely be malnourished. [[Activate|Incubator][$incubatorWeightSetting = 2]]
	<</if>>
<</if>>

<<if $incubatorUpgradeMuscles == 1>>
	<<if $incubatorMusclesSetting == 2>>
		Strength levels are purposefully set higher than recommended; excessive muscle gain likely. [[Limit|Incubator][$incubatorMusclesSetting = 1]] | [[Disable|Incubator][$incubatorMusclesSetting = 0]]
	<<elseif $incubatorMusclesSetting == 1>>
		Musculature is being carefully managed; children will be released with near normal strength. [[Overload|Incubator][$incubatorMusclesSetting = 2]] | [[Disable|Incubator][$incubatorMusclesSetting = 0]]
	<<elseif $incubatorMusclesSetting == 0>>
		Strength management systems are offline; children will likely be released extremely weak. [[Activate|Incubator][$incubatorMusclesSetting = 1]]
	<</if>>
<</if>>

<<if $incubatorUpgradeReproduction == 1>>
	<<if $incubatorReproductionSetting == 2>>
		Hormone levels are purposefully set higher than recommended; over-active reproductive systems likely. [[Limit|Incubator][$incubatorReproductionSetting = 1]] | [[Disable|Incubator][$incubatorReproductionSetting = 0]]
	<<elseif $incubatorReproductionSetting == 1>>
		Hormone levels are being carefully managed; children will be released with fully functional reproductive organs. [[Overload|Incubator][$incubatorReproductionSetting = 2]] | [[Disable|Incubator][$incubatorReproductionSetting = 0]]
	<<elseif $incubatorReproductionSetting == 0>>
		Reproduction management systems are offline; children will undergo normal puberty. [[Activate|Incubator][$incubatorReproductionSetting = 1]]
	<</if>>
<</if>>

<<if $incubatorUpgradeGrowthStims == 1>>
	<<if $incubatorGrowthStimsSetting == 2>>
		She is injected with higher than recommended doses of stimulants; exceeding expected final height is likely. [[Limit|Incubator][$incubatorGrowthStimsSetting = 1]] | [[Disable|Incubator][$incubatorGrowthStimsSetting = 0]]
	<<elseif $incubatorGrowthStimsSetting == 1>>
		She is injected with the recommended dosage of stimulants; she will grow to her full expected height. [[Overload|Incubator][$incubatorGrowthStimsSetting = 2]] | [[Disable|Incubator][$incubatorGrowthStimsSetting = 0]]
	<<elseif $incubatorGrowthStimsSetting == 0>>
		Growth stimulant injection systems are offline; she will develop normally. [[Activate|Incubator][$incubatorGrowthStimsSetting = 1]]
	<</if>>
<</if>>

<<if $readySlaves == 1>>
	<<for $i = 0; $i < $incubatorSlaves; $i++>>
		<<if $tanks[$i].growTime <= 0>>
			<<set $incubatorOldID = $tanks[$i].ID>>
			<<set $readySlave = $tanks.pluck([$i], [$i])>>
			<<break>>
		<</if>>
	<</for>>
	<<goto "Incubator Retrieval Workaround">>
<</if>>

Rename $incubatorName: <<textbox "$incubatorName" $incubatorName "Incubator">> //Use a noun or similar short phrase//