code:
:: SA drugs [nobr]

/* Induced NCS is working at a genetical level against all types of growth, but doesn't stop it, generally about
* 1/2 the growth, however, boob and butt fat is interpreted as excess fat by NCS and so is converted to slave
* sexual energy.
*/

<<if $slaves[$i].drugs == "intensive breast injections" || $slaves[$i].drugs == "intensive butt injections" || $slaves[$i].drugs == "intensive penis enhancement" || $slaves[$i].drugs == "intensive testicle enhancement">>
	<<set _intensive = 1>>
<</if>>

<<switch $slaves[$i].drugs>>

<<case "hormone enhancers">>
	$His drug regime prepares $his body to accept hormonal effects.

<<case "priapism agents">>
	<<if $slaves[$i].dick == 0>>
		Since $he lacks a dick, it is pointless to try and keep it hard. @@.yellow;$His drug regimen has been ended.@@
		<<set $slaves[$i].drugs = "no drugs">>
	<<elseif $slaves[$i].chastityPenis == 1>>
		A tight cage around a dick forced hard are a bad mix so @@.yellow;$his drug regimen has been ended.@@
	<<elseif $slaves[$i].health <= -50>>
		$He is too unwell to risk further health complications from priapism. @@.yellow;$His drug regimen has been ended.@@
	<<elseif $slaves[$i].dick > 10>>
		$His dick is so enormous that attempts to force an erection would kill $him. @@.yellow;$His drug regimen has been mercifully ended.@@
		<<set $slaves[$i].drugs = "no drugs">>
	<<else>>
		$His drug regime keeps $his dick @@.red;painfully erect.@@
		<<set $slaves[$i].health -= 5>>
		<<if $slaves[$i].dick >= 7>>
			The amount of blood needed to keep $his oversized cock hard has @@.red;severe effects on $his health!@@
			<<set $slaves[$i].health -= $slaves[$i].dick*5>>
		<</if>>
	<</if>>

<<case "psychosuppressants">>
	<<if ($slaves[$i].fetish != "mindbroken")>>
		The psychosuppressants @@.hotpink;reduce $his ability to question $his role@@ or @@.mediumaquamarine;think independently.@@
		<<set $slaves[$i].devotion += 4, $slaves[$i].trust += 4>>
		<<if ($slaves[$i].intelligence >= -95)>>
			They @@.orange;negatively impact $his intelligence,@@ as well.
			<<set $slaves[$i].intelligence -= 5>>
		<</if>>
		<<if $slaves[$i].fuckdoll == 0 && $slaves[$i].intelligence < -15 && $slaves[$i].fetishStrength <= 60 && $slaves[$i].fetish != "submissive" && fetishChangeChance($slaves[$i]) > random(0,100)>>
			The willingness to @@.lightcoral;submit@@ created by the drugs invades $his sexuality, too.
			<<set $slaves[$i].fetish = "submissive", $slaves[$i].fetishKnown = 1, $slaves[$i].fetishStrength = 10>>
		<</if>>
	<<else>>
		The psychosuppressants have little effect on $his passive mind.
	<</if>>

<<case "hyper breast injections">>
	<<set _gigantomastiaMod = $slaves[$i].geneticQuirks.gigantomastia == 2 ? ($slaves[$i].geneticQuirks.macromastia == 2 ? 3 : 2) : 1>>
	<<set $slaves[$i].chem += 2>>
	<<set _growth = (1+$injectionUpgrade)*3*_gigantomastiaMod>>
	$He receives @@.lime;direct injections of <<if ($injectionUpgrade != 0)>> advanced<</if>> hyper growth hormones, right into $his breasts;@@
	<<if ($slaves[$i].diet == "fattening")>>
		all the food $he's required to consume fuels growth, <<if $slaves[$i].health > -20>>and<<else>>but<</if>>
		<<set _growth += 6>>
	<<elseif ($slaves[$i].diet == "fertility")>>
		the fertility hormones in $his food favor breast growth, <<if $slaves[$i].health > -20>>and<<else>>but<</if>>
		<<set _growth += 1>>
	<<elseif ($slaves[$i].diet == "restricted")>>
		$his restricted diet means $his body has few resources to grow on, <<if $slaves[$i].health > -20>>but<<else>>and<</if>>
		<<set _growth -= 1>>
	<<elseif ($slaves[$i].weight > 130)>>
		the enormous diet $he eats to maintain $his hugely fat body helps support growth, <<if $slaves[$i].health > -20>>but<<else>>and<</if>>
		<<set _growth += 4>>
	<<elseif ($slaves[$i].weight > 30)>>
		the generous diet $he eats to maintain $his fat body helps support growth, <<if $slaves[$i].health > -20>>and<<else>>but<</if>>
		<<set _growth += 2>>
	<<elseif ($slaves[$i].weight <= -30)>>
		the diet $he is required to maintain to keep slim impedes growth, <<if $slaves[$i].health > -20>>but<<else>>and<</if>>
		<<set _growth-->>
	<</if>>
	<<if $slaves[$i].health > 80>>
		$his perfect health supports growth extremely well, <<if $slaves[$i].boobs < 5000 || $slaves[$i].boobs >= 10000>>and<<else>>but<</if>>
		<<set _growth += 6>>
	<<elseif ($slaves[$i].health > -20)>>
		$his health supports growth, <<if $slaves[$i].boobs < 2000 || $slaves[$i].boobs >= 10000>>and<<else>>but<</if>>
	<<else>>
		$his poor health does not support steady growth, but
		<<set _growth-->>
	<</if>>
	$his
	<<if ($slaves[$i].boobs < 800)>>
		small chest tends to grow rapidly.
		<<set _growth += 10>>
		<<if ($slaves[$i].boobShape != "saggy") && ($slaves[$i].breastMesh != 1)>>
			<<if random(1,10) < 5>>
				As $his boobs rapidly grow, they become saggy under their own rapid weight gain.
				<<set $slaves[$i].boobShape = "saggy">>
			<</if>>
		<</if>>
	<<elseif ($slaves[$i].boobs < 2000)>>
		modest tits tend to grow fast.
		<<set _growth += 8>>
		<<if ($slaves[$i].boobShape != "saggy") && ($slaves[$i].breastMesh != 1)>>
			<<if random(1,10) < 5>>
				As $his boobs rapidly grow, they become saggy under their own rapid weight gain.
				<<set $slaves[$i].boobShape = "saggy">>
			<</if>>
		<</if>>
	<<elseif ($slaves[$i].boobs < 5000)>>
		heavy boobs tend to grow modestly.
		<<set _growth += 6>>
		<<if ($slaves[$i].boobShape != "saggy") && ($slaves[$i].breastMesh != 1)>>
			<<if random(1,10) == 1>>
				As they grow, they @@.coral;begin to sag@@ under their own monstrous weight, $his mass of breastflesh directing $his nipples downward.
				<<set $slaves[$i].boobShape = "saggy">>
			<</if>>
		<</if>>
	<<elseif ($slaves[$i].boobs < 10000)>>
		huge boobs tend to grow slowly.
		<<set _growth += 4>>
		<<if ($slaves[$i].boobShape != "saggy") && ($slaves[$i].breastMesh != 1)>>
			<<if random(1,10) == 1>>
				As they grow, they @@.coral;begin to sag@@ under their own monstrous weight, $his mass of breastflesh directing $his nipples downward.
				<<set $slaves[$i].boobShape = "saggy">>
			<</if>>
		<</if>>
	<<else>>
		monstrous udders are just the right size to experience the explosive growth the drugs promise.
		<<set _growth += 10>>
		<<if ($slaves[$i].boobShape != "normal") && ($slaves[$i].breastMesh != 1)>>
			<<if random(1,10) == 1>>
				$His @@.coral;breasts lose their unique shape@@ as they adapt to their monstrous, unnatural size. There's simply nowhere else for $his mass of boob to go, and its expansion fills $his breasts out and points $his nipples forward.
				<<set $slaves[$i].boobShape = "normal">>
			<</if>>
		<</if>>
	<</if>>
	<<if $slaves[$i].geneMods.NCS == 1>>
		<<set _growth = Math.trunc(_growth/2.2)>>
		$His @@.orange;NCS@@ kicks in fighting the breast growth, converting the excess fat into sexual energy for $him.
		<<set $slaves[$i].energy += _growth>>
	<</if>>
	<<set _growth = 25*Math.trunc(_growth*0.8)>>
	<<set $slaves[$i].boobs += Math.clamp(_growth, 25, 5000)>>
	<<if random(1,100) > 30+($slaves[$i].areolae*10) && $slaves[$i].areolae < 4>>
		The increase in breast size @@.lime;stretches and broadens $his areolae.@@
		<<set $slaves[$i].areolae += 1>>
	<</if>>
	<<if (random(1,100) > 70) && ($slaves[$i].nipples != "inverted") && ($slaves[$i].nipples != "fuckable")>>
		<<if ($slaves[$i].nipples == "tiny") || ($slaves[$i].nipples == "cute") || ($slaves[$i].nipples == "puffy") || ($slaves[$i].nipples == "huge")>>
			The explosive increase in breast flesh also @@.lime;completely swallows $his nipples.@@
			<<set $slaves[$i].nipples = "inverted">>
		<</if>>
	<</if>>
	<<if $slaves[$i].geneticQuirks.gigantomastia == 3 && random(1,200) < $slaves[$i].hormoneBalance>>
		<<set $slaves[$i].geneticQuirks.gigantomastia = 2>>
	<</if>>
	<<if $slaves[$i].geneticQuirks.macromastia == 3 && random(1,200) < $slaves[$i].hormoneBalance>>
		<<set $slaves[$i].geneticQuirks.macromastia = 2>>
	<</if>>

<<case "breast injections" "intensive breast injections">>
	<<set _gigantomastiaMod = $slaves[$i].geneticQuirks.gigantomastia == 2 ? ($slaves[$i].geneticQuirks.macromastia == 2 ? 3 : 2) : 1>>
	<<set _growth = 1+$injectionUpgrade*_gigantomastiaMod>>
	$He receives @@.lime;
	<<if _intensive>>
		massive
		<<set _growth*=2>>
	<</if>>
	injections of <<if ($injectionUpgrade != 0)>>advanced<</if>> growth hormones, right into $his breasts;@@
	<<if ($slaves[$i].diet == "fattening")>>
		all the food $he's required to consume fuels growth, <<if $slaves[$i].health > -20>>and<<else>>but<</if>>
		<<set _growth += 2>>
	<<elseif ($slaves[$i].diet == "fertility")>>
		the fertility hormones in $his food favor breast growth, <<if $slaves[$i].health > -20>>and<<else>>but<</if>>
		<<set _growth += 1>>
	<<elseif ($slaves[$i].diet == "restricted")>>
		$his restricted diet means $his body has few resources to grow on, <<if $slaves[$i].health > -20>>but<<else>>and<</if>>
		<<set _growth -= 2>>
	<<elseif ($slaves[$i].weight > 130)>>
		the enormous diet $he eats to maintain $his hugely fat body helps support growth, <<if $slaves[$i].health > -20>>and<<else>>but<</if>>
		<<set _growth++>>
	<<elseif ($slaves[$i].weight > 30)>>
		the generous diet $he eats to maintain $his fat body helps support growth, <<if $slaves[$i].health > -20>>and<<else>>but<</if>>
		<<set _growth++>>
	<<elseif ($slaves[$i].weight <= -30)>>
		the diet $he is required to maintain to keep slim impedes growth, <<if $slaves[$i].health > -20>>but<<else>>and<</if>>
		<<set _growth-->>
	<</if>>
	<<if $slaves[$i].health > 80>>
		$his perfect health supports growth extremely well, <<if $slaves[$i].boobs < 2000>>and<<else>>but<</if>>
		<<set _growth++>>
	<<elseif ($slaves[$i].health > -20)>>
		$his health supports growth, <<if $slaves[$i].boobs < 2000>>and<<else>>but<</if>>
	<<else>>
		$his poor health does not support steady growth, <<if $slaves[$i].boobs < 2000>>but<<else>>and<</if>>
		<<set _growth-->>
	<</if>>
	$his
	<<if ($slaves[$i].boobs < 800)>>
		modest chest tends to grow quickly.
		<<set _growth += 3>>
		<<if ($slaves[$i].boobShape != "torpedo-shaped") && ($slaves[$i].boobShape != "wide-set") && ($slaves[$i].breastMesh != 1)>>
			<<if random(1,10) == 1>>
				<<if $slaves[$i].shoulders < 0>>
					@@.lime;As $his boobs grow, they take on a torpedo shape within the frame of $his narrow shoulders,@@ projecting a long way from $his chest and swinging delightfully when $he's naked.
					<<set $slaves[$i].boobShape = "torpedo-shaped">>
				<<else>>
					@@.lime;As $his boobs grow, they become widely set across the broadness of $his chest,@@ spreading sideways even when $he's not lying on $his back.
					<<set $slaves[$i].boobShape = "wide-set">>
				<</if>>
			<</if>>
		<</if>>
	<<elseif ($slaves[$i].boobs < 2000)>>
		big tits tend to grow readily.
		<<set _growth += 2>>
		<<if ($slaves[$i].boobShape == "saggy") || ($slaves[$i].boobShape == "downward-facing") && ($slaves[$i].breastMesh != 1)>>
			<<if random(1,10) == 1>>
				@@.lime;As they grow, they lose their sag,@@ with the expanding tissue lifting $his nipples up to point forward.
				<<set $slaves[$i].boobShape = "normal">>
			<</if>>
		<</if>>
	<<elseif ($slaves[$i].boobs < 5000)>>
		heavy boobs tend to grow slowly.
		<<set _growth++>>
		<<if ($slaves[$i].boobShape != "saggy") && ($slaves[$i].breastMesh != 1)>>
			<<if random(1,10) == 1>>
				@@.coral;As they grow, they begin to sag@@ under their own monstrous weight, $his mass of breastflesh directing $his nipples downward.
				<<set $slaves[$i].boobShape = "saggy">>
			<</if>>
		<</if>>
	<<else>>
		monstrous udders tend to grow very slowly.
		<<if ($slaves[$i].boobShape != "normal") && ($slaves[$i].breastMesh != 1)>>
			<<if random(1,10) == 1>>
				@@.coral;$His breasts lose their unique shape@@ as they adapt to their monstrous, unnatural size. There's simply nowhere else for $his mass of boob to go, and its expansion fills $his breasts out and points $his nipples forward.
				<<set $slaves[$i].boobShape = "normal">>
			<</if>>
		<</if>>
	<</if>>
		<<if $slaves[$i].geneMods.NCS == 1>>
			<<set _growth = Math.trunc(_growth/2.2)>>
			$His @@.orange;NCS@@ kicks in fighting the breast growth, converting the excess fat into sexual energy for $him.
			<<set $slaves[$i].energy += _growth>>
		<</if>>
	<<set _growth = 25*Math.trunc(_growth*0.8)>>
	<<set $slaves[$i].boobs += Math.clamp(_growth, 25, 200)>>
	<<if $slaves[$i].areolae < 4>>
		<<if _growth > $slaves[$i].areolae*25>>
			The increase in breast size @@.lime;stretches and broadens $his areolae.@@
			<<set $slaves[$i].areolae += 1>>
		<</if>>
	<</if>>
	<<if $slaves[$i].nipples != "huge" && ($slaves[$i].nipples != "fuckable")>>
		<<if random(1,200) < _growth>>
			<<if ($slaves[$i].nipples == "tiny")>>
				The hormones also @@.lime;cause nipple growth.@@
				<<set $slaves[$i].nipples = "cute">>
			<<elseif ($slaves[$i].nipples == "cute")>>
				<<if random(1,2) == 1>>
					The hormones also @@.lime;cause $his cute nipples to become puffy.@@
					<<set $slaves[$i].nipples = "puffy">>
				<<else>>
					The explosive breast growth also @@.lime;causes $his cute nipples to become partially inverted.@@
					<<set $slaves[$i].nipples = "partially inverted">>
				<</if>>
			<<elseif ($slaves[$i].nipples == "puffy")>>
				<<if random(1,2) == 1>>
					The hormones also @@.lime;cause $his puffy nipples to become really enormous.@@
					<<set $slaves[$i].nipples = "huge">>
				<<else>>
					The explosive breast growth also @@.lime;causes $his puffy nipples to become completely inverted.@@
					<<set $slaves[$i].nipples = "inverted">>
				<</if>>
			<<elseif ($slaves[$i].nipples == "partially inverted")>>
				The explosive breast growth also @@.lime;causes $his nipples to invert completely.@@
				<<set $slaves[$i].nipples = "inverted">>
			<</if>>
		<</if>>
	<</if>>
	<<if $slaves[$i].geneticQuirks.gigantomastia == 3 && random(1,300) < $slaves[$i].hormoneBalance>>
		<<set $slaves[$i].geneticQuirks.gigantomastia = 2>>
	<</if>>
	<<if $slaves[$i].geneticQuirks.macromastia == 3 && random(1,300) < $slaves[$i].hormoneBalance>>
		<<set $slaves[$i].geneticQuirks.macromastia = 2>>
	<</if>>

