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.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.@@
		<<run healthDamage($slaves[$i], 5)>>
		<<if $slaves[$i].dick >= 7>>
			The amount of blood needed to keep $his oversized cock hard has @@.red;severe effects on $his health!@@
			<<run healthDamage($slaves[$i], $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 "psychostimulants">>
	$He takes a cup of @@.deepskyblue;mind stimulating@@ tea with each meal;
	<<if ($slaves[$i].fetish != "mindbroken")>>
		the soothing drink @@.mediumaquamarine;sets $his thoughts at ease.@@
		<<if $slaves[$i].devotion < -50>>
			<<set $slaves[$i].trust += 6>>
		<<elseif $slaves[$i].devotion < -20>>
			<<set $slaves[$i].trust += 4>>
		<<elseif $slaves[$i].devotion <= 20>>
			<<set $slaves[$i].trust += 2>>
		<<else>>
			<<set $slaves[$i].trust += 1>>
		<</if>>
		<<set $slaves[$i].intelligence += 1>>
		<<if $slaves[$i].energy > 60>>
			$He spends @@.red;less time thinking about sex,@@ as well.
			<<if $slaves[$i].energy > 95>>
				<<set $slaves[$i].energy -= 3>>
			<<elseif $slaves[$i].energy > 80>>
				<<set $slaves[$i].energy -= 2>>
			<<else>>
				<<set $slaves[$i].energy -= 1>>
			<</if>>
		<</if>>
	<<else>>
		it has 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.condition > -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.condition > -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.condition > -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.condition > -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.condition > -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.condition > -20>>but<<else>>and<</if>>
		<<set _growth-->>
	<</if>>
	<<if $slaves[$i].health.condition > 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.condition > -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.condition > -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.condition > -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.condition > -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.condition > -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.condition > -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.condition > -20>>but<<else>>and<</if>>
		<<set _growth-->>
	<</if>>
	<<if $slaves[$i].health.condition > 80>>
		$his perfect health supports growth extremely well, <<if $slaves[$i].boobs < 2000>>and<<else>>but<</if>>
		<<set _growth++>>
	<<elseif ($slaves[$i].health.condition > -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.condition > -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.condition > -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.condition > -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.condition > -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.condition > -20>>but<<else>>and<</if>>
		<<set _growth-->>
	<</if>>
	<<if $slaves[$i].health.condition > 80>>
		$his perfect health supports growth extremely well, <<if $slaves[$i].butt < 6>>and<<else>>but<</if>>
		<<set _growth++>>
	<<elseif ($slaves[$i].health.condition > -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.condition > -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.condition > -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.condition > -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.condition > -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.condition > -20>>and<<else>>but<</if>>
		<<set _growth -= 0.1>>
	<</if>>
	<<if $slaves[$i].health.condition > 80>>
		$his perfect health supports growth extremely well, <<if $slaves[$i].butt < 10>>and<<else>>but<</if>>
		<<set _growth += .5>>
	<<elseif ($slaves[$i].health.condition > -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.condition > 80>>
		$His perfect health greatly supports $his growth.
		<<set _growth += 0.2>>
	<<elseif $slaves[$i].health.condition > -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.@@
			<<run healthDamage($slaves[$i], 20)>>
		<</if>>
		<<if random(1,10) == 1 && _growth != 5>>
			The stimulants stressed $slaves[$i].slaveName's body more than expected, @@.red;damaging $his health.@@
			<<run healthDamage($slaves[$i], 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.@@
				<<run healthDamage($slaves[$i], 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>>
		<<run healthDamage($slaves[$i], 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>>
		<<run healthDamage($slaves[$i], 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>>
		<<if $slaves[$i].geneticQuirks.superfetation == 2 && $geneticMappingUpgrade != 0>>
			$He's already pregnant, but combined with $his superfetation the fertility drugs will cause $him multiple pregnancies.
		<<else>>
			@@.yellow;$He's already pregnant, so the fertility drugs $he's on do $him no good.@@
		<</if>>
	<<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.condition>>
			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.condition>>
		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.condition>>
		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>>
		<<if $slaves[$i].geneticQuirks.superfetation == 2 && $geneticMappingUpgrade != 0>>
			$He's already pregnant, but combined with $his superfetation the fertility drugs are likely to cause $him multiple pregnancies.
		<<else>>
			@@.yellow;$He's already pregnant, so the fertility drugs $he's on do $him no good.@@
		<</if>>
	<<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.condition>>
			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 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].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 ? 2 : 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 != 2>>, $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">>
		Whenever 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>>
		<<run healthDamage($slaves[$i], ($slaves[$i].preg+$slaves[$i].pregType-$slaves[$i].bellySag))>>
		<<if $slaves[$i].health.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 TerminatePregnancy($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], $slaves[$i].pregData.normalBirth*1.5) > 0>>
		<<run healthDamage($slaves[$i], 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], $slaves[$i].pregData.normalBirth*1.25) > 0>>
		<<run healthDamage($slaves[$i], 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], $slaves[$i].pregData.normalBirth) > 0>>
		<<run healthDamage($slaves[$i], 10)>>
		Labor suppressing agents @@.red;negatively affect $his health.@@
	<</if>>
<</switch>>

<<if $slaves[$i].curatives > 1>>
	<<if ($slaves[$i].health.condition > 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")>>
		<<if $slaves[$i].inflationType != "curative" || $slaves[$i].inflation == 0>>
			The curatives $he's taking synergize with rest, keeping $him asleep most of the time. This is an @@.green;extremely effective health treatment.@@
		<<else>>
			Since $he is usually slumbering soundly, the curatives are able to @@.green;work more efficiently.@@
		<</if>>
		<<run improveCondition($slaves[$i], 4)>>
	<<elseif ($slaves[$i].health < -20)>>
		@@.green;$His poor health rapidly improves@@ under drug treatment.
		<<run improveCondition($slaves[$i], 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>>
	<<run improveCondition($slaves[$i], 6)>>
	<<run improveCondition($slaves[$i], $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.@@
			<<run healthDamage($slaves[$i], 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 _intensive = 0>>
	<<run healthDamage($slaves[$i], jsRandom(3, 5))>>
<</if>>

<<if $slaves[$i].curatives < 2 && $slaves[$i].inflationType != "curative" && $slaves[$i].assignment != "rest in the spa" && $slaves[$i].assignment != "rest" && $slaves[$i].assignment != "get treatment in the clinic">>
	<<if $slaves[$i].health.illness > 0>>
		$He is
		<<if $slaves[$i].health.illness > 4>>
			deathly
		<<elseif $slaves[$i].health.illness > 3>>
			seriously
		<<elseif $slaves[$i].health.illness < 2>>
			slightly
		<</if>>
		<<if $slaves[$i].fuckdoll == 0>>
			<<if $slaves[$i].fetish == "mindbroken">>
				ill, yet still continues to mindlessly carry out $his duties.
			<<elseif $slaves[$i].health.illness < 2>>
				ill, though not enough to complain about.
			<<elseif $slaves[$i].devotion < 20>>
				ill and @@.mediumorchid;hates@@ having $his health issues @@.gold;ignored.@@
				<<set $slaves[$i].devotion -= $slaves[$i].health.illness * 2, $slaves[$i].trust -= $slaves[$i].health.illness>>
			<<elseif $slaves[$i].devotion < 50>>
				ill and @@.mediumorchid;resents@@ being @@.gold;denied@@ proper treatment.
				<<set $slaves[$i].devotion -= $slaves[$i].health.illness * 3, $slaves[$i].trust -= $slaves[$i].health.illness * 2>>
			<<elseif $slaves[$i].health.illness > 3>>
				ill and @@.gold;struggles with@@ being withheld treatment.
				<<set $slaves[$i].trust -= $slaves[$i].health.illness * 3>>
			<<else>>
				ill and does $his best to continue with $his duties out of dedication to you.
			<</if>>
		<<else>>
			ill, triggering $his suit's preventative measures.
		<</if>>
	<</if>>
	<<if $slaves[$i].fuckdoll == 0>>
		<<if $slaves[$i].fetish != "mindbroken">>
			<<if $slaves[$i].health.condition < -50>>
				It's difficult being so in such poor condition, and $he @@.mediumorchid;resents you@@ for ignoring $his plight.
				<<set $slaves[$i].devotion -= 2>>
			<<elseif ($slaves[$i].health.condition > 50)>>
				$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>>

<<= illness($slaves[$i])>>

<<if $slaves[$i].drugs != "stimulants" && $slaves[$i].inflationType != "stimulant">>
	<<if ($slaves[$i].assignment != "rest in the spa" && $slaves[$i].assignment != "rest" && $slaves[$i].assignment != "get treatment in the clinic")>>
		<<if $slaves[$i].health.tired > 90>>
			$He has been worked to the bone
			<<if $slaves[$i].devotion < 20>>
				and @@.hotpink;bends a little more to your will,@@ while @@.gold;fearing she'll never earn a reprieve@@ from toiling.
				<<set $slaves[$i].devotion += 2, $slaves[$i].trust -= 2>>
			<<elseif $slaves[$i].devotion < 50>>
				and can't help but @@.gold;worry a little about her well-being.@@
				<<set $slaves[$i].trust -= 1>>
			<<else>>
				but $he carries on without reservations.
			<</if>>
		<<elseif $slaves[$i].health.tired > 60>>
			$He is suffering from exhaustion
			<<if $slaves[$i].devotion < 20>>
				and it is @@.hotpink;wearing away at her resistance.@@
				<<set $slaves[$i].devotion += 1>>
			<<else>>
				but $he tries not to let it show.
			<</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">>
	<<if !canImproveHeight($slaves[$i])>>
		$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>>
<<case "psychostimulants">>
		<<if !canImproveIntelligence($slaves[$i])>>
			$His intelligence has been improved as much as a drink possibly can. @@.yellow;$His drug regimen has been ended.@@
			<<set $slaves[$i].drugs = "no drugs">>
		<</if>>
<</switch>>

license: mit


code:
:: SA guard you [nobr]

carries arms in your defense.

<<if $dojo > 1>>
	<<set $slaves[$i].rules.living = "luxurious">>
<</if>>

<<set $deadliness = Deadliness($slaves[$i])>>

<<if $slaves[$i].skill.combat > 0>>
	$His combat skills greatly increase $his deadliness.
<</if>>

<<if setup.bodyguardCareers.includes($slaves[$i].career)>>
	$He has experience in personal defense from before $he was a slave.
<<elseif $slaves[$i].skill.bodyguard >= $masteredXP>>
	$He has experience in personal defense from working for you.
<<else>>
	<<set $slaves[$i].skill.bodyguard += random(1,Math.ceil(($slaves[$i].intelligence+$slaves[$i].intelligenceImplant)/15) + 8)>>
<</if>>

<<if ($slaves[$i].muscles > 30) && ($slaves[$i].muscles <= 95)>>
	$He is strong and powerful yet quick and flexible.
<<elseif $slaves[$i].muscles > 95 && $slaves[$i].height >= 185>>
	$His huge muscles are an intimidating sight and, despite their massive size, $he is tall enough to use them effectively.
<<elseif $slaves[$i].muscles > 95>>
	$His huge muscles are an intimidating sight, but are so big that they actually detract from $his combat effectiveness.
<<elseif $slaves[$i].muscles > 5>>
	$He is reasonably fit, but not enough to significantly affect $his combat effectiveness.
<<elseif $slaves[$i].muscles < -95>>
	$He can barely stand, let alone fight. A single shot from $his own weapon is liable to incapacitate $him, making $him an absolute travesty of a bodyguard.
<<elseif $slaves[$i].muscles < -30>>
	$He tires from just standing, rendering $him both ineffective and embarrassing to have as your guard.
<<elseif $slaves[$i].muscles < -5>>
	$He is rather unfit, enough to negatively impact $his combat effectiveness.
<</if>>

<<if getLimbCount($slaves[$i], 6) > 1>>
	The artificial muscles of $his cybernetic limbs increase $his strength and flexibility to enhance $his combat abilities and give $him the intimidating appearance of a super-soldier.
<<elseif getLimbCount($slaves[$i], 105) > 1>>
	$His tough combat limbs make $him an intimidating sight to behold.
<</if>>

<<if $slaves[$i].height >= 170>>
	$His height gives $him a reach advantage with $his sword.
<</if>>

<<if $slaves[$i].health.condition > 50>>
	$His shining health makes $him a better combatant.
<</if>>

<<if $slaves[$i].boobs > 4000>>
	$His titanic tits are a terrible hindrance in actual fighting.
<<elseif $slaves[$i].boobs > 2000>>
	$His big breasts get in $his way and reduce $his efficiency.
<</if>>

<<if $slaves[$i].dick >= 10>>
	$His massive dick gets in $his way and reduces $his efficiency.
<</if>>

<<if $slaves[$i].balls >= 15>>
	$His massive balls slow $him down and limit $his range of motion.
<</if>>

<<if $slaves[$i].butt > 6>>
	$His massive ass slows $him down and limits $his range of motion.
<</if>>

<<if $slaves[$i].hips > 2>>
	$He struggles to move with $his inhumanly wide hips and frequently gets caught between things trying to follow you.
<</if>>

<<if $slaves[$i].weight > 190>>
	$His extreme weight nearly immobilizes $him. $He struggles to move let alone protect you. At least $his bloated body will likely stop bullets and block doorways when needed.
<<elseif $slaves[$i].weight > 160>>
	$His extreme weight limits $his mobility and range of motion, making $him a poor bodyguard but decent meatshield.
<<elseif $slaves[$i].weight > 130>>
	$His extreme weight is an impediment as a bodyguard.
<<elseif $slaves[$i].weight > 30>>
	$His heavy weight is an impediment as a bodyguard.
<<elseif $slaves[$i].weight < -10>>
	$His light weight is an impediment as a bodyguard.
<</if>>

<<if $slaves[$i].health.condition < -50>>
	$His poor health makes $him a weaker combatant.
<</if>>

<<if $slaves[$i].pregKnown == 1 || $slaves[$i].bellyPreg >= 1500>>
	<<if $slaves[$i].bellyPreg >= 750000>>
		$His monolithic pregnancy greatly restricts $his movement and renders $him nearly useless in combat. $He can barely waddle after you, and when $he does, finds doors and small passages don't agree with $his bloated figure.
	<<elseif $slaves[$i].bellyPreg >= 450000>>
		$His gigantic pregnancy greatly hinders $his movement and terribly reduces $his effectiveness in combat. It also limits where $he can follow you, as doors and small passages don't agree with $his bloated figure.
	<<elseif $slaves[$i].bellyPreg >= 300000>>
		$His massive pregnancy obstructs $his movement and greatly hinders $his ability to protect you. It also limits where $he can follow you, as doors and small passages don't agree with $his bloated figure.
	<<elseif $slaves[$i].bellyPreg >= 150000>>
		$His giant pregnancy obstructs $his movement and greatly slows $him down. It also limits where $he can follow you, as $he has trouble waddling through crowds.
	<<elseif $slaves[$i].bellyPreg >= 100000>>
		$His giant belly gets in $his way and weighs $him down.
	<<elseif $slaves[$i].bellyPreg >= 10000>>
		$His huge belly is unwieldy and hinders $him.
	<<elseif $slaves[$i].bellyPreg >= 5000>>
		$His advanced pregnancy limits $his effectiveness.
	<<elseif $slaves[$i].bellyPreg >= 1500>>
		$His growing pregnancy occasionally distracts $him from $his job.
	<<else>>
		The life just beginning to grow inside $him occasionally distracts $him from $his job.
	<</if>>
<<elseif $slaves[$i].bellyImplant >= 1500>>
	<<if $slaves[$i].bellyImplant >= 750000>>
		$His monolithic, <<print $slaves[$i].bellyImplant>>cc implant filled belly greatly restricts $his movement and renders $him nearly useless in combat. $He can barely waddle after you, and when $he does, finds doors and small passages don't agree with $his bloated figure.
	<<elseif $slaves[$i].bellyImplant >= 450000>>
		$His gigantic, <<print $slaves[$i].bellyImplant>>cc implant filled belly greatly hinders $his movement and terribly reduces $his effectiveness in combat. It also limits where $he can follow you, as doors and small passages don't agree with $his bloated figure.
	<<elseif $slaves[$i].bellyImplant >= 300000>>
		$His massive, <<print $slaves[$i].bellyImplant>>cc implant filled belly obstructs $his movement and greatly hinders $his ability to protect you. It also limits where $he can follow you, as doors and small passages don't agree with $his bloated figure.
	<<elseif $slaves[$i].bellyImplant >= 150000>>
		$His giant, <<print $slaves[$i].bellyImplant>>cc implant filled belly obstructs $his movement and greatly slows $him down. It also limits where $he can follow you, as $he has trouble waddling through crowds.
	<<elseif $slaves[$i].bellyImplant >= 100000>>
		$His giant, <<print $slaves[$i].bellyImplant>>cc implant filled belly is very heavy and unwieldy, frequently getting in the way of $his job.
	<<elseif $slaves[$i].bellyImplant >= 10000>>
		$His huge, <<print $slaves[$i].bellyImplant>>cc implant filled belly is very heavy and unwieldy, throwing off $his weight and making $him far less effective.
	<<elseif $slaves[$i].bellyImplant >= 5000>>
		$His large, <<print $slaves[$i].bellyImplant>>cc implant filled belly is heavy and unwieldy, limiting $his effectiveness.
	<<elseif $slaves[$i].bellyImplant >= 1500>>
		$His swollen, <<print $slaves[$i].bellyImplant>>cc implant filled belly is heavy and occasionally distracts $him.
	<</if>>
<</if>>
<<if $slaves[$i].labor == 1>>
	$He's feeling labor pains, greatly detracting from $his ability to protect you.
<<elseif $slaves[$i].preg >= $slaves[$i].pregData.normalBirth && $slaves[$i].pregControl != "labor suppressors">>
	$He'll be going into labor any time now detracting from $his ability to protect you.
<</if>>

<<if $slaves[$i].bellyFluid >= 10000>>
	$His hugely bloated, <<print $slaves[$i].inflationType>>-filled belly is taut and painful, hindering $his ability to guard you.
<<elseif $slaves[$i].bellyFluid >= 5000>>
	$His bloated, <<print $slaves[$i].inflationType>>-stuffed belly is constantly jiggling and moving, distracting $him and throwing off $his weight.
<<elseif $slaves[$i].bellyFluid >= 2000>>
	$His distended, <<print $slaves[$i].inflationType>>-belly is uncomfortable and heavy, distracting $him.
<</if>>

<<if $slaves[$i].teeth == "pointy">>
	$His sharp teeth add nothing to $his actual effectiveness, but they're certainly intimidating.
<</if>>

<<if ($slaves[$i].skill.combat < 1) && (random(-100,150) <= ($slaves[$i].intelligence+$slaves[$i].intelligenceImplant))>>
	After some experience guarding you, and diligent practice in the armory, @@.green;$his combat skills increase.@@
	<<set $slaves[$i].skill.combat += 1>>
<<elseif $slaves[$i].skill.combat >= 1>>
	$He maintains $his combat skill with practice in the armory.
<<else>>
	Though $he practices diligently $his basic combat skills do not improve this week.
<</if>>

$His constant presence is
<<if $deadliness > 6>>
	extremely intimidating, @@.green;adding much to your reputation.@@
	<<if $slaves[$i].career == "an arcology owner">>
		You've made a one-time rival arcology owner into a deadly and loyal protector, a feat of slaveownership that's @@.green;internationally famous.@@
		<<run repX($deadliness*50, "bodyguard", $slaves[$i])>>
	<</if>>
<<elseif $deadliness > 3>>
	intimidating, @@.green;adding to your reputation.@@
<<else>>
	hardly intimidating, @@.yellow;barely adding to your reputation.@@
<</if>>

<<run repX($deadliness*50, "bodyguard", $slaves[$i])>>

Being continually trusted with your life @@.hotpink;increases $his devotion to you@@ and encourages $him to @@.mediumaquamarine;trust you in turn.@@
	<<set $slaves[$i].devotion += 2>>
	<<set $slaves[$i].trust += 4>>

<<if $dojo > 1>>
	$He @@.hotpink;appreciates@@ how special it is that $he has a nice room off the armory to rest in.
	<<set $slaves[$i].devotion += 1>>
<</if>>

<<if $bodyguardTrains == 1 && $slaves[$i].devotion > 95 && $slaves[$i].trust > 50 && $slaves[$i].skill.combat > 0 && $slaves[$i].intelligence+$slaves[$i].intelligenceImplant > 15>>
	$He's confident in $his martial skills, but smart enough to know that $he isn't immortal, and devoted enough to worry about who will protect you should $he die.
	<<set _successorCandidates = $slaves.filter( function(s) { return (assignmentVisible(s) || s.assignment == "be your Concubine" || s.assignment == "be the Wardeness" || s.assignment == "be your Head Girl" || s.assignment == "work as a servant" || s.assignment == "serve in the master suite") && bodyguardSuccessorEligible(s); } )>>
	<<set _combatSkilled = _successorCandidates.filter( function(s) { return s.skill.combat > 0; })>>
	<<if _combatSkilled.length < 2>>
		<<unset $subSlave>>
		<<set _flawedTrainee = 0>>
		<<if $slaves[$i].relationship > 1>>
			<<set $subSlave = getSlave($slaves[$i].relationshipTarget)>>
			<<if (def $subSlave) && $subSlave.skill.combat == 0 && bodyguardSuccessorEligible($subSlave)>>
				<<setLocalPronouns $subSlave 2>>
				$He does $his best to train $subSlave.slaveName whenever $he can, hoping that $his
				<<if $slaves[$i].relationship > 4>>_wife2<<elseif $slaves[$i].relationship == 4>>lover<<elseif $slaves[$i].relationship == 3>><<= _girl2>>friend<<else>>best friend<</if>>
				can be made capable of stepping into $his place.
			<</if>>
		<</if>>
		<<if ndef $subSlave>>
			<<if $HeadGirl != 0 && $HeadGirl.skill.combat == 0 && bodyguardSuccessorEligible($HeadGirl)>>
				$He does $his best to train $HeadGirl.slaveName whenever $he can, hoping that your Head Girl can be made capable of stepping into $his place.
				<<set $subSlave = $HeadGirl>>
			<</if>>
		<</if>>
		<<if ndef $subSlave>>
			<<if $Concubine != 0 && $Concubine.skill.combat == 0 && $Concubine.devotion > 50 && $Concubine.muscles >= -30 && $Concubine.weight < 150 && $Concubine.butt < 10 && $Concubine.boobs < 25000 && $Concubine.belly < 5000 && $Concubine.balls < 20 && $Concubine.dick < 15 && $Concubine.fuckdoll == 0 && $Concubine.fetish != "mindbroken" && canWalk($Concubine)>>
				$He does $his best to train $Concubine.slaveName whenever $he can, hoping that your Concubine can be made capable of stepping into $his place.
				<<if $Concubine.boobs >= 8000 || $Concubine.butt >= 10 || $Concubine.belly >= 5000 || $Concubine.balls >= 10 || $Concubine.dick >= 10 || $Concubine.muscles < 0 || $Concubine.weight >= 100>>
					$His body is poorly suited for combat, but $he can learn to work around it with enough effort.
					<<set _flawedTrainee = random(0,50)>>
				<</if>>
				<<set $subSlave = $Concubine>>
			<</if>>
		<</if>>
		<<if ndef $subSlave>>
			<<if $Wardeness != 0 && $Wardeness.skill.combat == 0 && bodyguardSuccessorEligible($Wardeness)>>
				$He does $his best to train $Wardeness.slaveName whenever $he can, hoping that your Wardeness can be made capable of stepping into $his place.
				<<set $subSlave = $Wardeness>>
			<</if>>
		<</if>>
		<<if ndef $subSlave>>
			<<set $subSlave = _successorCandidates.find( function(s) { return s.skill.combat == 0; })>>
			<<if def $subSlave>>
				$He does $his best to train $subSlave.slaveName whenever $he can, hoping that $his subordinate can be made capable of stepping into $his place.
			<</if>>
		<</if>>
		<<if def $subSlave>>
			<<if ($slaves[$i].intelligence + $slaves[$i].intelligenceImplant - _flawedTrainee) > random(1,500)>>
				By the end of the week, $he is satisfied that $subSlave.slaveName @@.green;has the combat skill@@ to contribute to your defense.
				<<set _sgy = $slaveIndices[$subSlave.ID]>>
				<<set $slaves[_sgy].skill.combat = 1>>
			<</if>>
		<<else>>
			$He finds no suitable candidates to serve as $his replacement, leaving $him stressed over your future safety. The worry is exhausting and @@.red;bad for $his health.@@
			<<run healthDamage($slaves[$i], 3)>>
		<</if>>
	<<else>>
		$He takes care to look after the skills of your other defensively capable slaves, satisfied that there are enough of them living in your penthouse.
	<</if>>
<</if>>