Skip to content
Snippets Groups Projects
Commit 4197b185 authored by Trashman1138's avatar Trashman1138
Browse files

Revised asset growth/loss code

parent 1476e520
No related branches found
No related tags found
No related merge requests found
:: SA diet [nobr] :: SA diet [nobr]
/* quirk modifiers */ /* quirk modifiers */
<<set _rearQuirk = $slaves[$i].geneticQuirks.rearLipedema == 2 ? 2 : 0>> <<set _rearQuirk = $slaves[$i].geneticQuirks.rearLipedema == 2 ? 2 : 1>>
<<set _gigantomastiaMod = $slaves[$i].geneticQuirks.gigantomastia == 2 ? ($slaves[$i].geneticQuirks.macromastia == 2 ? 3 : 2) : 1>> <<set _gigantomastiaMod = $slaves[$i].geneticQuirks.gigantomastia == 2 ? ($slaves[$i].geneticQuirks.macromastia == 2 ? 3 : 2) : 1>>
<<if $slaves[$i].fuckdoll == 0>> <<if $slaves[$i].fuckdoll == 0>>
...@@ -124,22 +124,40 @@ ...@@ -124,22 +124,40 @@
<<else>> <<else>>
<<set $slaves[$i].weight -= _weightLoss+($feeder*2)>> <<set $slaves[$i].weight -= _weightLoss+($feeder*2)>>
<</if>> <</if>>
<<if $slaves[$i].boobs-$slaves[$i].boobsImplant-$slaves[$i].boobsMilk >= 200 && _gigantomastiaMod != 3>> <<if $slaves[$i].hormoneBalance > 30>> /* 'Expected' breast size based on weight for feminine-bodied slaves */
<<if (($slaves[$i].geneMods.NCS == 0) && (random(1,_assetLoss*_gigantomastiaMod) <= 1+$feeder))>> <<set _growthgoal = 100 + ($slaves[$i].weight + 100)*5*_gigantomastiaMod>>
<<set _roll = 100>>
<<set _target = Math.trunc(Math.clamp((_weightLoss + ($feeder*2))*10 + (($slaves[$i].boobs-$slaves[$i].boobsImplant) - _growthgoal)/10,0,90))>>
<<else>> /* For masculine- and childish-bodied slaves */
<<set _growthgoal = ($slaves[$i].weight + 100)*2*_gigantomastiaMod>>
<<set _roll = 25>>
<<set _target = Math.trunc(Math.clamp(_weightLoss + ($feeder*2) + (($slaves[$i].boobs-$slaves[$i].boobsImplant) - _growthgoal)/40,0,23))>>
<</if>>
<<if random(1,_roll) <= _target && (_gigantomastiaMod != 3 && $slaves[$i].boobs >= 100)>>
<<if $slaves[$i].geneMods.NCS == 0>>
@@.orange;$His breasts get a little smaller.@@ @@.orange;$His breasts get a little smaller.@@
<<set $slaves[$i].boobs -= 50>> <<set $slaves[$i].boobs -= 50>>
<<elseif (($slaves[$i].geneMods.NCS == 1) && (random(-_assetLoss, _assetLoss - 2) <= 1+$feeder))>> <<else>>
@@.orange;$His breasts get smaller.@@ @@.orange;$His breasts get smaller.@@
<<set $slaves[$i].boobs -= 100>> <<set $slaves[$i].boobs -= 100>>
<</if>> <</if>>
<</if>> <</if>>
<<if $slaves[$i].butt > 1>> <<if $slaves[$i].hormoneBalance > 30>> /* 'Expected' butt size based on weight for feminine-bodied slaves, scaled up by 1000 */
<<if (($slaves[$i].geneMods.NCS == 0) && (random(1,_assetLoss+_rearQuirk) <= 1+$feeder))>> <<set _growthgoal = ($slaves[$i].weight + 100)*25*_rearQuirk>>
@@.orange;$His butt gets a little smaller.@@ <<set _roll = 40000>>
<<set $slaves[$i].butt -= 1>> <<set _target = Math.trunc(Math.clamp((_weightGain + ($feeder*2))*1000 + (($slaves[$i].butt-$slaves[$i].buttImplant)*1000 - _growthgoal)*2,0,36000))>>
<<elseif (($slaves[$i].geneMods.NCS == 1) && ($slaves[$i].butt > 2) && (random(-_assetLoss, _assetLoss - 2 + _rearQuirk) <= 1+$feeder))>> <<else>> /* For masculine- and childish-bodied slaves, likewise scaled up */
<<set _growthgoal = Math.trunc(($slaves[$i].weight + 100)*12.5)*_rearQuirk>>
<<set _roll = 80000>>
<<set _target = Math.trunc(Math.clamp((_weightGain + ($feeder*2))*1000 + (($slaves[$i].butt-$slaves[$i].buttImplant)*1000 - _growthgoal)*4,0,72000))>>
<</if>>
<<if random(1,_roll) <= _target && $slaves[$i].butt > 0>>
<<if (($slaves[$i].geneMods.NCS == 1) && ($slaves[$i].butt > 2)>>
@@.orange;$His butt gets smaller.@@ @@.orange;$His butt gets smaller.@@
<<set $slaves[$i].butt -= 2>> <<set $slaves[$i].butt -= 2>>
<<else>>
@@.orange;$His butt gets a little smaller.@@
<<set $slaves[$i].butt -= 1>>
<</if>> <</if>>
<</if>> <</if>>
<<if ($slaves[$i].weight < -95)>> <<if ($slaves[$i].weight < -95)>>
...@@ -315,7 +333,19 @@ ...@@ -315,7 +333,19 @@
<<else>> <<else>>
<<set $slaves[$i].weight += _weightGain+($feeder*2)>> <<set $slaves[$i].weight += _weightGain+($feeder*2)>>
<</if>> <</if>>
<<if random(1,_assetGain) <= 1+$feeder>> <<if $slaves[$i].hormoneBalance > 30>> /* 'Expected' breast size based on weight for feminine-bodied slaves */
<<set _growthgoal = 100 + ($slaves[$i].weight + 100)*5*_gigantomastiaMod>>
<<set _roll = 100>>
<<set _target = Math.trunc(Math.clamp((_weightGain + ($feeder*2))*10 - (($slaves[$i].boobs-$slaves[$i].boobsImplant) - _growthgoal)/10,0,90))>>
<<else>> /* For masculine- and childish-bodied slaves */
<<set _growthgoal = ($slaves[$i].weight + 100)*2*_gigantomastiaMod>>
<<set _roll = 25>>
<<set _target = Math.trunc(Math.clamp(_weightGain + ($feeder*2) - (($slaves[$i].boobs-$slaves[$i].boobsImplant) - _growthgoal)/40,0,23))>>
<</if>>
<<if ($slaves[$i].geneMods.NCS == 1)>>
<<set _roll = Math.trunc(_roll * 2)>>
<</if>>
<<if random(1,_roll) <= _target>>
@@.lime;$His breasts get a little bigger.@@ @@.lime;$His breasts get a little bigger.@@
<<if ($slaves[$i].geneMods.NCS == 0)>> <<if ($slaves[$i].geneMods.NCS == 0)>>
<<set $slaves[$i].boobs += 50>> <<set $slaves[$i].boobs += 50>>
...@@ -323,11 +353,21 @@ ...@@ -323,11 +353,21 @@
<<set $slaves[$i].boobs += 25>> <<set $slaves[$i].boobs += 25>>
<</if>> <</if>>
<</if>> <</if>>
<<if $slaves[$i].butt < 10>> <<if $slaves[$i].hormoneBalance > 30>> /* 'Expected' butt size based on weight for feminine-bodied slaves, scaled up by 1000 */
<<if random(1,_assetGain-_rearQuirk) <= 1+$feeder>> <<set _growthgoal = ($slaves[$i].weight + 100)*25*_rearQuirk>>
@@.lime;$His butt gets a little bigger.@@ <<set _roll = 40000>>
<<set $slaves[$i].butt += 1>> <<set _target = Math.trunc(Math.clamp((_weightGain + ($feeder*2))*1000 - (($slaves[$i].butt-$slaves[$i].buttImplant)*1000 - _growthgoal)*2,0,36000))>>
<</if>> <<else>> /* For masculine- and childish-bodied slaves, likewise scaled up */
<<set _growthgoal = Math.trunc(($slaves[$i].weight + 100)*12.5)*_rearQuirk>>
<<set _roll = 80000>>
<<set _target = Math.trunc(Math.clamp((_weightGain + ($feeder*2))*1000 - (($slaves[$i].butt-$slaves[$i].buttImplant)*1000 - _growthgoal)*4,0,72000))>>
<</if>>
<<if ($slaves[$i].geneMods.NCS == 1)>>
<<set _roll = Math.trunc(_roll * 2)>>
<</if>>
<<if random(1,_roll) <= _target>>
@@.lime;$His butt gets a little bigger.@@
<<set $slaves[$i].butt += 1>>
<</if>> <</if>>
<<if $slaves[$i].weight > 200>> <<if $slaves[$i].weight > 200>>
$He is now quite fat, so $his diet @@.yellow;has defaulted to maintenance of this weight.@@ $He is now quite fat, so $his diet @@.yellow;has defaulted to maintenance of this weight.@@
......
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