<<case "butt injections" "intensive butt injections">>
	<<set _growth = 1+$injectionUpgrade>>
	<<set _rearQuirk = $slaves[$i].geneticQuirks.rearLipedema == 2 ? 1 : 0>>
	$He receives @@.lime;
	<<if _intensive>>
		massive
		<<set _growth*=2>>
	<</if>>
	injections of <<if ($injectionUpgrade != 0)>>advanced<</if>> growth hormones, right into $his buttocks;@@
	<<if ($slaves[$i].diet == "fattening")>>
		all the food $he's required to consume fuels growth, <<if $slaves[$i].health > -20>>and<<else>>but<</if>>
		<<set _growth += 2>>
	<<elseif ($slaves[$i].diet == "restricted")>>
		$his restricted diet means $his body has few resources to grow on, <<if $slaves[$i].health > -20>>but<<else>>and<</if>>
		<<set _growth -= 2>>
	<<elseif ($slaves[$i].weight > 130)>>
		the generous diet $he eats to maintain $his fat body helps support growth, <<if $slaves[$i].health > -20>>and<<else>>but<</if>>
		<<set _growth += 3>>
	<<elseif ($slaves[$i].weight > 30)>>
		the generous diet $he eats to maintain $his fat body helps support growth, <<if $slaves[$i].health > -20>>and<<else>>but<</if>>
		<<set _growth++>>
	<<elseif ($slaves[$i].weight <= -30)>>
		the diet $he is required to maintain to keep slim impedes growth, <<if $slaves[$i].health > -20>>but<<else>>and<</if>>
		<<set _growth-->>
	<</if>>
	<<if $slaves[$i].health > 80>>
		$his perfect health supports growth extremely well, <<if $slaves[$i].butt < 6>>and<<else>>but<</if>>
		<<set _growth++>>
	<<elseif ($slaves[$i].health > -20)>>
		$his health supports growth, <<if $slaves[$i].butt < 6>>and<<else>>but<</if>>
	<<else>>
		$his poor health does not support steady growth, <<if $slaves[$i].butt < 6>>but<<else>>and<</if>>
		<<set _growth-->>
	<</if>>
	$his
	<<if $slaves[$i].butt < 2>>
		modest rear tends to grow quickly.
	<<elseif $slaves[$i].butt < 4>>
		big behind tends to grow readily.
		<<set _growth += 2>>
	<<elseif $slaves[$i].butt < 6>>
		massive ass tends to grow slowly.
		<<set _growth++>>
	<<else>>
		monstrous cheeks tend to grow very slowly.
	<</if>>
	<<if _rearQuirk != 0>>
		<<set _growth += 3>>
		<<if $geneticMappingUpgrade >= 1>>
			$His rear lipedema amplifies the drug's effects on $his bottom.
		<<else>>
			The drugs seem to have an added effect on $him.
		<</if>>
	<</if>>
	<<set _growth*=0.2>>
	<<if $slaves[$i].geneMods.NCS == 1>>
		<<set _growth = Math.trunc(_growth/2.2)>>
		$His @@.orange;NCS@@ kicks in fighting the butt growth<<if _growth > 1>>, converting the excess fat into sexual energy for $him<<else>> and no change happens<</if>>.
		<<set $slaves[$i].energy += _growth>>
	<</if>>
	<<set $slaves[$i].butt += Math.clamp(_growth,0,2+_rearQuirk)>>
	<<if $slaves[$i].geneMods.rapidCellGrowth != 1>>
		<<if _intensive>>
			<<if $slaves[$i].anus > 1>>
				The reckless drug therapy has the side effect of rejuvenating $his sphincter muscles, @@.lime;tightening up $his <<if $slaves[$i].anus > 4>>gaping<<elseif $slaves[$i].anus > 3>>loose<<else>>relaxed<</if>> anus.@@
				<<set $slaves[$i].anus-->>
			<</if>>
		<<else>>
			<<if $slaves[$i].anus > 2>>
				The drugs nearby rejuvenate $his sphincter muscles, @@.lime;tightening up $his <<if $slaves[$i].anus > 4>>gaping<<else>>loose<</if>> anus.@@
				<<set $slaves[$i].anus-->>
			<</if>>
		<</if>>
	<</if>>

<<case "hyper butt injections">>
	<<set $slaves[$i].chem += 2>>
	<<set _rearQuirk = $slaves[$i].geneticQuirks.rearLipedema == 2 ? 1 : 0>>
	<<set _growth = .5>>
	$He receives @@.lime;direct injections of <<if ($injectionUpgrade != 0)>> advanced<</if>> hyper growth hormones, right into $his buttocks;@@
	<<if ($slaves[$i].diet == "fattening")>>
		all the food $he's required to consume fuels growth, <<if $slaves[$i].health > -20>>and<<else>>but<</if>>
		<<set _growth += 0.2>>
	<<elseif ($slaves[$i].diet == "restricted")>>
		$his restricted diet means $his body has few resources to grow on, <<if $slaves[$i].health > -20>>and<<else>>but<</if>>
		<<set _growth -= 0.2>>
	<<elseif ($slaves[$i].weight > 130)>>
	the enormous diet $he eats to maintain $his hugely fat body helps support growth, <<if $slaves[$i].health > -20>>and<<else>>but<</if>>
	<<set _growth += 0.2>>
	<<elseif ($slaves[$i].weight > 30)>>
	the generous diet $he eats to maintain $his fat body helps support growth, <<if $slaves[$i].health > -20>>and<<else>>but<</if>>
	<<set _growth += 0.1>>
	<<elseif ($slaves[$i].weight <= -30)>>
		the diet $he is required to maintain to keep slim impedes growth, <<if $slaves[$i].health > -20>>and<<else>>but<</if>>
		<<set _growth -= 0.1>>
	<</if>>
	<<if $slaves[$i].health > 80>>
		$his perfect health supports growth extremely well, <<if $slaves[$i].butt < 10>>and<<else>>but<</if>>
		<<set _growth += .5>>
	<<elseif ($slaves[$i].health > -20)>>
		$his health supports growth reasonably well, <<if ($slaves[$i].butt < 10)>>and<<else>>but<</if>>
	<<else>>
		$his poor health does not support steady growth, <<if ($slaves[$i].butt < 10)>>but<<else>>and<</if>>
		<<set _growth -= 0.1>>
	<</if>>
	$his
	<<if ($slaves[$i].butt < 6)>>
		modest rear tends to grow quickly.
		<<set _growth += 1>>
	<<elseif ($slaves[$i].butt < 8)>>
		gigantic behind tends to grow readily.
		<<set _growth += .8>>
	<<elseif ($slaves[$i].butt < 10)>>
		titanic jiggly butt tends to grow steadily.
		<<set _growth += .6>>
	<<else>>
		inhuman cheeks tend to grow slowly.
		<<set _growth += .4>>
	<</if>>
	<<if _rearQuirk != 0>>
		<<set _growth += 1>>
		<<if $geneticMappingUpgrade >= 1>>
			$His rear lipedema massively amplifies the drug's effects.
		<<else>>
			The drugs seem to have an added effect on $him.
		<</if>>
	<</if>>
	<<if $slaves[$i].geneMods.NCS == 1>>
		<<set _growth = Math.trunc(_growth/2.2)>>
		$His @@.orange;NCS@@ kicks in fighting the butt growth<<if _growth > 1>>, converting the excess fat into sexual energy for $him<<else>> and no change happens<</if>>.
		<<set $slaves[$i].energy += _growth>>
	<</if>>
	<<if ((_growth > 1) || ($slaves[$i].geneMods.NCS == 1))>>
		<<set $slaves[$i].butt += _growth>>
	<<else>>
		<<set $slaves[$i].butt += 1>>
	<</if>>
	<<if $slaves[$i].butt >= 20>>
		<<set $slaves[$i].butt = 20>>
	<</if>>

<<case "lip injections">>
	<<if ($slaves[$i].lips <= 95)>>
		<<if ($slaves[$i].lips > 90)>>
			@@.lime;$His lips swell rapidly from the injections of <<if ($injectionUpgrade != 0)>> advanced<</if>> growth agents, becoming a facepussy useless for anything other than oral sex.@@
		<<elseif ($slaves[$i].lips > 70) && ($slaves[$i].lips <= 75)>>
			@@.lime;$His lips swell rapidly from the injections of <<if ($injectionUpgrade != 0)>> advanced<</if>> growth agents, and are now so large that $he can no longer enunciate properly.@@
		<<else>>
			@@.lime;$His lips swell rapidly from the injections of <<if ($injectionUpgrade != 0)>> advanced<</if>> growth agents.@@
		<</if>>
		<<if $slaves[$i].geneMods.NCS == 1>>
			<<set $slaves[$i].lips += 2>>
		<<else>>
			<<set $slaves[$i].lips += 5>>
		<</if>>
	<</if>>

