diff --git a/src/pregmod/incubatorReport.tw b/src/pregmod/incubatorReport.tw index 1f6a20361f23cf0d1cea0f8362407fb781661cda..0bb2b7be3b62acd3f0efb3ec54fd0b998d260b34 100644 --- a/src/pregmod/incubatorReport.tw +++ b/src/pregmod/incubatorReport.tw @@ -750,10 +750,7 @@ <<if ($incubatorPregAdaptationSetting == 1 && $tanks[_inc].genes == "XX") || ($incubatorPregAdaptationSetting == 2 && $tanks[_inc].genes == "XY") || $incubatorPregAdaptationSetting == 3>> <br> The incubator is working on adapting $his abdomen and reproductive organs for future pregnancies. - <<if isNaN($tanks[_inc].incubatorPregAdaptationInWeek)>> - <<set ($tanks[_inc].incubatorPregAdaptationInWeek = (15000 / 2000 - $tanks[_inc].pregAdaptation) / $tanks[_inc].growTime)>> - <</if>> - <<set _weekAdapt = $tanks[_inc].incubatorPregAdaptationInWeek * $incubatorUpgradeSpeed>> + <<set _weekAdapt = isNaN($tanks[_inc].incubatorPregAdaptationInWeek) ? ($tanks[_inc].incubatorPregAdaptationInWeek = (15000 / 2000 - $tanks[_inc].pregAdaptation) / $tanks[_inc].growTime) * $incubatorUpgradeSpeed : $tanks[_inc].incubatorPregAdaptationInWeek * $incubatorUpgradeSpeed>> <<set _weekAdapt *= 1 + ($incubatorReproductionSetting / 5)>> <<set _weekAdapt *= 1 + ($tanks[_inc].hormoneBalance / 1500)>> /*And now we done*/