Skip to content
Snippets Groups Projects
Commit 9e07750a authored by corncobman21's avatar corncobman21
Browse files

Use JS functions for slim, stacked, old, young, XX, XY, pregYes, pregNo,...

Use JS functions for slim, stacked, old, young, XX, XY, pregYes, pregNo, modded, unmodded, pure and implanted counting
parent 1ac274a5
No related branches found
No related tags found
1 merge request!1243Add slimCount, stackedCount, pureCount, etc. JS functions
...@@ -4,8 +4,10 @@ ...@@ -4,8 +4,10 @@
</span> </span>
<<SlaveSort $ClubiIDs>> <<SlaveSort $ClubiIDs>>
<<set _DL = $ClubiIDs.length, $clubSlaves = _DL, _SL = $slaves.length, $clubBonuses = 0, $DJRepBonus = 0, $implanted = 0, $legendaryEntertainerID = 0, $modded = 0, $old = 0, $pure = 0, $slim = 0, $stacked = 0, $unmodded = 0, $XX = 0, $XY = 0, $young = 0, _FLsFetish = 0>> <<set _DL = $ClubiIDs.length, $clubSlaves = _DL, _SL = $slaves.length, $clubBonuses = 0, $DJRepBonus = 0, $legendaryEntertainerID = 0, _FLsFetish = 0>>
<<set $legendaryWombID = 0, $pregYes = 0, $pregNo = 0>> <<set $legendaryWombID = 0>>
<<set _clubSlaves = $slaves.filter(function(s) { return s.assignment == "serve in the club" || s.ID == $DJ.ID })>>
<!-- Statistics gathering; income is rep boosts in numbers, and profit will be rep per cash unit, or cash unit per rep --> <!-- Statistics gathering; income is rep boosts in numbers, and profit will be rep per cash unit, or cash unit per rep -->
<<set $facility = $facility || {}, $facility.club = initFacilityStatistics($facility.club)>> <<set $facility = $facility || {}, $facility.club = initFacilityStatistics($facility.club)>>
...@@ -247,7 +249,9 @@ ...@@ -247,7 +249,9 @@
<<if ($arcologies[0].FSAssetExpansionist == "unset") && ($arcologies[0].FSSlimnessEnthusiast == "unset")>> <<if ($arcologies[0].FSAssetExpansionist == "unset") && ($arcologies[0].FSSlimnessEnthusiast == "unset")>>
<<if ($clubAdsSpending == 0) || ($clubAdsStacked == 0)>> <<if ($clubAdsSpending == 0) || ($clubAdsStacked == 0)>>
<<set _possibleBonuses++>> <<set _possibleBonuses++>>
<<if ($slim > 0) && ($stacked > 0) && (Math.abs($slim-$stacked) <= (_DL/3))>> <<set _slim = slimCount(_clubSlaves)>>
<<set _stacked = stackedCount(_clubSlaves)>>
<<if (_slim > 0) && (_stacked > 0) && (Math.abs(_slim-_stacked) <= (_DL/3))>>
<<set $repGain += _DL*random(5,10), $clubBonuses++>> <<set $repGain += _DL*random(5,10), $clubBonuses++>>
There is a @@.green;wide@@ variety of slim and stacked slaves working the club. There is a @@.green;wide@@ variety of slim and stacked slaves working the club.
<</if>> <</if>>
...@@ -256,7 +260,9 @@ ...@@ -256,7 +260,9 @@
<<if ($arcologies[0].FSDegradationist == "unset") && ($arcologies[0].FSBodyPurist == "unset")>> <<if ($arcologies[0].FSDegradationist == "unset") && ($arcologies[0].FSBodyPurist == "unset")>>
<<if ($clubAdsSpending == 0) || ($clubAdsModded == 0)>> <<if ($clubAdsSpending == 0) || ($clubAdsModded == 0)>>
<<set _possibleBonuses++>> <<set _possibleBonuses++>>
<<if ($modded > 0) && ($unmodded > 0) && (Math.abs($modded-$unmodded) <= (_DL/3))>> <<set _modded = moddedCount(_clubSlaves)>>
<<set _unmodded = unmoddedCount(_clubSlaves)>>
<<if (_modded > 0) && (_unmodded > 0) && (Math.abs(_modded-_unmodded) <= (_DL/3))>>
<<set $repGain += _DL*random(5,10), $clubBonuses++>> <<set $repGain += _DL*random(5,10), $clubBonuses++>>
There are @@.green;both@@ heavily pierced and tattooed slaves and slaves with more natural bodies filling the club. There are @@.green;both@@ heavily pierced and tattooed slaves and slaves with more natural bodies filling the club.
<</if>> <</if>>
...@@ -265,7 +271,9 @@ ...@@ -265,7 +271,9 @@
<<if ($arcologies[0].FSTransformationFetishist == "unset") && ($arcologies[0].FSBodyPurist == "unset")>> <<if ($arcologies[0].FSTransformationFetishist == "unset") && ($arcologies[0].FSBodyPurist == "unset")>>
<<if ($clubAdsSpending == 0) || ($clubAdsImplanted == 0)>> <<if ($clubAdsSpending == 0) || ($clubAdsImplanted == 0)>>
<<set _possibleBonuses++>> <<set _possibleBonuses++>>
<<if ($implanted > 0) && ($pure > 0) && (Math.abs($implanted-$pure) <= (_DL/3))>> <<set _implanted = implantedCount(_clubSlaves)>>
<<set _pure = pureCount(_clubSlaves)>>
<<if (_implanted > 0) && (_pure > 0) && (Math.abs(_implanted-_pure) <= (_DL/3))>>
<<set $repGain += _DL*random(5,10), $clubBonuses++>> <<set $repGain += _DL*random(5,10), $clubBonuses++>>
Citizens in $clubName can easily find @@.yellowgreen;both@@ all-natural girls, and slaves whose beauty has been improved by surgical means. Citizens in $clubName can easily find @@.yellowgreen;both@@ all-natural girls, and slaves whose beauty has been improved by surgical means.
<</if>> <</if>>
...@@ -274,7 +282,9 @@ ...@@ -274,7 +282,9 @@
<<if ($seeDicks != 0)>> <<if ($seeDicks != 0)>>
<<if ($clubAdsSpending == 0) || ($clubAdsXX == 0)>> <<if ($clubAdsSpending == 0) || ($clubAdsXX == 0)>>
<<set _possibleBonuses++>> <<set _possibleBonuses++>>
<<if ($XX > 0) && ($XY > 0) && (Math.abs($XX-$XY) <= (_DL/3))>> <<set _XX = XXCount(_clubSlaves)>>
<<set _XY = XYCount(_clubSlaves)>>
<<if (_XX > 0) && (_XY > 0) && (Math.abs(_XX-_XY) <= (_DL/3))>>
<<set $repGain += _DL*random(5,10), $clubBonuses++>> <<set $repGain += _DL*random(5,10), $clubBonuses++>>
The club offers a @@.green;mix@@ of sluts that can appeal to varied tastes in genitalia. The club offers a @@.green;mix@@ of sluts that can appeal to varied tastes in genitalia.
<</if>> <</if>>
...@@ -283,7 +293,9 @@ ...@@ -283,7 +293,9 @@
<<if ($arcologies[0].FSMaturityPreferentialist == "unset") && ($arcologies[0].FSYouthPreferentialist == "unset")>> <<if ($arcologies[0].FSMaturityPreferentialist == "unset") && ($arcologies[0].FSYouthPreferentialist == "unset")>>
<<if ($clubAdsSpending == 0) || ($clubAdsOld == 0)>> <<if ($clubAdsSpending == 0) || ($clubAdsOld == 0)>>
<<set _possibleBonuses++>> <<set _possibleBonuses++>>
<<if ($young > 0) && ($old > 0) && (Math.abs($young-$old) <= (_DL/3))>> <<set _young = youngCount(_clubSlaves)>>
<<set _old = oldCount(_clubSlaves)>>
<<if (_young > 0) && (_old > 0) && (Math.abs(_young-_old) <= (_DL/3))>>
<<set $repGain += _DL*random(5,10), $clubBonuses++>> <<set $repGain += _DL*random(5,10), $clubBonuses++>>
There are girls @@.green;both@@ young and mature in $clubName. There are girls @@.green;both@@ young and mature in $clubName.
<</if>> <</if>>
...@@ -292,7 +304,9 @@ ...@@ -292,7 +304,9 @@
<<if ($arcologies[0].FSRepopulationFocus == "unset") && ($arcologies[0].FSRestart == "unset")>> <<if ($arcologies[0].FSRepopulationFocus == "unset") && ($arcologies[0].FSRestart == "unset")>>
<<if ($clubAdsSpending == 0) || ($clubAdsPreg == 0)>> <<if ($clubAdsSpending == 0) || ($clubAdsPreg == 0)>>
<<set _possibleBonuses++>> <<set _possibleBonuses++>>
<<if ($pregYes > 0) && ($pregNo > 0) && (Math.abs($pregYes-$pregNo) <= (_DL/3))>> <<set _pregYes = pregYesCount(_clubSlaves)>>
<<set _pregNo = pregNoCount(_clubSlaves)>>
<<if (_pregYes > 0) && (_pregNo > 0) && (Math.abs(_pregYes-_pregNo) <= (_DL/3))>>
<<set $repGain += _DL*random(5,10), $clubBonuses++>> <<set $repGain += _DL*random(5,10), $clubBonuses++>>
There is a @@.green;wide@@ variety of slaves with swollen, round bellies and flat bellies working the club. There is a @@.green;wide@@ variety of slaves with swollen, round bellies and flat bellies working the club.
<</if>> <</if>>
......
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