From 3ae71f4b0c2c92d71a1f4b9ea4ae9cb70d0af55e Mon Sep 17 00:00:00 2001 From: kopareigns <kopareigns@gmail.com> Date: Mon, 2 Apr 2018 12:10:44 -0400 Subject: [PATCH] Changed temp variable --- src/uncategorized/genericPlotEvents.tw | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/uncategorized/genericPlotEvents.tw b/src/uncategorized/genericPlotEvents.tw index f5828925bef..69e7fe94039 100644 --- a/src/uncategorized/genericPlotEvents.tw +++ b/src/uncategorized/genericPlotEvents.tw @@ -7,8 +7,8 @@ <<switch $Event>> <<case "bad curatives">> -<<set _i = $slaves.findIndex(function(s) { return s.curatives > 1 || s.inflationType == "curative"; })>> -<<if _i != -1>> +<<set _genPlot = $slaves.findIndex(function(s) { return s.curatives > 1 || s.inflationType == "curative"; })>> +<<if _genPlot != -1>> <<run $slaves.forEach(function(s) { if (s.curatives > 1 || s.inflationType == "curative") { s.health -= Math.floor(Math.random() * 2 + 1); @@ -19,7 +19,7 @@ <</if>> <<set $cash += 500*$slaves.length>> -Early one morning, you hear convulsive dry heaving coming from one of the bathrooms. On investigation, it seems that $slaves[_i].slaveName woke up feeling terribly nauseous. She's in no danger, but you've hardly checked her over before more slaves stagger in. Every one of your slaves on curatives has been struck by the mysterious malady and has @@.red;sickened.@@ +Early one morning, you hear convulsive dry heaving coming from one of the bathrooms. On investigation, it seems that $slaves[_genPlot].slaveName woke up feeling terribly nauseous. She's in no danger, but you've hardly checked her over before more slaves stagger in. Every one of your slaves on curatives has been struck by the mysterious malady and has @@.red;sickened.@@ <br><br> It doesn't take much investigation before you find other slaveowners reporting the same thing. Elementary detective work fingers a particular drug supplier as the culprit, and before long the unfortunate Pharmaceutical concern is drowning under a rain of harsh public comment and harsher private contract warfare. As the day wears on, the poor slaves feel a bit better, but begin to report discomfort in their breasts. Apparently the problem has to do with contamination of the curative production line with A-HGH production reactants. <br><br> @@ -27,8 +27,8 @@ The firm promptly pays @@.yellowgreen;fair compensation@@ for the minor damage t <<case "bad breasts">> -<<set _i = $slaves.findIndex(function(s) { return ["breast injections", "intensive breast injections", "hyper breast injections"].includes(s.drugs); })>> -<<if _i != -1>> +<<set _genPlot = $slaves.findIndex(function(s) { return ["breast injections", "intensive breast injections", "hyper breast injections"].includes(s.drugs); })>> +<<if _genPlot != -1>> <<run $slaves.forEach(function(s) { if (["breast injections", "intensive breast injections", "hyper breast injections"].includes(s.drugs)) { s.health -= Math.floor(Math.random() * 2 + 1); @@ -38,7 +38,7 @@ The firm promptly pays @@.yellowgreen;fair compensation@@ for the minor damage t <<goto "Random Nonindividual Event">> <</if>> -Early one morning, you hear heaving coming from one of the bathrooms. On investigation, it seems that $slaves[_i].slaveName woke up feeling terribly nauseous. She's in no danger, but you've hardly checked her over before more slaves stagger in. Every one of your slaves on breast focused A-HGH has been struck by the mysterious malady and has @@.red;sickened.@@ +Early one morning, you hear heaving coming from one of the bathrooms. On investigation, it seems that $slaves[_genPlot].slaveName woke up feeling terribly nauseous. She's in no danger, but you've hardly checked her over before more slaves stagger in. Every one of your slaves on breast focused A-HGH has been struck by the mysterious malady and has @@.red;sickened.@@ <br><br> It doesn't take much investigation before you find other slaveowners reporting the same thing. Elementary detective work fingers a particular drug supplier as the culprit, and before long the unfortunate Pharmaceutical concern is drowning under a rain of harsh public comment and harsher private contract warfare. As the day wears on, the poor slaves feel much better, and appear positively glowing. However, their breasts swell slightly and their bellies bulge, pointing to the issue being the contamination of the A-HGH production line with fertility agents. <br><br> @@ -992,8 +992,8 @@ A screen opposite your desk springs to life, <<if $assistant == 0>>showing your <<set $PAid = 0>> <<link "Sell your captures immediately">> <<replace "#result">> - <<for _i = 0; _i < _newSlaves.length; _i++>> - <<slaveCost _newSlaves[_i]>> + <<for _genPlot = 0; _genPlot < _newSlaves.length; _genPlot++>> + <<slaveCost _newSlaves[_genPlot]>> <<set $cash += $slaveCost>> <</for>> Prisoners @@.green;sold.@@ @@ -1001,8 +1001,8 @@ A screen opposite your desk springs to life, <<if $assistant == 0>>showing your <</link>> <br><<link "Enslave them all">> <<replace "#result">> - <<for _i = 0; _i < _newSlaves.length; _i++>> - <<AddSlave _newSlaves[_i]>> /* skip New Slave Intro - TODO: use Bulk Slave Intro */ + <<for _genPlot = 0; _genPlot < _newSlaves.length; _genPlot++>> + <<AddSlave _newSlaves[_genPlot]>> /* skip New Slave Intro - TODO: use Bulk Slave Intro */ <</for>> You simply enslave all of the escapees yourself. These slaves will more than make up for the costs you expended, in the long run. <</replace>> -- GitLab