<<case "growth stimulants">>
	<<set $slaves[$i].chem += 2>>
	<<set _growth = 1>>
	$He receives frequent @@.lime;
	injections of growth stimulants.@@
	/*Hormones*/
	<<if $slaves[$i].hormones == 2 || $slaves[$i].hormones == -2>>
		<<set _growth-->>
		The massive quantities of sexual hormones flooding $his body limits the effectiveness of the treatment.
	<<elseif $slaves[$i].hormones == 0>>
		<<set _growth += 0.2>>
		In the absence of significant levels of sexual hormones, the treatment is more effective.
	<<elseif $slaves[$i].hormones == 1 || $slaves[$i].hormones == -1>>
		$His low level of sexual hormones allow the treatment to work undisturbed.
	<</if>>
	/*hormone balance*/
	<<if $slaves[$i].hormoneBalance <= -50>>
		<<set _growth += 0.5>>
	<<elseif $slaves[$i].hormoneBalance <= -25>>
		<<set _growth += 0.2>>
	<<elseif $slaves[$i].hormoneBalance < 50>>
		<<set _growth -= 0.2>>
	<<else>>
		<<set _growth -= 0.5>>
	<</if>>
	/*diet*/
	<<if $slaves[$i].diet == "fattening">>
		All the food $he's required to consume boosts
		<<if $slaves[$i].dietMilk == 2>>
			growth and the generous amount of added milk enhances its effect.
			<<set _growth += 0.3>>
		<<elseif $slaves[$i].dietMilk == 1>>
			growth and the added milk enhances its effect.
			<<set _growth += 0.2>>
		<<else>>
			growth.
		<</if>>
		<<set _growth += 0.2>>
	<<elseif $slaves[$i].diet == "restricted">>
		$His restricted diet means $his body has few resources to grow
		<<if $slaves[$i].dietMilk == 2>>
			on, but the generous amount of added milk mitigates its effect.
			<<set _growth += 0.3>>
		<<elseif $slaves[$i].dietMilk == 1>>
			on, but the added milk mitigates its effect.
			<<set _growth += 0.2>>
		<<else>>
			on.
		<</if>>
		<<set _growth-->>
	<<elseif $slaves[$i].diet == "slimming">>
		$His growth is slightly inhibited by $his strict
		<<if $slaves[$i].dietMilk == 2>>
			diet, but the generous amount of added milk mitigates its effect.
			<<set _growth += 0.3>>
		<<elseif $slaves[$i].dietMilk == 1>>
			diet, but the added milk mitigates its effect.
			<<set _growth += 0.2>>
		<<else>>
			diet.
		<</if>>
		<<set _growth -= 0.2>>
	<<elseif ($slaves[$i].diet == "fertility")>>
		the fertility hormones in $his food restrain $his
		<<if $slaves[$i].dietMilk == 2>>
			growth, but the generous amount of added milk mitigates its effect.
			<<set _growth += 0.3>>
		<<elseif $slaves[$i].dietMilk == 1>>
			growth, but the added milk mitigates its effect.
			<<set _growth += 0.2>>
		<<else>>
			growth.
		<</if>>
		<<set _growth -= 0.1>>
	<<elseif $slaves[$i].diet == "XY" || $slaves[$i].diet == "XX" || $slaves[$i].diet == "XXY">>
		$His growth is restrained by $his sexual hormones rich
		<<if $slaves[$i].dietMilk == 2>>
			diet, but the generous amount of added milk mitigates its effect.
			<<set _growth += 0.3>>
		<<elseif $slaves[$i].dietMilk == 1>>
			diet, but the added milk mitigates its effect.
			<<set _growth += 0.2>>
		<<else>>
			diet.
		<</if>>
		<<set _growth -= 0.5>>
	<<elseif $slaves[$i].diet == "cleansing">>
		$His growth is severely inhibited by $his cleansing
		<<if $slaves[$i].dietMilk == 2>>
			diet, but the generous amount of added milk mitigates its effect.
			<<set _growth += 0.3>>
		<<elseif $slaves[$i].dietMilk == 1>>
			diet, but the added milk mitigates its effect.
			<<set _growth += 0.2>>
		<<else>>
			diet.
		<</if>>
		<<set _growth-->>
	<<elseif $slaves[$i].diet == "muscle building" || $slaves[$i].muscles >= 96>>
		$His workout diet and constant physical exercise help support
		<<if $slaves[$i].dietMilk == 2>>
			growth and the generous amount of added milk enhances its effect.
			<<set _growth += 0.3>>
		<<elseif $slaves[$i].dietMilk == 1>>
			growth and the added milk enhances its effect.
			<<set _growth += 0.2>>
		<<else>>
			growth.
		<</if>>
		<<set _growth += 0.5>>
	<</if>>
	/*health*/
	<<if $slaves[$i].health > 80>>
		$His perfect health greatly supports $his growth.
		<<set _growth += 0.2>>
	<<elseif $slaves[$i].health > -20>>
		$His health supports $his growth.
	<<else>>
		$His poor health hinders growth.
		<<set _growth-->>
	<</if>>
	/*if growth was accomplished*/
	<<if _growth > 0>>
		/*age modifier*/
		<<set _ageMod = 1>>
		<<if $slaves[$i].geneMods.NCS == 1>>
			$His @@.orange;NCS@@ inhibits $his body response to the treatment.
			<<set _ageMod = .25>>
		<<elseif $slaves[$i].genes == "XY">>
			<<if $slaves[$i].pubertyXY == 0 && $slaves[$i].physicalAge <= 3>>
				$His very young body responds extremely well to the treatment.
				<<set _ageMod = 2.5>>
			<<elseif $slaves[$i].pubertyXY == 0 && $slaves[$i].physicalAge > 3>>
				$His young body eagerly responds to the stimulants.
				<<set _ageMod = 1.5>>
			<<elseif $slaves[$i].physicalAge <= ($slaves[$i].pubertyAgeXY + $pubertyLength)>>
				Due to $his recent puberty, $his body welcomes the treatment with open arms.
				<<set _ageMod = 2>>
			<<elseif $slaves[$i].physicalAge <= $maxGrowthAge>>
				With $his puberty concluded, $his body resists the stimulants.
				<<set _ageMod = 1>>
			<<else>>
				$His mature body struggles to respond to the treatment, making progress difficult.
				<<set _ageMod = 0.5>>
			<</if>>
		<<elseif $slaves[$i].genes == "XX">>
			<<if $slaves[$i].pubertyXX == 0 && $slaves[$i].physicalAge <= 3>>
				$His very young body responds extremely well to the treatment.
				<<set _ageMod = 2.5>>
			<<elseif $slaves[$i].pubertyXX == 0 && $slaves[$i].physicalAge > 3>>
				$His young body eagerly responds to the stimulants.
				<<set _ageMod = 1.5>>
			<<elseif $slaves[$i].physicalAge <= ($slaves[$i].pubertyAgeXX + $pubertyLength)>>
				Due to $his recent puberty, $his body welcomes the treatment with open arms.
				<<set _ageMod = 2>>
			<<elseif $slaves[$i].physicalAge <= $maxGrowthAge>>
				With $his puberty concluded, $his body resists the stimulants.
				<<set _ageMod = 1>>
			<<else>>
				$His mature body struggles to respond to the treatment, making progress difficult.
				<<set _ageMod = 0.5>>
			<</if>>
		<</if>>
		/*evaluate against slave expected height ...*/
		<<set _heightDiff = $slaves[$i].height / Height.forAge($slaves[$i].height, $slaves[$i])>>
		/*if $he is taller than the expected height the growth is reduced, if shorter accelerated,
		proportionally to the distance from the expected height*/
		<<if _heightDiff >= 1>>
			<<set _heightDiff = 1 - _heightDiff>>
		<<else>>
			<<set _heightDiff-->>
		<</if>>
		/*... and calculates final value*/
		<<set _growth = (_growth + _growth * _heightDiff) * _ageMod>>
		<<if $slaves[$i].geneMods.NCS == 0>>
			<<set _growth = Math.round(Math.clamp(_growth,0,5))>>
		<<else>>
			<<set _growth = Math.round(Math.clamp(_growth,0,2))>>
		<</if>>
		/*communicates the amount of growth*/
		<<if _growth < 1>>												/*in case _heightDiff manages to bring _growth down enough*/
			Despite the treatment, $his height does not increase this week.
		<<elseif _growth == 1>>
			@@.lime;$His height slightly increased this week.@@
		<<elseif _growth == 2>>
			@@.lime;$His height increased this week.@@
		<<elseif _growth == 3>>
			@@.lime;$His height greatly increased this week.@@
		<<elseif _growth == 4>>
			@@.lime;$His height dramatically increased this week.@@
		<<elseif _growth == 5>>
			@@.lime;$His body experienced explosive growth this week,@@
		<</if>>
		/*health issues*/
		<<if _growth == 5>>
			$his growth is so extreme that $his body can barely keep up, @@.red;severely damaging $his health.@@
			<<set $slaves[$i].health -= 20>>
		<</if>>
		<<if random(1,10) == 1 && _growth != 5>>
			The stimulants stressed $slaves[$i].slaveName's body more than expected, @@.red;damaging $his health.@@
			<<set $slaves[$i].health -= 10>>
		<</if>>
		<<if $slaves[$i].physicalAge > $maxGrowthAge>>
			<<if random(1,6) == 1>>
				Since $his body already concluded $his natural growth processes, the treatment @@.red;weakens $him considerably.@@
				<<set $slaves[$i].health -= 15>>
			<</if>>
		<</if>>
		/*updates slave's height*/
		<<set $slaves[$i].height += _growth>>
	/*if growth is zero or negative*/
	<<else>>
		Despite the treatment, $his height does not increase this week.
	<</if>>

<<case "male hormone injections">>
	<<if $slaves[$i].pubertyXY == 1>>
		$He has potent sperm. @@.yellow;$His drug regimen has been ended.@@
		<<set $slaves[$i].drugs = "no drugs">>
	<<else>>
		The intense hormonal injections leave $him @@.red;sickened and weak@@ as $his body struggles to adapt to the overwhelming chemicals flooding $his system.
		<<set $slaves[$i].chem += 20>>
		<<set $slaves[$i].health -= 10>>
		<<if $slaves[$i].energy > 5>>
			<<set $slaves[$i].energy -= 5>>
		<</if>>
	<</if>>

<<case "female hormone injections">>
	<<if $slaves[$i].pubertyXX == 1>>
		$He has begun ovulating. @@.yellow;$His drug regimen has been ended.@@
		<<set $slaves[$i].drugs = "no drugs">>
	<<else>>
		The intense hormonal injections leave $him @@.red;sickened and weak@@ as $his body struggles to adapt to the overwhelming chemicals flooding $his system.
		<<set $slaves[$i].chem += 20>>
		<<set $slaves[$i].health -= 10>>
		<<if $slaves[$i].energy > 5>>
			<<set $slaves[$i].energy -= 5>>
		<</if>>
	<</if>>

<<case "penis enhancement" "intensive penis enhancement">>
	<<set _growth = 60-($injectionUpgrade*10)>>
	<<if _intensive>><<set _growth -= 20>><</if>>
	<<if $slaves[$i].geneMods.NCS == 1>>
		<<set _growth += 30>>
	<</if>>
	<<if ($slaves[$i].dick > 0)>>
		<<if (random(1,100) > _growth+($slaves[$i].dick*5))>>
			@@.lime;$His cock grows painfully,@@ becoming both longer and girthier.
			<<set $slaves[$i].dick++>>
		<<else>>
			Despite being dosed with a spectrum of powerful growth promoters, $his dick does not grow.
		<</if>>
		<<if $slaves[$i].balls == 1>>
			<<if $slaves[$i].scrotum > 0>>
				As a side effect of the dick enhancement drugs, @@.lime;$his balls drop.@@
				<<set $slaves[$i].balls += 1>>
			<</if>>
		<</if>>
		<<if $slaves[$i].dick == 6>>
			<<if $slaves[$i].balls > 0>>
				@@.yellow;$His dick is at the limit of what $his cardiovascular system could conceivably bring erect.@@ Further penis enhancement may limit $his ability to get hard.
			<</if>>
		<</if>>
	<<else>>
		<<if (random(1,100) > _growth-($slaves[$i].clit*10))>>
			@@.lime;$His clit grows painfully,@@ becoming both longer and girthier.
			<<set $slaves[$i].clit++>>
		<<else>>
			Despite being dosed with a spectrum of powerful growth promoters, $his clit does not grow.
		<</if>>
	<</if>>

<<case "hyper penis enhancement">>
	<<if ($slaves[$i].dick > 0)>>
		$He receives @@.lime;direct injections of hyper growth hormones, right into $his dick.@@
		<<set $slaves[$i].chem += 2>>
		<<if ($slaves[$i].dick >= 30)>>
			$His cock is now so huge that further drug enhancement will not increase its size. @@.yellow;$His drug regimen has been ended.@@
			<<set $slaves[$i].drugs = "no drugs">>
		<<else>>
			<<if $slaves[$i].geneMods.NCS == 0>>
				@@.lime;$His cock grows painfully,@@ becoming both longer and girthier.
				<<set $slaves[$i].dick += 1>>
			<<elseif (random(1, (20 - $slaves[$i].dick)) > 12)>>
				@@.lime;$His cock grows painfully,@@ becoming both longer and girthier, depsite $his @@.orange;NCS.@@
				<<set $slaves[$i].dick += 1>>
			<<else>>
				The treatment fails to overcome $his @@.orange;NCS@@ and $his cock fails to grow.
			<</if>>
		<</if>>
	<<else>>
		$He receives @@.lime;direct injections of hyper growth hormones, right into $his clit.@@
		<<set $slaves[$i].chem += 2>>
		<<if ($slaves[$i].clit == 5)>>
			$His clit is now so huge that further drug enhancement will not increase its size. @@.yellow;$His drug regimen has been ended.@@
			<<set $slaves[$i].drugs = "no drugs">>
		<<else>>
			<<if $slaves[$i].geneMods.NCS == 0>>
				@@.lime;$His clit grows painfully,@@ becoming both longer and girthier.
				<<set $slaves[$i].clit += 1>>
			<<elseif (random(1,(16 - $slaves[$i].clit)) > 10)>>
				@@.lime;$His clit grows painfully,@@ becoming both longer and girthier, despite $his @@.orange;NCS.@@
				<<set $slaves[$i].clit += 1>>
			<<else>>
				The treatment fails to overcome $his @@.orange;NCS@@ and $his clit fails to grow.
			<</if>>
		<</if>>
	<</if>>

<<case "testicle enhancement" "intensive testicle enhancement">>
	<<if $slaves[$i].balls >= 10>>
	<<else>>
		<<set _growth = 60-($injectionUpgrade*10)>>
		<<if _intensive>><<set _growth -= 20>><</if>>
		<<if $slaves[$i].geneMods.NCS == 1>>
			<<set _growth += 30>>
		<</if>>
		<<if (random(1,100) > _growth+($slaves[$i].balls*5))>>
			@@.lime;$His balls swell painfully.@@
			<<set $slaves[$i].balls++>>
		<<else>>
			Despite being filled with testicle enhancers and painfully swollen with resultant cum overproduction, $his balls do not grow.
		<</if>>
		<<if $slaves[$i].dick == 1 && $slaves[$i].geneMods.NCS == 0>>
			<<if $slaves[$i].scrotum > 0>>
				As a side effect of the testicle enhancement drugs, @@.lime;$his micropenis grows,@@ becoming merely tiny.
				<<set $slaves[$i].dick++>>
			<</if>>
		<</if>>
	<</if>>

<<case "hyper testicle enhancement">>
	$He receives @@.lime;direct injections of hyper growth hormones, right into $his testicles;@@ forcing them to swell with cum overproduction.
	<<set $slaves[$i].chem += 2>>
	<<if ($slaves[$i].balls >= 125)>>
		$His balls are now so immense that further drug enhancement will not increase their size. However, leaving $him on them will still stimulate cum production.
	<<elseif ($slaves[$i].balls < 125)>>
		<<if $slaves[$i].geneMods.NCS == 0>>
			@@.lime;$His balls swell painfully.@@
			<<set $slaves[$i].balls += 2>>
		<<elseif random(1,400 - $slaves[$i].balls) > 200>>
			@@.lime;$His balls swell painfully,@@ despite $his @@.orange;NCS.@@
			<<set $slaves[$i].balls += 1>>
		<<else>>
			The treatment fails to overcome $his @@.orange;NCS@@ and $his balls fail to grow.
		<</if>>
	<</if>>

<<case "steroids">>
	<<if $slaves[$i].geneMods.NCS == 0 || random(1,100) > 50>>
		<<if ($slaves[$i].dick == 0) && (random(1,100) > 40+($slaves[$i].clit*10))>>
			The gear $he's on @@.lime;increases the size of $his clit.@@
			<<set $slaves[$i].clit += 1>>
		<<elseif ($slaves[$i].dick != 0) && ($slaves[$i].dick < 3) && (random(1,100) > 95)>>
			The gear $he's on @@.lime;increases the size of $his penis.@@
			<<set $slaves[$i].dick += 1>>
		<<elseif ($slaves[$i].faceShape != "masculine") && ($slaves[$i].faceShape != "androgynous") && (random(1,100) > 95)>>
			The gear $he's on @@.orange;hardens $his face into androgyny.@@
			<<set $slaves[$i].faceShape = "androgynous">>
		<<elseif ($slaves[$i].balls != 0) && ($slaves[$i].scrotum != 0) && ($slaves[$i].balls < 3) && (random(1,100) > 95)>>
			The gear $he's on @@.lime;increases the size of $his balls.@@
			<<set $slaves[$i].balls += 1>>
		<<elseif random(1,100) > 110-($slaves[$i].anus*10) && $slaves[$i].geneMods.rapidCellGrowth != 1>>
			The steroids $he's on have an effect on $his stretched anal muscles, giving $him a @@.lime;tighter butthole.@@
			<<set $slaves[$i].anus -= 1>>
		<<elseif random(1,100) > 110-($slaves[$i].vagina*10) && $slaves[$i].geneMods.rapidCellGrowth != 1>>
			The steroids $he's on have an effect on $his vaginal muscles, giving $him a @@.lime;tighter pussy.@@
			<<set $slaves[$i].vagina -= 1>>
		<<elseif ($slaves[$i].face-$slaves[$i].faceImplant > 10) && (random(1,100) > 95)>>
			The gear $he's on @@.orange;hardens $his pretty face a little.@@
			<<set $slaves[$i].face -= 5>>
		<</if>>
	<</if>>

<<case "anti-aging cream">>
	<<if ($slaves[$i].visualAge <= 18)>>
		$His outward age has regressed to the point that the creams will have little effect. Since there is no gain for further treatment, @@.yellow;$his drug regimen has been ended.@@
		<<set $slaves[$i].drugs = "no drugs">>
	<<else>>
		The skin creams @@.lime;soothe $his aging skin@@ leaving $him looking younger, though the effects are only skin deep.
		<<set $slaves[$i].visualAge -= 1>>
	<</if>>
	<<if $arcologies[0].FSYouthPreferentialist != "unset">>
		<<if $slaves[$i].visualAge > 30>>
			$He @@.mediumaquamarine;trusts you more@@ for allowing $him to fit in better with society and not be singled out for $his looks.
			<<set $slaves[$i].trust += 2>>
		<</if>>
	<</if>>
	<<if $arcologies[0].FSMaturityPreferentialist != "unset">>
		<<if $slaves[$i].visualAge > 30>>
			$He is @@.gold;terrified@@ that $his fading age will single $him out for abuse in your society.
			<<set $slaves[$i].trust -= 2>>
		<</if>>
	<</if>>

