:: Incubator Workaround [nobr]

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