code:
:: Children Report [nobr]

<<set $nurserySlaves = 0>>

<<for _nur = 0; _nur < $cribs.length; _nur++>>
	<<set $cribs[_nur].birthWeek += 1>>
	<<if $cribs[_nur].birthWeek >= 52>>
		<<set $cribs[_nur].birthWeek = 0>>
		<<if $seeAge == 1>>
			<<set $cribs[_nur].actualAge++, $cribs[_nur].ovaryAge++>>
		<</if>>
	<</if>>
	<<set $nurserySlaves += 1>>
	<<if $cribs[_nur].growTime > 0>>
		<<set $cribs[_nur].growTime -= 1>>

@@.pink;<<print $cribs[_nur].slaveName>>@@ is growing steadily. $He <<if $cribs[_nur].growTime <= 0>>is @@.lime;ready for release.@@ $He will be ejected from $his crib upon your approach<<else>>will be ready for release in about <<print $cribs[_nur].growTime>> weeks<</if>>.
	<<else>>
		@@.pink;$cribs[_nur].slaveName@@ is @@.lime;ready for release.@@ $He will be removed from $nurseryName upon your approach.
	<</if>>

	<<if $nurseryUpgradeWeight == 1>>

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

	<<if $nurseryUpgradeMuscles == 1>>

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

	<<if $nurseryUpgradeGrowthStims == 1 && $nurseryGrowthStimsSetting != 0>>

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

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

	<<if $nurseryUpgradeReproduction == 1>>

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

	<<if $nurseryReproductionSetting == 2>>
		<<set $cribs[_nur].energy = 80, $cribs[_nur].need = 100>>
	<<elseif $nurseryReproductionSetting == 1>>
		<<set $cribs[_nur].energy = 50, $cribs[_nur].need = 20>>
	<<else>>
		<<set $cribs[_nur].energy = 0, $cribs[_nur].need = 0>>
	<</if>>
	/* these are breaking everything, temporarily commented out
	<<set $cribs[_nur].weight = Math.clamp($cribs[_nur].weight, -100, 200)>>
	<<set $cribs[_nur].muscles = Math.clamp($cribs[_nur].muscles, -100, 100)>>
	<<set $cribs[_nur].dick = Math.clamp($cribs[_nur].dick, 0, 10)>>
	<<set $cribs[_nur].hips = Math.clamp($cribs[_nur].hips, -2, 2)>>
	<<set $cribs[_nur].balls = Math.clamp($cribs[_nur].balls, 0, 40)>>
	<<set $cribs[_nur].boobs = Math.clamp($cribs[_nur].boobs, 0, 30000)>>
	<<set $cribs[_nur].height = Math.clamp($cribs[_nur].height, 0, 274)>>
	<<set $cribs[_nur].hormoneBalance = Math.clamp($cribs[_nur].hormoneBalance, -500, 500)>>
	*/

<</for>>
/*
<<if $nurserySlaves == 0>>
$nurseryNameCaps is currently unused.
<</if>>
*/