<<case "super fertility drugs">>
	<<if $slaves[$i].pregKnown == 1>>
		@@.yellow;$He's already pregnant, so the fertility drugs $he's on do $him no good.@@
	<<elseif $slaves[$i].pregWeek < 0>>
		$He's still recovering from a recent pregnancy, so the fertility drugs $he's on do $him little good.
	<<elseif ($slaves[$i].preg > 1)>>
		Despite being on intense fertility drugs, $he shows no signs of increased fertility. Cursory tests reveal that @@.lime;$he has a bun already in the oven.@@
		<<set $slaves[$i].pregKnown = 1>>
	<<elseif ($slaves[$i].vagina == -1) && ($slaves[$i].mpreg != 1)>>
		<<if ($slaves[$i].lactation == 0)>>
			Unfortunately, it's impossible to fuck $his asshole pregnant, limiting the potential impact of the fertility drugs $he's on to $his boobs.
		<<else>>
			The fertility drugs $he's on are pointless, since $he's already lactating and it's impossible to impregnate $his butthole. That's no reason not to try, of course.
		<</if>>
	<<elseif ($slaves[$i].preg < -1)>>
		$He's sterile, so the fertility drugs $he's on do $him no good.
	<<elseif ($slaves[$i].ovaries == 0) && ($slaves[$i].mpreg != 1)>>
		$He's barren, so the fertility drugs $he's on do $him no good.
	<<elseif ($slaves[$i].pubertyXX == 0) && (($slaves[$i].ovaries == 1) || ($slaves[$i].mpreg == 1))>>
		$He's prepubescent, so the fertility drugs $he's on do $him no good.
	<<elseif ($slaves[$i].preg == -1)>>
		$He's on contraceptives, so the fertility drugs $he's on do $him no good.
	<<else>>
		$He's on super fertility drugs, so $he is more likely to conceive, and will have multiple pregnancy.
	<</if>>
	<<if $slaves[$i].geneMods.NCS == 0>>
		<<if $slaves[$i].lactation == 0 && random(0,50) < $slaves[$i].health>>
			The hormonal changes produced by the fertility drugs have the side effect of @@.lime;inducing lactation,@@ indistinguishable from natural lactation.
			<<set $slaves[$i].lactation = 1, $slaves[$i].lactationDuration = 1>>
		<</if>>
	<</if>>
	<<if $slaves[$i].attrXY < 100 && random(0,10) < $slaves[$i].health>>
		The hormonal changes produced by the fertility drugs cause $him to begin @@.green;finding men more attractive.@@
		<<set $slaves[$i].attrXY += random(5,10)>>
	<</if>>
	<<if $slaves[$i].energy < 85 && random(0,10) < $slaves[$i].health>>
		The hormonal changes produced by the fertility drugs cause $him to @@.green;begin craving sex more.@@
		<<set $slaves[$i].energy += 2>>
	<</if>>

<<case "fertility drugs">>
	<<if $slaves[$i].pregKnown == 1>>
		@@.yellow;$He's already pregnant, so the fertility drugs $he's on do $him no good.@@
	<<elseif $slaves[$i].pregWeek < 0>>
		$He's still recovering from a recent pregnancy, so the fertility drugs $he's on do $him little good.
	<<elseif ($slaves[$i].preg > 1)>>
		Despite being on intense fertility drugs, $he shows no signs of increased fertility. Cursory tests reveal that @@.lime;$he has a bun already in the oven.@@
		<<set $slaves[$i].pregKnown = 1>>
	<<elseif ($slaves[$i].vagina == -1) && ($slaves[$i].mpreg != 1)>>
		<<if ($slaves[$i].lactation == 0)>>
			Unfortunately, it's impossible to fuck $his asshole pregnant, limiting the potential impact of the fertility drugs $he's on to $his boobs.
		<<else>>
			The fertility drugs $he's on are pointless, since $he's already lactating and it's impossible to impregnate $his butthole. That's no reason not to try, of course.
		<</if>>
	<<elseif ($slaves[$i].preg < -1)>>
		$He's sterile, so the fertility drugs $he's on do $him no good.
	<<elseif ($slaves[$i].ovaries == 0) && ($slaves[$i].mpreg != 1)>>
		$He's barren, so the fertility drugs $he's on do $him no good.
	<<elseif ($slaves[$i].pubertyXX == 0) && (($slaves[$i].ovaries == 1) || ($slaves[$i].mpreg == 1))>>
		$He's prepubescent, so the fertility drugs $he's on do $him no good.
	<<elseif ($slaves[$i].preg == -1)>>
		$He's on contraceptives, so the fertility drugs $he's on do $him no good.
	<<else>>
		$He's on fertility drugs, so $he is more likely to conceive, and may experience multiple pregnancy.
	<</if>>
	<<if $slaves[$i].geneMods.NCS == 0>>
		<<if $slaves[$i].lactation == 0 && random(0,100) < $slaves[$i].health>>
			The hormonal changes produced by the fertility drugs have the side effect of @@.lime;inducing lactation,@@ indistinguishable from natural lactation.
			<<set $slaves[$i].lactation = 1, $slaves[$i].lactationDuration = 1>>
		<</if>>
	<</if>>

<<case "appetite suppressors">>
	<<if $slaves[$i].weight <= -95>>
		Since $his body has no weight left to shed, $he no longer needs appetite suppressors to maintain it; @@.yellow;$his drug regimen has been ended.@@
		<<set $slaves[$i].drugs = "no drugs">>
	<<else>>
		<<switch $slaves[$i].diet>>
		<<case "slimming" "restricted">>
			Since $he is already on a diet that favors weight loss, $his reduced appetite allows $his body @@.lime;to shed pounds@@ even more effectively.
			<<set $slaves[$i].weight -= 5>>
		<<case "fattening">>
			Since $he is on a diet that favors weight gain, $his reduced appetite is counter productive; @@.yellow;$his drug regimen has been ended.@@
			<<set $slaves[$i].drugs = "no drugs">>
		<<default>>
			The appetite suppressors encourage $him to eat less at meal time, gradually causing $him to @@.lime;lose weight.@@
			<<set $slaves[$i].weight -= 2>>
		<</switch>>
	<</if>>

<<case "penis atrophiers">>
	$He receives @@.lime;direct injections of atrophiers right into $his penis,@@ causing $his body to begin pulling resources from it<<if $slaves[$i].geneMods.NCS == 1>>, $his @@.orange;NCS@@ amplifies the effectiveness<</if>>.
	<<set _shrinkage = 0>>
	<<if $slaves[$i].dick == 1>>
		$His penis is now so miniscule that further drug use will fail to shrink it further; @@.yellow;$his drug regimen has been ended.@@
		<<set $slaves[$i].drugs = "no drugs">>
	<<elseif $slaves[$i].dick >= 20>>
		@@.lime;$His cock shrinks painfully,@@ becoming massively shorter and thinner.
		<<set _shrinkage = 3>>
	<<elseif $slaves[$i].dick >= 10>>
		@@.lime;$His cock shrinks painfully,@@ becoming shorter and thinner.
		<<set _shrinkage = 2>>
	<<elseif (($slaves[$i].geneMods.NCS == 1) || (random(1,100) > (40-($injectionUpgrade*10)-($slaves[$i].dick*5)))) && ($slaves[$i].dick > 1)>>
		@@.lime;$His cock shrinks painfully,@@ becoming shorter and thinner.
		<<set _shrinkage = 1>>
	<</if>>
	<<if ($slaves[$i].geneMods.NCS == 1) && ($slaves[$i].dick > 2)>>
		<<set _shrinkage *= 2>>
	<</if>>
	<<set $slaves[$i].dick -= _shrinkage>>

<<case "testicle atrophiers">>
	$He receives @@.lime;direct injections of atrophiers right into $his testicles,@@ causing $his body to begin pulling resources from them<<if $slaves[$i].geneMods.NCS == 1>>, $his @@.orange;NCS@@ amplifies the effectiveness<</if>>.
	<<set _shrinkage = 0>>
	<<if $slaves[$i].balls == 1>>
		$His balls are now so minuscule that further drug use will fail to shrink them further; @@.yellow;$his drug regimen has been ended.@@
		<<set $slaves[$i].drugs = "no drugs">>
	<<elseif $slaves[$i].balls >= 100>>
		@@.lime;$His balls shrink painfully,@@ becoming massively smaller and leaving $his scrotum looser.
		<<set _shrinkage = 5>>
	<<elseif $slaves[$i].balls >= 80>>
		@@.lime;$His balls shrink painfully,@@ becoming massively smaller and leaving $his scrotum looser.
		<<set _shrinkage = 4>>
	<<elseif $slaves[$i].balls >= 60>>
		@@.lime;$His balls shrink painfully,@@ becoming massively smaller and leaving $his scrotum looser.
		<<set _shrinkage = 3>>
	<<elseif $slaves[$i].balls >= 40>>
		@@.lime;$His balls shrink painfully,@@ becoming much smaller and leaving $his scrotum looser.
		<<set _shrinkage = 2>>
	<<elseif $slaves[$i].balls >= 20>>
		@@.lime;$His balls shrink painfully,@@ becoming smaller and leaving $his scrotum looser.
		<<set _shrinkage = 1>>
	<<elseif (($slaves[$i].geneMods.NCS == 1) || (random(1,100) > (40-($injectionUpgrade*10)-($slaves[$i].balls*2)))) && ($slaves[$i].balls > 1)>>
		@@.lime;$His balls shrink painfully,@@ becoming smaller and leaving $his scrotum looser.
		<<set _shrinkage = 1>>
	<</if>>
	<<if ($slaves[$i].geneMods.NCS == 1) && ($slaves[$i].balls > 2)>>
		<<set _shrinkage *= 2>>
	<</if>>
	<<set $slaves[$i].balls -= _shrinkage>>

<<case "clitoris atrophiers">>
	$He receives @@.lime;direct injections of atrophiers right into $his clitoris,@@ causing $his body to begin pulling resources from it<<if $slaves[$i].geneMods.NCS == 1>>, $his @@.orange;NCS@@ amplifies the effectiveness<</if>>.
	<<if $slaves[$i].clit == 0>>
		$His clit is now so minuscule that further drug use will fail to shrink it further; @@.yellow;$his drug regimen has been ended.@@
		<<set $slaves[$i].drugs = "no drugs">>
	<<elseif (($slaves[$i].geneMods.NCS == 1) || (random(1,100) > (60-($injectionUpgrade*10)-($slaves[$i].clit*5)))) && ($slaves[$i].clit > 0)>>
		@@.lime;$His clit shrinks painfully,@@ becoming smaller.
		<<set $slaves[$i].clit -= 1>>
	<</if>>
	<<if ($slaves[$i].geneMods.NCS == 1) && ($slaves[$i].clit > 2)>>
		<<set $slaves[$i].clit -= 1>>
	<</if>>

<<case "labia atrophiers">>
	$He receives @@.lime;direct injections of atrophiers right into $his labia majora,@@ causing $his body to begin pulling resources from them<<if $slaves[$i].geneMods.NCS == 1>>, $his @@.orange;NCS@@ amplifies the effectiveness<</if>>.
	<<if $slaves[$i].labia == 0>>
		$His labia are now so minuscule that further drug use will fail to shrink them further; @@.yellow;$his drug regimen has been ended.@@
		<<set $slaves[$i].drugs = "no drugs">>
	<<elseif (($slaves[$i].geneMods.NCS == 1) || (random(1,100) > (60-($injectionUpgrade*10)-($slaves[$i].labia*5)))) && ($slaves[$i].labia > 0)>>
		@@.lime;$His labia shrink painfully,@@ becoming smaller.
		<<set $slaves[$i].labia -= 1>>
	<</if>>
	<<if ($slaves[$i].geneMods.NCS == 1) && ($slaves[$i].labia > 2)>>
		<<set $slaves[$i].labia -= 1>>
	<</if>>

<<case "nipple atrophiers">>
	$He receives @@.lime;direct injections of atrophiers right into $his nipples,@@ causing $his body to begin pulling resources from it<<if $slaves[$i].geneMods.NCS == 1>>, $his @@.orange;NCS@@ amplifies the effectiveness<</if>>.
	<<switch $slaves[$i].nipples>>
	<<case "huge">>
		<<if (($slaves[$i].geneMods.NCS == 1) || (random(1,100) > (60-($injectionUpgrade*15))))>>
			@@.lime;$His nipples shrink painfully,@@ becoming smaller and puffy.
			<<set $slaves[$i].nipples = "puffy">>
		<</if>>
	<<case "puffy">>
		<<if (($slaves[$i].geneMods.NCS == 1) || (random(1,100) > (60-($injectionUpgrade*15))))>>
			@@.lime;$His nipples shrink painfully,@@ becoming smaller and cuter.
			<<set $slaves[$i].nipples = "cute">>
		<</if>>
	<<case "cute">>
		<<if (($slaves[$i].geneMods.NCS == 1) || (random(1,100) > (60-($injectionUpgrade*15))))>>
			@@.lime;$His nipples shrink painfully,@@ becoming tiny.
			<<set $slaves[$i].nipples = "tiny">>
		<</if>>
	<<default>>
		$His nipples are now so small that further drug use will fail to shrink them further; @@.yellow;$his drug regimen has been ended.@@
		<<set $slaves[$i].drugs = "no drugs">>
	<</switch>>

<<case "lip atrophiers">>
	$He receives @@.lime;direct injections of atrophiers right into $his lips,@@ causing $his body to begin pulling resources from them<<if $slaves[$i].geneMods.NCS == 1>>, $his @@.orange;NCS@@ amplifies the effectiveness<</if>>.
	<<set _shrinkage = 0>>
	<<if ($slaves[$i].lips-$slaves[$i].lipsImplant) == 0>>
		$His natural lips are now so thin that further drug use will fail to shrink them further; @@.yellow;$his drug regimen has been ended.@@
		<<set $slaves[$i].drugs = "no drugs">>
	<<elseif ($slaves[$i].lips-$slaves[$i].lipsImplant) >= 70>>
		@@.lime;$His natural lips shrink painfully,@@ becoming massively smaller and thinner.
		<<set _shrinkage = 5>>
	<<elseif ($slaves[$i].lips-$slaves[$i].lipsImplant) >= 50>>
		@@.lime;$His natural lips shrink painfully,@@ becoming smaller and thinner.
		<<set _shrinkage = 3>>
	<<elseif ($slaves[$i].lips-$slaves[$i].lipsImplant) >= 20>>
		@@.lime;$His natural lips shrink painfully,@@ becoming smaller and thinner.
		<<set _shrinkage = 1>>
	<<elseif (($slaves[$i].geneMods.NCS == 1) || (random(1,100) > (40-($injectionUpgrade*10)-($slaves[$i].lips-$slaves[$i].lipsImplant)))) && (($slaves[$i].lips-$slaves[$i].lipsImplant) > 0)>>
		@@.lime;$His natural lips shrink painfully,@@ becoming smaller and thinner.
		<<set _shrinkage = 1>>
	<</if>>
	<<if ($slaves[$i].geneMods.NCS == 1) && ($slaves[$i].lipsImplant > 1)>>
		<<set _shrinkage *= 2>>
	<</if>>
	<<set $slaves[$i].lips -= _shrinkage>>

