diff --git a/src/pregmod/incubator.tw b/src/pregmod/incubator.tw index b3c5d75bd78fa71056f5b2fccee66983162a6615..853a200c7fade2332b08c7ea78c48fca5047a347 100644 --- a/src/pregmod/incubator.tw +++ b/src/pregmod/incubator.tw @@ -715,6 +715,8 @@ Target age for release: <<textbox "$targetAge" $targetAge "Incubator">> [[Minimu Pregnancy adaptation programmed to standart procedures. Normal singleton pregnancy should be safe for the subjects. [[Advanced|Incubator][$incubatorPregAdaptationPower = 1]] | [[Intensive|Incubator][$incubatorPregAdaptationPower = 2]] | [[Extreme|Incubator][$incubatorPregAdaptationPower = 3]] <</if>> + <br> + //Due to the high complexity and risk of procedure setting will not be changed to tanks in use.// <</if>> <</if>> <br> diff --git a/src/pregmod/incubatorReport.tw b/src/pregmod/incubatorReport.tw index 139af2d188c91906d79b2845426c54507488e143..b0448dbc1d981d5a9e3057fcfeceb4baad201071 100644 --- a/src/pregmod/incubatorReport.tw +++ b/src/pregmod/incubatorReport.tw @@ -747,6 +747,60 @@ <<set $tanks[_inc].energy = 0, $tanks[_inc].need = 0>> <</if>> + <<if ($incubatorPregAdaptationSetting == 1 && $tanks[_inc].genes == "XX") || ($incubatorPregAdaptationSetting == 2 && $tanks[_inc].genes == "XY") ||$incubatorPregAdaptationSetting == 3 >> + Incubator working on $his abdomen and reproductive organs. + <<if $tanks[_inc].incubatorPregAdaptationPower == 1>> + <<set _targetVol = 45000>> + <<elseif $tanks[_inc].incubatorPregAdaptationPower == 2>> + <<set _targetVol = 100000>> + <<elseif $tanks[_inc].incubatorPregAdaptationPower == 3>> + <<set _targetVol = 150000>> + <<else>> + <<set _targetVol = 15000>> + <</if>> + <<set _weeksToFill = Math.round($tanks[_inc].growTime/$incubatorUpgradeSpeed); + _volToFill = (_targetVol - ($tanks[_inc].pregAdaptation*2000)) / _weeksToFill; + _weekVol = _volToFill / _weeksToFill>> + <<set _weeksVol *= 1 + ($incubatorReproductionSetting / 5); + _weekVol *= 1 + ($tanks[_inc].hormoneBalance / 1500) >> + /* here goes side effect from intense and extreme settings: */ + <<set _sideEffect = random(0, 100) > ($tanks[_inc].incubatorPregAdaptationPower - 1) * ($incubatorUpgradeSpeed/2))>> + <<if _sideEffect>> + <<set _eff = random (1, 9)>> + <<swith _eff>> + <<case 1>> + <<set $tanks[_inc].geneticQuirks.wGain = 2>> + $His @@.orange;weight@@ balance can be affected. + <<case 2>> + <<set $tanks[_inc].geneticQuirks.wLoss = 2>> + $His @@.orange;weight@@ balance can be affected. + <<case 3>> + <<set $tanks[_inc].preg = -2>> + Incubator reported about @@.red;serious damage@@ of $his reproductive ability as result. + <<case 4>> + <<set $tanks[_inc].geneMods.rapidCellGrowth = 2>> + Incubator reported about @@.orange;genetically triggered hormonal disblalance@@ it's affect $his tissue ability to stretch. + <<case 5>> + <<set $tanks[_inc].health.shortDamage += 10>> + Incubator reported about @@.red;short term health damage@@. + <<case 6>> + <<set $tanks[_inc].health.longDamage += 10>> + Incubator reported about @@.red;long term health damage@@. + <<case 7>> + <<set $tanks[_inc].health.health -= 15>> + Incubator reported about @@.red;direct health damage@@. + <<case 8>> + <<set $tanks[_inc].lactation = 1>> + Incubator reported about @@.orange;triggered hormonal disorder@@ $his breast glands begin to produce milk. + <<case 9>> + <<set $tanks[_inc].bellySag = 100; $tanks[_inc].bellySagPreg = 100>> + Incubator reported about @@.red;emergency protocol activation@@ caused by overpressure to $his tissues and skin on the abdomen. It lost tone and will be sagged now. + <</swith>> + <</if>> + /*And now we done*/ + <<set $tanks[_inc].pregAdaptation += _weekVol/2000>> + <</if>> + <<set $tanks[_inc].weight = Math.clamp($tanks[_inc].weight, -100, 200)>> <<set $tanks[_inc].muscles = Math.clamp($tanks[_inc].muscles, -100, 100)>> <<set $tanks[_inc].dick = Math.clamp($tanks[_inc].dick, 0, 10)>>