diff --git a/src/endWeek/saWhore.js b/src/endWeek/saWhore.js index fbd2b8d8c939f550a4eda8ceefdfeca30e516488..5e9978dc9bd0727507a1934a026f2db2bd472e78 100644 --- a/src/endWeek/saWhore.js +++ b/src/endWeek/saWhore.js @@ -86,6 +86,8 @@ window.saWhore = (function saWhore() { * @param {App.Entity.SlaveState} slave */ function updateNonSlaveVariables(slave) { + let BL = V.BrothiIDs.length; + // FResult setting FuckResult = FResult(slave); // slave needs release @@ -127,8 +129,8 @@ window.saWhore = (function saWhore() { beauty = Math.trunc(beauty * 1.1); } if (slave.assignment === "be the Madam") { - if (V.BrothiIDs.length + V.slavesGettingHelp > 0) { - beauty = Math.trunc(beauty * ((10 - V.BrothiIDs.length - V.slavesGettingHelp) / 10)); + if (BL + V.slavesGettingHelp > 0) { + beauty = Math.trunc(beauty * ((10 - BL - V.slavesGettingHelp) / 10)); } } if (slave.minorInjury !== 0) { diff --git a/src/facilities/farmyard/farmyard.tw b/src/facilities/farmyard/farmyard.tw index d8932e314b93d3986f9f8a18aa25ad862a2c6ef1..20f483fd166670ce1aee9be7c98b5ebe22f4c7b4 100644 --- a/src/facilities/farmyard/farmyard.tw +++ b/src/facilities/farmyard/farmyard.tw @@ -9,7 +9,7 @@ <<set $farmyardNameCaps = $farmyardName.replace("the ", "The ")>> <</if>> -<<set _CL = $canines.length, _HL = $hooved.length, _FL = $felines.length>> +<<set _CL = $canines.length, _HL = $hooved.length, _FL = $felines.length, _FyL = $FarmyardiIDs.length>> $farmyardNameCaps is an oasis of growth in the midst of the jungle of steel and concrete that is $arcologies[0].name. Animals are kept in pens, tended to by your slaves, while <<if $farmyardUpgrade.hydroponics == 1>>rows of hydroponics equipment<<else>>makeshift fields<</if>> grow crops. <<switch $farmyardDecoration>> @@ -65,9 +65,9 @@ $farmyardNameCaps is an oasis of growth in the midst of the jungle of steel and It is very much a converted warehouse still, sectioned off in various 'departments'<<if $farmyardUpgrade.machinery == 1>> with machinery placed where it can be<<if $farmyardUpgrade.hydroponics > 0>> and plumbing for the hydroponics system running every which way<</if>><</if>>. <</switch>> -<<if $FarmyardiIDs.length > 2>> +<<if _FyL > 2>> $farmyardNameCaps is bustling with activity. Farmhands are hurrying about, on their way to feed animals and maintain farming equipment. -<<elseif $FarmyardiIDs.length > 0>> +<<elseif _FyL > 0>> $farmyardNameCaps is working steadily. Farmhands are moving about, looking after the animals and crops. <<elseif $Farmer != 0>> $Farmer.slaveName is alone in $farmyardName, and has nothing to do but look after the animals and crops. @@ -84,14 +84,14 @@ $farmyardNameCaps is an oasis of growth in the midst of the jungle of steel and <</link>> <</if>> -<<if $FarmyardiIDs.length > 0>> +<<if _FyL > 0>> <<if $Farmer != 0>><<set _X = 1>><<else>><<set _X = 0>><</if>> - <<set _NewPop = $FarmyardiIDs.length+$dormitoryPopulation+_X>> + <<set _NewPop = _FyL+$dormitoryPopulation+_X>> <<link "Remove all slaves" "Farmyard">> <<if $Farmer != 0>> <<= assignJob($Farmer, "rest")>> <</if>> - <<for $FarmyardiIDs.length > 0>> + <<for _FyL > 0>> <<= assignJob($slaves[$slaveIndices[$FarmyardiIDs[0]]], "rest")>> <</for>> <</link>> @@ -101,7 +101,7 @@ $farmyardNameCaps is an oasis of growth in the midst of the jungle of steel and <</if>> <<set _Tmult0 = Math.trunc($farmyard*1000*$upgradeMultiplierArcology)>> -<br>It can support $farmyard farmhands. Currently there <<if $FarmyardiIDs.length == 1>>is<<else>>are<</if>> $FarmyardiIDs.length farmhand<<if $FarmyardiIDs.length != 1>>s<</if>> at $farmyardName. +<br>It can support $farmyard farmhands. Currently there <<if _FyL == 1>>is<<else>>are<</if>> _FyL farmhand<<if _FyL != 1>>s<</if>> at $farmyardName. [[Expand the farmyard|Farmyard][cashX(forceNeg(_Tmult0), "capEx"), $farmyard += 5, $PC.engineering += .1]] //Costs <<print cashFormat(_Tmult0)>> and will increase upkeep costs// <span id="menials"> @@ -190,7 +190,7 @@ $farmyardNameCaps is an oasis of growth in the midst of the jungle of steel and </span> <span id="rules"> -<<if $FarmyardiIDs.length > 0>> +<<if _FyL > 0>> <br><br> <<if $farmyardShows == 1 && (_CL > 0 || _HL > 0 || _FL > 0)>> Slaves ''are'' putting on shows with animals. diff --git a/src/facilities/farmyard/farmyardReport.tw b/src/facilities/farmyard/farmyardReport.tw index c876424a9b6b8a98fd225aa8415fe4d225777f8e..346cf6d65894a6bf542fbd6d67d6018e95fd4544 100644 --- a/src/facilities/farmyard/farmyardReport.tw +++ b/src/facilities/farmyard/farmyardReport.tw @@ -282,7 +282,7 @@ <span id="foodProduction"> /* TODO: is this right? */ - <<if $FarmyardiIDs.length > 0>> + <<if _DL > 0>> <<set _foodWeek = _incomeStats.food>> <</if>> <<if $farmMenials > 0>> diff --git a/src/facilities/nursery/nursery.tw b/src/facilities/nursery/nursery.tw index b273ba6becd8677a80a5a408d3c7bac3bffe1f3a..48d8d07d44cd091978a440d711f384536be6f3a4 100644 --- a/src/facilities/nursery/nursery.tw +++ b/src/facilities/nursery/nursery.tw @@ -8,7 +8,7 @@ <<set $nurseryNameCaps = $nurseryName.replace("the ", "The ")>> <</if>> -<<set $readyChildren = 0, $nurseryBabies = $cribs.length, $freeCribs = $nursery - $nurseryBabies, _SL = $slaves.length, _eligibility = 0, $reservedChildren = FetusGlobalReserveCount("incubator"), $reservedChildrenNursery = FetusGlobalReserveCount("nursery")>> +<<set $readyChildren = 0, $nurseryBabies = $cribs.length, $freeCribs = $nursery - $nurseryBabies, _NL = $NurseryiIDs.length _SL = $slaves.length, _eligibility = 0, $reservedChildren = FetusGlobalReserveCount("incubator"), $reservedChildrenNursery = FetusGlobalReserveCount("nursery")>> $nurseryNameCaps <<switch $nurseryDecoration>> @@ -76,26 +76,26 @@ $nurseryNameCaps <<setLocalPronouns $Matron 2>> <</if>> -<<if $NurseryiIDs.length > 2>> +<<if _NL > 2>> $nurseryNameCaps is bustling with activity. Nannies are busily moving about, feeding babies and changing diapers. -<<elseif $NurseryiIDs.length > 0>> +<<elseif _NL > 0>> $nurseryNameCaps is working steadily. Nannies are moving about, cleaning up and feeding hungry children. <<set $nannyInfluence = 1>> <<elseif $Matron>> $Matron.slaveName is alone in $nurseryName, and keeps the place clean and looks after the children $herself2. <<set $MatronInfluence = 1>> -<<elseif ($NurseryiIDs.length <= 0) && ($nurseryBabies <= 0)>> +<<elseif (_NL <= 0) && ($nurseryBabies <= 0)>> $nurseryNameCaps is empty and quiet. <<link "Decommission the Nursery" "Main">><<set $nursery = 0, $nurseryNannies = 0, $nannyInfluence = 0, $nurseryDecoration = "standard", $cribs = [], $reservedChildrenNursery = 0>><<for _i = 0; _i < $slaves.length; _i++>><<run WombCleanGenericReserve($slaves[_i], "nursery", 9999)>><</for>><</link>> <</if>> -<<if $NurseryiIDs.length > 0>> +<<if _NL > 0>> <<if $Matron>><<set _X = 1>><<else>><<set _X = 0>><</if>> - <<set _NewPop = $NurseryiIDs.length+$dormitoryPopulation+_X>> + <<set _NewPop = _NL+$dormitoryPopulation+_X>> <<link "Remove all slaves" "Nursery">> <<if $Matron>> <<= assignJob($Matron, "rest")>> <</if>> - <<for $NurseryiIDs.length > 0>> + <<for _NL > 0>> <<= assignJob($slaves[$slaveIndices[$NurseryiIDs[0]]], "rest")>> <</for>> <</link>> @@ -105,8 +105,8 @@ $nurseryNameCaps <</if>> <<set _Tmult0 = Math.trunc($nurseryNannies*1000*$upgradeMultiplierArcology)>> -<br>It can support $nurseryNannies nann<<if $nurseryNannies != 1>>ies<<else>>y<</if>>. There <<if $NurseryiIDs.length == 1>>is<<else>>are<</if>> $NurseryiIDs.length nann<<if $NurseryiIDs.length != 1>>ies<<else>>y<</if>> in $nurseryName. -<<if $nurseryBabies > 0 && ($NurseryiIDs.length < 1 && !$Matron)>> +<br>It can support $nurseryNannies nann<<if $nurseryNannies != 1>>ies<<else>>y<</if>>. There <<if _NL == 1>>is<<else>>are<</if>> _NL nann<<if _NL != 1>>ies<<else>>y<</if>> in $nurseryName. +<<if $nurseryBabies > 0 && _NL < 1 && !$Matron)>> //You must have a Matron or at least one nanny to be able to influence the children's upbringing// <br> <</if>> diff --git a/src/facilities/nursery/nurseryDiscardWorkaround.tw b/src/facilities/nursery/nurseryDiscardWorkaround.tw index 5cf45b3cdfe3c002516157c2cdf45436a27faae7..331f85190842741b84fc0ac8d3fef7b78480973f 100644 --- a/src/facilities/nursery/nurseryDiscardWorkaround.tw +++ b/src/facilities/nursery/nurseryDiscardWorkaround.tw @@ -4,5 +4,5 @@ $activeSlave.slaveName has been given away to another arcology to be raised, nev <br><br> -<<set $SpaiIDs.delete(slave.ID)>> +<<set $NurseryiIDs.delete(slave.ID)>> <<set $returnTo = "Main">> \ No newline at end of file diff --git a/src/facilities/nursery/nurseryWidgets.js b/src/facilities/nursery/nurseryWidgets.js index cfb79d8b029367b4c783294ab6a12d13d34b27cd..1de2a16087cbabd926323c5a814e3bf194c32c4d 100644 --- a/src/facilities/nursery/nurseryWidgets.js +++ b/src/facilities/nursery/nurseryWidgets.js @@ -18834,7 +18834,7 @@ App.Facilities.Nursery.childrenReport = function childrenReport() { } if (NL > 0) { - for (let j = 0; j < V.NurseryiIDs.length; j++) { + for (let j = 0; j < NL; j++) { const slave = getSlave(V.NurseryiIDs[j]); @@ -18950,16 +18950,16 @@ App.Facilities.Nursery.childrenReport = function childrenReport() { averageIntelligenceImplant = averageIntelligenceImplant / NL; if (averageIntelligence + averageIntelligenceImplant > 65) { - r += `${NL > 1 ? `The nannies are mostly` : `${V.NurseryiIDs.length[0].slaveName} is`} very intelligent and well educated and are able to teach ${CL > 1 ? `the children` : child.slaveName} very effectively. `; + r += `${NL > 1 ? `The nannies are mostly` : `${V.slaves[V.slaveIndices[NurseryiIDs[j]]].slaveName} is`} very intelligent and well educated and are able to teach ${CL > 1 ? `the children` : child.slaveName} very effectively. `; child.intelligenceImplant += 3; } else if (averageIntelligence > 50) { - r += `${NL > 1 ? `The nannies are mostly` : `${V.NurseryiIDs.length[0].slaveName} is`} very intelligent and able to teach ${CL > 1 ? `the children` : child.slaveName} quite effectively. `; + r += `${NL > 1 ? `The nannies are mostly` : `${V.slaves[V.slaveIndices[NurseryiIDs[j]]].slaveName} is`} very intelligent and able to teach ${CL > 1 ? `the children` : child.slaveName} quite effectively. `; child.intelligenceImplant += 2; } else if (averageIntelligenceImplant > 25) { - r += `${NL > 1 ? `The nannies are mostly` : `${V.NurseryiIDs.length[0].slaveName} is`} very well educated and able to teach ${CL > 1 ? `the children` : child.slaveName} quite effectively. `; + r += `${NL > 1 ? `The nannies are mostly` : `${V.slaves[V.slaveIndices[NurseryiIDs[j]]].slaveName} is`} very well educated and able to teach ${CL > 1 ? `the children` : child.slaveName} quite effectively. `; child.intelligenceImplant += 2; } else if (averageIntelligenceImplant > 15) { - r += `${NL > 1 ? `The nannies are mostly` : `${V.NurseryiIDs.length[0].slaveName} is`} well educated and able to teach ${CL > 1 ? `the children` : child.slaveName} fairly effectively. `; + r += `${NL > 1 ? `The nannies are mostly` : `${V.slaves[V.slaveIndices[NurseryiIDs[j]]].slaveName} is`} well educated and able to teach ${CL > 1 ? `the children` : child.slaveName} fairly effectively. `; child.intelligenceImplant++; } } @@ -19050,10 +19050,10 @@ App.Facilities.Nursery.childrenReport = function childrenReport() { } else if (V.nurseryWeightSetting === 2) { if (child.weight > 10) { child.weight--; - r += `${Matron ? Matron.slaveName : NL > 1 ? `A nanny` : V.NurseryiIDs.length[0].slaveName} notices ${he} is overweight and <span class="green">decreases the amount of food ${he} eats.</span> `; + r += `${Matron ? Matron.slaveName : NL > 1 ? `A nanny` : V.slaves[V.slaveIndices[NurseryiIDs[j]]].slaveName} notices ${he} is overweight and <span class="green">decreases the amount of food ${he} eats.</span> `; } else if (child.weight <= -10) { child.weight++; - r += `${Matron ? Matron.slaveName : NL > 1 ? `A nanny` : V.NurseryiIDs.length[0].slaveName} notices ${he} is underweight and <span class="green">increases the amount of food ${he} eats.</span> `; + r += `${Matron ? Matron.slaveName : NL > 1 ? `A nanny` : V.slaves[V.slaveIndices[NurseryiIDs[j]]].slaveName} notices ${he} is underweight and <span class="green">increases the amount of food ${he} eats.</span> `; } else { r += `${He} is <span class="lime">currently a healthy weight;</span> efforts will be made to maintain it. `; } @@ -19077,11 +19077,11 @@ App.Facilities.Nursery.childrenReport = function childrenReport() { if (child.muscles < 100) { child.muscles += 5; } - r += `${Matron ? Matron : NL > 1 ? `A nanny` : V.NurseryiIDs.length[0].slaveName} notices ${he} is overly muscular and <span class="green">decreases ${his} steroid dosage.</span> `; + r += `${Matron ? Matron : NL > 1 ? `A nanny` : V.slaves[V.slaveIndices[NurseryiIDs[j]]].slaveName} notices ${he} is overly muscular and <span class="green">decreases ${his} steroid dosage.</span> `; } else if (V.nurseryMusclesSetting === 1) { if (child.muscles > 10) { child.muscles--; - r += `${Matron ? Matron : NL > 1 ? `A nanny` : V.NurseryiIDs.length[0].slaveName} notices ${he} is weak and <span class="green">increases ${his} steroid dosage.</span> `; + r += `${Matron ? Matron : NL > 1 ? `A nanny` : V.slaves[V.slaveIndices[NurseryiIDs[j]]].slaveName} notices ${he} is weak and <span class="green">increases ${his} steroid dosage.</span> `; } else if (child.muscles < -10) { child.muscles++; r += `${He} has <span class="lime">a healthy musculature;</span> efforts will be made to maintain it. `; diff --git a/src/js/economyJS.js b/src/js/economyJS.js index 068d9b5743056f5014e96c783cf7f48bdf844279..2dce41bbaa0e4c1ba91cd6a9e992d287e57f6684 100644 --- a/src/js/economyJS.js +++ b/src/js/economyJS.js @@ -902,12 +902,14 @@ window.NPCSexSupply = function(LC) { window.slaveJobValues = function() { const V = State.variables; const slaveJobValues = {arcade: 0, club: 0, clubSP: 0}; let clubSpots = 0; const toTheClubTotal = 0; + const AL = V.ArcadeiIDs.length; + const CL = V.ClubiIDs.length; V.slavesGettingHelp = 0; // This section is for specific slaves or non-unique slaves adding their values to the whole // Accounting for Fuckdolls if (V.fuckdolls > 0) { - slaveJobValues.arcade += (V.fuckdolls - (V.arcade - V.ArcadeiIDs.length)) * 140 + (V.arcade - V.ArcadeiIDs.length) * (175 + 35 * V.arcadeUpgradeInjectors); + slaveJobValues.arcade += (V.fuckdolls - (V.arcade - AL)) * 140 + (V.arcade - AL) * (175 + 35 * V.arcadeUpgradeInjectors); } // Accounting for the DJ. @@ -986,8 +988,8 @@ window.slaveJobValues = function() { } // Checking for space in the club - if (V.club > 0 && V.ClubiIDs.length < V.club) { - clubSpots = V.club - V.ClubiIDs.length; + if (V.club > 0 && CL < V.club) { + clubSpots = V.club - CL; } // Glory hole slaves adding to 'arcade' @@ -1137,11 +1139,11 @@ window.slaveJobValues = function() { let canA = canDoAnal(s); let canV = canDoVaginal(s); let skilltarget = (100 + ((s.skill.anal - 100)*canA*(1.5 - .5*canV) + (s.skill.vaginal - 100)*canV*(1.5 - .5*canA) + (s.skill.oral - 100)*(3 - 1.5*canA - 1.5*canV + canA*canV))*3/10); - //Complicated, I know - but it should automatically account for what acts are possible to scale the injury risk smoothly between 90% when totally unskilled - //and 0% when perfectly skilled in the relevant method or methods. + // Complicated, I know - but it should automatically account for what acts are possible to scale the injury risk smoothly between 90% when totally unskilled + // and 0% when perfectly skilled in the relevant method or methods. if (jsRandom(1,100) > skilltarget) { - s.health -= 10 - 7*canA*canV; //Any limitations means an injury inflicts the harsher 10 instead of 3 + s.health -= 10 - 7*canA*canV; // Any limitations means an injury inflicts the harsher 10 instead of 3 s.minorInjury = 1; } } @@ -1172,8 +1174,8 @@ window.slaveJobValues = function() { s.sexAmount = Beauty(s) / 2 + 100; if (s.assignment === "be the DJ") { - if ((V.ClubiIDs.length + toTheClubTotal > 0) && (V.ClubiIDs.length + toTheClubTotal < 10)) { - s.sexAmount *= (10 - V.ClubiIDs.length - toTheClubTotal) / 10; + if ((CL + toTheClubTotal > 0) && (CL + toTheClubTotal < 10)) { + s.sexAmount *= (10 - CL - toTheClubTotal) / 10; } } s.sexAmount = Math.trunc(s.sexAmount * beautyMultiplier); diff --git a/src/pregmod/organFarm.tw b/src/pregmod/organFarm.tw index 48eb96e99e61cd6e673f616349c5fc7184ef0751..b30db63ba7026d67d7fd7c8857eac9b408708308 100644 --- a/src/pregmod/organFarm.tw +++ b/src/pregmod/organFarm.tw @@ -92,9 +92,10 @@ Organ Production <br> <</if>> /* TODO: potentially allow organs to be implanted into children in the nursery -<<if $NurseryiIDs.length > 0>> +<<set _NL = $NurseryiIDs.length>> +<<if _NL > 0>> <<for $x = 0; $x < $nurseryOrgans.length; $x++>> - <<for _w = 0; _w < $NurseryiIDs.length; _w++>> + <<for _w = 0; _w < _NL; _w++>> <<if $cribs[_w].ID == $nurseryOrgans[$x].ID>> <br> $cribs[_w].slaveName's $nurseryOrgans[$x].type, diff --git a/src/pregmod/saInflation.tw b/src/pregmod/saInflation.tw index 56c9496f6f2c5a6f4df360cd751eacd214a56e4b..86787c8c04957e99c960fa22186e5dc6c69307fc 100644 --- a/src/pregmod/saInflation.tw +++ b/src/pregmod/saInflation.tw @@ -1,5 +1,7 @@ :: SA inflation [nobr] +<<set _DL = $DairyiIDs.length>> + <<if $slaves[$i].assignment == "be confined in the arcade" || $slaves[$i].assignment == "work in the dairy">> <<set $slaves[$i].inflation = 0, $slaves[$i].inflationType = "none", $slaves[$i].inflationMethod = 0, $slaves[$i].milkSource = 0, SetBellySize($slaves[$i])>> <<elseif $slaves[$i].bellyImplant >= 1500>> @@ -218,7 +220,7 @@ <<case "milk">> <<if $slaves[$i].behavioralFlaw == "anorexic">> <<if $slaves[$i].inflationMethod == 1>> - <<if ($DairyiIDs.length == 0 || $dairy == 0) && $arcologies[0].FSPastoralistLaw != 1>> + <<if (_DL == 0 || $dairy == 0) && $arcologies[0].FSPastoralistLaw != 1>> You no longer have a functional dairy. @@.yellow;$His inflation regimen has been ended.@@ <<set $slaves[$i].inflation = 0, $slaves[$i].inflationType = "none", $slaves[$i].inflationMethod = 0, SetBellySize($slaves[$i])>> <<elseif $slaves[$i].inflation == 3>> @@ -232,7 +234,7 @@ <<set $slaves[$i].devotion -= 3, $slaves[$i].trust -= 3>> <</if>> <<elseif $slaves[$i].inflationMethod == 2>> - <<if ($DairyiIDs.length == 0 || $dairy == 0) && $arcologies[0].FSPastoralistLaw != 1>> + <<if (_DL == 0 || $dairy == 0) && $arcologies[0].FSPastoralistLaw != 1>> You no longer have a functional dairy. @@.yellow;$His inflation regimen has been ended.@@ <<set $slaves[$i].inflation = 0, $slaves[$i].inflationType = "none", $slaves[$i].inflationMethod = 0, SetBellySize($slaves[$i])>> <<elseif $slaves[$i].inflation == 3>> @@ -266,7 +268,7 @@ <</if>> <<elseif $slaves[$i].behavioralFlaw == "gluttonous">> <<if $slaves[$i].inflationMethod == 1>> - <<if ($DairyiIDs.length == 0 || $dairy == 0) && $arcologies[0].FSPastoralistLaw != 1>> + <<if (_DL == 0 || $dairy == 0) && $arcologies[0].FSPastoralistLaw != 1>> You no longer have a functional dairy. @@.yellow;$His inflation regimen has been ended.@@ <<set $slaves[$i].inflation = 0, $slaves[$i].inflationType = "none", $slaves[$i].inflationMethod = 0, SetBellySize($slaves[$i])>> <<elseif $slaves[$i].inflation == 3>> @@ -280,7 +282,7 @@ <<set $slaves[$i].devotion += 3, $slaves[$i].trust += 3>> <</if>> <<elseif $slaves[$i].inflationMethod == 2>> - <<if ($DairyiIDs.length == 0 || $dairy == 0) && $arcologies[0].FSPastoralistLaw != 1>> + <<if (_DL == 0 || $dairy == 0) && $arcologies[0].FSPastoralistLaw != 1>> You no longer have a functional dairy. @@.yellow;$His inflation regimen has been ended.@@ <<set $slaves[$i].inflation = 0, $slaves[$i].inflationType = "none", $slaves[$i].inflationMethod = 0, SetBellySize($slaves[$i])>> <<elseif $slaves[$i].inflation == 3>> @@ -314,7 +316,7 @@ <</if>> <<else>> <<if $slaves[$i].inflationMethod == 1>> - <<if ($DairyiIDs.length == 0 || $dairy == 0) && $arcologies[0].FSPastoralistLaw != 1>> + <<if (_DL == 0 || $dairy == 0) && $arcologies[0].FSPastoralistLaw != 1>> You no longer have a functional dairy. @@.yellow;$His inflation regimen has been ended.@@ <<set $slaves[$i].inflation = 0, $slaves[$i].inflationType = "none", $slaves[$i].inflationMethod = 0, SetBellySize($slaves[$i])>> <<elseif $slaves[$i].inflation == 3>> @@ -326,7 +328,7 @@ Throughout the week, $he makes sure to keep $himself filled with nearly two liters of milk, leaving $his belly noticeably distended. $He is full enough to be swollen but not enough to visibly jiggle. <</if>> <<elseif $slaves[$i].inflationMethod == 2>> - <<if ($DairyiIDs.length == 0 || $dairy == 0) && $arcologies[0].FSPastoralistLaw != 1>> + <<if (_DL == 0 || $dairy == 0) && $arcologies[0].FSPastoralistLaw != 1>> You no longer have a functional dairy. @@.yellow;$His inflation regimen has been ended.@@ <<set $slaves[$i].inflation = 0, $slaves[$i].inflationType = "none", $slaves[$i].inflationMethod = 0, SetBellySize($slaves[$i])>> <<elseif $slaves[$i].inflation == 3>> @@ -359,7 +361,7 @@ <<case "cum">> <<if $slaves[$i].behavioralFlaw == "anorexic">> <<if $slaves[$i].inflationMethod == 1>> - <<if ($DairyiIDs.length == 0 || $cumSlaves == 0 || $dairy == 0) && $arcologies[0].FSPastoralistLaw != 1>> + <<if (_DL == 0 || $cumSlaves == 0 || $dairy == 0) && $arcologies[0].FSPastoralistLaw != 1>> You no longer have a functional cum dairy. @@.yellow;$His inflation regimen has been ended.@@ <<set $slaves[$i].inflation = 0, $slaves[$i].inflationType = "none", $slaves[$i].inflationMethod = 0, SetBellySize($slaves[$i])>> <<elseif $slaves[$i].inflation == 3>> @@ -373,7 +375,7 @@ <<set $slaves[$i].devotion -= 3, $slaves[$i].trust -= 3>> <</if>> <<elseif $slaves[$i].inflationMethod == 2>> - <<if ($DairyiIDs.length == 0 || $cumSlaves == 0 || $dairy == 0) && $arcologies[0].FSPastoralistLaw != 1>> + <<if (_DL == 0 || $cumSlaves == 0 || $dairy == 0) && $arcologies[0].FSPastoralistLaw != 1>> You no longer have a functional cum dairy. @@.yellow;$His inflation regimen has been ended.@@ <<set $slaves[$i].inflation = 0, $slaves[$i].inflationType = "none", $slaves[$i].inflationMethod = 0, SetBellySize($slaves[$i])>> <<elseif $slaves[$i].inflation == 3>> @@ -404,7 +406,7 @@ <</if>> <<elseif $slaves[$i].behavioralFlaw == "gluttonous">> <<if $slaves[$i].inflationMethod == 1>> - <<if ($DairyiIDs.length == 0 || $cumSlaves == 0 || $dairy == 0) && $arcologies[0].FSPastoralistLaw != 1>> + <<if (_DL == 0 || $cumSlaves == 0 || $dairy == 0) && $arcologies[0].FSPastoralistLaw != 1>> You no longer have a functional cum dairy. @@.yellow;$His inflation regimen has been ended.@@ <<set $slaves[$i].inflation = 0, $slaves[$i].inflationType = "none", $slaves[$i].inflationMethod = 0, SetBellySize($slaves[$i])>> <<elseif $slaves[$i].inflation == 3>> @@ -418,7 +420,7 @@ <<set $slaves[$i].devotion += 3, $slaves[$i].trust += 3>> <</if>> <<elseif $slaves[$i].inflationMethod == 2>> - <<if ($DairyiIDs.length == 0 || $cumSlaves == 0 || $dairy == 0) && $arcologies[0].FSPastoralistLaw != 1>> + <<if (_DL == 0 || $cumSlaves == 0 || $dairy == 0) && $arcologies[0].FSPastoralistLaw != 1>> You no longer have a functional cum dairy. @@.yellow;$His inflation regimen has been ended.@@ <<set $slaves[$i].inflation = 0, $slaves[$i].inflationType = "none", $slaves[$i].inflationMethod = 0, SetBellySize($slaves[$i])>> <<elseif $slaves[$i].inflation == 3>> @@ -449,7 +451,7 @@ <</if>> <<else>> <<if $slaves[$i].inflationMethod == 1>> - <<if ($DairyiIDs.length == 0 || $cumSlaves == 0 || $dairy == 0) && $arcologies[0].FSPastoralistLaw != 1>> + <<if (_DL == 0 || $cumSlaves == 0 || $dairy == 0) && $arcologies[0].FSPastoralistLaw != 1>> You no longer have a functional cum dairy. @@.yellow;$His inflation regimen has been ended.@@ <<set $slaves[$i].inflation = 0, $slaves[$i].inflationType = "none", $slaves[$i].inflationMethod = 0, SetBellySize($slaves[$i])>> <<elseif $slaves[$i].inflation == 3>> @@ -461,7 +463,7 @@ Throughout the week, $he makes sure to keep $himself filled with nearly two liters of cum, leaving $his belly noticeably distended. $He is full enough to be swollen but not enough to visibly jiggle. <</if>> <<elseif $slaves[$i].inflationMethod == 2>> - <<if ($DairyiIDs.length == 0 || $cumSlaves == 0 || $dairy == 0) && $arcologies[0].FSPastoralistLaw != 1>> + <<if (_DL == 0 || $cumSlaves == 0 || $dairy == 0) && $arcologies[0].FSPastoralistLaw != 1>> You no longer have a functional cum dairy. @@.yellow;$His inflation regimen has been ended.@@ <<set $slaves[$i].inflation = 0, $slaves[$i].inflationType = "none", $slaves[$i].inflationMethod = 0, SetBellySize($slaves[$i])>> <<elseif $slaves[$i].inflation == 3>> diff --git a/src/pregmod/seFCTVshows.tw b/src/pregmod/seFCTVshows.tw index 23df37e2cfd43a524e9315946a4eb3bdff99eeef..ea8c5f628adab44c4a42b30d8fc4b5b602f67457 100644 --- a/src/pregmod/seFCTVshows.tw +++ b/src/pregmod/seFCTVshows.tw @@ -1,6 +1,6 @@ :: SE FCTV Shows [nobr] -<<set $nextButton = "Continue", $nextLink = "Scheduled Event", $returnTo = "Scheduled Event", $showEncyclopedia = 1, $encyclopedia = "FCTV">> +<<set $nextButton = "Continue", $nextLink = "Scheduled Event", $returnTo = "Scheduled Event", $showEncyclopedia = 1, $encyclopedia = "FCTV", _MSL = $MastSiIDs.length>> <<if $randShow === "">> <<set _usedRemote = 0>> @@ -224,18 +224,18 @@ <</if>> to play <<if $showTwo < 12>>the newest episode of a<<else>>a repeat of the<</if>> popular competitive reality show<<if $showTwo > 0>>: Next Top Breeder.<<else>> where several female citizens are competing for something.<</if>> The intro sequence shows a succession of beautiful ladies either participating in a mixture of contrived competitions, or talking and going about their lives in a sorority-like setting. The montage is overlaid with a narrator's voice: "12 of Canadia Arcology's most attractive women are all competing for the privilege of having the arcology owner's children. Clint Miles has desirable genes, and these ladies are determined to prove their worth as gestators. And here in Canadia, there are no restrictions on fertility drugs for the winner, so the competition this season is fierce! <<if $showTwo < 12>>_rerun<<else>>$showTwo<</if>> lad<<if $showTwo > 0>>ies have<<else>>y has<</if>> already been sent packing, who will be Canadia's... Next Top Breeder!?" The title finally pops up, redundantly labeling the show as 'Next Top Breeder: Canadia'. <br><br> - <<if $MastSiIDs.length > 1 && $Concubine != 0>> + <<if _MSL > 1 && $Concubine != 0>> <<setLocalPronouns $Concubine 2>> You don't spend very much time actually watching the show; the randy opening, perverted competitions, and constant talk of creampies quickly has @@.pink;$Concubine.slaveName@@ eager for some attention from _his2 own arcology owner. Of course, the same could be said for the other eager slaves living in your bedroom, and the situation quickly devolves into a lust-filled orgy. - <<elseif $MastSiIDs.length > 0 && $Concubine != 0>> + <<elseif _MSL > 0 && $Concubine != 0>> <<setLocalPronouns $Concubine 2>> You don't spend very much time actually watching the show; the randy opening, perverted competitions, and constant talk of creampies quickly has @@.pink;$Concubine.slaveName@@ eager for some attention from _his2 own arcology owner. Of course, the same could be said for the other eager slave living in your bedroom, and the situation quickly devolves into a lust-filled threesome. - <<elseif $MastSiIDs.length == 0 && $Concubine != 0>> + <<elseif _MSL == 0 && $Concubine != 0>> <<setLocalPronouns $Concubine 2>> You don't spend very much time actually watching the show; the randy opening, perverted competitions, and constant talk of creampies quickly has @@.pink;$Concubine.slaveName@@ eager for some attention from _his2 own arcology owner. You've trained _him2 well, and _he2 knows exactly how to please you. You spend the rest of the evening doing something a lot more fun than watching reality TV. - <<elseif $MastSiIDs.length > 1 && $Concubine == 0>> + <<elseif _MSL > 1 && $Concubine == 0>> You don't spend very much time actually watching the show; the randy opening, perverted competitions, and constant talk of creampies quickly has the pleasure slaves in your bed eager for some attention from their own arcology owner. You spend the rest of the evening doing something a lot more fun than watching reality TV. - <<elseif $MastSiIDs.length > 0>> + <<elseif _MSL > 0>> You don't spend very much time actually watching the show; the randy opening, perverted competitions, and constant talk of creampies quickly has the pleasure slave in your bed eager for some attention from her own arcology owner. You spend the rest of the evening doing something a lot more fun than watching reality TV. <</if>> <<case 2>> diff --git a/src/pregmod/widgets/pregmodBirthWidgets.tw b/src/pregmod/widgets/pregmodBirthWidgets.tw index d64feb822c7fe31996fffb63a0353e3110cd8588..05126d62716d708e1afcc4a2f9487b50aff0a7a5 100644 --- a/src/pregmod/widgets/pregmodBirthWidgets.tw +++ b/src/pregmod/widgets/pregmodBirthWidgets.tw @@ -1031,7 +1031,8 @@ <<case "be your Head Girl">> <<if (random(1,20) > $suddenBirth)>> - $He returns to <<if $HGSuite == 1>>$his room's bed<<else>>$his bed<</if>> and strips before slipping into it. $He makes $himself comfortable<<if $HGSuiteiIDs.length != 0>>, as $his slave rushes to $his side,<</if>> and begins working on birthing <<if $slaves[$i].counter.birthsTotal == 0>>$his first<<else>>this week's<</if>> baby. $His child is promptly taken<<if $HGSuiteiIDs.length != 0>> by $his roommate<</if>> and $he rests awhile before returning to managing your slaves. + <<set _HGL = $HGSuiteiIDs.length>> + $He returns to <<if $HGSuite == 1>>$his room's bed<<else>>$his bed<</if>> and strips before slipping into it. $He makes $himself comfortable<<if _HGL != 0>>, as $his slave rushes to $his side,<</if>> and begins working on birthing <<if $slaves[$i].counter.birthsTotal == 0>>$his first<<else>>this week's<</if>> baby. $His child is promptly taken<<if _HGL != 0>> by $his roommate<</if>> and $he rests awhile before returning to managing your slaves. <<else>> While overseeing your other slaves, $slaves[$i].slaveName's water breaks. $He attempts to hold back the coming birth until $he can catch a break in $his duties but ultimately fails. <<set $humiliation = 1>> diff --git a/src/uncategorized/arcade.tw b/src/uncategorized/arcade.tw index ee959f1e0e966cbb9602807dbb50653dc41f50c6..ce3ce29a36f9880b5653b85924320e564d19670a 100644 --- a/src/uncategorized/arcade.tw +++ b/src/uncategorized/arcade.tw @@ -1,6 +1,6 @@ :: Arcade [nobr] -<<set $nextButton = "Back to Main", $nextLink = "Main", $returnTo = "Arcade", $showEncyclopedia = 1, $encyclopedia = "Arcade">> +<<set $nextButton = "Back to Main", $nextLink = "Main", $returnTo = "Arcade", $showEncyclopedia = 1, $encyclopedia = "Arcade", _AL = $ArcadeiIDs.length>> <<if $arcadeName != "the Arcade">> <<set $arcadeNameCaps = $arcadeName.replace("the ", "The ")>> @@ -67,9 +67,9 @@ $arcadeNameCaps is a standard Free Cities sex arcade: a pair of hallways extend away from the entrance, lined with doorless stalls like those in a public restroom. One hallway offers mouths, the other <<if $seeDicks != 100>>vaginas and <</if>>anuses. <</switch>> -<<if $ArcadeiIDs.length > 2>> +<<if _AL > 2>> It's busy. Customers are entering and exiting, leaving a few ¤ behind in the charge machines and loads of semen behind in the holes. -<<elseif $ArcadeiIDs.length > 0>> +<<elseif _AL > 0>> It's understaffed; there are lines here and there for the few holes available. <<else>> It's empty and quiet. @@ -82,10 +82,10 @@ $arcadeNameCaps <</link>> <</if>> -<<if $ArcadeiIDs.length > 0>> - <<set _NewPop = $ArcadeiIDs.length+$dormitoryPopulation>> +<<if _AL > 0>> + <<set _NewPop = _AL+$dormitoryPopulation>> <<link "Remove all slaves" "Arcade">> - <<for $ArcadeiIDs.length > 0>> + <<for _AL > 0>> <<= assignJob($slaves[$slaveIndices[$ArcadeiIDs[0]]], "work a glory hole")>> <</for>> <</link>> @@ -94,14 +94,14 @@ $arcadeNameCaps <</if>> <</if>> -<br>It can support $arcade inmates. There <<if $ArcadeiIDs.length == 1>>is<<else>>are<</if>> currently $ArcadeiIDs.length slave<<if $ArcadeiIDs.length != 1>>s<</if>> incarcerated in $arcadeName. -<<if $arcadeUpgradeFuckdolls == 1 && $ArcadeiIDs.length > 1>> +<br>It can support $arcade inmates. There <<if _AL == 1>>is<<else>>are<</if>> currently _AL slave<<if _AL != 1>>s<</if>> incarcerated in $arcadeName. +<<if $arcadeUpgradeFuckdolls == 1 && _AL > 1>> <br>The arcade has automatic Fuckdollification functions, and you can decide to convert your least popular slave at the end of the week. [[Activate|Arcade][$arcadeUpgradeFuckdolls = 2]] <<elseif $arcadeUpgradeFuckdolls == 2>> <br>You have decided that the least popular inmate will be converted to a standard Fuckdoll this week. [[Deactivate|Arcade][$arcadeUpgradeFuckdolls = 1]] <</if>> -<<if $arcade > $ArcadeiIDs.length && $fuckdolls > 0>> - <<set _fuckdollRoom = $arcade - $ArcadeiIDs.length>> +<<if $arcade > _AL && $fuckdolls > 0>> + <<set _fuckdollRoom = $arcade - _AL>> <br>There is room in the arcade for <<print _fuckdollRoom>> menial Fuckdolls. <<if $fuckdolls > 1>>They'll be more efficient in the arcade, so you restrain them here.<<else>>Your Fuckdoll will be more efficient serving in the arcade, so you send it here.<</if>> <</if>> <<set _Tmult0 = Math.trunc($arcade*1000*$upgradeMultiplierArcology)>> diff --git a/src/uncategorized/arcadeReport.tw b/src/uncategorized/arcadeReport.tw index d42616d70450ae7c888b1fd2ee9e69122bc4309e..a5968a8e7a12794a1798546364c057e58b4ce149 100644 --- a/src/uncategorized/arcadeReport.tw +++ b/src/uncategorized/arcadeReport.tw @@ -4,7 +4,7 @@ </span> <<SlaveIDSort $ArcadeiIDs>> -<<set _DL = $ArcadeiIDs.length, $ArcadeiIDs.length = _DL, _SL = $slaves.length, _cockmilked = 0, _milked = 0, _milkprofits = 0, _profits = 0, _oldCash = 0, _boobsImplanted = 0, _prostatesImplanted = 0, _vasectomiesUndone = 0, _mSlave = 0, _bSlave = 0, _pSlave = 0, _cSlave = 0>> +<<set _DL = $ArcadeiIDs.length, _SL = $slaves.length, _cockmilked = 0, _milked = 0, _milkprofits = 0, _profits = 0, _oldCash = 0, _boobsImplanted = 0, _prostatesImplanted = 0, _vasectomiesUndone = 0, _mSlave = 0, _bSlave = 0, _pSlave = 0, _cSlave = 0>> <!-- Statistics gathering --> <<set $facility = $facility || {}, $facility.arcade = initFacilityStatistics($facility.arcade)>> diff --git a/src/uncategorized/arcmgmt.tw b/src/uncategorized/arcmgmt.tw index dc550066ef4464000480bef5f8971e035b4883e1..1dea845f33034b5ed12bcc11c133b3c4e425624c 100644 --- a/src/uncategorized/arcmgmt.tw +++ b/src/uncategorized/arcmgmt.tw @@ -1203,9 +1203,10 @@ You own <<if $fuckdolls > 0>> - <<if ($fuckdolls > $arcade - $ArcadeiIDs.length) && ($arcade > $ArcadeiIDs.length)>> - <<set _fuckdollsArcade = $arcade - $ArcadeiIDs.length>> - <<elseif $fuckdolls < $arcade - $ArcadeiIDs.length>> + <<set _AL = $ArcadeiIDs.length>> + <<if ($fuckdolls > $arcade - _AL) && ($arcade > _AL)>> + <<set _fuckdollsArcade = $arcade - _AL>> + <<elseif $fuckdolls < $arcade - _AL>> <<set _fuckdollsArcade = $fuckdolls>> <<else>> <<set _fuckdollsArcade = 0>> diff --git a/src/uncategorized/brothel.tw b/src/uncategorized/brothel.tw index 0a273cd2f45410f9283ff7dba34e2b6b3a525c0b..125efef5578db273806bb9172722c49230063986 100644 --- a/src/uncategorized/brothel.tw +++ b/src/uncategorized/brothel.tw @@ -1,6 +1,6 @@ :: Brothel [nobr] -<<set $nextButton = "Back to Main", $nextLink = "Main", $returnTo = "Brothel", $showEncyclopedia = 1, $encyclopedia = "Brothel">> +<<set $nextButton = "Back to Main", $nextLink = "Main", $returnTo = "Brothel", $showEncyclopedia = 1, $encyclopedia = "Brothel", _BL = $BrothiIDs.length>> <<if $brothelName != "the Brothel">> <<set $brothelNameCaps = $brothelName.replace("the ", "The ")>> @@ -135,9 +135,9 @@ $brothelNameCaps <</if>> <</if>> -<<if $BrothiIDs.length > 2>> +<<if _BL > 2>> $brothelNameCaps is bustling with activity. Customers are coming and going and slave girls are displaying themselves. When a slave catches a customer's eye, he leads her back into a little cubicle. -<<elseif $BrothiIDs.length > 0>> +<<elseif _BL > 0>> $brothelNameCaps is working steadily. Customers are present and slave girls are on offer. When a slave catches a customer's eye, he leads her back into a little cubicle. <<elseif $Madam != 0>> $Madam.slaveName is alone in $brothelName, and has nothing to do but keep the place clean and plan future sales efforts. @@ -152,14 +152,14 @@ $brothelNameCaps <</link>> <</if>> -<<if $BrothiIDs.length > 0>> +<<if _BL > 0>> <<if $Madam != 0>><<set _X = 1>><<else>><<set _X = 0>><</if>> - <<set _NewPop = $BrothiIDs.length+$dormitoryPopulation+_X>> + <<set _NewPop = _BL+$dormitoryPopulation+_X>> <<link "Remove all slaves" "Brothel">> <<if $Madam != 0>> <<= assignJob($Madam, "rest")>> <</if>> - <<for $BrothiIDs.length > 0>> + <<for _BL > 0>> <<= assignJob($slaves[$slaveIndices[$BrothiIDs[0]]], "whore")>> <</for>> <</link>> @@ -169,7 +169,7 @@ $brothelNameCaps <</if>> <<set _Tmult0 = Math.trunc($brothel*1000*$upgradeMultiplierArcology)>> -<br>It can support $brothel whores. Currently there <<if $BrothiIDs.length == 1>>is<<else>>are<</if>> $BrothiIDs.length whore<<if $BrothiIDs.length != 1>>s<</if>> at $brothelName. +<br>It can support $brothel whores. Currently there <<if _BL == 1>>is<<else>>are<</if>> _BL whore<<if _BL != 1>>s<</if>> at $brothelName. [[Expand the brothel|Brothel][cashX(forceNeg(_Tmult0), "capEx"), $brothel += 5, $PC.engineering += .1]] //Costs <<print cashFormat(_Tmult0)>> and will increase upkeep costs// <<if $Madam != 0>> @@ -203,9 +203,9 @@ $brothelNameCaps Last week this <<set $lastWeeksCashProfits.brothelAds = $lastWeeksCashIncome.brothelAds + $lastWeeksCashExpenses.brothelAds>> <<if $lastWeeksCashProfits.brothelAds > 0>> - made you an extra @@.green;<<print cashFormat($lastWeeksCashProfits.brothelAds)>>,@@<<if $BrothiIDs.length > 1>> as well as increasing business for your whores.<</if>> + made you an extra @@.green;<<print cashFormat($lastWeeksCashProfits.brothelAds)>>,@@<<if _BL > 1>> as well as increasing business for your whores.<</if>> <<elseif $lastWeeksCashProfits.brothelAds < 0>> - cost you @@.red;<<print cashFormat($lastWeeksCashProfits.brothelAds)>>,@@<<if $BrothiIDs.length > 1>> but still increased business for your whores.<</if>> + cost you @@.red;<<print cashFormat($lastWeeksCashProfits.brothelAds)>>,@@<<if _BL > 1>> but still increased business for your whores.<</if>> <</if>> <<link "Manage brothel advertisements" "Brothel Advertisement">><<set $nextLink = passage(), $nextButton = "Back">><</link>> diff --git a/src/uncategorized/cellblock.tw b/src/uncategorized/cellblock.tw index 467109841fb6434c0112c802ce59ac892c0562ee..ec33bc3502f3219dfb5e4240111930df93764606 100644 --- a/src/uncategorized/cellblock.tw +++ b/src/uncategorized/cellblock.tw @@ -1,6 +1,6 @@ :: Cellblock [nobr] -<<set $nextButton = "Back to Main", $nextLink = "Main", $returnTo = "Cellblock", $showEncyclopedia = 1, $encyclopedia = "Cellblock">> +<<set $nextButton = "Back to Main", $nextLink = "Main", $returnTo = "Cellblock", $showEncyclopedia = 1, $encyclopedia = "Cellblock", _CL = $CellBiIDs.length>> <<if $cellblockName != "the Cellblock">> <<set $cellblockNameCaps = $cellblockName.replace("the ", "The ")>> @@ -67,9 +67,9 @@ $cellblockNameCaps could be mistaken for a modern prison. A close inspection, however, reveals restraints in each cell that will hold inmates in sexually compromising positions, and compliance systems to force them to place their wrists and ankles in them. <</switch>> -<<if $CellBiIDs.length > 2>> +<<if _CL > 2>> $cellblockNameCaps is full of slaves, though it's difficult to tell at first. In many of the cells, a scene of loneliness and misery may be witnessed, but not one sound escapes them in fear of the punishment that would follow. -<<elseif $CellBiIDs.length > 0>> +<<elseif _CL > 0>> $cellblockNameCaps holds a few slaves, though it's difficult to tell at first. In several of the cells, a scene of loneliness and misery may be witnessed, but not one sound escapes them in fear of the punishment that would follow. <<elseif $Wardeness != 0>> $Wardeness.slaveName is alone in the cellblock, and seems rather lonely without anyone to oppress. @@ -77,14 +77,14 @@ $cellblockNameCaps None of your slaves are confined in the cellblock. [[Decommission the cellblock|Main][$cellblock = 0, $cellblockDecoration = "standard", $cellblockUpgrade = 0]] <</if>> -<<if $CellBiIDs.length > 0>> +<<if _CL > 0>> <<if $Wardeness != 0>><<set _X = 1>><<else>><<set _X = 0>><</if>> - <<set _NewPop = $CellBiIDs.length+$dormitoryPopulation+_X>> + <<set _NewPop = _CL+$dormitoryPopulation+_X>> <<link "Remove all slaves" "Cellblock">> <<if $Wardeness != 0>> <<= assignJob($Wardeness, "rest")>> <</if>> - <<for $CellBiIDs.length > 0>> + <<for _CL > 0>> <<= assignJob($slaves[$slaveIndices[$CellBiIDs[0]]], "stay confined")>> <</for>> <</link>> @@ -94,7 +94,7 @@ $cellblockNameCaps <</if>> <<set _Tmult0 = Math.trunc($cellblock*1000*$upgradeMultiplierArcology)>> -<br>$cellblockNameCaps has room for $cellblock slaves to be kept in close confinement. There <<if $CellBiIDs.length == 1>>is<<else>>are<</if>> currently $CellBiIDs.length slaves<<if $CellBiIDs.length != 1>>s<</if>> kept in close confinement in $cellblockName. +<br>$cellblockNameCaps has room for $cellblock slaves to be kept in close confinement. There <<if _CL == 1>>is<<else>>are<</if>> currently _CL slaves<<if _CL != 1>>s<</if>> kept in close confinement in $cellblockName. [[Expand the cellblock|Cellblock][cashX(forceNeg(_Tmult0), "capEx"), $cellblock += 5, $PC.engineering += .1]] //Costs <<print cashFormat(_Tmult0)>>// <br> diff --git a/src/uncategorized/clinic.tw b/src/uncategorized/clinic.tw index 1dd4e59b60223eab132e286696f76e522fd2174d..d2137246c688165f5dae4f4e8881dfb9a19112c2 100644 --- a/src/uncategorized/clinic.tw +++ b/src/uncategorized/clinic.tw @@ -1,6 +1,6 @@ :: Clinic [nobr] -<<set $nextButton = "Back to Main", $nextLink = "Main", $returnTo = "Clinic", $showEncyclopedia = 1, $encyclopedia = "Clinic">> +<<set $nextButton = "Back to Main", $nextLink = "Main", $returnTo = "Clinic", $showEncyclopedia = 1, $encyclopedia = "Clinic", _CL = $CliniciIDs.length>> <<if $clinicName != "the Clinic">> <<set $clinicNameCaps = $clinicName.replace("the ", "The ")>> @@ -67,9 +67,9 @@ $clinicNameCaps is a well-equipped modern medical facility. Each patient has their own area, with heavy automation to provide them treatment without any human intervention at all. <</switch>> -<<if $CliniciIDs.length > 2>> +<<if _CL > 2>> $clinicNameCaps is busy. Patients occupy many of the beds; most are alert, but a few are dozing under medication designed to promote healing through deep rest. -<<elseif $CliniciIDs.length > 0>> +<<elseif _CL > 0>> $clinicNameCaps is sparsely populated. Patients occupy a few of the beds; most are alert, but a few are dozing under medication designed to promote healing through deep rest. <<elseif $Nurse != 0>> $Nurse.slaveName is alone in the clinic, and has nothing to do but keep the place spotlessly clean and ready for its next patients. @@ -77,14 +77,14 @@ $clinicNameCaps $clinicNameCaps is empty and quiet. [[Decommission the Clinic|Main][$clinic = 0, $clinicDecoration = "standard", $clinicUpgradeScanner = 0, $clinicUpgradeFilters = 0, $clinicUpgradePurge = 0, $clinicInflateBelly = 0, $clinicSpeedGestation = 0]] <</if>> -<<if $CliniciIDs.length > 0>> +<<if _CL > 0>> <<if $Nurse != 0>><<set _X = 1>><<else>><<set _X = 0>><</if>> - <<set _NewPop = $CliniciIDs.length+$dormitoryPopulation+_X>> + <<set _NewPop = _CL+$dormitoryPopulation+_X>> <<link "Remove all slaves" "Clinic">> <<if $Nurse != 0>> <<= assignJob($Nurse, "rest")>> <</if>> - <<for $CliniciIDs.length > 0>> + <<for _CL > 0>> <<= assignJob($slaves[$slaveIndices[$CliniciIDs[0]]], "rest")>> <</for>> <</link>> @@ -94,7 +94,7 @@ $clinicNameCaps <</if>> <<set _Tmult0 = Math.trunc($clinic*1000*$upgradeMultiplierArcology)>> -<br>$clinicNameCaps has room to support $clinic slaves while they receive treatment. There <<if $CliniciIDs.length == 1>>is<<else>>are<</if>> currently $CliniciIDs.length slave<<if $CliniciIDs.length != 1>>s<</if>> receiving treatment in $clinicName. +<br>$clinicNameCaps has room to support $clinic slaves while they receive treatment. There <<if _CL == 1>>is<<else>>are<</if>> currently _CL slave<<if _CL != 1>>s<</if>> receiving treatment in $clinicName. [[Expand the clinic|Clinic][cashX(forceNeg(_Tmult0), "capEx"), $clinic += 5, $PC.engineering += .1]] //Costs <<print cashFormat(_Tmult0)>>// <br> diff --git a/src/uncategorized/club.tw b/src/uncategorized/club.tw index 9bada0fd24d4afa829727e2478c271ed8b37f547..b0846050042cf66ebe25290c812818adfd3daae0 100644 --- a/src/uncategorized/club.tw +++ b/src/uncategorized/club.tw @@ -1,6 +1,6 @@ :: Club [nobr] -<<set $nextButton = "Back to Main", $nextLink = "Main", $returnTo = "Club", $showEncyclopedia = 1, $encyclopedia = "Club">> +<<set $nextButton = "Back to Main", $nextLink = "Main", $returnTo = "Club", $showEncyclopedia = 1, $encyclopedia = "Club", _CL = $ClubiIDs.length>> <<if $clubName != "the Club">> <<set $clubNameCaps = $clubName.replace("the ", "The ")>> @@ -135,9 +135,9 @@ $clubNameCaps <</if>> <</if>> -<<if $ClubiIDs.length > 2>> +<<if _CL > 2>> $clubNameCaps is dotted with pretty, flirtatious slaves, stripping on stages, serving drinks, and dancing. They're very willing to suck patrons off in the open or give a public handjob, and there are little private rooms for them to use when engaging in heavier intercourse. -<<elseif $ClubiIDs.length > 0>> +<<elseif _CL > 0>> There are a few pretty, flirtatious slaves, stripping on stages, serving drinks, and dancing. They're very willing to suck patrons off in the open or give a public handjob, and there are little private rooms for them to use when engaging in heavier intercourse. <<elseif $DJ != 0>> <<setLocalPronouns $DJ>> @@ -153,14 +153,14 @@ $clubNameCaps <</link>> <</if>> -<<if $ClubiIDs.length > 0>> +<<if _CL > 0>> <<if $DJ != 0>><<set _X = 1>><<else>><<set _X = 0>><</if>> - <<set _NewPop = $ClubiIDs.length+$dormitoryPopulation+_X>> + <<set _NewPop = _CL+$dormitoryPopulation+_X>> <<link "Remove all slaves" "Club">> <<if $DJ != 0>> <<= assignJob($DJ, "rest")>> <</if>> - <<for $ClubiIDs.length > 0>> + <<for _CL > 0>> <<= assignJob($slaves[$slaveIndices[$ClubiIDs[0]]], "serve the public")>> <</for>> <</link>> @@ -169,7 +169,7 @@ $clubNameCaps <</if>> <</if>> -<<if $ClubiIDs.length > 2>> +<<if _CL > 2>> <<switch $clubDecoration>> <<case "Chattel Religionist">> From one of the private rooms, praying interspersed with the slap of leather on flesh can be heard. @@ -233,7 +233,7 @@ $clubNameCaps <</if>> <<set _Tmult0 = Math.trunc($club*1000*$upgradeMultiplierArcology)>> -<br>There are rooms off $clubName to support slaves as they work as club sluts. They can support $club slaves. There <<if $ClubiIDs.length == 1>>is<<else>>are<</if>> currently $ClubiIDs.length slave<<if $ClubiIDs.length != 1>>s<</if>> serving in $clubName. +<br>There are rooms off $clubName to support slaves as they work as club sluts. They can support $club slaves. There <<if _CL == 1>>is<<else>>are<</if>> currently _CL slave<<if _CL != 1>>s<</if>> serving in $clubName. [[Expand the club|Club][cashX(forceNeg(_Tmult0), "capEx"), $club += 5, $PC.engineering += .1]] //Costs <<print cashFormat(_Tmult0)>> and will increase upkeep costs// <br> diff --git a/src/uncategorized/dairy.tw b/src/uncategorized/dairy.tw index 427dcb6a51480a63303f87eaab38619e00dd934a..0d92193b7b223cf30c6520132170e6f6225dba9a 100644 --- a/src/uncategorized/dairy.tw +++ b/src/uncategorized/dairy.tw @@ -1,9 +1,8 @@ :: Dairy [nobr] -<<set $nextButton = "Back to Main", $nextLink = "Main", $returnTo = "Dairy", $showEncyclopedia = 1, $encyclopedia = "Dairy", _SL = $slaves.length>> +<<set $nextButton = "Back to Main", $nextLink = "Main", $returnTo = "Dairy", $showEncyclopedia = 1, $encyclopedia = "Dairy", _SL = $slaves.length, _DL = _DL>> <<SlaveIDSort $DairyiIDs>> -<<set _DL = $DairyiIDs.length>> <<if $dairyName != "the Dairy">> <<set $dairyNameCaps = $dairyName.replace("the ", "The ")>> <</if>> @@ -27,7 +26,7 @@ <br><br> <</if>> -<<if ($DairyiIDs.length > 1)>> +<<if (_DL > 1)>> <<if $dairyFeedersSettingChanged == 1>> In unison, the milking machines press their feeding phalli into the slaves' mouths and down their throats. Once situated, they begin to facefuck the slaves, who gag and struggle as they figure out how to breathe while this is going on. Once each slave is no longer panicking and is inhaling and exhaling regularly, there is a hydraulic sound and the transparent reservoir of feeding fluid near their head begins to drain. The slaves swallow desperately, their bellies beginning to swell with nutrition and drugs.<br><br> <<elseif $dairyFeedersSettingChanged == -1>> @@ -262,7 +261,7 @@ <</if>> -<<if $DairyiIDs.length > 2>> +<<if _DL > 2>> $dairyNameCaps is working steadily. <<if ($dairyRestraintsUpgrade == 1) && ($dairyRestraintsSetting > 1)>> Each cow is strapped into their own milking machine. The machines are set up in rows, alternating forward and backward so that the cows are interleaved as closely as possible without touching. @@ -306,7 +305,7 @@ <</if>> <<elseif $bioreactorsXY+$bioreactorsXX+$bioreactorsHerm+$bioreactorsBarren > 0>> $dairyNameCaps is quiet and calm. The only sounds are faint sucking and gushing noises. -<<elseif $DairyiIDs.length > 0>> +<<elseif _DL > 0>> $dairyNameCaps is sparsely populated. <<elseif $Milkmaid != 0>> $Milkmaid.slaveName is alone in $dairyName, and has nothing to do but clean and maintain the equipment. @@ -321,14 +320,14 @@ <</link>> <</if>> -<<if $DairyiIDs.length > 0>> +<<if _DL > 0>> <<if $Milkmaid != 0>><<set _X = 1>><<else>><<set _X = 0>><</if>> - <<set _NewPop = $DairyiIDs.length+$dormitoryPopulation+_X>> + <<set _NewPop = _DL+$dormitoryPopulation+_X>> <<link "Remove all slaves" "Dairy">> <<if $Milkmaid != 0>> <<= assignJob($Milkmaid, "rest")>> <</if>> - <<for $DairyiIDs.length > 0>> + <<for _DL > 0>> <<= assignJob($slaves[$slaveIndices[$DairyiIDs[0]]], "get milked")>> <</for>> <</link>> @@ -338,7 +337,7 @@ <</if>> <<set _Tmult0 = Math.trunc($dairy*1000*$upgradeMultiplierArcology)>> -<br>$dairyNameCaps can support $dairy milkers. There <<if $DairyiIDs.length == 1>>is<<else>>are<</if>> currently $DairyiIDs.length cow<<if $DairyiIDs.length != 1>>s<</if>>. [[Expand the dairy|Dairy][cashX(forceNeg(_Tmult0), "capEx"), $dairy += 5, $PC.engineering += .1]] //Costs <<print cashFormat(_Tmult0)>> and will increase upkeep costs// +<br>$dairyNameCaps can support $dairy milkers. There <<if _DL == 1>>is<<else>>are<</if>> currently _DL cow<<if _DL != 1>>s<</if>>. [[Expand the dairy|Dairy][cashX(forceNeg(_Tmult0), "capEx"), $dairy += 5, $PC.engineering += .1]] //Costs <<print cashFormat(_Tmult0)>> and will increase upkeep costs// <<set _Tmult1 = Math.trunc(10000*$upgradeMultiplierArcology)>> <br><br> diff --git a/src/uncategorized/masterSuite.tw b/src/uncategorized/masterSuite.tw index b4269c5b4f4d0137553e17ba66bbbf9bb540d0e3..1b8c95f26dad0e2724b1ceee2707d5128b8add9a 100644 --- a/src/uncategorized/masterSuite.tw +++ b/src/uncategorized/masterSuite.tw @@ -1,9 +1,8 @@ :: Master Suite [nobr] -<<set $nextButton = "Back to Main", $nextLink = "Main", $returnTo = "Master Suite", $showEncyclopedia = 1, $encyclopedia = "Master Suite", _SL = $slaves.length>> +<<set $nextButton = "Back to Main", $nextLink = "Main", $returnTo = "Master Suite", $showEncyclopedia = 1, $encyclopedia = "Master Suite", _SL = $slaves.length, _DL = $MastSiIDs.length>> <<SlaveIDSort $MastSiIDs>> -<<set _DL = $MastSiIDs.length>> <<if $masterSuiteName != "the Master Suite">> <<set $masterSuiteNameCaps = $masterSuiteName.replace("the ", "The ")>> @@ -18,7 +17,7 @@ <</if>> <</if>> -<<if $MastSiIDs.length > 0>> +<<if _DL > 0>> <<for _dI = 0; _dI < _DL; _dI++>> <<set _i = $slaveIndices[$MastSiIDs[_dI]]>> <<set _Slave = $slaves[_i]>> @@ -45,13 +44,13 @@ <</if>> <</if>> <</for>> - <<set $masterSuiteAverageEnergy = $masterSuiteAverageEnergy/$MastSiIDs.length>> - <<set _masterSuiteAverageMilk = _masterSuiteAverageMilk/$MastSiIDs.length>> - <<set _masterSuiteAverageCum = _masterSuiteAverageCum/$MastSiIDs.length>> - <<set _masterSuiteAverageDick = _masterSuiteAverageDick/$MastSiIDs.length>> - <<set _masterSuiteAveragePreg = _masterSuiteAveragePreg/$MastSiIDs.length>> - <<set _masterSuiteAverageDom = _masterSuiteAverageDom/$MastSiIDs.length>> - <<set _masterSuiteAverageSadism = _masterSuiteAverageSadism/$MastSiIDs.length>> + <<set $masterSuiteAverageEnergy = $masterSuiteAverageEnergy/_DL>> + <<set _masterSuiteAverageMilk = _masterSuiteAverageMilk/_DL>> + <<set _masterSuiteAverageCum = _masterSuiteAverageCum/_DL>> + <<set _masterSuiteAverageDick = _masterSuiteAverageDick/_DL>> + <<set _masterSuiteAveragePreg = _masterSuiteAveragePreg/_DL>> + <<set _masterSuiteAverageDom = _masterSuiteAverageDom/_DL>> + <<set _masterSuiteAverageSadism = _masterSuiteAverageSadism/_DL>> <</if>> <<set _Tmult1 = Math.trunc(10000*$upgradeMultiplierArcology)>> @@ -120,7 +119,7 @@ $masterSuiteNameCaps is furnished <</switch>> It is full of luxuries of all kinds. The slaves here live free of want or worry, and have everything except their freedom. Their only duties are to please you and look after the suite and one another. -<<if $MastSiIDs.length > 2>> +<<if _DL > 2>> It's busy with slaves, so many that they are able to rotate through keeping themselves perfect and ready for your pleasure. The slaves not on call at the moment are beautifying themselves, cleaning, or serving others. <<if (_masterSuitePregnantSlaves > 2) && (_masterSuitePregnantSlavesMultiple < 2)>> Many of the slaves are pregnant, and they walk around proudly displaying their bellies and the new slaves growing inside them.<br> @@ -129,7 +128,7 @@ It is full of luxuries of all kinds. The slaves here live free of want or worry, <<elseif (_masterSuitePregnantSlaves > 2) && (_masterSuitePregnantSlavesMultiple > 2)>> Many of the slaves are pregnant with multiple children, and they walk around proudly displaying their distended bellies and the next generation of slaves growing within them.<br> <</if>> -<<elseif $MastSiIDs.length > 0>> +<<elseif _DL > 0>> It's sparsely populated, so that the few slaves here have to work hard and quickly to ensure that an assortment of sex slaves is perfect and ready for your pleasure at any given moment. <<else>> None of your slaves are serving here. @@ -200,7 +199,7 @@ $masterSuiteNameCaps is furnished <</switch>> The true focus of the suite is, however, the fuckpit. This stepped depression in the middle of the floor -<<if $MastSiIDs.length > 3>> +<<if _DL > 3>> is filled by cushions and every slave in the suite who isn't sleeping, eating, or bathing. <<if $masterSuiteAverageEnergy > 90>> They're having energetic group sex; most of them are fucking and being fucked at the same time. @@ -228,7 +227,7 @@ The true focus of the suite is, however, the fuckpit. This stepped depression in <<elseif (_masterSuitePregnantSlaves > 2) && (_masterSuitePregnantSlavesMultiple > 2)>> Many of the slaves are pregnant with multiple children, and more than one has her face buried in the cunt directly below a grossly swollen belly while she lovingly massages her own distended stomach.<br> <</if>> -<<elseif $MastSiIDs.length > 0>> +<<elseif _DL > 0>> has a few lonely-looking fucktoys in it, badly outnumbered by the cushions. <<else>> is desolate and unpopulated. @@ -298,7 +297,7 @@ $masterSuiteNameCaps is furnished comfortably, as a fairly normal luxury suite. It is unusually large, to accommodate as large a stable of sex slaves as strikes your fancy. <</switch>> -<<if $MastSiIDs.length > 2>> +<<if _DL > 2>> It's busy with slaves, so many that they are able to rotate through keeping themselves perfect and ready for your pleasure. The slaves not on call at the moment are beautifying themselves, cleaning, or serving others. <<if (_masterSuitePregnantSlaves > 2) && (_masterSuitePregnantSlavesMultiple < 2)>> Many of the slaves are pregnant, and they walk around proudly displaying their bellies and the new slaves growing inside them.<br> @@ -307,7 +306,7 @@ $masterSuiteNameCaps is furnished <<elseif (_masterSuitePregnantSlaves > 2) && (_masterSuitePregnantSlavesMultiple > 2)>> Many of the slaves are pregnant with multiple children, and they walk around proudly displaying their distended bellies and the next generation of slaves growing within them.<br> <</if>> -<<elseif $MastSiIDs.length > 0>> +<<elseif _DL > 0>> It's sparsely populated, so that the few slaves here have to work hard and quickly to ensure that an assortment of sex slaves is perfect and ready for your pleasure at any given moment. <<else>> None of your slaves are serving here. @@ -317,21 +316,21 @@ $masterSuiteNameCaps is furnished <</if>> -<br>$masterSuiteNameCaps has room for $masterSuite slaves to live comfortably<<if $masterSuiteUpgradeLuxury == 2>> in the moments when they're not in the fuckpit<<elseif $masterSuiteUpgradeLuxury == 1>> on its huge bed<</if>>. There <<if $MastSiIDs.length == 1>>is<<else>>are<</if>> currently $MastSiIDs.length slave<<if $MastSiIDs.length != 1>>s<</if>> in $masterSuiteName. +<br>$masterSuiteNameCaps has room for $masterSuite slaves to live comfortably<<if $masterSuiteUpgradeLuxury == 2>> in the moments when they're not in the fuckpit<<elseif $masterSuiteUpgradeLuxury == 1>> on its huge bed<</if>>. There <<if _DL == 1>>is<<else>>are<</if>> currently _DL slave<<if _DL != 1>>s<</if>> in $masterSuiteName. <<set _Tmult0 = Math.trunc($masterSuite*1000*$upgradeMultiplierArcology)>> [[Expand the Master Suite|Master Suite][cashX(forceNeg(_Tmult0), "capEx"), $masterSuite += 2, $PC.engineering += .1]] //Costs <<print cashFormat(_Tmult0)>>// -<<if $Concubine == 0 && $MastSiIDs.length == 0>> +<<if $Concubine == 0 && _DL == 0>> | [[Decommission the Master Suite|Main][$masterSuite = 0, $masterSuiteUpgradeLuxury = 0, $masterSuitePregnancySlaveLuxuries = 0, $masterSuiteDecoration = "standard", $masterSuitePregnancyFertilityDrugs = 0, $masterSuitePregnancyFertilitySupplements = 0, $masterSuiteUpgradePregnancy = 0, $masterSuiteHyperPregnancy = 0]] <</if>> -<<if $MastSiIDs.length > 0>> +<<if _DL > 0>> <<if $Concubine != 0>><<set _X = 1>><<else>><<set _X = 0>><</if>> - <<set _NewPop = $MastSiIDs.length+$dormitoryPopulation+_X>> + <<set _NewPop = _DL+$dormitoryPopulation+_X>> <<link "Remove all slaves" "Master Suite">> <<if $Concubine != 0>> <<= assignJob($Concubine, "rest")>> <</if>> - <<for $MastSiIDs.length > 0>> + <<for _DL > 0>> <<= assignJob($slaves[$slaveIndices[$MastSiIDs[0]]], "please you")>> <</for>> <</link>> diff --git a/src/uncategorized/saChoosesOwnJob.tw b/src/uncategorized/saChoosesOwnJob.tw index e144fb9b47e6cf09a41ef86d406e288dd1af8a0b..77e8b02ca8462fa1b1302ab2aefdfb2890ffb0bb 100644 --- a/src/uncategorized/saChoosesOwnJob.tw +++ b/src/uncategorized/saChoosesOwnJob.tw @@ -1,5 +1,7 @@ :: SA chooses own job [nobr] +<<set _clinicL = $CliniciIDs.length, _schoolL = $SchlRiIDs.length, _servQL = $ServQiIDs.length, _nurseryL = $NurseryiIDs.length, _brothelL = $BrothiIDs.length, _clubL = $ClubiIDs.length, _masterSL = $MastSiIDs.length, _spaL = $SpaiIDs.length, _dairyL = $DairyiIDs.length, + <<if ($slaves[$i].choosesOwnAssignment == 0) || ($slaves[$i].fuckdoll > 0) || ($slaves[$i].fetish == "mindbroken")>> /* nothing to do */ @@ -20,7 +22,7 @@ <<set $slaves[$i].devotion -= 5>> <<elseif ($slaves[$i].health < 20)>> - <<if ($universalRulesAssignsSelfFacility == 1) && ($clinic > $CliniciIDs.length)>> + <<if ($universalRulesAssignsSelfFacility == 1) && ($clinic > _clinicL)>> <<set $slaves[$i].choosesOwnAssignmentText += " is unhealthy, so $he decides to get treatment at $clinicName.">> <<= assignJob($slaves[$i], "get treatment in the clinic")>> <<else>> @@ -33,7 +35,7 @@ <<= assignJob($slaves[$i], "get milked")>> <<elseif ($slaves[$i].intelligenceImplant < 15)>> - <<if ($universalRulesAssignsSelfFacility == 1) && ($schoolroom > $SchlRiIDs.length)>> + <<if ($universalRulesAssignsSelfFacility == 1) && ($schoolroom > _schoolL)>> <<set $slaves[$i].choosesOwnAssignmentText += " is uneducated, so $he sits $himself down in $schoolroomName.">> <<= assignJob($slaves[$i], "learn in the schoolroom")>> <<else>> @@ -46,7 +48,7 @@ <<= assignJob($slaves[$i], "rest in the spa")>> <<elseif ($slaves[$i].devotion <= 50) && canWalk($slaves[$i]) && canSee($slaves[$i])>> - <<if ($universalRulesAssignsSelfFacility == 1) && ($servantsQuarters > $ServQiIDs.length)>> + <<if ($universalRulesAssignsSelfFacility == 1) && ($servantsQuarters > _servQL)>> <<set $slaves[$i].choosesOwnAssignmentText += " is obedient but not devoted, so $he decides to work from $servantsQuartersName since it's the least sexually demanding job available.">> <<= assignJob($slaves[$i], "work as a servant")>> <<else>> @@ -54,7 +56,7 @@ <<= assignJob($slaves[$i], "be a servant")>> <</if>> - <<elseif $universalRulesAssignsSelfFacility == 1 && $slaves[$i].devotion > 50 && canWalk($slaves[$i]) && canSee($slaves[$i]) && $nurseryNannies > $NurseryiIDs.length>> + <<elseif $universalRulesAssignsSelfFacility == 1 && $slaves[$i].devotion > 50 && canWalk($slaves[$i]) && canSee($slaves[$i]) && $nurseryNannies > _nurseryL>> <<if $slaves[$i].daughters > 0 && $cribs.findIndex(function(c) { c.mother === $slaves[$i].ID})>> /* TODO: this may need another lookover */ <<set $slaves[$i].choosesOwnAssignmentText += " wants to look after $his child, so $he decides to work in $nurseryName.">> <<=assignJob($slaves[$i], "work as a nanny")>> @@ -67,7 +69,7 @@ <<set $slaves[$i].choosesOwnAssignmentText += " relies on promiscuity to fulfill $his emotional needs,">> <<if ($cash < 10000)>> <<set $slaves[$i].choosesOwnAssignmentText += " and doesn't mind being a whore, so $he prostitutes $himself">> - <<if ($universalRulesAssignsSelfFacility == 1) && ($brothel > $BrothiIDs.length)>> + <<if ($universalRulesAssignsSelfFacility == 1) && ($brothel > _brothelL)>> <<set $slaves[$i].choosesOwnAssignmentText += " in $brothelName.">> <<= assignJob($slaves[$i], "work in the brothel")>> <<else>> @@ -76,7 +78,7 @@ <</if>> <<else>> <<set $slaves[$i].choosesOwnAssignmentText += " so $he eagerly decides to slut around">> - <<if ($universalRulesAssignsSelfFacility == 1) && ($club > $ClubiIDs.length)>> + <<if ($universalRulesAssignsSelfFacility == 1) && ($club > _clubL)>> <<set $slaves[$i].choosesOwnAssignmentText += " in $clubName.">> <<= assignJob($slaves[$i], "serve in the club")>> <<else>> @@ -90,7 +92,7 @@ <<set $slaves[$i].choosesOwnAssignmentText += " is emotionally bonded to you,">> <<if ($slaves[$i].behavioralQuirk == "insecure")>> <<set $slaves[$i].choosesOwnAssignmentText += " but insecure, so $he decides to make you money by prostituting $himself">> - <<if ($universalRulesAssignsSelfFacility == 1) && ($brothel > $BrothiIDs.length)>> + <<if ($universalRulesAssignsSelfFacility == 1) && ($brothel > _brothelL)>> <<set $slaves[$i].choosesOwnAssignmentText += " in $brothelName.">> <<= assignJob($slaves[$i], "work in the brothel")>> <<else>> @@ -99,7 +101,7 @@ <</if>> <<elseif ($slaves[$i].behavioralQuirk == "advocate")>> <<set $slaves[$i].choosesOwnAssignmentText += " and an advocate for slavery, so $he decides to burnish your reputation by slutting it up">> - <<if ($universalRulesAssignsSelfFacility == 1) && ($club > $ClubiIDs.length)>> + <<if ($universalRulesAssignsSelfFacility == 1) && ($club > _clubL)>> <<set $slaves[$i].choosesOwnAssignmentText += " in $clubName.">> <<= assignJob($slaves[$i], "serve in the club")>> <<else>> @@ -109,7 +111,7 @@ <<set $slaves[$i].sexAmount = 10>> <<elseif ($slaves[$i].energy > 60)>> <<set $slaves[$i].choosesOwnAssignmentText += " and $he thinks of little but sex with you,">> - <<if ($universalRulesAssignsSelfFacility == 1) && ($masterSuite > $MastSiIDs.length)>> + <<if ($universalRulesAssignsSelfFacility == 1) && ($masterSuite > _masterSL)>> <<set $slaves[$i].choosesOwnAssignmentText += " so $he heads straight to $masterSuiteName.">> <<= assignJob($slaves[$i], "serve in the master suite")>> <<else>> @@ -118,7 +120,7 @@ <</if>> <<elseif canSee($slaves[$i]) && canWalk($slaves[$i])>> <<set $slaves[$i].choosesOwnAssignmentText += " so $he decides to work">> - <<if ($universalRulesAssignsSelfFacility == 1) && ($servantsQuarters > $ServQiIDs.length)>> + <<if ($universalRulesAssignsSelfFacility == 1) && ($servantsQuarters > _servQL)>> <<set $slaves[$i].choosesOwnAssignmentText += " from $servantsQuartersName">> <<= assignJob($slaves[$i], "work as a servant")>> <<else>> @@ -128,7 +130,7 @@ <<set $slaves[$i].choosesOwnAssignmentText += " to make your penthouse as clean and homelike as possible.">> <<else>> <<set $slaves[$i].choosesOwnAssignmentText += " but unable to do much on $his own,">> - <<if ($universalRulesAssignsSelfFacility == 1) && ($masterSuite > $MastSiIDs.length)>> + <<if ($universalRulesAssignsSelfFacility == 1) && ($masterSuite > _masterSL)>> <<set $slaves[$i].choosesOwnAssignmentText += " so $he heads straight to $masterSuiteName to await your caress.">> <<= assignJob($slaves[$i], "serve in the master suite")>> <<else>> @@ -150,7 +152,7 @@ <<if $slaves[$i].devotion > 50>> <<if ($slaves[$i].energy > 60)>> <<set $slaves[$i].choosesOwnAssignmentText += " and $he thinks of little but sex with you,">> - <<if ($universalRulesAssignsSelfFacility == 1) && ($masterSuite > $MastSiIDs.length)>> + <<if ($universalRulesAssignsSelfFacility == 1) && ($masterSuite > _masterSL)>> <<set $slaves[$i].choosesOwnAssignmentText += " so $he heads straight to $masterSuiteName.">> <<= assignJob($slaves[$i], "serve in the master suite")>> <<else>> @@ -159,7 +161,7 @@ <</if>> <<elseif canSee($slaves[$i]) && canWalk($slaves[$i])>> <<set $slaves[$i].choosesOwnAssignmentText += " so $he decides to work">> - <<if ($universalRulesAssignsSelfFacility == 1) && ($servantsQuarters > $ServQiIDs.length)>> + <<if ($universalRulesAssignsSelfFacility == 1) && ($servantsQuarters > _servQL)>> <<set $slaves[$i].choosesOwnAssignmentText += " from $servantsQuartersName">> <<= assignJob($slaves[$i], "work as a servant")>> <<else>> @@ -169,7 +171,7 @@ <<set $slaves[$i].choosesOwnAssignmentText += " to make your penthouse as clean and homelike as possible.">> <<else>> <<set $slaves[$i].choosesOwnAssignmentText += " but unable to do much on $his own">> - <<if ($universalRulesAssignsSelfFacility == 1) && ($masterSuite > $MastSiIDs.length)>> + <<if ($universalRulesAssignsSelfFacility == 1) && ($masterSuite > _masterSL)>> <<set $slaves[$i].choosesOwnAssignmentText += " so $he heads straight to $masterSuiteName to await your caress.">> <<= assignJob($slaves[$i], "serve in the master suite")>> <<else>> @@ -179,7 +181,7 @@ <</if>> <<elseif $slaves[$i].devotion < -20 && $slaves[$i].trust > 20>> <<set $slaves[$i].choosesOwnAssignmentText += " and $he thinks of all the ways $he can take advantage of this,">> - <<if ($universalRulesAssignsSelfFacility == 1) && ($spa > $SpaiIDs.length)>> + <<if ($universalRulesAssignsSelfFacility == 1) && ($spa > _spaL)>> <<set $slaves[$i].choosesOwnAssignmentText += " so $he heads straight to $spaName to relax.">> <<= assignJob($slaves[$i], "rest in the spa")>> <<else>> @@ -192,7 +194,7 @@ <<else>> <<if ($slaves[$i].energy > 60)>> <<set $slaves[$i].choosesOwnAssignmentText += " and $he thinks of little but sex,">> - <<if ($universalRulesAssignsSelfFacility == 1) && ($masterSuite > $MastSiIDs.length)>> + <<if ($universalRulesAssignsSelfFacility == 1) && ($masterSuite > _masterSL)>> <<set $slaves[$i].choosesOwnAssignmentText += " so $he heads straight to $masterSuiteName.">> <<= assignJob($slaves[$i], "serve in the master suite")>> <<else>> @@ -201,7 +203,7 @@ <</if>> <<elseif canSee($slaves[$i]) && canWalk($slaves[$i])>> <<set $slaves[$i].choosesOwnAssignmentText += " so $he decides to work">> - <<if ($universalRulesAssignsSelfFacility == 1) && ($servantsQuarters > $ServQiIDs.length)>> + <<if ($universalRulesAssignsSelfFacility == 1) && ($servantsQuarters > _servQL)>> <<set $slaves[$i].choosesOwnAssignmentText += " from $servantsQuartersName">> <<= assignJob($slaves[$i], "work as a servant")>> <<else>> @@ -217,7 +219,7 @@ <<elseif ($slaves[$i].fetishKnown == 1)>> <<if ($slaves[$i].fetish == "submissive") && canWalk($slaves[$i]) && canSee($slaves[$i])>> - <<if ($universalRulesAssignsSelfFacility == 1) && ($servantsQuarters > $ServQiIDs.length)>> + <<if ($universalRulesAssignsSelfFacility == 1) && ($servantsQuarters > _servQL)>> <<set $slaves[$i].choosesOwnAssignmentText += " thinks $he belongs at the bottom of the penthouse hierarchy, so $he goes to live in $servantsQuartersName.">> <<= assignJob($slaves[$i], "work as a servant")>> <<else>> @@ -225,7 +227,7 @@ <<= assignJob($slaves[$i], "be a servant")>> <</if>> <<elseif ($slaves[$i].fetish == "dom") || ($slaves[$i].fetish == "sadist")>> - <<if ($universalRulesAssignsSelfFacility == 1) && ($club > $ClubiIDs.length)>> + <<if ($universalRulesAssignsSelfFacility == 1) && ($club > _clubL)>> <<set $slaves[$i].choosesOwnAssignmentText += " is self-confident, so $he decides to work in $clubName.">> <<= assignJob($slaves[$i], "serve in the club")>> <<else>> @@ -234,7 +236,7 @@ <</if>> <<set $slaves[$i].sexAmount = 10>> <<elseif ($slaves[$i].fetish == "masochist")>> - <<if ($universalRulesAssignsSelfFacility == 1) && ($brothel > $BrothiIDs.length)>> + <<if ($universalRulesAssignsSelfFacility == 1) && ($brothel > _brothelL)>> <<set $slaves[$i].choosesOwnAssignmentText += " enjoys abuse, so $he hurries down to $brothelName.">> <<= assignJob($slaves[$i], "work in the brothel")>> <<else>> @@ -242,7 +244,7 @@ <<= assignJob($slaves[$i], "whore")>> <</if>> <<elseif ($slaves[$i].fetish == "cumslut")>> - <<if ($universalRulesAssignsSelfFacility == 1) && ($brothel > $BrothiIDs.length)>> + <<if ($universalRulesAssignsSelfFacility == 1) && ($brothel > _brothelL)>> <<set $slaves[$i].choosesOwnAssignmentText += " hurries down to $brothelName to suck cocks.">> <<= assignJob($slaves[$i], "work in the brothel")>> <<else>> @@ -250,7 +252,7 @@ <<= assignJob($slaves[$i], "whore")>> <</if>> <<elseif ($slaves[$i].fetish == "humiliation")>> - <<if ($universalRulesAssignsSelfFacility == 1) && ($brothel > $BrothiIDs.length)>> + <<if ($universalRulesAssignsSelfFacility == 1) && ($brothel > _brothelL)>> <<set $slaves[$i].choosesOwnAssignmentText += " decides to work in $brothelName, since it's even more embarrassing to be a whore than a club slut.">> <<= assignJob($slaves[$i], "work in the brothel")>> <<else>> @@ -259,7 +261,7 @@ <</if>> <<elseif ($slaves[$i].fetish == "buttslut")>> <<if ($slaves[$i].balls > 0)>> - <<if ($universalRulesAssignsSelfFacility == 1) && ($dairyRestraintsSetting < 2) && ($dairy > $DairyiIDs.length)>> + <<if ($universalRulesAssignsSelfFacility == 1) && ($dairyRestraintsSetting < 2) && ($dairy > _dairyL)>> <<set $slaves[$i].choosesOwnAssignmentText += " chooses confinement in $dairyName, since all $he will be expected to do is produce cum by orgasming to buttsex.">> <<= assignJob($slaves[$i], "work in the dairy")>> <<else>> @@ -267,7 +269,7 @@ <<= assignJob($slaves[$i], "get milked")>> <</if>> <<else>> - <<if ($universalRulesAssignsSelfFacility == 1) && ($brothel > $BrothiIDs.length)>> + <<if ($universalRulesAssignsSelfFacility == 1) && ($brothel > _brothelL)>> <<set $slaves[$i].choosesOwnAssignmentText += " decides to work in $brothelName, since whores get buttfucked more than anyone else.">> <<= assignJob($slaves[$i], "work in the brothel")>> <<else>> @@ -277,7 +279,7 @@ <</if>> <<elseif ($slaves[$i].fetish == "pregnancy")>> <<if ($slaves[$i].lactation > 0)>> - <<if ($universalRulesAssignsSelfFacility == 1) && ($dairyRestraintsSetting < 2) && ($dairy > $DairyiIDs.length)>> + <<if ($universalRulesAssignsSelfFacility == 1) && ($dairyRestraintsSetting < 2) && ($dairy > _dairyL)>> <<set $slaves[$i].choosesOwnAssignmentText += " heads down to $dairyName to be around other lactating girls.">> <<= assignJob($slaves[$i], "work in the dairy")>> <<else>> @@ -285,14 +287,14 @@ <<= assignJob($slaves[$i], "get milked")>> <</if>> <<elseif ($PC.dick == 1) && isFertile($slaves[$i])>> - <<if ($universalRulesAssignsSelfFacility == 1) && ($masterSuite > $MastSiIDs.length)>> + <<if ($universalRulesAssignsSelfFacility == 1) && ($masterSuite > _masterSL)>> <<set $slaves[$i].choosesOwnAssignmentText += " decides to serve you in $masterSuiteName, hoping that you'll get $him pregnant.">> <<= assignJob($slaves[$i], "serve in the master suite")>> <<else>> <<set $slaves[$i].choosesOwnAssignmentText += " decides to be your fucktoy, hoping that you'll get $him pregnant.">> <<= assignJob($slaves[$i], "please you")>> <</if>> - <<elseif ($universalRulesAssignsSelfFacility == 1) && ($dairyPregSetting > 0) && ($dairy > $DairyiIDs.length) && isFertile($slaves[$i])>> + <<elseif ($universalRulesAssignsSelfFacility == 1) && ($dairyPregSetting > 0) && ($dairy > _dairyL) && isFertile($slaves[$i])>> <<if $dairyPregSetting > 1>> <<set $slaves[$i].choosesOwnAssignmentText += " eagerly rushes to $dairyName in the hopes that $his fertile womb will be packed full of children.">> <<= assignJob($slaves[$i], "work in the dairy")>> @@ -303,7 +305,7 @@ <<elseif ($slaves[$i].bellyPreg >= 1500)>> <<if $arcologies[0].FSRepopulationFocus > 20>> <<if ($cash < 10000)>> - <<if $brothel > $BrothiIDs.length && $universalRulesAssignsSelfFacility == 1>> + <<if $brothel > _brothelL && $universalRulesAssignsSelfFacility == 1>> <<set $slaves[$i].choosesOwnAssignmentText += " heads to $brothelName since $he wants to set an example for any unimpregnated girls.">> <<= assignJob($slaves[$i], "work in the brothel")>> <<else>> @@ -311,7 +313,7 @@ <<= assignJob($slaves[$i], "whore")>> <</if>> <<else>> - <<if $club > $ClubiIDs.length && $universalRulesAssignsSelfFacility == 1>> + <<if $club > _clubL && $universalRulesAssignsSelfFacility == 1>> <<set $slaves[$i].choosesOwnAssignmentText += " heads to $clubName to show off $his growing middle and lavish in the public's attention.">> <<= assignJob($slaves[$i], "serve in the club")>> <<else>> @@ -320,7 +322,7 @@ <</if>> <<set $slaves[$i].sexAmount = 10>> <</if>> - <<elseif $masterSuite > $MastSiIDs.length && $universalRulesAssignsSelfFacility == 1>> + <<elseif $masterSuite > _masterSL && $universalRulesAssignsSelfFacility == 1>> <<set $slaves[$i].choosesOwnAssignmentText += " heads straight to $masterSuiteName to share the intimacy of $his pregnant body with you.">> <<= assignJob($slaves[$i], "serve in the master suite")>> <<else>> @@ -328,7 +330,7 @@ <<= assignJob($slaves[$i], "please you")>> <</if>> <<elseif ($slaves[$i].pregKnown == 1)>> - <<if $masterSuite > $MastSiIDs.length && $universalRulesAssignsSelfFacility == 1>> + <<if $masterSuite > _masterSL && $universalRulesAssignsSelfFacility == 1>> <<set $slaves[$i].choosesOwnAssignmentText += " heads straight to $masterSuiteName so you may watch for the day that $he finally starts to show.">> <<= assignJob($slaves[$i], "serve in the master suite")>> <<else>> @@ -336,7 +338,7 @@ <<= assignJob($slaves[$i], "please you")>> <</if>> <<else>> - <<if ($universalRulesAssignsSelfFacility == 1) && ($brothel > $BrothiIDs.length)>> + <<if ($universalRulesAssignsSelfFacility == 1) && ($brothel > _brothelL)>> <<set $slaves[$i].choosesOwnAssignmentText += " can't indulge $his fetish by getting pregnant $himself, so $he just heads down to $brothelName.">> <<= assignJob($slaves[$i], "work in the brothel")>> <<else>> @@ -346,7 +348,7 @@ <</if>> <<elseif ($slaves[$i].fetish == "boobs")>> <<if ($slaves[$i].lactation > 0)>> - <<if ($universalRulesAssignsSelfFacility == 1) && ($dairyRestraintsSetting < 2) && ($dairy > $DairyiIDs.length)>> + <<if ($universalRulesAssignsSelfFacility == 1) && ($dairyRestraintsSetting < 2) && ($dairy > _dairyL)>> <<set $slaves[$i].choosesOwnAssignmentText += " heads down to $dairyName for all the attention that'll be lavished on $his nipples.">> <<= assignJob($slaves[$i], "work in the dairy")>> <<else>> @@ -354,7 +356,7 @@ <<= assignJob($slaves[$i], "get milked")>> <</if>> <<else>> - <<if ($universalRulesAssignsSelfFacility == 1) && ($club > $ClubiIDs.length)>> + <<if ($universalRulesAssignsSelfFacility == 1) && ($club > _clubL)>> <<set $slaves[$i].choosesOwnAssignmentText += " decides to work in $clubName so $he can show off $his bare breasts.">> <<= assignJob($slaves[$i], "serve in the club")>> <<else>> @@ -364,7 +366,7 @@ <<set $slaves[$i].sexAmount = 10>> <</if>> <<elseif ($slaves[$i].attrXX > 85)>> - <<if ($universalRulesAssignsSelfFacility == 1) && ($club > $ClubiIDs.length)>> + <<if ($universalRulesAssignsSelfFacility == 1) && ($club > _clubL)>> <<set $slaves[$i].choosesOwnAssignmentText += " decides to work in $clubName so $he can hit on hot girls.">> <<= assignJob($slaves[$i], "serve in the club")>> <<else>> @@ -373,7 +375,7 @@ <</if>> <<set $slaves[$i].sexAmount = 10>> <<elseif ($slaves[$i].attrXY > 85)>> - <<if ($universalRulesAssignsSelfFacility == 1) && ($club > $ClubiIDs.length)>> + <<if ($universalRulesAssignsSelfFacility == 1) && ($club > _clubL)>> <<set $slaves[$i].choosesOwnAssignmentText += " decides to work in $clubName so $he can hit on cute boys.">> <<= assignJob($slaves[$i], "serve in the club")>> <<else>> @@ -382,7 +384,7 @@ <</if>> <<set $slaves[$i].sexAmount = 10>> <<elseif ($slaves[$i].energy > 95)>> - <<if ($universalRulesAssignsSelfFacility == 1) && ($brothel > $BrothiIDs.length)>> + <<if ($universalRulesAssignsSelfFacility == 1) && ($brothel > _brothelL)>> <<set $slaves[$i].choosesOwnAssignmentText += " decides to help those of your slaves who mind taking dick all day by working in $brothelName.">> <<= assignJob($slaves[$i], "work in the brothel")>> <<else>> @@ -391,7 +393,7 @@ <</if>> <<elseif ($arcologies[0].FSChattelReligionist > 0)>> - <<if ($universalRulesAssignsSelfFacility == 1) && ($brothel > $BrothiIDs.length)>> + <<if ($universalRulesAssignsSelfFacility == 1) && ($brothel > _brothelL)>> <<set $slaves[$i].choosesOwnAssignmentText += " is a pure and faithful slave, so $he sells $his body in the holy brothel.">> <<= assignJob($slaves[$i], "work in the brothel")>> <<else>> @@ -399,7 +401,7 @@ <<= assignJob($slaves[$i], "whore")>> <</if>> <<elseif ($arcologies[0].FSEgyptianRevivalist > 0)>> - <<if ($universalRulesAssignsSelfFacility == 1) && ($masterSuite > $MastSiIDs.length)>> + <<if ($universalRulesAssignsSelfFacility == 1) && ($masterSuite > _masterSL)>> <<set $slaves[$i].choosesOwnAssignmentText += " is a devoted slave, so $he immediately joins your harem.">> <<= assignJob($slaves[$i], "serve in the master suite")>> <<else>> @@ -407,7 +409,7 @@ <<= assignJob($slaves[$i], "please you")>> <</if>> <<elseif ($arcologies[0].FSRomanRevivalist > 0)>> - <<if ($universalRulesAssignsSelfFacility == 1) && ($brothel > $BrothiIDs.length)>> + <<if ($universalRulesAssignsSelfFacility == 1) && ($brothel > _brothelL)>> <<set $slaves[$i].choosesOwnAssignmentText += " is a devoted slave, so $he decides $he can best serve the state by raising money for the treasury, by selling $his body in $brothelName.">> <<= assignJob($slaves[$i], "work in the brothel")>> <<else>> @@ -415,7 +417,7 @@ <<= assignJob($slaves[$i], "whore")>> <</if>> <<elseif ($arcologies[0].FSAztecRevivalist > 0)>> - <<if ($universalRulesAssignsSelfFacility == 1) && ($brothel > $BrothiIDs.length)>> + <<if ($universalRulesAssignsSelfFacility == 1) && ($brothel > _brothelL)>> <<set $slaves[$i].choosesOwnAssignmentText += " is a devoted slave, so $he decides $he can best serve the empire by serving at the fertility temple.">> <<= assignJob($slaves[$i], "work in the brothel")>> <<else>> @@ -424,7 +426,7 @@ <<set $slaves[$i].sexAmount = 10>> <</if>> <<elseif ($arcologies[0].FSPaternalist > 0)>> - <<if ($universalRulesAssignsSelfFacility == 1) && ($brothel > $BrothiIDs.length)>> + <<if ($universalRulesAssignsSelfFacility == 1) && ($brothel > _brothelL)>> <<set $slaves[$i].choosesOwnAssignmentText += " decides to work in $brothelName, a respectable position for a slave in this enlightened arcology.">> <<= assignJob($slaves[$i], "work in the brothel")>> <<else>> @@ -433,7 +435,7 @@ <</if>> <<elseif ($arcologies[0].FSPastoralist > 0)>> <<if ($slaves[$i].lactation > 0)>> - <<if ($universalRulesAssignsSelfFacility == 1) && ($dairyRestraintsSetting < 2) && ($dairy > $DairyiIDs.length)>> + <<if ($universalRulesAssignsSelfFacility == 1) && ($dairyRestraintsSetting < 2) && ($dairy > _dairyL)>> <<set $slaves[$i].choosesOwnAssignmentText += " hurries to join your herd of dairy cows.">> <<= assignJob($slaves[$i], "work in the dairy")>> <<else>> @@ -441,7 +443,7 @@ <<= assignJob($slaves[$i], "get milked")>> <</if>> <<else>> - <<if ($universalRulesAssignsSelfFacility == 1) && ($brothel > $BrothiIDs.length)>> + <<if ($universalRulesAssignsSelfFacility == 1) && ($brothel > _brothelL)>> <<set $slaves[$i].choosesOwnAssignmentText += " decides to work in $brothelName to help raise money to get more girls lactating properly.">> <<= assignJob($slaves[$i], "work in the brothel")>> <<else>> @@ -450,7 +452,7 @@ <</if>> <</if>> <<elseif ($arcologies[0].FSHedonisticDecadence > 0)>> - <<if ($universalRulesAssignsSelfFacility == 1) && ($spa > $SpaiIDs.length) && (($slaves[$i].trust < 60) || ($slaves[$i].devotion <= 60))>> + <<if ($universalRulesAssignsSelfFacility == 1) && ($spa > _spaL) && (($slaves[$i].trust < 60) || ($slaves[$i].devotion <= 60))>> <<set $slaves[$i].choosesOwnAssignmentText += " could use a break, so $he heads to take a dip in the spa.">> <<= assignJob($slaves[$i], "rest in the spa")>> <<else>> @@ -459,7 +461,7 @@ <</if>> <<else>> <<if ($slaves[$i].skill.whoring > $slaves[$i].skill.entertainment)>> - <<if ($universalRulesAssignsSelfFacility == 1) && ($brothel > $BrothiIDs.length)>> + <<if ($universalRulesAssignsSelfFacility == 1) && ($brothel > _brothelL)>> <<set $slaves[$i].choosesOwnAssignmentText += " decides to work in $brothelName, since $he thinks $himself a better whore than a public slut.">> <<= assignJob($slaves[$i], "work in the brothel")>> <<else>> @@ -467,7 +469,7 @@ <<= assignJob($slaves[$i], "whore")>> <</if>> <<elseif ($slaves[$i].skill.entertainment > $slaves[$i].skill.whoring)>> - <<if ($universalRulesAssignsSelfFacility == 1) && ($club > $ClubiIDs.length)>> + <<if ($universalRulesAssignsSelfFacility == 1) && ($club > _clubL)>> <<set $slaves[$i].choosesOwnAssignmentText += " decides to be a club $girl, since $he thinks $himself a better public slut than a whore.">> <<= assignJob($slaves[$i], "serve in the club")>> <<else>> @@ -476,7 +478,7 @@ <</if>> <<set $slaves[$i].sexAmount = 10>> <<else>> - <<if ($universalRulesAssignsSelfFacility == 1) && ($brothel > $BrothiIDs.length)>> + <<if ($universalRulesAssignsSelfFacility == 1) && ($brothel > _brothelL)>> <<set $slaves[$i].choosesOwnAssignmentText += " decides to join $his sisters and work in $brothelName.">> <<= assignJob($slaves[$i], "work in the brothel")>> <<else>> @@ -486,7 +488,7 @@ <</if>> <</if>> <<else>> - <<if ($universalRulesAssignsSelfFacility == 1) && ($club > $ClubiIDs.length)>> + <<if ($universalRulesAssignsSelfFacility == 1) && ($club > _clubL)>> <<set $slaves[$i].choosesOwnAssignmentText += " decides to be a club $girl, since partying is better than sitting around and failing to think of a job to do.">> <<= assignJob($slaves[$i], "serve in the club")>> <<elseif canWalk($slaves[$i]) && canSee($slaves[$i])>> diff --git a/src/utility/birthWidgets.tw b/src/utility/birthWidgets.tw index c6b964b62c4db348be3dfe97d825626b33374345..fa368b4a41d488089a7de53880f3f19a20b02b3f 100644 --- a/src/utility/birthWidgets.tw +++ b/src/utility/birthWidgets.tw @@ -378,7 +378,8 @@ $He waddles to $his maternity ward and strips before laying on an open bed. $He makes $himself comfortable and begins working on birthing $his bab<<if $slaves[$i].pregType > 1>>ies<<else>>y<</if>> as $his assistants watch. $His child<<if $slaves[$i].pregType > 1>>ren are<<else>> is<</if>> promptly taken and $he is helped to the recovery ward until $he recovers enough to take over $clinicName again. <<case "be your Head Girl">> - $He returns to <<if $HGSuite == 1>>$his room's bed<<else>>$his bed<</if>> and strips before slipping into it. $He makes $himself comfortable<<if $HGSuiteiIDs.length != 0>> as $his slave rushes to $his side,<</if>> and begins working on birthing $his bab<<if $slaves[$i].pregType > 1>>ies<<else>>y<</if>>. $His child<<if $slaves[$i].pregType > 1>>ren are<<else>> is<</if>> promptly taken<<if $HGSuiteiIDs.length != 0>> by $his roommate<</if>> and $he rests awhile before returning to managing your slaves. +<<set _HGL = $HGSuiteiIDs.length>> + $He returns to <<if $HGSuite == 1>>$his room's bed<<else>>$his bed<</if>> and strips before slipping into it. $He makes $himself comfortable<<if _HGL != 0>> as $his slave rushes to $his side,<</if>> and begins working on birthing $his bab<<if $slaves[$i].pregType > 1>>ies<<else>>y<</if>>. $His child<<if $slaves[$i].pregType > 1>>ren are<<else>> is<</if>> promptly taken<<if _HGL != 0>> by $his roommate<</if>> and $he rests awhile before returning to managing your slaves. <<case "guard you">> Or $he would have, if $he'd stop refusing to leave your side. You lead $him someplace private and help $him undress. $He makes $himself comfortable and begins working on birthing $his bab<<if $slaves[$i].pregType > 1>>ies<<else>>y<</if>>. You call for a servant to quickly gather $his child<<if $slaves[$i].pregType > 1>>ren<</if>> as you help $him into the shower, making sure to wait outside for your loyal guardian to finish.