<<case "breast redistributors">>
	<<set _gigantomastiaMod = $slaves[$i].geneticQuirks.gigantomastia == 2 ? ($slaves[$i].geneticQuirks.macromastia == 2 ? 3 : 2) : 1>>
	$He receives @@.lime;direct injections of fat redistributors right into $his
	<<if _gigantomastiaMod != 3>>
		breasts, causing $his body to begin moving fatty tissue from them to $his core<<if $slaves[$i].geneMods.NCS == 1>>, $his @@.orange;NCS@@ amplifies the effectiveness@@<</if>>.
		<<set _factor = 0>>
		<<if ($slaves[$i].boobs-$slaves[$i].boobsImplant-$slaves[$i].boobsMilk) <= 100>>
			$His natural breast tissue is now so thin that further drug use will fail to shrink it further; @@.yellow;$his drug regimen has been ended.@@
			<<set $slaves[$i].drugs = "no drugs">>
		<<elseif ($slaves[$i].weight >= 200)>>
			$He is now so immensely obese $his health is greatly at risk; @@.yellow;$his drug regimen has been ended.@@
			<<set $slaves[$i].drugs = "no drugs">>
		<<elseif ($slaves[$i].boobs-$slaves[$i].boobsImplant-$slaves[$i].boobsMilk) >= 20000>>
			@@.lime;$His breasts shrink painfully,@@ becoming massively smaller while $his @@.orange;waistline swells tremendously.@@
			<<set _factor = 20>>
		<<elseif ($slaves[$i].boobs-$slaves[$i].boobsImplant-$slaves[$i].boobsMilk) >= 10000>>
			@@.lime;$His breasts shrink painfully,@@ becoming greatly smaller while $his @@.orange;waistline swells.@@
			<<set _factor = 10>>
		<<elseif ($slaves[$i].boobs-$slaves[$i].boobsImplant-$slaves[$i].boobsMilk) >= 5000>>
			@@.lime;$His breasts shrink painfully,@@ becoming smaller while $his @@.orange;waistline swells.@@
			<<set _factor = 5>>
		<<elseif ($slaves[$i].boobs-$slaves[$i].boobsImplant-$slaves[$i].boobsMilk) >= 1000>>
			@@.lime;$His breasts shrink painfully,@@ becoming smaller while $his @@.orange;waistline grows.@@
			<<set _factor = 3>>
		<<elseif ($slaves[$i].boobs-$slaves[$i].boobsImplant-$slaves[$i].boobsMilk) > 100>>
			@@.lime;$His breasts shrink painfully,@@ becoming smaller while $his @@.orange;waistline grows slightly.@@
			<<set _factor = 1>>
		<</if>>
		<<set $slaves[$i].weight += _factor>>
		<<if ($slaves[$i].geneMods.NCS == 1) && (($slaves[$i].boobs-$slaves[$i].boobsImplant-$slaves[$i].boobsMilk) > 200)>>
			<<set _factor *= 2>>
		<</if>>
		<<if _gigantomastiaMod == 2>>
			<<set _factor = 1>>
			<<if $geneticMappingUpgrade >= 1>>
				However, @@.orange;$his gigantomastia inhibits $his breast loss.@@
			<<else>>
				However, @@.orange;$his breasts do not shrink proportionately to $his stomach's growth.@@
			<</if>>
		<</if>>
		<<set $slaves[$i].boobs -= 100*_factor>>
	<<elseif $geneticMappingUpgrade >= 1>>
		breasts to no avail; $his body refuses to allow $his breasts to shrink, and as such, @@.yellow;$his drug regimen has been ended.@@
	<<else>>
		breasts to no avail; @@.yellow;$his drug regimen has been ended.@@
	<</if>>

<<case "butt redistributors">>
	<<set _rearQuirk = $slaves[$i].geneticQuirks.rearLipedema == 2 ? 1 : 0>>
	$He receives @@.lime;direct injections of fat redistributors right into $his buttocks,@@ causing $his body to begin moving fatty tissue from it to $his core<<if $slaves[$i].geneMods.NCS == 1 && _rearQuirk != 1>>, $his @@.orange;NCS@@ amplifies the effectiveness<</if>>.
	<<if ($slaves[$i].butt-$slaves[$i].buttImplant) <= 0>>
		$His natural ass flesh is now so thin that further drug use will fail to shrink it further; @@.yellow;$his drug regimen has been ended.@@
		<<set $slaves[$i].drugs = "no drugs">>
	<<elseif ($slaves[$i].weight >= 200)>>
		$He is now so immensely obese $his health is greatly at risk; @@.yellow;$his drug regimen has been ended.@@
		<<set $slaves[$i].drugs = "no drugs">>
	<<elseif _rearQuirk == 2>>
		$His @@.orange;waistline swells slightly,@@ but @@.lime;$his butt barely loses any mass@@
		<<if $geneticMappingUpgrade >= 1>>
			due to $his rear lipedema putting it right back.
		<<else>>
			for an unknown reason.
		<</if>>
		<<set $slaves[$i].butt -= .2>>
		<<set $slaves[$i].weight += 5>>
	<<elseif ($slaves[$i].butt-$slaves[$i].buttImplant) >= 15>>
		@@.lime;$His butt shrinks painfully,@@ becoming massively smaller while $his @@.orange;waistline swells tremendously.@@
		<<set $slaves[$i].butt -= 2>>
		<<set $slaves[$i].weight += 25>>
	<<elseif ($slaves[$i].butt-$slaves[$i].buttImplant) >= 10>>
		@@.lime;$His butt shrinks painfully,@@ becoming smaller while $his @@.orange;waistline swells tremendously.@@
		<<set $slaves[$i].butt -= 1>>
		<<set $slaves[$i].weight += 20>>
	<<elseif (($slaves[$i].geneMods.NCS == 1) || (random(1,100) > (50-($injectionUpgrade*10)-($slaves[$i].butt-$slaves[$i].buttImplant)))) && ($slaves[$i].butt-$slaves[$i].buttImplant) >= 0>>
		@@.lime;$His butt shrinks painfully,@@ becoming smaller while $his @@.orange;waistline swells greatly.@@
		<<set $slaves[$i].butt -= 1>>
		<<set $slaves[$i].weight += 10>>
	<</if>>
	<<set $slaves[$i].butt = Math.clamp($slaves[$i].butt,0,20)>>

<<case "sag-B-gone">>
	<<if $slaves[$i].assignment == "be your concubine">>
		Before bed and when you awake, you take the time sensually @@.coral;massage sag-B-gone into $his breasts,@@ which, while enjoyable to the both of you, doesn't seem to be doing much.
	<<elseif $slaves[$i].assignment == "please you">>
		When ever you have a free moment you take that time to @@.coral;massage sag-B-gone into $his breasts,@@ which, while enjoyable, doesn't seem to be doing much.
	<<else>>
		$He is required to frequently @@.coral;massage sag-B-gone into $his breasts,@@ which, while enjoyable to watch, doesn't seem to be doing much.
	<</if>>

<</switch>>

<<switch $slaves[$i].pregControl>>
<<case "slow gestation">>
	<<set $slaves[$i].chem += 1>>
	<<if $slaves[$i].preg >= $slaves[$i].pregData.normalBirth>>
		$He is full term; gestation restriction agents @@.red;can't suppress labor@@ and $his regimen is ended to prevent health damage.
		<<set $slaves[$i].pregControl = "none">>
	<<elseif $slaves[$i].preg >= $slaves[$i].pregData.normalBirth/2.5>>
		$His belly feels very docile, $his gestation rate is @@.coral;greatly reduced.@@
	<<elseif $slaves[$i].preg > 0>>
		$His gestation rate is @@.coral;greatly reduced,@@ delaying how long it will be until $his pregnancy is visible.
	<</if>>
<<case "speed up">>
	<<set $slaves[$i].chem += 2>>
	<<if $slaves[$i].assignment != "get treatment in the clinic" && $Nurse == 0 && $slaves[$i].geneMods.rapidCellGrowth != 1>>
		<<if $slaves[$i].pregType > 1>><<set _childCount = "children are">><<else>><<set _childCount = "child is">><</if>>
		$His _childCount growing rapidly within $his womb, far faster than $his @@.red;poor body can handle.@@<<if $slaves[$i].pregType >= 10 && $slaves[$i].bellyPreg >= 100000>> $His rate of growth is straining $his womb, $he is @@.red;at risk of bursting!@@<</if>>
		<<set $slaves[$i].health -= ($slaves[$i].preg+$slaves[$i].pregType-$slaves[$i].bellySag)>>
		<<if $slaves[$i].health <= -100>>
			$His critically poor health @@.orange;caused $him to miscarry.@@
			<<if lastPregRule($slaves[$i],$defaultRules)>><<set $slaves[$i].preg = -1>><<else>><<set $slaves[$i].preg = 0>><</if>>
			<<set $slaves[$i].pregType = 0, $slaves[$i].pregSource = 0, $slaves[$i].pregWeek = -4, $slaves[$i].pregKnown = 0, WombFlush($slaves[$i]), SetBellySize($slaves[$i])>>
			<<if $slaves[$i].fetish != "mindbroken" && $slaves[$i].fuckdoll == 0>>
				$He is
				<<if $slaves[$i].devotion < -50>>
					@@.mediumorchid;filled with violent, consuming hatred@@ and @@.gold;fear.@@ Even though $he knew $his baby was destined for a slave orphanage, it seems $he cared for it and views you as its killer.
					<<set $slaves[$i].devotion -= 25, $slaves[$i].trust -= 25>>
				<<elseif $slaves[$i].devotion < -20>>
					@@.mediumorchid;afflicted by desperate, inconsolable grief@@ and @@.gold;horror.@@ Even though $he knew $his baby was destined for a slave orphanage, it seems $he cared for it.
					<<set $slaves[$i].devotion -= 10, $slaves[$i].trust -= 20>>
				<<elseif $slaves[$i].devotion <= 20>>
					@@.mediumorchid;consumed by enduring sorrow@@ and @@.gold;horror.@@ Even though $he knew $his baby was destined for a slave orphanage, it seems $he cared for it.
					<<set $slaves[$i].devotion -= 5, $slaves[$i].trust -= 5>>
				<<elseif $slaves[$i].devotion <= 50>>
					dully obedient. $He has been broken to slave life so thoroughly that even this is neither surprising nor affecting.
				<<else>>
					@@.hotpink;pleased by this stark development,@@ since $he is so attentive to your will. $He also expects $he will be able to fuck better now once $his health recovers.
					<<set $slaves[$i].devotion += 4>>
				<</if>>
			<</if>>
			<<if $slaves[$i].abortionTat > -1>>
				<<set $slaves[$i].abortionTat++>>
				The temporary tattoo of a child has been replaced with $his <<= ordinalSuffix($slaves[$i].abortionTat)>> crossed out infant.
				<<run cashX(forceNeg($modCost), "slaveMod", $slaves[$i])>>
			<</if>>
		<</if>>
	<</if>>

<<case "labor suppressors">>
	<<set $slaves[$i].chem += 2>>
	<<if WombBirthReady($slaves[$i], $activeSlave.pregData.normalBirth*1.5) > 0>>
		<<set $slaves[$i].health -= 20>>
		<<set $slaves[$i].labor = 1>>
		<<set $slaves[$i].induce = 1>>
		<<set $birthee = 1>>
		$He has been ready to give birth for some time now. Suppressing birth for so long @@.red;greatly affects $his health.@@ $He may @@.red;have trouble@@ giving birth to $his oversized child<<if $slaves[$i].pregType > 1>>ren<</if>>. $He seems to be in distress, $his body is @@.red;forcing $his child<<if $slaves[$i].pregType > 1>>ren<</if>> out!@@
	<<elseif WombBirthReady($slaves[$i], $activeSlave.pregData.normalBirth*1.25) > 0>>
		<<set $slaves[$i].health -= 20>>
		$He has been ready to give birth for some time now. Suppressing birth for so long @@.red;greatly affects $his health.@@ $He may @@.red;have trouble@@ giving birth to $his oversized child<<if $slaves[$i].pregType > 1>>ren<</if>>.
	<<elseif WombBirthReady($slaves[$i], $activeSlave.pregData.normalBirth) > 0>>
		<<set $slaves[$i].health -= 10>>
		Labor suppressing agents @@.red;negatively affect $his health.@@
	<</if>>
<</switch>>

<<if $slaves[$i].curatives > 1>>
	<<if ($slaves[$i].health > 90)>>
		$His health is already outstanding and cannot be improved with further drug treatment. @@.yellow;$His drug regimen has defaulted to preventatives.@@
		<<set $slaves[$i].curatives = 1>>
	<<elseif (($slaves[$i].assignment == "rest") || ($slaves[$i].assignment == "rest in the spa")) && ($slaves[$i].fetish != "mindbroken")>>
		The curatives $he's taking synergize with rest, keeping $him asleep most of the time. This is an @@.green;extremely effective health treatment.@@
		<<set $slaves[$i].health += 4>>
	<<elseif ($slaves[$i].health < -20)>>
		@@.green;$His poor health rapidly improves@@ under drug treatment.
		<<set $slaves[$i].health += 2>>
	<<else>>
		@@.green;$His health improves@@ under curative treatment.
	<</if>>
	<<if $slaves[$i].fuckdoll == 0>>
		<<if $slaves[$i].fetish != "mindbroken">>
			$He @@.mediumaquamarine;trusts you more@@ for giving $him access to expensive modern medicine.
			<<set $slaves[$i].trust += 1>>
		<</if>>
	<</if>>
	<<set $slaves[$i].health += 6>>
	<<set $slaves[$i].health += $curativeUpgrade*6>>
	<<set $slaves[$i].chem += 1>>
<</if>>

<<if $slaves[$i].aphrodisiacs > 0>>
	<<if $slaves[$i].aphrodisiacs > 1>>
		The aphrodisiacs $he's on
		<<if $slaves[$i].energy <= 95>>
			@@.green;rapidly boost $his sex drive.@@
			<<set $slaves[$i].energy += 5>>
		<<else>>
			can't improve $his absurd sex drive.
		<</if>>
		<<if $slaves[$i].fuckdoll == 0>>
			<<if $slaves[$i].fetish != "mindbroken">>
				They @@.hotpink;increase $his acceptance@@ of sexual slavery.
				<<set $slaves[$i].devotion += 5>>
			<</if>>
		<</if>>
		<<if ($arcologies[0].FSBodyPuristLaw == 0) && ($healthyDrugsUpgrade == 0)>>
			Such a high dosage @@.red;isn't healthy.@@
			<<set $slaves[$i].health -= 5>>
		<</if>>
		<<set $slaves[$i].chem += 1>>
	<<else>>
		The aphrodisiacs $he's on
		<<if $slaves[$i].energy <= 95>>
			@@.green;boost $his sex drive.@@
			<<set $slaves[$i].energy += 3>>
		<<else>>
			can't improve $his absurd sex drive.
		<</if>>
		<<if $slaves[$i].fuckdoll == 0>>
			<<if $slaves[$i].fetish != "mindbroken">>
				They @@.hotpink;increase $his acceptance@@ of sexual slavery.
				<<set $slaves[$i].devotion += 3>>
			<</if>>
		<</if>>
		<<set $slaves[$i].chem += 0.5>>
	<</if>>
<</if>>

<<if $slaves[$i].drugs != "no drugs" && $slaves[$i].drugs != "appetite suppressors">>
	<<if $arcologies[0].FSBodyPuristLaw == 0>>
		<<if $healthyDrugsUpgrade == 0>>
			<<set $slaves[$i].chem += 1.5>>
			<<if _intensive>><<set $slaves[$i].chem += 1>><</if>>
		<</if>>
	<</if>>
