diff --git a/src/pregmod/incubatorReport.tw b/src/pregmod/incubatorReport.tw index e027dda4387561dd1551a21f20e3e3b606d2e080..43d9542b47546e1244ed52323c8e7043cfff86e0 100644 --- a/src/pregmod/incubatorReport.tw +++ b/src/pregmod/incubatorReport.tw @@ -140,7 +140,7 @@ <<if $incubatorUpgradeGrowthStims == 1 && $incubatorGrowthStimsSetting != 0>> <br> - <<set _heightLimit = Math.clamp((Height.mean($tanks[_inc].height) * 1.25),0,274)>> + <<set _heightLimit = Math.trunc(Math.clamp((Height.mean($tanks[_inc].height) * 1.25),0,274))>> <<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 stimulant injections to @@.yellow;maintain her current stature.@@ diff --git a/src/uncategorized/BackwardsCompatibility.tw b/src/uncategorized/BackwardsCompatibility.tw index 6959af341eb074ea47fb9bf460087c9a610989b8..095c242426d4f1f2941eee746f27d6b5eccaf882 100644 --- a/src/uncategorized/BackwardsCompatibility.tw +++ b/src/uncategorized/BackwardsCompatibility.tw @@ -2809,6 +2809,10 @@ Setting missing slave variables: <<set _Slave.faceImplant = 65>> <</if>> +<<if !isInt(_Slave.height)>> + <<set _Slave.height = Math.trunc(_Slave.height)>> +<</if>> + <<set $slaves[_bci] = _Slave>> <</for>> diff --git a/src/uncategorized/saDrugs.tw b/src/uncategorized/saDrugs.tw index 032f1a83f0ce4bd6c3e5e183c83ec06e97140f0a..8d06167615b8ae6e470f1cd457e87e264ef8fd73 100644 --- a/src/uncategorized/saDrugs.tw +++ b/src/uncategorized/saDrugs.tw @@ -1174,7 +1174,7 @@ /* DRUG EXPIRY */ <<switch $slaves[$i].drugs>> <<case "growth stimulants">> - <<set _maxHeight = Math.clamp((Height.mean($slaves[$i]) * 1.25),0,274)>> /*max achievable height is expected height plus 25%*/ + <<set _maxHeight = Math.trunc(Math.clamp((Height.mean($slaves[$i]) * 1.25),0,274))>> /*max achievable height is expected height plus 25%*/ <<if $slaves[$i].height >= _maxHeight>> $possessiveCap body has already grown far past $possessive natural limits; further injections of stimulants will have no effect. @@.yellow;$possessiveCap drug regimen has been ended.@@ <<set $slaves[$i].height = Math.clamp($slaves[$i].height,0,_maxHeight), $slaves[$i].drugs = "no drugs">>