From 8a25e21b183f9dc6015291934c02b378db4677dc Mon Sep 17 00:00:00 2001 From: pregmodfan <pregmodfan@cock.li> Date: Sun, 12 Apr 2020 03:23:29 +0300 Subject: [PATCH] incubator upgrade more tweaks --- src/pregmod/incubatorReport.tw | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pregmod/incubatorReport.tw b/src/pregmod/incubatorReport.tw index 96d9681316b..1266918e300 100644 --- a/src/pregmod/incubatorReport.tw +++ b/src/pregmod/incubatorReport.tw @@ -749,12 +749,12 @@ <<if ($incubatorPregAdaptationSetting == 1 && $tanks[_inc].genes == "XX") || ($incubatorPregAdaptationSetting == 2 && $tanks[_inc].genes == "XY") ||$incubatorPregAdaptationSetting == 3 >> <br>Incubator working on $his abdomen and reproductive organs. - <<set _weekAdapt = isNaN($tanks[_inc].incubatorPregAdaptationInWeek) ? 0.01 : $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); _weekAdapt *= 1 + ($tanks[_inc].hormoneBalance / 1500)>> /*And now we done*/ <<set $tanks[_inc].pregAdaptation += _weekAdapt>> /* here goes side effect from intense and extreme settings: */ - <<set _sideEffect = (random(0, 100) <= ($tanks[_inc].incubatorPregAdaptationPower - 1) * ($incubatorUpgradeSpeed/2))>> + <<set _sideEffect = (random(0, 100) <= ($tanks[_inc].incubatorPregAdaptationPower - 1) * ($incubatorUpgradeSpeed / 2 + 1))>> <<if _sideEffect>> <<set _eff = random (1, 9)>> <<switch _eff>> -- GitLab