<</if>>
<<set $slaves[$i].chem = Math.clamp($slaves[$i].chem-0.5, 0, 1000)>>

<<if _intensive>>
	Such reckless doping is dangerous and @@.red;unhealthy.@@
	<<set $slaves[$i].health -= random(3,5), _intensive = 0>>
<</if>>

<<if $slaves[$i].curatives < 2 && $slaves[$i].inflationType != "curative" && $slaves[$i].assignment != "get treatment in the clinic">>
	<<if $slaves[$i].health < -50>>
		It's difficult being so ill, and $he @@.mediumorchid;resents you@@ for not treating $him.
		<<set $slaves[$i].devotion -= 2>>
	<<elseif ($slaves[$i].health > 50)>>
		<<if $slaves[$i].fuckdoll == 0>>
			<<if $slaves[$i].fetish != "mindbroken">>
				$He understands that $he owes $his near-perfect health to you and @@.hotpink;believes@@ that life with you is better than freedom in some ways.
				<<set $slaves[$i].trust += 1>>
			<</if>>
		<</if>>
	<</if>>
<</if>>

<<if ($slaves[$i].addict > 0)>>
	<<if $slaves[$i].aphrodisiacs > 0>>
		<<set $slaves[$i].addict += $slaves[$i].aphrodisiacs>>
	<<elseif ($slaves[$i].addict < 2)>>
		$He has finally been @@.cyan;weaned off aphrodisiacs.@@
		<<set $slaves[$i].addict = 0>>
	<<elseif ($aphrodisiacUpgrade == 1)>>
		Substitutes produced by your advanced pharmaceutical fabricator protect $him from the negative effects of aphrodisiac withdrawal and even hasten the flushing of $his system.
		<<set $slaves[$i].addict -= 2>>
	<<elseif $slaves[$i].inflationType != "aphrodisiac">>
		$He feels the effects of withdrawal from aphrodisiacs keenly, and $he is @@.mediumorchid;bitterly resentful.@@
		<<set $slaves[$i].addict -= 2>>
		<<set $slaves[$i].devotion -= 10>>
	<<else>>
		$He gets $his fix from $his aphrodisiac filled belly.
	<</if>>
<<else>>
	<<if $slaves[$i].aphrodisiacs > 0>>
		<<if random(1,100) < 40+(20*$slaves[$i].aphrodisiacs)>>
			@@.cyan;$He has become an aphrodisiac addict.@@
			<<set $slaves[$i].addict = 1>>
		<</if>>
	<</if>>
<</if>>

/* TODO: update this for virgins */
<<if $slaves[$i].fuckdoll == 0 && $slaves[$i].fetish != "mindbroken">>
	<<if $suppository == 1>>
		<<if ($slaves[$i].aphrodisiacs > 0) || ($slaves[$i].curatives > 0) || ($slaves[$i].drugs == "psychosuppressants") || ($slaves[$i].drugs == "hormone enhancers") || ($slaves[$i].drugs == "hormone blockers") || ($slaves[$i].hormones != 0)>>
			<<if ($slaves[$i].sexualFlaw == "hates anal")>>
				<<if random(1,100) > 80>>
					Getting buttfucked morning and night by reciprocating dildos that ejaculate $his drug regime forces $him to @@.green;accept anal sex@@ as a fact of life.
					<<set $slaves[$i].sexualFlaw = "none">>
				<<else>>
					Getting buttfucked morning and night by reciprocating dildos that ejaculate $his drug regime @@.mediumorchid;infuriates $him,@@ since $he hates getting assraped.
					<<set $slaves[$i].devotion -= 4>>
				<</if>>
			<<elseif ($slaves[$i].fetish == "buttslut")>>
				<<if ($slaves[$i].fetishKnown == 0)>>
					Getting buttfucked morning and night by reciprocating dildos that ejaculate $his drug regime has revealed something: @@.lightcoral;$he likes it up the ass!@@
					<<set $slaves[$i].fetishKnown = 1>>
				<<elseif ($slaves[$i].fetishStrength <= 95) && ($slaves[$i].devotion > 4)>>
					Getting buttfucked morning and night by reciprocating dildos that ejaculate $his drug regime has @@.lightcoral;deepened $his anal fixation.@@
					<<set $slaves[$i].fetishStrength += 5>>
				<</if>>
			<<elseif ($slaves[$i].fetish != "buttslut")>>
				<<if ($slaves[$i].devotion < -20)>>
					Getting buttfucked morning and night by reciprocating dildos that ejaculate $his drug regime @@.mediumorchid;disgusts $him.@@
					<<set $slaves[$i].devotion -= 2>>
				<<elseif fetishChangeChance($slaves[$i]) > random(0,100)>>
					$He starts to look forward to getting buttfucked morning and night by reciprocating dildos that ejaculate $his drug regime; $he's @@.lightcoral;become anally fixated.@@
					<<set $slaves[$i].fetish = "buttslut">>
					<<set $slaves[$i].fetishKnown = 1>>
					<<set $slaves[$i].fetishStrength = 10>>
				<</if>>
			<</if>>
			<<if ($slaves[$i].sexualQuirk == "painal queen")>>
				$He @@.hotpink;secretly enjoys@@ being assraped by a machine twice a day.
				<<set $slaves[$i].devotion += 1>>
			<</if>>
			<<if ($slaves[$i].anus == 1)>>
				<<if random(1,100) > 70>>
					The regular machine anal @@.lime;stretches out $his tight asshole.@@
					<<set $slaves[$i].anus += 1>>
				<</if>>
			<</if>>
		<</if>>
	<</if>>
<</if>>

/* DRUG EXPIRY */
<<switch $slaves[$i].drugs>>
<<case "growth stimulants">>
	<<set _maxHeight = Math.trunc(Math.clamp((Height.mean($slaves[$i]) * 1.25),0,274))>> /*max achievable height is expected height plus 25%*/
	<<if $slaves[$i].geneticQuirks.dwarfism == 2 && $slaves[$i].geneticQuirks.gigantism != 2>>
		<<set _maxHeight = Math.min(_maxHeight, 160)>>
	<</if>>
	<<if $slaves[$i].height >= _maxHeight>>
		$His body has already grown far past $his natural limits; further injections of stimulants will have no effect. @@.yellow;$His drug regimen has been ended.@@
		<<set $slaves[$i].height = Math.clamp($slaves[$i].height,0,_maxHeight), $slaves[$i].drugs = "no drugs">>
	<</if>>
<<case "breast injections" "intensive breast injections">>
	<<if $slaves[$i].boobs >= 50000>>
		$His udders are now so huge that further A-HGH treatment will not increase their size. @@.yellow;$His drug regimen has been ended.@@
		<<set $slaves[$i].boobs = Math.clamp($slaves[$i].boobs,0,50000), $slaves[$i].drugs = "no drugs">>
	<</if>>
<<case "butt injections" "intensive butt injections">>
	<<if ($slaves[$i].butt >= 10)>>
		$His ass is now so huge that further A-HGH treatment will not increase its size. @@.yellow;$His drug regimen has been ended.@@
		<<set $slaves[$i].butt = Math.clamp($slaves[$i].butt,0,20), $slaves[$i].drugs = "no drugs">>
	<</if>>
<<case "hyper butt injections">>
	<<if $slaves[$i].butt >= 20>>
		$His ass is now so freakishly monstrous that further HA-HGH treatment will not increase its size. @@.yellow;$His drug regimen has been ended.@@
		<<set $slaves[$i].drugs = "no drugs">>
	<</if>>
<<case "hyper breast injections">>
	<<if ($slaves[$i].boobs >= 50000)>>
		$His udders are now so huge that further HA-HGH treatment will not increase their size. @@.yellow;$His drug regimen has been ended.@@
		<<set $slaves[$i].boobs = Math.clamp($slaves[$i].boobs,0,50000), $slaves[$i].drugs = "no drugs">>
	<</if>>
<<case "lip injections">>
	<<if ($slaves[$i].lips > 95) || (($slaves[$i].lips > 85) && ($seeExtreme != 1))>>
		$His lips are now so huge that further A-HGH treatment will not increase their size. @@.yellow;$His drug regimen has been ended.@@
		<<set $slaves[$i].drugs = "no drugs">>
	<</if>>
<<case "penis enhancement" "intensive penis enhancement">>
	<<if ($slaves[$i].dick >= 10)>>
		$His cock is now so huge that further drug enhancement will not increase its size. @@.yellow;$His drug regimen has been ended.@@
		<<set $slaves[$i].dick = Math.clamp($slaves[$i].dick,0,10), $slaves[$i].drugs = "no drugs">>
	<<elseif $slaves[$i].clit >= 5 && $slaves[$i].dick == 0>>
		$His clit is now so huge that further drug enhancement will not increase its size. @@.yellow;$His drug regimen has been ended.@@
		<<set $slaves[$i].clit = Math.clamp($slaves[$i].clit,0,5), $slaves[$i].drugs = "no drugs">>
	<</if>>
<<case "testicle enhancement" "intensive testicle enhancement">>
	<<if ($slaves[$i].balls >= 10)>>
		$His balls are now so huge that further drug enhancement will not increase their size. However, leaving $him on them will still stimulate cum production.
	<<elseif ($slaves[$i].balls >= 2) && ($slaves[$i].scrotum == 0)>>
		$His balls are now functionally sized, and cannot sustainably grow larger hidden within $his abdomen. @@.yellow;$His drug regimen has been ended.@@
		<<set $slaves[$i].balls = Math.clamp($slaves[$i].balls,0,2), $slaves[$i].drugs = "no drugs">>
	<</if>>
<<case "psychosuppressants">>
	<<if ($slaves[$i].intelligence < -95)>>
		$He is so moronic that drug treatment can't really make $him more willing to obey others than $he already is. @@.yellow;$His drug regimen has been ended.@@
		<<set $slaves[$i].drugs = "no drugs">>
	<</if>>
<</switch>>


code:
:: SA get milked [nobr]

<!-- Statistics gathering -->
<<set _incomeStats = getSlaveStatisticData($slaves[$i], $slaves[$i].assignment === Job.DAIRY ? $facility.dairy : undefined)>>
<<set _incomeStats.milk = 0; _incomeStats.cum = 0; _incomeStats.fluid = 0>>

<<if ndef $slaves[$i].lactationAdaptation>>
	<<set $slaves[$i].lactationAdaptation = 0>>
<</if>>

<<set $milk = 0, $cum = 0>>

gets milked this week.
<<if $dairy > 0 && $dairyRestraintsSetting < 2>>
	<<if (($universalRulesFacilityWork == 1) && ($slaves[$i].assignment == "get milked") && ($dairySpots > 0)) || ($slaves[$i].assignment == "work in the dairy")>>
		<<if ($slaves[$i].assignment == "get milked")>>
			Since there's extra space in $dairyName, $he spends most of $his milkings there.
			<<set $dairySpots -= 1>>
		<</if>>
		<<if ($Milkmaid != 0)>>
			While there, $he gets the benefit of $Milkmaid.slaveName's <<if ($Milkmaid.physicalAge < 21)>>youthful energy<<else>>care<</if>><<if ($Milkmaid.skill.oral >= 100)>> and talented tongue<</if>>.
			<<if ($slaves[$i].devotion < $milkmaidDevotionThreshold)>>
				<<set $slaves[$i].devotion += $milkmaidDevotionBonus>>
			<</if>>
			<<if ($slaves[$i].trust < $milkmaidTrustThreshold)>>
				<<set $slaves[$i].trust += $milkmaidTrustBonus>>
			<</if>>
			<<if ($slaves[$i].health < 100)>>
				<<set $slaves[$i].health += $milkmaidHealthBonus>>
			<</if>>
		<</if>>
	<</if>>
<</if>>

