Skip to content
Snippets Groups Projects
Commit 51dc2b91 authored by hexall90's avatar hexall90
Browse files

Finished implementation of stimulants in the incubator

parent 3ca73761
No related branches found
No related tags found
4 merge requests!1155Pregmod master,!871Security expansion,!793Height Additions,!777Pregmod-contrib-hexall
...@@ -464,7 +464,6 @@ DairyRestraintsSetting($dairyRestraintsSetting) ...@@ -464,7 +464,6 @@ DairyRestraintsSetting($dairyRestraintsSetting)
<<set $incubatorMusclesSetting = 0>> <<set $incubatorMusclesSetting = 0>>
<<set $incubatorGrowthStimsSetting = 0>> <<set $incubatorGrowthStimsSetting = 0>>
<<set $incubatorReproductionSetting = 0>> <<set $incubatorReproductionSetting = 0>>
<<set $growthStimMod = 0>>
<<set $incubatorName = "the Incubator">> <<set $incubatorName = "the Incubator">>
<<set $incubatorNameCaps = "The Incubator">> <<set $incubatorNameCaps = "The Incubator">>
<<set $reservedChildren = 0>> <<set $reservedChildren = 0>>
......
...@@ -189,8 +189,10 @@ Target age for release: <<textbox "$targetAge" $targetAge "Incubator">> [[Minimu ...@@ -189,8 +189,10 @@ Target age for release: <<textbox "$targetAge" $targetAge "Incubator">> [[Minimu
<br> <br>
<<if $incubatorUpgradeGrowthStims == 1>> <<if $incubatorUpgradeGrowthStims == 1>>
Advanced monitoring and stimulants injection systems have been installed in the tanks to monitor and maintain a developing child's height. Advanced monitoring and stimulants injection systems have been installed in the tanks to monitor and maintain a developing child's height.
<<else>> <<elseif $growthStim == 1>>
There are no systems in place to control a growing child's height. [[Upgrade the growth tanks with stimulants injection systems|Incubator][$cash -= Math.trunc(20000*$upgradeMultiplierArcology), $incubatorUpgradeGrowthStims = 1]] //Costs ¤<<print Math.trunc(20000*$upgradeMultiplierArcology)>> and will increase upkeep costs// There are no systems in place to control a growing child's height. [[Upgrade the growth tanks with stimulants injection systems|Incubator][$cash -= Math.trunc(20000*$upgradeMultiplierArcology), $incubatorUpgradeGrowthStims = 1]] //Costs ¤<<print Math.trunc(20000*$upgradeMultiplierArcology)>> and will increase upkeep costs//
<<else>>
There are no systems in place to control a growing child's height and the medical facilities lack the capability to fabricate growth stimulants.
<</if>> <</if>>
<br> <br>
......
...@@ -138,27 +138,75 @@ ...@@ -138,27 +138,75 @@
<</if>> <</if>>
<</if>> <</if>>
<<if $incubatorUpgradeGrowthStims == 1>> <<if $incubatorUpgradeGrowthStims == 1 && $incubatorGrowthStimsSetting != 0>>
<br> <br>
<<if $tanks[_inc].height >= Math.clamp((Height.mean($slaves[$i]) * 1.25),0,274)>> <<set _heightLimit = Math.clamp((Height.mean($tanks[_inc].height) * 1.25),0,274)>>
The monitoring system detects her body is not able to support further increases in height. <<set _heightLimitAge = Height.forAge($tanks[_inc].height, $tanks[_inc])>>
<<if $tanks[_inc].height >= _heightLimit>>
The monitoring system detects her body is not able to support further increases in height, so it carefully regulates stimulants injections to @@.yellow;maintain current stature.@@
<<set $tanks[_inc].height = _heightLimit>>
<<elseif $incubatorGrowthStimsSetting == 2>> <<elseif $incubatorGrowthStimsSetting == 2>>
The monitoring system floods her body with growth stimulants, causing @@.green;a sharp increase in growth.@@ The monitoring system floods her body with growth stimulants, causing @@.green;a sharp increase in growth.@@
<<set $growthStimMod = 3>> <<if $incubatorWeightSetting >= 1 && $incubatorMusclesSetting <= 1 && $incubatorReproductionSetting <= 1>>
<<if $incubatorUpgradeSpeed == 52>>
<<set $tanks[_inc].height += random(3,6)>>
<<elseif $incubatorUpgradeSpeed == 18>>
<<set $tanks[_inc].height += random(2,5)>>
<<elseif $incubatorUpgradeSpeed == 9>>
<<set $tanks[_inc].height += random(1,4)>>
<<elseif $incubatorUpgradeSpeed == 6>>
<<set $tanks[_inc].height += random(1,3)>>
<<elseif $incubatorUpgradeSpeed == 5>>
<<set $tanks[_inc].height += random(1,2)>>
<</if>>
<<else>>
<<if $incubatorUpgradeSpeed == 52>>
<<set $tanks[_inc].height += random(2,5)>>
<<elseif $incubatorUpgradeSpeed == 18>>
<<set $tanks[_inc].height += random(1,4)>>
<<elseif $incubatorUpgradeSpeed == 9>>
<<set $tanks[_inc].height += random(1,3)>>
<<elseif $incubatorUpgradeSpeed == 6>>
<<set $tanks[_inc].height += random(1,2)>>
<<elseif $incubatorUpgradeSpeed == 5>>
<<set $tanks[_inc].height += random(0,1)>>
<</if>>
<</if>>
<<elseif $incubatorGrowthStimsSetting == 1>> <<elseif $incubatorGrowthStimsSetting == 1>>
<<if $tanks[_inc].height > Height.forAge($slaves[$i].height, $slaves[$i])>> <<if $tanks[_inc].height > _heightLimitAge>>
The monitoring system detects her body is struggling to keep up with her growth and @@.green;decreases her growth stimulants dosage.@@ The monitoring system detects she is near the expected height, so it carefully regulates stimulants injections to @@.yellow;maintain current stature.@@
<<set $growthStimMod = 1>> <<if random(1,10) == 10>>
<<if $incubatorUpgradeSpeed == 52>>
<<set $tanks[_inc].height += random(1,4)>>
<<elseif $incubatorUpgradeSpeed == 18>>
<<set $tanks[_inc].height += random(1,3)>>
<<elseif $incubatorUpgradeSpeed == 9>>
<<set $tanks[_inc].height += random(1,2)>>
<<elseif $incubatorUpgradeSpeed == 6>>
<<set $tanks[_inc].height += random(0,1)>>
<<elseif $incubatorUpgradeSpeed == 5>>
<<set $tanks[_inc].height += random(0,1)>>
<</if>>
<</if>>
<<else>> <<else>>
The monitoring system detects her body is capable of developing more rapidly and @@.green;increases her growth stimulants dosage.@@ The monitoring system detects her body is capable of developing more rapidly and @@.green;increases her growth stimulants dosage.@@
<<set $growthStimMod = 2>> <<if $incubatorUpgradeSpeed == 52>>
<</if>> <<set $tanks[_inc].height += random(1,4)>>
<<elseif $incubatorGrowthStimsSetting == 0>> <<elseif $incubatorUpgradeSpeed == 18>>
With the stimulants injections offline, her body is left to develop naturally. <<set $tanks[_inc].height += random(1,3)>>
<<if $growthStimMod != 0>> <<elseif $incubatorUpgradeSpeed == 9>>
<<set $growthStimMod = 0>> <<set $tanks[_inc].height += random(1,2)>>
<<elseif $incubatorUpgradeSpeed == 6>>
<<set $tanks[_inc].height += random(0,1)>>
<<elseif $incubatorUpgradeSpeed == 5>>
<<set $tanks[_inc].height += random(0,1)>>
<</if>>
<</if>> <</if>>
<</if>> <</if>>
<<set $tanks[_inc].height = Math.clamp($tanks[_inc].height, 0, _heightLimit)>>
<<else>>
With the stimulants injections offline, her body is left to develop naturally.
<</if>> <</if>>
<<if $incubatorUpgradeReproduction == 1>> <<if $incubatorUpgradeReproduction == 1>>
...@@ -616,6 +664,7 @@ ...@@ -616,6 +664,7 @@
<<set $tanks[_inc].hips = Math.clamp($tanks[_inc].hips, -2, 2)>> <<set $tanks[_inc].hips = Math.clamp($tanks[_inc].hips, -2, 2)>>
<<set $tanks[_inc].balls = Math.clamp($tanks[_inc].balls, 0, 40)>> <<set $tanks[_inc].balls = Math.clamp($tanks[_inc].balls, 0, 40)>>
<<set $tanks[_inc].boobs = Math.clamp($tanks[_inc].boobs, 0, 30000)>> <<set $tanks[_inc].boobs = Math.clamp($tanks[_inc].boobs, 0, 30000)>>
<<set $tanks[_inc].height = Math.clamp($tanks[_inc].height, 0, 274)>>
<br> <br>
<</for>> <</for>>
/* /*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment