From 60b885f12a01bda026fd4c28c52c715143efb233 Mon Sep 17 00:00:00 2001 From: hexall <hexall90.gmail.com> Date: Sat, 9 Sep 2017 22:39:18 +0200 Subject: [PATCH] Added new drug "growth stimulants" -added two variables in storyInit.tw for the growth calculations -added the drug to the costs calculations in costs.tw -added the drug to the cost summary in costsReport.tw -added the drug behaviour in saDrugs.tw -added the drug to the list in slaveInteract.tw --- src/init/storyInit.tw | 4 + src/uncategorized/costs.tw | 2 +- src/uncategorized/costsReport.tw | 3 + src/uncategorized/saDrugs.tw | 120 +++++++++++++++++++++++++++++ src/uncategorized/slaveInteract.tw | 7 ++ 5 files changed, 135 insertions(+), 1 deletion(-) diff --git a/src/init/storyInit.tw b/src/init/storyInit.tw index 328fadfaefb..2d1f3ce6562 100644 --- a/src/init/storyInit.tw +++ b/src/init/storyInit.tw @@ -1065,6 +1065,10 @@ FertilityAge($fertilityAge) <<set $precociousPuberty = 0>> <<set $targetAge = $minimumSlaveAge>> +/*non-vanilla shit*/ +<<set $pubertyLength = 5>> +<<set $maxGrowthAge = 24>> + /% Begin mod section: toggle whether slaves lisp. %/ <<set $disableLisping = 0>> /% End mod section: toggle whether slaves lisp. %/ diff --git a/src/uncategorized/costs.tw b/src/uncategorized/costs.tw index 006cb8ef727..e8c16104402 100644 --- a/src/uncategorized/costs.tw +++ b/src/uncategorized/costs.tw @@ -271,7 +271,7 @@ <<elseif ($slaves[$i].drugs == "sag-B-gone")>> <<set $costs += ($drugsCost/10)>> <<elseif ($slaves[$i].drugs != "no drugs")>> - <<if $slaves[$i].drugs == "intensive breast injections" || $slaves[$i].drugs == "intensive butt injections" || $slaves[$i].drugs == "intensive penis enhancement" || $slaves[$i].drugs == "intensive testicle enhancement">> + <<if $slaves[$i].drugs == "intensive breast injections" || $slaves[$i].drugs == "intensive butt injections" || $slaves[$i].drugs == "intensive penis enhancement" || $slaves[$i].drugs == "intensive testicle enhancement" || $slaves[$i].drugs == "growth stimulants">> <<set $costs += $drugsCost*5>> <<else>> <<set $costs += $drugsCost*2>> diff --git a/src/uncategorized/costsReport.tw b/src/uncategorized/costsReport.tw index a76522903ba..31dece41d93 100644 --- a/src/uncategorized/costsReport.tw +++ b/src/uncategorized/costsReport.tw @@ -386,6 +386,9 @@ <<case "female hormone injections" "male hormone injections">> <br> Hormonal injections: ¤<<print ($drugsCost*5)>> <<set $individualCosts += ($drugsCost*5)>> + <<case "growth stimulants">> + <br> Growth stimulants: ¤<<print ($drugsCost*5)>> + <<set $individualCosts += ($drugsCost*5)>> <<case "intensive breast injections" "intensive butt injections" "intensive penis enhancement" "intensive testicle enhancement" "intensive lip injections" "hyper breast injections" "hyper butt injections" "hyper penis enhancement" "hyper testicle enhancement" "hyper lip injections">> <br> Intensive drugs: ¤<<print $drugsCost*5>> <<set $individualCosts += $drugsCost*5>> diff --git a/src/uncategorized/saDrugs.tw b/src/uncategorized/saDrugs.tw index f9952a30f9e..82cbac6a56f 100644 --- a/src/uncategorized/saDrugs.tw +++ b/src/uncategorized/saDrugs.tw @@ -356,6 +356,126 @@ <<set $slaves[$i].lips += 5>> <</if>> +<<case "growth stimulants">> + <<set $slaves[$i].chem += 2>> + <<set _growth = 1>> + $pronounCap receives @@.lime; + injections of growth stimulants@@, + /*Hormone balance*/ + <<if $slaves[$i].hormones == 2 || $slaves[$i].hormones == -2>> + <<set _growth-->> + the massive quantities of sexual hormones flooding $possessive body limits the effectivness of the treatment, + <<elseif $slaves[$i].hormones == 0>> + <<set _growth += 0.2>> + in the absence of significant levels of sexual hormones, the treatment is more effective + <<elseif $slaves[$i].hormones == 1 || $slaves[$i].hormones == -1>> + $possessive hormonal balance leaves the treatment enough room to manouver, + <</if>> + /*diet*/ + + <<if ($slaves[$i].diet == "fattening")>> + while all the food $pronoun's required to consume boosts growth. + <<set _growth += 0.2>> + <<elseif $slaves[$i].diet == "muscle building">> + while $possessive workout diet and constant physical excercise help support growth. + <<set _growth += 0.5>> + <<elseif $slaves[$i].diet == "restricted">> + while $possessive restricted diet means $possessive body has few resources to grow on. + <<set _growth-->> + <<elseif $slaves[$i].diet == "slimming">> + while $possessive growth is slightly inhibited by $possessive strict diet. + <<set _growth -= 0.2>> + <<elseif $slaves[$i].diet == "XY" || $slaves[$i].diet == "XX" || $slaves[$i].diet == "XXY">> + while $possessive growth is restrained by $possessive sexual hormones rich diet. + <<set _growth -= 0.5>> + <<elseif $slaves[$i].diet == "cleansing">> + while $possessive growth is inhibited by $possessive cleansing treatment. + <<set _growth-->> + <</if>> + /*health*/ + <<if $slaves[$i].health > 80>> + $possessiveCap perfect health increases the stimulants effectivness. + <<set _growth += 0.2>> + <<elseif $slaves[$i].health > -20>> + $possessiveCap health helps $possessive growth. + <<else>> + $possessiveCap poor health hinders growth. + <<set _growth-->> + <</if>> + /*if growth was accomplished*/ + <<if _growth > 0>> + /*age modifier*/ + <<set _ageMod = 1>> + <<if $slaves[$i].genes == "XY">> + <<if $slaves[$i].pubertyXY == 0 && $slaves[$i].physicalAge <= 3>> + Being a newborn, $possessive body responds extremely well to the treatment. + <<set _ageMod = 2.5>> + <<elseif $slaves[$i].pubertyXY == 0 && $slaves[$i].physicalAge > 3>> + $possessiveCap young body eagerly responds to the treatment. + <<set _ageMod = 1.5>> + <<elseif $slaves[$i].physicalAge <= ($slaves[$i].pubertyAgeXY + $pubertyLength)>> + Due to $possessive recent puberty, $possessive body welcomes the treatment with open arms. + <<set _ageMod = 2>> + <<elseif $slaves[$i].physicalAge <= $maxGrowthAge>> + With $possessive puberty concluded, her body resists the treatment. + <<set _ageMod = 1>> + <<else>> + $possessiveCap mature body struggles to respond to the treatment, making little progress. + <<set _ageMod = 0.5>> + <</if>> + <<elseif $slaves[$i].genes == "XX">> + <<if $slaves[$i].pubertyXX != 1 && $slaves[$i].physicalAge <= 3>> + Being a newborn, $possessive body responds extremely well to the treatment. + <<set _ageMod = 2.4>> + <<elseif $slaves[$i].pubertyXX != 1 && $slaves[$i].physicalAge > 3>> + $possessiveCap young body eagerly responds to the treatment. + <<set _ageMod = 1.2>> + <<elseif $slaves[$i].pubertyXX == 1 && $slaves[$i].physicalAge <= ($slaves[$i].pubertyAgeXX + $pubertyLength)>> + Due to $possessive recent puberty, $possessive body welcomes the treatment with open arms. + <<set _ageMod = 1.8>> + <<elseif $slaves[$i].physicalAge <= $maxGrowthAge>> + With $possessive puberty concluded, the treatment struggles to make significant progress. + <<set _ageMod = 1>> + <<else>> + $possessiveCap mature body struggles to respond to the treatment, making little progress. + <<set _ageMod = 0.5>> + <</if>> + <</if>> + <<set _growth *= _ageMod>> + <<set _growth = Math.round(Math.clamp(_growth,0,5))>> + /*communicates the level of growth accomplished*/ + <<if _growth == 1>> + @@.lime;$possessiveCap height slightly increases this week.@@ + <<elseif _growth == 2>> + @@.lime;$possessiveCap height increases this week.@@ + <<elseif _growth == 3>> + @@.lime;$possessiveCap height greatly increases this week.@@ + <<elseif _growth == 4>> + @@.lime;$possessiveCap height dramatically increases this week.@@ + <<elseif _growth == 5> + @@.lime;$possessiveCap body experiences explosive growth this week@@, + <</if>> + /*health issues*/ + <<if _growth == 5>> + $possessive growth is so extreme that $possessive body can barely keep up, @@.red;severely damaging $possessive health@@. + <<set <<set $slaves[$i].health -= 20>> + <<if random(1,10) == 1 && _growth != 5>> + the stimulants stressed $slaves[$i].slaveName's body more than expected, @@.red;damaging $possessive health@@. + <<set <<set $slaves[$i].health -= 10>> + <</if>> + <<if $slaves[$i].physicalAge > $maxGrowthAge>> + <<if random(1,6) == 1>> + Since $possessive body already concluded $possessive natural growth processes, the treatment @@.red; weakens $possessive considerably@@. + <<set $slaves[$i].health -= 15>> + <</if>> + <</if>> + /*updates slave's height*/ + <<set $slaves[$i].height += _growth>> + /*if growth is zero or negative*/ + <<else>> + Despite the treatment, $possessiveCap height does not increase this week. + <</if>> + <<case "male hormone injections">> <<if $slaves[$i].pubertyXY == 1>> $pronounCap has potent sperm. @@.yellow;$possessiveCap drug regimen has been ended.@@ diff --git a/src/uncategorized/slaveInteract.tw b/src/uncategorized/slaveInteract.tw index 444d317e611..0599ff4d3ea 100644 --- a/src/uncategorized/slaveInteract.tw +++ b/src/uncategorized/slaveInteract.tw @@ -817,6 +817,8 @@ <<set $activeSlave.drugs = "penis enhancement">> <<case "intensive testicle enhancement">> <<set $activeSlave.drugs = "testicle enhancement">> + <<case "growth stimulants">> + <<set $activeSlave.drugs = "growth stimulants">> <</switch>> <<replace "#drugs">><strong>$activeSlave.drugs</strong><</replace>> <<goto "Slave Interact">> @@ -838,6 +840,11 @@ <<else>> | Breasts <</if>> +<<if ($activeSlave.height < 274)>> + | <<link "Growth Stimulants">><<set $activeSlave.drugs = "growth stimulants">><<replace "#drugs">><strong>$activeSlave.drugs</strong><</replace>><</link>> +<<else>> + | Growth Stimulants +<</if>> <<if $arcologies[0].FSAssetExpansionistResearch == 1>> <<if ($activeSlave.boobs < 25000)>> | <<link "Hyper-Breasts">><<set $activeSlave.drugs = "hyper breast injections">><<replace "#drugs">><strong>$activeSlave.drugs</strong><</replace>><</link>> -- GitLab