<<if $slaves[$i].lactation > 0>>

	<<set $milk = milkAmount($slaves[$i])>>

	$He produces from $his <<print either("boobs", "breasts", "mammaries", "tits", "udders")>>, which have a combined volume of <<print $slaves[$i].boobs*2>> CCs;
	<<if ($slaves[$i].boobsImplant > 0)>>
		<<set _implantEffect = $slaves[$i].boobsImplant/$slaves[$i].boobs>>
	<</if>>
	<<if ($slaves[$i].lactation == 1)>>
		$he is lactating naturally and produces
		<<if _implantEffect >= .90>>
			a weak trickle of milk.
		<<elseif _implantEffect >= .75>>
			a weak stream of milk.
		<<else>>
			a healthy stream of milk.
		<</if>>
	<<elseif ($slaves[$i].lactation == 2)>>
		$he is on lactation drugs and produces
		<<if _implantEffect >= .90>>
			a steady flow of milk.
		<<elseif _implantEffect >= .75>>
			strong bursts of milk.
		<<else>>
			a river of milk.
		<</if>>
		<<if $slaves[$i].lactationAdaptation < 100>>
			$His udders are forced to adapt to this unnatural productivity.
			<<set $slaves[$i].lactationAdaptation += 1>>
		<</if>>
		<<if $slaves[$i].curatives == 0 && $slaves[$i].inflationType != "curative">>
			The stress of extreme milk production @@.red;damages $his health.@@
			<<set $slaves[$i].health -= 3>>
		<</if>>
	<</if>>

	<<if ($slaves[$i].boobsMilk > 0)>>
		$He was in need of a good milking, too.
	<</if>>

	<<if ($slaves[$i].devotion > 50)>>
		$He's such a happy cow that $his mental state has a positive impact on $his production.
	<<elseif ($slaves[$i].devotion < -50)>>
		$He's such an unhappy cow that $his mental state has a negative impact on $his production.
	<</if>>

	<<if ($slaves[$i].boobsImplant > 0)>>
		However, $his
		<<if _implantEffect >= .90>>
			breast implants are ill-suited for
		<<elseif _implantEffect >= .75>>
			breasts are almost entirely implant, greatly restricting $his
		<<elseif _implantEffect >= .60>>
			breasts are mostly implant, restricting $his
		<<elseif _implantEffect >= .45>>
			implants make up a considerable amount of $his breasts and greatly impede
		<<elseif _implantEffect >= .30>>
			breast implants take up enough space to impede
		<<elseif _implantEffect >= .10>>
			breast implants slightly impede
		<<else>>
			breast implants cause a minor decrease in
		<</if>>
		milk production<<if _implantEffect >= .90>>, given the lack of actual breast flesh<</if>>.
	<</if>>

	<<set $hormones = $slaves[$i].hormoneBalance/100>>
	<<if ($slaves[$i].balls != 0)>>
		<<set $hormones -= 1>>
	<</if>>
	<<if (($slaves[$i].ovaries != 0) || ($slaves[$i].mpreg != 0))>>
		<<set $hormones += 1>>
	<</if>>
	<<if ($hormones > 1)>>
		$His internal chemistry is perfectly suited to milk production.
	<<elseif ($hormones > 0)>>
		$His hormonal balance favors milk production.
	<<elseif ($hormones < 0)>>
		$His hormonal balance impedes milk production.
	<<elseif ($hormones < -1)>>
		$His internal chemistry is poorly suited to milk production.
	<</if>>

	<<if $slaves[$i].lactationAdaptation < 100>>
		<<if ($slaves[$i].assignment == "get milked") || ($slaves[$i].assignment == "work in the dairy")>>
			Living as a cow helps $his body and mind adapt to producing milk.
			<<set $slaves[$i].lactationAdaptation += 1>>
		<</if>>
	<</if>>

	<<if ($slaves[$i].preg > $slaves[$i].pregData.normalBirth/8) && ($slaves[$i].pregKnown == 1)>>
		$His pregnancy helps $his body produce more milk naturally<<if $slaves[$i].lactationAdaptation < 100>>, and also helps it adapt to milk production<<set $slaves[$i].lactationAdaptation += 1>><</if>>.
	<</if>>

	<<if ($slaves[$i].health > 50)>>
		$His shining health helps $him really produce.
	<<elseif ($slaves[$i].health < -50)>>
		$His poor health impedes milk production.
	<</if>>

	<<if ($slaves[$i].weight > 10)>>
		$His extra weight supports $his productivity.
	<<elseif ($slaves[$i].weight < -10)>>
		$His thinness hinders $his productivity.
	<</if>>

	<<if $slaves[$i].lactationAdaptation > 10>>
		<<if $slaves[$i].lactationAdaptation > 50>>
			$His body has adapted heavily to milk production, making $him extremely productive.
		<<else>>
			$His body has gotten used to producing milk, making $him very productive.
		<</if>>
	<</if>>

	<<if $dairySlimMaintainUpgrade == 1>>
		<<if $dairySlimMaintain == 1>>
			<<if ($slaves[$i].boobs <= 700)>>
				<<if ($arcologies[0].FSSlimnessEnthusiast > 80)>>
					Your arcology's milkers are optimized to extract maximum output from small breasted slaves, which substantially increases $his otherwise modest productivity.
					<<set $milk *= 1.5>>
				<<elseif ($arcologies[0].FSSlimnessEnthusiast > 20)>>
					Your arcology's milkers have been carefully modified to more readily accommodate slaves with tiny breasts, which slightly mitigates $his less than ideal physiology for milk production.
					<<set $milk *= 1.1>>
				<</if>>
			<</if>>
		<</if>>
	<</if>>

	/* This is going to be where the dairy overhaul takes place (milk half) */
	<<if ($slaves[$i].assignment == "work in the dairy")>>
		<<if ($dairyFeedersUpgrade == 1)>>
			<<if ($dairyFeedersSetting > 0)>>
				<<set $milk += $milk*(0.1*($dairyFeedersUpgrade+$dairyRestraintsSetting+((50-$slaves[$i].physicalAge)/20)))>>
				<<if ($slaves[$i].chem > 360)>>
					<<set $milk *= 0.6>>
				<<elseif ($slaves[$i].chem > 100)>>
					<<set $milk *= ((600-$slaves[$i].chem)/600)>>
				<</if>>
			<</if>>
		<</if>>
	<<elseif ($slaves[$i].assignment == "be confined in the arcade")>>
		<<set $milk *= 0.5>>
	<</if>>

	<<set $milk *= $servantMilkersMultiplier>>

	<<set $milk = Math.trunc($milk)>>
	<<if $milk < 1>>
		<<set $milk = 1>>
	<</if>>
	<<set $slaves[$i].counter.milk += $milk>>
	<<set $milkTotal += $milk>>

	As a result, $he produces $milk liters of milk over the week.
	<<set _incomeStats.milk = $milk>>

	<<if ($arcologies[0].FSPastoralistLaw == 1)>>
		<<set $milkSale = $milk*(8+Math.trunc($arcologies[0].FSPastoralist/30))>>
		Since breast milk is $arcologies[0].name's only legal dairy product, $he can scarcely be milked fast enough, and $he makes @@.yellowgreen;<<print cashFormat($milkSale)>>.@@
	<<elseif ($arcologies[0].FSPastoralist != "unset")>>
		<<set $milkSale = $milk*(6+Math.trunc($arcologies[0].FSPastoralist/30))>>
		Since milk is fast becoming a major part of the $arcologies[0].name's dietary culture, $his milk is in demand, and $he makes @@.yellowgreen;<<print cashFormat($milkSale)>>.@@
	<<else>>
		<<set $milkSale = $milk*6>>
		$His milk is sold for @@.yellowgreen;<<print cashFormat($milkSale)>>.@@
	<</if>>
	<<if $slaves[$i].assignment == "work in the dairy">>
		<<run cashX($milkSale, "milkedDairy", $slaves[$i])>>
	<<elseif $slaves[$i].assignment == "get milked">>
		<<run cashX($milkSale, "milked", $slaves[$i])>>
	<<else>>
		<<run cashX($milkSale, "extraMilk", $slaves[$i])>>
	<</if>>

	<<set _incomeStats.income += $milkSale>>

	<<if $slaves[$i].fetishKnown>>
		<<if ($slaves[$i].fetish == "boobs") || ($slaves[$i].energy > 95)>>
			Getting constantly milked is as good as sex, as far as $he's concerned. @@.hotpink;$He is happy@@ to have $his breasts receive so much attention.
			<<set $slaves[$i].devotion += 1>>
			<<if $slaves[$i].need>><<set $slaves[$i].need = 0>><</if>>
		<</if>>
	<</if>>

	<<if $slaves[$i].career == "a dairy cow" && $slaves[$i].fetish != "mindbroken" && $slaves[$i].fuckdoll == 0>>
		$He feels like @@.hotpink;$he was made to be milked,@@ @@.mediumaquamarine;not that $he'd complain about such a good feeling.@@
		<<set $slaves[$i].devotion++, $slaves[$i].trust++>>
		<<if $slaves[$i].need>><<set $slaves[$i].need = 0>><</if>>
	<</if>>

	<<if ($slaves[$i].nipples != "huge")>>
		<<if ($slaves[$i].nipples == "inverted")>>
			<<if ($slaves[$i].fetish == "masochist") && ($slaves[$i].fetishKnown == 1)>>
				Having the milkers constantly haul $his inverted nipples out is @@.hotpink;extremely uncomfortable; $he loves it.@@
				<<set $slaves[$i].devotion += 3>>
			<<else>>
				Having the milkers constantly haul $his inverted nipples out is @@.mediumorchid;extremely uncomfortable.@@
				<<set $slaves[$i].devotion -= 3>>
			<</if>>
			<<if (random(1,100) > 50)>>
				The constant suction @@.lime;permanently protrudes them,@@ and
				<<if (random(1,2) == 1)>>
					it turns out they're absolutely massive.
					<<set $slaves[$i].nipples = "huge">>
				<<else>>
					it turns out they're nice and puffy.
					<<set $slaves[$i].nipples = "puffy">>
				<</if>>
			<</if>>
		<<elseif ($slaves[$i].nipples == "partially inverted")>>
			<<if ($slaves[$i].fetish == "masochist") && ($slaves[$i].fetishKnown == 1)>>
				Having the milkers constantly haul $his inverted nipples out is @@.hotpink;quite uncomfortable; $he loves it.@@
				<<set $slaves[$i].devotion += 1>>
			<<else>>
				Having the milkers constantly haul $his inverted nipples out is @@.mediumorchid;quite uncomfortable.@@
				<<set $slaves[$i].devotion -= 1>>
			<</if>>
			<<if (random(1,100) > 30)>>
				The constant suction @@.lime;permanently protrudes them,@@ and
				<<if (random(1,2) == 1)>>
					it turns out they're pretty cute.
					<<set $slaves[$i].nipples = "cute">>
				<<else>>
					it turns out they're nice and puffy.
					<<set $slaves[$i].nipples = "puffy">>
				<</if>>
			<</if>>
		<<elseif ($slaves[$i].nipples == "puffy") && (random(1,100) > 90)>>
			Producing this river of milk @@.lime;enlarges $his nipples:@@ they're now enormous.
			<<set $slaves[$i].nipples = "huge">>
		<<elseif ($slaves[$i].nipples == "cute") && (random(1,100) > 80)>>
			Producing this river of milk @@.lime;makes $his nipples nice and puffy.@@
			<<set $slaves[$i].nipples = "puffy">>
		<<elseif ($slaves[$i].nipples == "tiny")>>
			Producing this river of milk @@.lime;makes $his nipples grow to a nice size.@@
			<<set $slaves[$i].nipples = "cute">>
		<<elseif ($slaves[$i].areolae < 4) && (random(1,100) > 30+($slaves[$i].areolae*20))>>
			Producing this river of milk @@.lime;broadens $his areolae.@@
			<<set $slaves[$i].areolae += 1>>
		<</if>>
	<</if>>
	<<set $slaves[$i].lactationDuration = 2>>
	<<if $slaves[$i].boobsMilk > 0>>
		<<set $slaves[$i].boobs -= $slaves[$i].boobsMilk, $slaves[$i].boobsMilk = 0>>
	<</if>>

<</if>> /* CLOSES BREAST MILKING */

<<if ["be confined in the arcade", "get milked", "work in the dairy"].includes($slaves[$i].assignment)>> /* prevents penthouse milkers from overstepping their boundaries */

	<<if ($slaves[$i].balls > 0)>>

		<<set $cumSlaves += 1>>
		<<set $cum = cumAmount($slaves[$i])>>

		<<if $slaves[$i].lactation > 0>>
			$His
		<<else>>
			$slaves[$i].slaveName's
		<</if>>

		<<if $slaves[$i].dick > 0>>
			<<if ($slaves[$i].dick > 6)>>
				inhuman
			<<elseif ($slaves[$i].dick > 5)>>
				massive
			<<elseif ($slaves[$i].dick > 4)>>
				big
			<<elseif ($slaves[$i].dick > 3)>>
				sizable
			<<elseif ($slaves[$i].dick > 2)>>
				moderate
			<<elseif ($slaves[$i].dick > 1)>>
				little
			<<else>>
				tiny
			<</if>>
			prick is
			<<if $slaves[$i].lactation > 0>>
				also
			<</if>>
			machine-milked
		<<else>>
			butt is machine-fucked
		<</if>>
		to extract the cum from $his
		<<if !$slaves[$i].scrotum>>
			invisible
		<<else>>
			<<switch $slaves[$i].balls>>
			<<case 10>>inhuman
			<<case 9>>titanic
			<<case 8>>gigantic
			<<case 7>>monstrous
			<<case 6>>huge
			<<case 5>>pendulous
			<<case 4>>swinging
			<<case 3>>big
			<<case 2>>average
			<<case 1>>pathetic
			<<default>>hypertrophied
			<</switch>>
		<</if>>
		<<if $slaves[$i].drugs == "testicle enhancement">>
			balls, relieving them of the excessive cum production caused by the testicle enhancement drugs.
		<<elseif $slaves[$i].drugs == "hyper testicle enhancement">>
			balls, relieving them of the excessive cum production caused by the hyper testicle enhancement drugs.
		<<else>>
			balls.
		<</if>>

		<<if $slaves[$i].diet == "cum production">>
			$His diet is designed for cum production.
		<</if>>

		<<set $hormones = $slaves[$i].hormoneBalance/50>>
		<<if $hormones < -1>>
			$His internal chemistry is perfectly suited to cum production.
		<<elseif $hormones < 0>>
			$His hormonal balance favors cum production.
		<<elseif $hormones > 0>>
			$His hormonal balance impedes cum production.
		<<elseif $hormones > 1>>
			$His internal chemistry is poorly suited to cum production.
		<</if>>

		<<if $slaves[$i].scrotum == 0>>
			$He does produce cum despite $his apparent ballslessness, but less than $he would if they weren't hidden inside $him.
		<</if>>

		<<if $slaves[$i].prostate>>
			<<if $slaves[$i].prostate > 2>>
				$His heavily altered prostate greatly increases the volume of $his ejaculations and promotes excessive, watery semen production. This dilute ejaculate @@.red;sells poorly@@ compared to normal cum.
			<<elseif $slaves[$i].prostate > 1>>
				$His hyperactive prostate increases the volume of $his ejaculations and promotes good semen production.
			<</if>>
		<<else>>
			$His lack of a prostate reduces the health and volume of $his ejaculations.
		<</if>>

		<<if ($slaves[$i].devotion > 50)>>
			$He's so happy that $his mental state has a positive impact on $his semen production.
		<<elseif ($slaves[$i].devotion < -50)>>
			$He's so unhappy that $his mental state has a negative impact on $his semen production.
		<</if>>

		<<if ($slaves[$i].health > 50)>>
			$His shining health helps $him really produce.
		<<elseif ($slaves[$i].health < -50)>>
			$His poor health impedes semen production.
		<</if>>

		<<if $slaves[$i].vasectomy == 1>>
			$His cum lacks the primary ingredient, sperm, thanks to $his vasectomy, @@.red;considerably lowering the value@@ of $his ejaculate.
		<<elseif $slaves[$i].ballType == "sterile">>
			$His cum lacks vigor entirely, thanks to $his chemical castration, @@.red;considerably lowering the value@@ of $his ejaculate.
		<</if>>

		/* Dairy rework cum half here */
		<<if ($slaves[$i].assignment == "work in the dairy")>>
			<<if ($dairyStimulatorsUpgrade == 1)>>
				<<if ($dairyStimulatorsSetting > 0)>>
					<<set $cum += $cum*(0.2*($dairyStimulatorsSetting+$dairyRestraintsSetting+Math.trunc((50-$slaves[$i].physicalAge)/20)))>>
				<</if>>
				<<if ($slaves[$i].chem > 360)>>
					<<set $cum = Math.trunc($cum*0.6)>>
				<<elseif ($slaves[$i].chem > 100)>>
					<<set $cum = Math.trunc($cum*((600-$slaves[$i].chem)/600))>>
				<</if>>
			<<elseif ($Milkmaid != 0)>>
				<<if ($Milkmaid.dick > 4) && canAchieveErection($Milkmaid)>>
					$Milkmaid.slaveName sometimes stands in for the machines, which is a polite way of saying $he sometimes fucks $slaves[$i].slaveName's ass to help $him cum.
					<<set $cum += $cum*0.2>>
				<</if>>
			<</if>>
		<<elseif ($slaves[$i].assignment == "be confined in the arcade")>>
			<<set $cum = $cum*0.5>>
		<</if>>

		<<set $cum = Math.trunc($cum)>>
		<<if $cum < 1>>
			<<set $cum = 1>>
		<</if>>
		<<set $slaves[$i].counter.cum += $cum>>
		<<set $cumTotal += $cum>>
		<<set _incomeStats.cum = $cum>>

		<<if ($arcologies[0].FSPastoralist == "unset")>>
			<<set _cumSale = ($cum*random(15,25))>>
			<<if $slaves[$i].vasectomy == 1 || $slaves[$i].ballType == "sterile">><<set _cumSale *= 0.2>><<elseif $slaves[$i].prostate == 3>><<set _cumSale *= 0.5>><</if>>
			$He produces <<print $cum>> deciliters of cum over the week; the fresh ejaculate is sold for @@.yellowgreen;<<print cashFormat(_cumSale)>>.@@
		<<elseif $arcologies[0].FSPastoralistLaw == 1>>
			<<set _cumSale = ($cum*(random(20,40)))>>
			<<if $slaves[$i].vasectomy == 1 || $slaves[$i].ballType == "sterile">><<set _cumSale *= 0.2>><<elseif $slaves[$i].prostate == 3>><<set _cumSale *= 0.5>><</if>>
			$He produces <<print $cum>> deciliters of cum over the week; the fresh ejaculate, which is in extremely high demand as one of $arcologies[0].name's few legal sources of animal protein, is sold for @@.yellowgreen;<<print cashFormat(_cumSale)>>.@@
		<<else>>
			<<set _cumSale = ($cum*(random(10,20)+Math.trunc($arcologies[0].FSPastoralist/10)))>>
			<<if $slaves[$i].vasectomy == 1 || $slaves[$i].ballType == "sterile">><<set _cumSale *= 0.2>><<elseif $slaves[$i].prostate == 3>><<set _cumSale *= 0.5>><</if>>
			$He produces <<print $cum>> deciliters of cum over the week; the fresh ejaculate, which is in high demand given the new cultural preference for slave products, is sold for @@.yellowgreen;<<print cashFormat(_cumSale)>>.@@
		<</if>>
		<<if $slaves[$i].assignment == "work in the dairy">>
			<<run cashX(_cumSale, "milkedDairy", $slaves[$i])>>
		<<elseif $slaves[$i].assignment == "get milked">>
			<<run cashX(_cumSale, "milked", $slaves[$i])>>
		<<else>>
			<<run cashX(_cumSale, "extraMilk", $slaves[$i])>>
		<</if>>
		<<set _incomeStats.income += _cumSale>>

		<<if ($slaves[$i].energy > 95)>>
			Getting $his dick constantly milked is almost as good as getting constant blowjobs as far as $he's concerned. @@.hotpink;$He is happy@@ to have $his member receive so much attention.
			<<set $slaves[$i].devotion += 1>>
		<</if>>

		<<if $slaves[$i].need>>
			$His cock and balls are milked so thoroughly that $he's involuntarily sexually sated, regardless of $his feelings and tastes.
			<<set $slaves[$i].need = 0>>
		<</if>>

		<<if !canAchieveErection($slaves[$i])>>
			Since $he cannot maintain an erection, $he requires @@.gold;painful@@ and @@.mediumorchid;degrading@@ anal electrostimulation to produce.
			<<set $slaves[$i].devotion -= 2>>
			<<set $slaves[$i].trust -= 2>>
			<<if ($slaves[$i].anus == 0)>>
				The electrostimulator @@.lime;breaks in $his virgin asshole.@@
				<<set $slaves[$i].anus = 1>>
			<</if>>
		<<elseif ($slaves[$i].devotion <= 20)>>
			Since $he's unaroused by $his situation, $he requires @@.gold;painful@@ and @@.mediumorchid;degrading@@ anal electrostimulation to produce.
			<<set $slaves[$i].devotion -= 2>>
			<<set $slaves[$i].trust -= 2>>
			<<if ($slaves[$i].anus == 0)>>
				The electrostimulator @@.lime;breaks in $his virgin asshole.@@
				<<set $slaves[$i].anus = 1>>
			<</if>>
		<</if>>

		<<if ($slaves[$i].balls < 3) && $slaves[$i].ballType != "sterile">>
			<<if ($slaves[$i].balls < 2)>>
				<<if (random(1,100) > (70 + ($slaves[$i].geneMods.NCS * 15)))>>
					Constant semen production and continual emptying and refilling @@.lime;increases the size of $his tiny testicles.@@
					<<set $slaves[$i].balls += 1>>
				<</if>>
			<<elseif (random(1,100) > (90 + ($slaves[$i].geneMods.NCS * 5)))>>
				Constant semen production and continual emptying and refilling @@.lime;increases the size of $his small testicles.@@
				<<set $slaves[$i].balls += 1>>
			<</if>>
		<</if>>

	<</if>> /* CLOSES COCK MILKING */

	<<if $slaves[$i].genes == "XX" && $slaves[$i].prostate > 0 && $slaves[$i].balls == 0>>
		$His female prostate fluid is considered an exotic delicacy.
		<<set $fluid = $slaves[$i].prostate * $slaves[$i].energy/5 + 1>>
		<<if $slaves[$i].energy > 10>>
			<<if $slaves[$i].health > 50>>
				<<if $slaves[$i].energy > 90>>
					As a nympho, $he has no trouble orgasming almost constantly.
				<</if>>
				<<set $fluid = $fluid*$slaves[$i].health/50>>
				$His shining health keeps $his juices flowing.
			<<elseif $slaves[$i].health < -50>>
				<<set $fluid = $fluid * (1 + $slaves[$i].health/50)>>
				$He is so unwell, $he produces less than normal.
			<</if>>
		<<else>>
			/* $slaves[$i].energy <= 10 */
			Unfortunately, $he is frigid and rarely reaches orgasm in spite of the intense automatic stimulation.
		<</if>>
		<<set $fluid = Math.clamp(Math.trunc($fluid),1,1000)>>
		<<set _incomeStats.fluid = $fluid>>
		<<print $fluid >> deciliters of uncommon ejaculate is gathered during $his milkings.
		<<set $fluidSale = $fluid*random(40,50)>>
		<<if $arcologies[0].FSPastoralist != "unset" && $arcologies[0].FSPastoralist > 30>>
			<<set $fluidSale = Math.trunc($fluidSale*(1 + ($arcologies[0].FSPastoralist-30)/140))>> /* fully accepted parsoralism gives +50% on the price*/
			Because of your arcology's cultural preferences, it comes with extra value.
		<</if>>
		It is sold for @@.yellowgreen;<<print cashFormat($fluidSale)>>.@@
		<<if $slaves[$i].assignment == "work in the dairy">>
			<<run cashX($fluidSale, "milkedDairy", $slaves[$i])>>
		<<elseif $slaves[$i].assignment == "get milked">>
			<<run cashX($fluidSale, "milked", $slaves[$i])>>
		<<else>>
			<<run cashX($fluidSale, "extraMilk", $slaves[$i])>>
		<</if>>
		<<set _incomeStats.income += $fluidSale>>
	<</if>> /* CLOSES FEMALE PROSTATE FLUID GATHERING */

	<<if ($slaves[$i].behavioralQuirk == "fitness")>>
		$slaves[$i].slaveName @@.hotpink;privately enjoys@@ the focus on $his health and fitness that comes with being a cow.
		<<set $slaves[$i].devotion += 1>>
	<</if>>

	<<if ($showVignettes == 1 && ($slaves[$i].assignment == "get milked" || $slaves[$i].assignment == "work in the dairy"))>>
		<<set _vignette = GetVignette($slaves[$i])>>
		__This week__ _vignette.text
		<<if (_vignette.type == "cash")>>
			<<set $FResult = FResult($slaves[$i])>>
			<<if (_vignette.effect > 0)>>
				@@.yellowgreen;making you an extra <<print cashFormat(Math.trunc($FResult*_vignette.effect))>>.@@
			<<elseif (_vignette.effect < 0)>>
				@@.red;losing you <<print cashFormat(Math.abs(Math.trunc($FResult*_vignette.effect)))>>.@@
			<<else>>
				an incident without lasting effect.
			<</if>>
			<<if $slaves[$i].assignment == "work in the dairy">>
				<<run cashX(Math.trunc($FResult*_vignette.effect), "milkedDairy", $slaves[$i])>>
			<<elseif $slaves[$i].assignment == "get milked">>
				<<run cashX(Math.trunc($FResult*_vignette.effect), "milked", $slaves[$i])>>
			<<else>>
				<<run cashX(Math.trunc($FResult*_vignette.effect), "extraMilk", $slaves[$i])>>
			<</if>>
			<<set _incomeStats.income += Math.trunc($FResult*_vignette.effect)>>
		<<elseif (_vignette.type == "devotion")>>
			<<if (_vignette.effect > 0)>>
				<<if $slaves[$i].devotion > 50>>
					@@.hotpink;increasing $his devotion to you.@@
				<<elseif $slaves[$i].devotion >= -20>>
					@@.hotpink;increasing $his acceptance of you.@@
				<<elseif $slaves[$i].devotion > -10>>
					@@.hotpink;reducing $his dislike of you.@@
				<<else>>
					@@.hotpink;reducing $his hatred of you.@@
				<</if>>
			<<elseif (_vignette.effect < 0)>>
				<<if $slaves[$i].devotion > 50>>
					@@.mediumorchid;reducing $his devotion to you.@@
				<<elseif $slaves[$i].devotion >= -20>>
					@@.mediumorchid;reducing $his acceptance of you.@@
				<<elseif $slaves[$i].devotion > -10>>
					@@.mediumorchid;increasing $his dislike of you.@@
				<<else>>
					@@.mediumorchid;increasing $his hatred of you.@@
				<</if>>
			<<else>>
				an incident without lasting effect.
			<</if>>
			<<set $slaves[$i].devotion += 1*_vignette.effect>>
		<<elseif (_vignette.type == "trust")>>
			<<if (_vignette.effect > 0)>>
				<<if $slaves[$i].trust > 20>>
					@@.mediumaquamarine;increasing $his trust in you.@@
				<<elseif $slaves[$i].trust > -10>>
					@@.mediumaquamarine;reducing $his fear of you.@@
				<<else>>
					@@.mediumaquamarine;reducing $his terror of you.@@
				<</if>>
			<<elseif (_vignette.effect < 0)>>
				<<if $slaves[$i].trust > 20>>
					@@.gold;reducing $his trust in you.@@
				<<elseif $slaves[$i].trust >= -20>>
					@@.gold;increasing $his fear of you.@@
				<<else>>
					@@.gold;increasing $his terror of you.@@
				<</if>>
			<<else>>
				an incident without lasting effect.
			<</if>>
			<<set $slaves[$i].trust += 1*_vignette.effect>>
		<<elseif (_vignette.type == "health")>>
			<<if (_vignette.effect > 0)>>
				@@.green;improving $his health.@@
			<<elseif (_vignette.effect < 0)>>
				@@.red;affecting $his health.@@
			<<else>>
				an incident without lasting effect.
			<</if>>
			<<set $slaves[$i].health += 2*_vignette.effect>>
		<<else>>
			<<set $FResult = FResult($slaves[$i])>>
			<<if (_vignette.effect > 0)>>
				@@.green;gaining you a bit of reputation.@@
			<<elseif (_vignette.effect < 0)>>
				@@.red;losing you a bit of reputation.@@
			<<else>>
				an incident without lasting effect.
			<</if>>
			<<run repX( Math.trunc($FResult*_vignette.effect*0.1), "vignette", $slaves[$i])>>
			<<set _incomeStats.rep += Math.trunc($FResult*_vignette.effect*0.1)>>
		<</if>>
	<</if>>

	/* FACILITY DECORATION IMPACTS */

	<<if $slaves[$i].assignment == "work in the dairy">>
		<<if $dairyDecoration != "standard">>
			<<set _fsGain = Math.min(0.0001*$FSSingleSlaveRep*($milk+5*$cum), 1)>>
			<<switch $dairyDecoration>>
			<<case "Roman Revivalist">>
				<<set $arcologies[0].FSRomanRevivalist = Math.clamp($arcologies[0].FSRomanRevivalist += _fsGain,0,100)>>
			<<case "Aztec Revivalist">>
				<<set $arcologies[0].FSAztecRevivalist = Math.clamp($arcologies[0].FSAztecRevivalist += _fsGain,0,100)>>
			<<case "Egyptian Revivalist">>
				<<set $arcologies[0].FSEgyptianRevivalist = Math.clamp($arcologies[0].FSEgyptianRevivalist += _fsGain,0,100)>>
			<<case "Edo Revivalist">>
				<<set $arcologies[0].FSEdoRevivalist = Math.clamp($arcologies[0].FSEdoRevivalist += _fsGain,0,100)>>
			<<case "Arabian Revivalist">>
				<<set $arcologies[0].FSArabianRevivalist = Math.clamp($arcologies[0].FSArabianRevivalist += _fsGain,0,100)>>
			<<case "Chinese Revivalist">>
				<<set $arcologies[0].FSChineseRevivalist = Math.clamp($arcologies[0].FSChineseRevivalist += _fsGain,0,100)>>
			<<case "Chattel Religionist">>
				<<set $arcologies[0].FSChattelReligionist = Math.clamp($arcologies[0].FSChattelReligionist += _fsGain,0,100)>>
			<<case "Degradationist">>
				<<set $arcologies[0].FSDegradationist = Math.clamp($arcologies[0].FSDegradationist += _fsGain,0,100)>>
			<<case "Repopulation Focus">>
				<<set $arcologies[0].FSRepopulationFocus = Math.clamp($arcologies[0].FSRepopulationFocus += _fsGain,0,100)>>
			<<case "Eugenics">>
				<<set $arcologies[0].FSRestart = Math.clamp($arcologies[0].FSRestart += _fsGain,0,100)>>
			<<case "Asset Expansionist">>
				<<set $arcologies[0].FSAssetExpansionist = Math.clamp($arcologies[0].FSAssetExpansionist += _fsGain,0,100)>>
			<<case "Transformation Fetishist">>
				<<set $arcologies[0].FSTransformationFetishist = Math.clamp($arcologies[0].FSTransformationFetishist += _fsGain,0,100)>>
			<<case "Gender Radicalist">>
				<<set $arcologies[0].FSGenderRadicalist = Math.clamp($arcologies[0].FSGenderRadicalist += _fsGain,0,100)>>
			<<case "Gender Fundamentalist">>
				<<set $arcologies[0].FSGenderFundamentalist = Math.clamp($arcologies[0].FSGenderFundamentalist += _fsGain,0,100)>>
			<<case "Physical Idealist">>
				<<set $arcologies[0].FSPhysicalIdealist = Math.clamp($arcologies[0].FSPhysicalIdealist += _fsGain,0,100)>>
			<<case "Hedonistic">>
				<<set $arcologies[0].FSHedonisticDecadence = Math.clamp($arcologies[0].FSHedonisticDecadence += _fsGain,0,100)>>
			<<case "Supremacist">>
				<<set $arcologies[0].FSSupremacist = Math.clamp($arcologies[0].FSSupremacist += _fsGain,0,100)>>
			<<case "Subjugationist">>
				<<set $arcologies[0].FSSubjugationist = Math.clamp($arcologies[0].FSSubjugationist += _fsGain,0,100)>>
			<<case "Paternalist">>
				<<set $arcologies[0].FSPaternalist = Math.clamp($arcologies[0].FSPaternalist += _fsGain,0,100)>>
			<<case "Pastoralist">>
				<<set $arcologies[0].FSPastoralist = Math.clamp($arcologies[0].FSPastoralist += _fsGain,0,100)>>
			<<case "Maturity Preferentialist">>
				<<set $arcologies[0].FSMaturityPreferentialist = Math.clamp($arcologies[0].FSMaturityPreferentialist += _fsGain,0,100)>>
			<<case "Youth Preferentialist">>
				<<set $arcologies[0].FSYouthPreferentialist = Math.clamp($arcologies[0].FSYouthPreferentialist += _fsGain,0,100)>>
			<<case "Body Purist">>
				<<set $arcologies[0].FSBodyPurist = Math.clamp($arcologies[0].FSBodyPurist += _fsGain,0,100)>>
			<<case "Slimness Enthusiast">>
				<<set $arcologies[0].FSSlimnessEnthusiast = Math.clamp($arcologies[0].FSSlimnessEnthusiast += _fsGain,0,100)>>
			<</switch>>
		<</if>>
	<</if>>

<</if>>

repo_name: AmbrosiaCheesecake/fc