From a89a60b12e62073858382cae6e98192a54831aed Mon Sep 17 00:00:00 2001 From: lowercasedonkey <lowercasedonkey@gmail.com> Date: Wed, 4 Mar 2020 20:24:45 -0500 Subject: [PATCH] fix --- src/uncategorized/slaveInteract.tw | 416 ++++++++++++++--------------- 1 file changed, 208 insertions(+), 208 deletions(-) diff --git a/src/uncategorized/slaveInteract.tw b/src/uncategorized/slaveInteract.tw index df78e282ca9..1759c48c3cf 100644 --- a/src/uncategorized/slaveInteract.tw +++ b/src/uncategorized/slaveInteract.tw @@ -1,10 +1,10 @@ :: Slave Interact [nobr] -<<set $nextButton = "Confirm changes", $nextLink = "AS Dump", $returnTo = "Main">> +<<set $nextButton = "Confirm changes", $nextLink = "Main">> <<set _SL = $slaves.length, _CL = $canines.length, _HL = $hooved.length, _FL = $felines.length>> -<script>V.i = V.slaveIndices[V.activeSlave.ID]</script> -<<setLocalPronouns $slaves[$i]>> -<<run Enunciate($slaves[$i])>> +<<set _i = $slaveIndices[$activeSlave.ID]>> +<<setLocalPronouns $slaves[_i]>> +<<run Enunciate($slaves[_i])>> <style> .active { background-color: grey; @@ -14,8 +14,8 @@ <<run App.UI.tabbar.handlePreSelectedTab($tabChoice.slaveInteract)>> -<<if !assignmentVisible($slaves[$i])>> - <<switch $slaves[$i].assignment>> +<<if !assignmentVisible($slaves[_i])>> + <<switch $slaves[_i].assignment>> <<case "work in the brothel" "be the Madam">> <<set $returnTo = "Brothel">> <<case "be confined in the arcade">> @@ -46,11 +46,11 @@ <</if>> <<set $encyclopedia = either("Costs Summary", "Disease in the Free Cities", "Drugs and Their Effects", "From Rebellious to Devoted", "Gender", "Independent Slaves", "Modern Anal", "Nymphomania", "Slave Couture")>> -<<if $slaves[$i].dick > 0>> +<<if $slaves[_i].dick > 0>> <<set $showEncyclopedia = 1, $encyclopedia = "Gender">> <</if>> -<<run App.UI.SlaveInteract.placeInLine($slaves[$i])>> +<<run App.UI.SlaveInteract.placeInLine($slaves[_i])>> <p align="center"> <<if $cheatMode == 1>> @@ -67,7 +67,7 @@ </span> <span class='slave-name'> - $slaves[$i].slaveName + $slaves[_i].slaveName </span> <span id="nextSlave" style="font-weight:bold"> @@ -79,21 +79,21 @@ </p> <button class="tablinks" onclick="App.UI.tabbar.openTab(event, 'Description')" id="tab Description">Description</button> <button class="tablinks" onclick="App.UI.tabbar.openTab(event, 'Location')" id="tab Location">Location</button> -<button class="tablinks" onclick="App.UI.tabbar.openTab(event, 'Appearance'), App.UI.Wardrobe.refreshAll(V.slaves[V.i])" id="tab Appearance">Appearance</button> +<button class="tablinks" onclick="App.UI.tabbar.openTab(event, 'Appearance'), App.UI.Wardrobe.refreshAll(V.slaves[V.slaveIndices[V.activeSlave.ID]])" id="tab Appearance">Appearance</button> <button class="tablinks" onclick="App.UI.tabbar.openTab(event, 'PhysicalRegimen')" id="tab PhysicalRegimen">Physical Regimen</button> <button class="tablinks" onclick="App.UI.tabbar.openTab(event, 'Rules')" id="tab Rules">Rules</button> <button class="tablinks" onclick="App.UI.tabbar.openTab(event, 'Financial')" id="tab Financial">Financial</button> -<button class="tablinks" onclick="App.UI.tabbar.openTab(event, 'Customize'), App.UI.SlaveInteract.custom(V.slaves[V.i])" id="tab Customize">Customize</button> +<button class="tablinks" onclick="App.UI.tabbar.openTab(event, 'Customize'), App.UI.SlaveInteract.custom(V.slaves[V.slaveIndices[V.activeSlave.ID]])" id="tab Customize">Customize</button> <<if $familyTesting == 1>> - <button class="tablinks" onclick="App.UI.tabbar.openTab(event, 'FamilyTab'), renderFamilyTree(V.slaves, V.slaves[V.i].ID)" id="tab FamilyTab">Family</button> + <button class="tablinks" onclick="App.UI.tabbar.openTab(event, 'FamilyTab'), renderFamilyTree(V.slaves, V.slaves[V.slaveIndices[V.activeSlave.ID]].ID)" id="tab FamilyTab">Family</button> <</if>> <div id="artFrame"> <<if $seeImages == 1 && $eventDescription != 1>> <<if $imageChoice == 1>> - <div class="imageRef lrgVector"><div class="mask"> </div><<= SlaveArt($slaves[$i], 3, 0)>></div> + <div class="imageRef lrgVector"><div class="mask"> </div><<= SlaveArt($slaves[_i], 3, 0)>></div> <<else>> - <div class="imageRef lrgRender"><div class="mask"> </div><<= SlaveArt($slaves[$i], 3, 0)>></div> + <div class="imageRef lrgRender"><div class="mask"> </div><<= SlaveArt($slaves[_i], 3, 0)>></div> <</if>> <</if>> </div> @@ -139,21 +139,21 @@ <div class="content"> <p> Take slave to another room: - [[Auto salon|Salon][$degradation = 0,$primaryHairColor = "",$secondaryHairColor = "",$primaryEarColor = "",$secondaryEarColor = "",$primaryTailColor = "",$secondaryTailColor = "",$artificialEyeColor = "",$artificialEyeShape = "",$artificialEyeFill = "",$tattooChoice = "",$piercingLevel = ""]] - | [[Body mod studio|Body Modification][$degradation = 0, $tattooChoice = undefined]] - | [[Remote surgery|Remote Surgery][$degradation = 0]] - <<if $prostheticsUpgrade > 0>>| [[Configure cybernetics|Prosthetics Configuration][$prostheticsConfig = "main"]]<</if>> + [[Auto salon|Salon][$activeSlave = $slaves[_i], $degradation = 0,$primaryHairColor = "",$secondaryHairColor = "",$primaryEarColor = "",$secondaryEarColor = "",$primaryTailColor = "",$secondaryTailColor = "",$artificialEyeColor = "",$artificialEyeShape = "",$artificialEyeFill = "",$tattooChoice = "",$piercingLevel = ""]] + | [[Body mod studio|Body Modification][$activeSlave = $slaves[_i], $degradation = 0, $tattooChoice = undefined]] + | [[Remote surgery|Remote Surgery][$activeSlave = $slaves[_i], $degradation = 0]] + <<if $prostheticsUpgrade > 0>>| [[$activeSlave = $slaves[_i], Configure cybernetics|Prosthetics Configuration][$prostheticsConfig = "main"]]<</if>> <div id="miniscene"></div> <span id="useSlave"></span> <script> - console.log(V.i, V.slaves[V.i]); - App.UI.SlaveInteract.useSlaveDisplay(V.slaves[V.i]); + console.log(V.i, V.slaves[V.slaveIndices[V.activeSlave.ID]]); + App.UI.SlaveInteract.useSlaveDisplay(V.slaves[V.slaveIndices[V.activeSlave.ID]]); </script> </p> <p> - <<switch $slaves[$i].assignment>> + <<switch $slaves[_i].assignment>> <<case "recover from surgery">> //$He is recovering from surgery this week// <<case "guard you">> @@ -189,7 +189,7 @@ /* CAN BE REASSIGNED */ <span id="assignmentLinks"></span> - <script>App.UI.SlaveInteract.assignmentBlock("assignmentLinks", V.slaves[V.i])</script> + <script>App.UI.SlaveInteract.assignmentBlock("assignmentLinks", V.slaves[V.slaveIndices[V.activeSlave.ID]])</script> <<set _numFacilities = $brothel+$club+$dairy+$farmyard+$servantsQuarters+$masterSuite+$spa+$nursery+$clinic+$schoolroom+$cellblock+$arcade+$HGSuite>> @@ -198,17 +198,17 @@ <</if>> /* closes _numFacilities */ <div id="fucktoypref"></div> - <script>App.UI.SlaveInteract.fucktoyPref(V.slaves[V.i])</script> + <script>App.UI.SlaveInteract.fucktoyPref(V.slaves[V.slaveIndices[V.activeSlave.ID]])</script> <</switch>> /* END CAN BE REASSIGNED */ - <<if $slaves[$i].assignment == "whore" || $slaves[$i].assignment == "work in the brothel">> - <br>Whoring Target: <strong><span id="whoreClass"><<if !$slaves[$i].whoreClass>>auto<<elseif $slaves[$i].whoreClass == 1>>the lower class<<elseif $slaves[$i].whoreClass == 2>>the middle class<<elseif $slaves[$i].whoreClass == 3>>the upper class<<elseif $slaves[$i].whoreClass == 4>>millionaires<<else>>THERE HAS BEEN AN ERROR<</if>></span></strong>. //This is the highest class they are allowed to service, when eligible// - <<link "Auto">><<set $slaves[$i].whoreClass = 0>><<replace "#whoreClass">>auto<</replace>><</link>> | - <<link "Lower Class">><<set $slaves[$i].whoreClass = 1>><<replace "#whoreClass">>the lower class<</replace>><</link>> | - <<link "Middle Class">><<set $slaves[$i].whoreClass = 2>><<replace "#whoreClass">>the middle class<</replace>><</link>> | - <<link "Upper Class">><<set $slaves[$i].whoreClass = 3>><<replace "#whoreClass">>the upper class<</replace>><</link>> | - <<link "Millionaires">><<set $slaves[$i].whoreClass = 4>><<replace "#whoreClass">>millionaires<</replace>><</link>> + <<if $slaves[_i].assignment == "whore" || $slaves[_i].assignment == "work in the brothel">> + <br>Whoring Target: <strong><span id="whoreClass"><<if !$slaves[_i].whoreClass>>auto<<elseif $slaves[_i].whoreClass == 1>>the lower class<<elseif $slaves[_i].whoreClass == 2>>the middle class<<elseif $slaves[_i].whoreClass == 3>>the upper class<<elseif $slaves[_i].whoreClass == 4>>millionaires<<else>>THERE HAS BEEN AN ERROR<</if>></span></strong>. //This is the highest class they are allowed to service, when eligible// + <<link "Auto">><<set $slaves[_i].whoreClass = 0>><<replace "#whoreClass">>auto<</replace>><</link>> | + <<link "Lower Class">><<set $slaves[_i].whoreClass = 1>><<replace "#whoreClass">>the lower class<</replace>><</link>> | + <<link "Middle Class">><<set $slaves[_i].whoreClass = 2>><<replace "#whoreClass">>the middle class<</replace>><</link>> | + <<link "Upper Class">><<set $slaves[_i].whoreClass = 3>><<replace "#whoreClass">>the upper class<</replace>><</link>> | + <<link "Millionaires">><<set $slaves[_i].whoreClass = 4>><<replace "#whoreClass">>millionaires<</replace>><</link>> <</if>> </p> </div> @@ -220,52 +220,52 @@ <h3>Appearance</h3> <span id="clothes"></span> - /*<script>App.UI.Wardrobe.clothes(V.slaves[V.i])</script>*/ + /*<script>App.UI.Wardrobe.clothes(V.slaves[V.slaveIndices[V.activeSlave.ID]])</script>*/ - <<if $slaves[$i].fuckdoll == 0>> + <<if $slaves[_i].fuckdoll == 0>> <span id="collar"></span> - /*<script>App.UI.Wardrobe.collar(V.slaves[V.i])</script>*/ + /*<script>App.UI.Wardrobe.collar(V.slaves[V.slaveIndices[V.activeSlave.ID]])</script>*/ <span id="armAccessory"></span> - /*<script>App.UI.Wardrobe.armAccessory(V.slaves[V.i])</script>*/ + /*<script>App.UI.Wardrobe.armAccessory(V.slaves[V.slaveIndices[V.activeSlave.ID]])</script>*/ - <<if hasAnyLegs($slaves[$i])>> + <<if hasAnyLegs($slaves[_i])>> <span id="shoes"></span> - /*<script>App.UI.Wardrobe.shoes(V.slaves[V.i])</script>*/ + /*<script>App.UI.Wardrobe.shoes(V.slaves[V.slaveIndices[V.activeSlave.ID]])</script>*/ <span id="legAccessory"></span> - /*<script>App.UI.Wardrobe.legAccessory(V.slaves[V.i])</script>*/ + /*<script>App.UI.Wardrobe.legAccessory(V.slaves[V.slaveIndices[V.activeSlave.ID]])</script>*/ <</if>> <span id="bellyAccessory"></span> - /*<script>App.UI.Wardrobe.bellyAccessory(V.slaves[V.i])</script>*/ + /*<script>App.UI.Wardrobe.bellyAccessory(V.slaves[V.slaveIndices[V.activeSlave.ID]])</script>*/ <span id="buttplug"></span> - /*<script>App.UI.Wardrobe.buttplug(V.slaves[V.i])</script>*/ + /*<script>App.UI.Wardrobe.buttplug(V.slaves[V.slaveIndices[V.activeSlave.ID]])</script>*/ - <<if isItemAccessible("tail") && $slaves[$i].buttplug != "none">> + <<if isItemAccessible("tail") && $slaves[_i].buttplug != "none">> <span id="buttplugAttachment"></span> - /*<script>App.UI.Wardrobe.buttplugAttachment(V.slaves[V.i])</script>*/ + /*<script>App.UI.Wardrobe.buttplugAttachment(V.slaves[V.slaveIndices[V.activeSlave.ID]])</script>*/ <</if>> - <<if $slaves[$i].vagina > -1>> + <<if $slaves[_i].vagina > -1>> <span id="vaginalAccessory"></span> - /*<script>App.UI.Wardrobe.vaginalAccessory(V.slaves[V.i])</script>*/ + /*<script>App.UI.Wardrobe.vaginalAccessory(V.slaves[V.slaveIndices[V.activeSlave.ID]])</script>*/ <span id="vaginalAttachment"></span> - /*<script>App.UI.Wardrobe.vaginalAttachment(V.slaves[V.i])</script>*/ + /*<script>App.UI.Wardrobe.vaginalAttachment(V.slaves[V.slaveIndices[V.activeSlave.ID]])</script>*/ <</if>> - <<if $slaves[$i].dick > 0>> + <<if $slaves[_i].dick > 0>> <span id="dickAccessory"></span> - /*<script>App.UI.Wardrobe.dickAccessory(V.slaves[V.i])</script>*/ + /*<script>App.UI.Wardrobe.dickAccessory(V.slaves[V.slaveIndices[V.activeSlave.ID]])</script>*/ <</if>> <span id="chastity"></span> - /*<script>App.UI.Wardrobe.chastity(V.slaves[V.i])</script>*/ + /*<script>App.UI.Wardrobe.chastity(V.slaves[V.slaveIndices[V.activeSlave.ID]])</script>*/ <h3>Shopping</h3> <span id="shopping"></span> - <script>App.UI.Wardrobe.shopping(V.slaves[V.i])</script> + <script>App.UI.Wardrobe.shopping(V.slaves[V.slaveIndices[V.activeSlave.ID]])</script> <</if>> /* CLOSES FUCKDOLL CHECK */ </p> @@ -276,102 +276,102 @@ <div class="content"> <h3>Physical Regimen</h3> <span id="drugs"></span> - <script>App.UI.SlaveInteract.drugs(V.slaves[V.i])</script> + <script>App.UI.SlaveInteract.drugs(V.slaves[V.slaveIndices[V.activeSlave.ID]])</script> <span id="curatives"></span> - <script>App.UI.SlaveInteract.curatives(V.slaves[V.i])</script> + <script>App.UI.SlaveInteract.curatives(V.slaves[V.slaveIndices[V.activeSlave.ID]])</script> <span id="aphrodisiacs"></span> - <script>App.UI.SlaveInteract.aphrodisiacs(V.slaves[V.i])</script> + <script>App.UI.SlaveInteract.aphrodisiacs(V.slaves[V.slaveIndices[V.activeSlave.ID]])</script> <span id="fertilityblock"></span> - <script>App.UI.SlaveInteract.fertility(V.slaves[V.i])</script> + <script>App.UI.SlaveInteract.fertility(V.slaves[V.slaveIndices[V.activeSlave.ID]])</script> <span id="incubator"></span> - <script>App.UI.SlaveInteract.incubator(V.slaves[V.i])</script> + <script>App.UI.SlaveInteract.incubator(V.slaves[V.slaveIndices[V.activeSlave.ID]])</script> <span id="nursery"></span> - <script>App.UI.SlaveInteract.nursery(V.slaves[V.i])</script> + <script>App.UI.SlaveInteract.nursery(V.slaves[V.slaveIndices[V.activeSlave.ID]])</script> <<if $propOutcome == 1 && $arcologies[0].FSRestart != "unset">> - <<if $slaves[$i].breedingMark == 0 && $slaves[$i].fuckdoll == 0 && $slaves[$i].eggType == "human" && isFertile($slaves[$i]) && $slaves[$i].preg == 0>> + <<if $slaves[_i].breedingMark == 0 && $slaves[_i].fuckdoll == 0 && $slaves[_i].eggType == "human" && isFertile($slaves[_i]) && $slaves[_i].preg == 0>> <br> [[Breeder Eligibility Exam|BreedingTest]] <</if>> <</if>> <span id="bloating"></span> - <script>App.UI.SlaveInteract.bloating(V.slaves[V.i])</script> + <script>App.UI.SlaveInteract.bloating(V.slaves[V.slaveIndices[V.activeSlave.ID]])</script> Hormones: <strong><span id="hormones"> - <<if $slaves[$i].hormones == -2>>intensive male<<elseif $slaves[$i].hormones == -1>>male<<elseif $slaves[$i].hormones == 2>>intensive female<<elseif $slaves[$i].hormones == 1>>female<<else>>none<</if>></span></strong>. - <<if $slaves[$i].indentureRestrictions < 2>> - <<link "Intensive Female">><<set $slaves[$i].hormones = 2>><<replace "#hormones">>intensive female<</replace>><</link>> | + <<if $slaves[_i].hormones == -2>>intensive male<<elseif $slaves[_i].hormones == -1>>male<<elseif $slaves[_i].hormones == 2>>intensive female<<elseif $slaves[_i].hormones == 1>>female<<else>>none<</if>></span></strong>. + <<if $slaves[_i].indentureRestrictions < 2>> + <<link "Intensive Female">><<set $slaves[_i].hormones = 2>><<replace "#hormones">>intensive female<</replace>><</link>> | <</if>> - <<link "Female">><<set $slaves[$i].hormones = 1>><<replace "#hormones">>female<</replace>><</link>> | - <<link "None">><<set $slaves[$i].hormones = 0>><<replace "#hormones">>none<</replace>><</link>> | - <<link "Male">><<set $slaves[$i].hormones = -1>><<replace "#hormones">>male<</replace>><</link>> | - <<if $slaves[$i].indentureRestrictions < 2>> - <<link "Intensive Male">><<set $slaves[$i].hormones = -2>><<replace "#hormones">>intensive male<</replace>><</link>> + <<link "Female">><<set $slaves[_i].hormones = 1>><<replace "#hormones">>female<</replace>><</link>> | + <<link "None">><<set $slaves[_i].hormones = 0>><<replace "#hormones">>none<</replace>><</link>> | + <<link "Male">><<set $slaves[_i].hormones = -1>><<replace "#hormones">>male<</replace>><</link>> | + <<if $slaves[_i].indentureRestrictions < 2>> + <<link "Intensive Male">><<set $slaves[_i].hormones = -2>><<replace "#hormones">>intensive male<</replace>><</link>> <</if>> - <br>Diet: <strong><span id="diet">$slaves[$i].diet</span></strong>. - <<link "Healthy">><<set $slaves[$i].diet = "healthy">><<replace "#diet">>$slaves[$i].diet<</replace>><</link>> - <<if ($slaves[$i].health.condition < 90 || $slaves[$i].chem >= 10) && ($dietCleanse == 1)>> - | <<link "Cleanse">><<set $slaves[$i].diet = "cleansing">><<replace "#diet">>$slaves[$i].diet<</replace>><</link>> + <br>Diet: <strong><span id="diet">$slaves[_i].diet</span></strong>. + <<link "Healthy">><<set $slaves[_i].diet = "healthy">><<replace "#diet">>$slaves[_i].diet<</replace>><</link>> + <<if ($slaves[_i].health.condition < 90 || $slaves[_i].chem >= 10) && ($dietCleanse == 1)>> + | <<link "Cleanse">><<set $slaves[_i].diet = "cleansing">><<replace "#diet">>$slaves[_i].diet<</replace>><</link>> <<elseif ($dietCleanse == 1)>> | //$He is already healthy// <</if>> - <<if ($slaves[$i].balls > 0) && ($cumProDiet == 1)>> - | <<link "Cum production">><<set $slaves[$i].diet = "cum production">><<replace "#diet">>$slaves[$i].diet<</replace>><</link>> + <<if ($slaves[_i].balls > 0) && ($cumProDiet == 1)>> + | <<link "Cum production">><<set $slaves[_i].diet = "cum production">><<replace "#diet">>$slaves[_i].diet<</replace>><</link>> <</if>> - <<if isFertile($slaves[$i]) && $slaves[$i].preg == 0 && ($dietFertility == 1)>> - | <<link "Fertility">><<set $slaves[$i].diet = "fertility">><<replace "#diet">>$slaves[$i].diet<</replace>><</link>> + <<if isFertile($slaves[_i]) && $slaves[_i].preg == 0 && ($dietFertility == 1)>> + | <<link "Fertility">><<set $slaves[_i].diet = "fertility">><<replace "#diet">>$slaves[_i].diet<</replace>><</link>> <</if>> - <<if ($slaves[$i].weight >= -95)>> - | <<link "Lose weight">><<set $slaves[$i].diet = "restricted">><<replace "#diet">>$slaves[$i].diet<</replace>><</link>> + <<if ($slaves[_i].weight >= -95)>> + | <<link "Lose weight">><<set $slaves[_i].diet = "restricted">><<replace "#diet">>$slaves[_i].diet<</replace>><</link>> <<else>> | //$He is already underweight// <</if>> - <<if $slaves[$i].weight <= 200>> - | <<link "Fatten">><<set $slaves[$i].diet = "fattening">><<replace "#diet">>$slaves[$i].diet<</replace>><</link>> + <<if $slaves[_i].weight <= 200>> + | <<link "Fatten">><<set $slaves[_i].diet = "fattening">><<replace "#diet">>$slaves[_i].diet<</replace>><</link>> <<else>> | //$He is already extremely overweight// <</if>> <<if $feeder == 1>> - | <<link "Estrogen enriched">><<set $slaves[$i].diet = "XX">><<replace "#diet">>$slaves[$i].diet<</replace>><</link>> - | <<link "Testosterone enriched">><<set $slaves[$i].diet = "XY">><<replace "#diet">>$slaves[$i].diet<</replace>><</link>> - <<if $dietXXY == 1 && $slaves[$i].balls > 0 && ($slaves[$i].ovaries == 1 || $slaves[$i].mpreg == 1)>> - | <<link "Herm hormone blend">><<set $slaves[$i].diet = "XXY">><<replace "#diet">>$slaves[$i].diet<</replace>><</link>> + | <<link "Estrogen enriched">><<set $slaves[_i].diet = "XX">><<replace "#diet">>$slaves[_i].diet<</replace>><</link>> + | <<link "Testosterone enriched">><<set $slaves[_i].diet = "XY">><<replace "#diet">>$slaves[_i].diet<</replace>><</link>> + <<if $dietXXY == 1 && $slaves[_i].balls > 0 && ($slaves[_i].ovaries == 1 || $slaves[_i].mpreg == 1)>> + | <<link "Herm hormone blend">><<set $slaves[_i].diet = "XXY">><<replace "#diet">>$slaves[_i].diet<</replace>><</link>> <</if>> <</if>> - <<if ($slaves[$i].muscles <= 95) && !isAmputee($slaves[$i])>> - | <<link "Build muscle">><<set $slaves[$i].diet = "muscle building">><<replace "#diet">>$slaves[$i].diet<</replace>><</link>> - <<elseif !isAmputee($slaves[$i])>> + <<if ($slaves[_i].muscles <= 95) && !isAmputee($slaves[_i])>> + | <<link "Build muscle">><<set $slaves[_i].diet = "muscle building">><<replace "#diet">>$slaves[_i].diet<</replace>><</link>> + <<elseif !isAmputee($slaves[_i])>> | //$He is maintaining $his enormous musculature// <<else>> | //$He has no limbs and thus can't effectively build muscle// <</if>> - <<if ($slaves[$i].muscles > 5 || $slaves[$i].fuckdoll == 0) && canWalk($slaves[$i])>> - | <<link "Slim down">><<set $slaves[$i].diet = "slimming">><<replace "#diet">>$slaves[$i].diet<</replace>><</link>> - <<elseif !canWalk($slaves[$i])>> + <<if ($slaves[_i].muscles > 5 || $slaves[_i].fuckdoll == 0) && canWalk($slaves[_i])>> + | <<link "Slim down">><<set $slaves[_i].diet = "slimming">><<replace "#diet">>$slaves[_i].diet<</replace>><</link>> + <<elseif !canWalk($slaves[_i])>> | //$He can't move and thus can't trim down// - <<elseif $slaves[$i].fuckdoll > 0>> + <<elseif $slaves[_i].fuckdoll > 0>> | //$He has no muscles left to lose// <</if>> - <br>Diet Base: <strong><span id="dietBase"><<if $slaves[$i].dietCum == 2>>cum based<<elseif ($slaves[$i].dietCum == 1) && ($slaves[$i].dietMilk == 0)>>cum added<<elseif ($slaves[$i].dietCum == 1) && ($slaves[$i].dietMilk == 1)>>cum and milk added<<elseif ($slaves[$i].dietMilk == 1) && ($slaves[$i].dietCum == 0)>>milk added<<elseif ($slaves[$i].dietMilk == 2)>>milk based<<elseif ($slaves[$i].dietCum == 0) && ($slaves[$i].dietMilk == 0)>>normal<<else>>THERE HAS BEEN AN ERROR<</if>></span></strong>. - <<link "Normal">><<set $slaves[$i].dietCum = 0>><<set $slaves[$i].dietMilk = 0>><<replace "#dietBase">>normal<</replace>><</link>> | - <<link "Cum added">><<set $slaves[$i].dietCum = 1>><<set $slaves[$i].dietMilk = 0>><<replace "#dietBase">>cum added<</replace>><</link>> | - <<link "Milk added">><<set $slaves[$i].dietCum = 0>><<set $slaves[$i].dietMilk = 1>><<replace "#dietBase">>milk added<</replace>><</link>> | - <<link "Cum & milk added">><<set $slaves[$i].dietCum = 1>><<set $slaves[$i].dietMilk = 1>><<replace "#dietBase">>cum & milk added<</replace>><</link>> | - <<link "Cum based">><<set $slaves[$i].dietCum = 2>><<set $slaves[$i].dietMilk = 0>><<replace "#dietBase">>cum based<</replace>><</link>> | - <<link "Milk based">><<set $slaves[$i].dietCum = 0>><<set $slaves[$i].dietMilk = 2>><<replace "#dietBase">>milk based<</replace>><</link>> + <br>Diet Base: <strong><span id="dietBase"><<if $slaves[_i].dietCum == 2>>cum based<<elseif ($slaves[_i].dietCum == 1) && ($slaves[_i].dietMilk == 0)>>cum added<<elseif ($slaves[_i].dietCum == 1) && ($slaves[_i].dietMilk == 1)>>cum and milk added<<elseif ($slaves[_i].dietMilk == 1) && ($slaves[_i].dietCum == 0)>>milk added<<elseif ($slaves[_i].dietMilk == 2)>>milk based<<elseif ($slaves[_i].dietCum == 0) && ($slaves[_i].dietMilk == 0)>>normal<<else>>THERE HAS BEEN AN ERROR<</if>></span></strong>. + <<link "Normal">><<set $slaves[_i].dietCum = 0>><<set $slaves[_i].dietMilk = 0>><<replace "#dietBase">>normal<</replace>><</link>> | + <<link "Cum added">><<set $slaves[_i].dietCum = 1>><<set $slaves[_i].dietMilk = 0>><<replace "#dietBase">>cum added<</replace>><</link>> | + <<link "Milk added">><<set $slaves[_i].dietCum = 0>><<set $slaves[_i].dietMilk = 1>><<replace "#dietBase">>milk added<</replace>><</link>> | + <<link "Cum & milk added">><<set $slaves[_i].dietCum = 1>><<set $slaves[_i].dietMilk = 1>><<replace "#dietBase">>cum & milk added<</replace>><</link>> | + <<link "Cum based">><<set $slaves[_i].dietCum = 2>><<set $slaves[_i].dietMilk = 0>><<replace "#dietBase">>cum based<</replace>><</link>> | + <<link "Milk based">><<set $slaves[_i].dietCum = 0>><<set $slaves[_i].dietMilk = 2>><<replace "#dietBase">>milk based<</replace>><</link>> <<if $arcologies[0].FSHedonisticDecadenceResearch == 1>> - <br>Solid Slave Food Access: <strong><span id="snacks"><<if $slaves[$i].onDiet == 0>>Free to stuff $himself.<<else>>On a strict diet.<</if>></span></strong> - <<link "No access">><<set $slaves[$i].onDiet = 1>><<replace "#snacks">>On a strict diet.<</replace>><</link>> | - <<link "Full access">><<set $slaves[$i].onDiet = 0>><<replace "#snacks">>Free to stuff $himself.<</replace>><</link>> + <br>Solid Slave Food Access: <strong><span id="snacks"><<if $slaves[_i].onDiet == 0>>Free to stuff $himself.<<else>>On a strict diet.<</if>></span></strong> + <<link "No access">><<set $slaves[_i].onDiet = 1>><<replace "#snacks">>On a strict diet.<</replace>><</link>> | + <<link "Full access">><<set $slaves[_i].onDiet = 0>><<replace "#snacks">>Free to stuff $himself.<</replace>><</link>> <</if>> </div> </div> @@ -380,165 +380,165 @@ <div class="content"> <p> <<if $universalRulesImpregnation == "HG" && $seePreg != 0>> - <<if $slaves[$i].HGExclude == 0>> - Will be bred by the Head Girl when fertile. <<link "Exempt $him" "Slave Interact">><<set $slaves[$i].HGExclude = 1>><</link>> + <<if $slaves[_i].HGExclude == 0>> + Will be bred by the Head Girl when fertile. <<link "Exempt $him" "Slave Interact">><<set $slaves[_i].HGExclude = 1>><</link>> <<else>> - Will not be bred by the Head Girl when fertile. <<link "Include $him" "Slave Interact">><<set $slaves[$i].HGExclude = 0>><</link>> + Will not be bred by the Head Girl when fertile. <<link "Include $him" "Slave Interact">><<set $slaves[_i].HGExclude = 0>><</link>> <</if>> <</if>> </p> <p> - <<if $slaves[$i].useRulesAssistant == 0>> + <<if $slaves[_i].useRulesAssistant == 0>> <span class="gray"> ''Not subject'' to the Rules Assistant. </span> <<link "Include $him" "Slave Interact">> - <<set $slaves[$i].useRulesAssistant = 1>> + <<set $slaves[_i].useRulesAssistant = 1>> <</link>> <<else>> __Rules Assistant:__ [[Rules Assistant Options|Rules Assistant]] - <<if (def $slaves[$i].currentRules) && ($slaves[$i].currentRules.length > 0)>> + <<if (def $slaves[_i].currentRules) && ($slaves[_i].currentRules.length > 0)>> <ul style="margin:0"> - <<= $defaultRules.filter(x => ruleApplied($slaves[$i], x)).map(x => `<li>Rule "${x.name}" applied</li>`).join(" ") >> + <<= $defaultRules.filter(x => ruleApplied($slaves[_i], x)).map(x => `<li>Rule "${x.name}" applied</li>`).join(" ") >> </ul> <<else>> | <</if>> <span style="font-style:italic"> <<link "Apply rules">> - <<run DefaultRules($slaves[$i])>> + <<run DefaultRules($slaves[_i])>> <<set $returnTo = "Slave Interact">> <<goto "AS Dump">> <</link>> </span> | <<link "Exempt $him" "Slave Interact">> - <<set $slaves[$i].useRulesAssistant = 0>> + <<set $slaves[_i].useRulesAssistant = 0>> <</link>> <</if>> </p> - <<if $slaves[$i].fuckdoll > 0>> + <<if $slaves[_i].fuckdoll > 0>> //Rules have little meaning for living sex toys// <<else>> <<set _visibleSlaves = $slaves.filter(s => assignmentVisible(s) && (s.assignment != "be your Head Girl" || $HGSuite != 1) && (s.assignment != "guard you" || $dojo <= 1)), $dormitoryPopulation = _visibleSlaves.filter(s => s.rules.living != "luxurious").length, $roomsPopulation = _visibleSlaves.length - $dormitoryPopulation - _visibleSlaves.filter(s => s.rules.living == "luxurious" && s.relationship >= 4).length * 0.5>> - Living standard: ''<span id="livingRules">$slaves[$i].rules.living</span>.'' - <<if setup.facilityCareers.includes($slaves[$i].assignment)>> + Living standard: ''<span id="livingRules">$slaves[_i].rules.living</span>.'' + <<if setup.facilityCareers.includes($slaves[_i].assignment)>> //$His living conditions are managed by $his assignment.// - <<elseif ($slaves[$i].assignment == "be your Head Girl") && ($HGSuite == 1)>> + <<elseif ($slaves[_i].assignment == "be your Head Girl") && ($HGSuite == 1)>> //$He has $his own little luxurious room in the penthouse with everything $he needs to be a proper Head Girl.// - <<elseif ($slaves[$i].assignment == "guard you") && ($dojo > 1)>> + <<elseif ($slaves[_i].assignment == "guard you") && ($dojo > 1)>> //$He has a comfortable room in the armory to call $his own.// <<else>> - <<link "Spare">><<set $slaves[$i].rules.living = "spare">><<replace "#livingRules">>$slaves[$i].rules.living<</replace>><</link>> | - <<link "Normal">><<set $slaves[$i].rules.living = "normal">><<replace "#livingRules">>$slaves[$i].rules.living<</replace>><</link>> | - <<if $roomsPopulation <= $rooms-0.5>><<link "Luxurious">><<set $slaves[$i].rules.living = "luxurious">><<replace "#livingRules">>$slaves[$i].rules.living<</replace>><</link>><<else>>//No luxurious rooms available//<</if>> + <<link "Spare">><<set $slaves[_i].rules.living = "spare">><<replace "#livingRules">>$slaves[_i].rules.living<</replace>><</link>> | + <<link "Normal">><<set $slaves[_i].rules.living = "normal">><<replace "#livingRules">>$slaves[_i].rules.living<</replace>><</link>> | + <<if $roomsPopulation <= $rooms-0.5>><<link "Luxurious">><<set $slaves[_i].rules.living = "luxurious">><<replace "#livingRules">>$slaves[_i].rules.living<</replace>><</link>><<else>>//No luxurious rooms available//<</if>> <</if>> - <br>Typical punishment: ''<span id="standardPunishment">$slaves[$i].rules.punishment</span>.'' - <<link "Confinement">><<set $slaves[$i].rules.punishment = "confinement">><<replace "#standardPunishment">>$slaves[$i].rules.punishment<</replace>><</link>> | - <<link "Whipping">><<set $slaves[$i].rules.punishment = "whipping">><<replace "#standardPunishment">>$slaves[$i].rules.punishment<</replace>><</link>> | - <<link "Chastity">><<set $slaves[$i].rules.punishment = "chastity">><<replace "#standardPunishment">>$slaves[$i].rules.punishment<</replace>><</link>> | - <<link "Situational">><<set $slaves[$i].rules.punishment = "situational">><<replace "#standardPunishment">>$slaves[$i].rules.punishment<</replace>><</link>> - <br>Typical reward: ''<span id="standardReward">$slaves[$i].rules.reward</span>.'' - <<link "Relaxation">><<set $slaves[$i].rules.reward = "relaxation">><<replace "#standardReward">>$slaves[$i].rules.reward<</replace>><</link>> | - <<link "Drugs">><<set $slaves[$i].rules.reward = "drugs">><<replace "#standardReward">>$slaves[$i].rules.reward<</replace>><</link>> | - <<link "Orgasm">><<set $slaves[$i].rules.reward = "orgasm">><<replace "#standardReward">>$slaves[$i].rules.reward<</replace>><</link>> | - <<link "Situational">><<set $slaves[$i].rules.reward = "situational">><<replace "#standardReward">>$slaves[$i].rules.reward<</replace>><</link>> - - <<if setup.facilityHeads.includes($slaves[$i].assignment)>> - <<if $slaves[$i].lactation != 2>> - <br>Lactation maintenance for facility heads: ''<span id="lactationRules">$slaves[$i].rules.lactation</span>.'' - <<link "Left alone">><<set $slaves[$i].rules.lactation = "none">><<replace "#lactationRules">>$slaves[$i].rules.lactation<</replace>><</link>> | - <<if $slaves[$i].lactation == 0>> - <<link "Induce lactation">><<set $slaves[$i].rules.lactation = "induce">><<replace "#lactationRules">>$slaves[$i].rules.lactation<</replace>><</link>> + <br>Typical punishment: ''<span id="standardPunishment">$slaves[_i].rules.punishment</span>.'' + <<link "Confinement">><<set $slaves[_i].rules.punishment = "confinement">><<replace "#standardPunishment">>$slaves[_i].rules.punishment<</replace>><</link>> | + <<link "Whipping">><<set $slaves[_i].rules.punishment = "whipping">><<replace "#standardPunishment">>$slaves[_i].rules.punishment<</replace>><</link>> | + <<link "Chastity">><<set $slaves[_i].rules.punishment = "chastity">><<replace "#standardPunishment">>$slaves[_i].rules.punishment<</replace>><</link>> | + <<link "Situational">><<set $slaves[_i].rules.punishment = "situational">><<replace "#standardPunishment">>$slaves[_i].rules.punishment<</replace>><</link>> + <br>Typical reward: ''<span id="standardReward">$slaves[_i].rules.reward</span>.'' + <<link "Relaxation">><<set $slaves[_i].rules.reward = "relaxation">><<replace "#standardReward">>$slaves[_i].rules.reward<</replace>><</link>> | + <<link "Drugs">><<set $slaves[_i].rules.reward = "drugs">><<replace "#standardReward">>$slaves[_i].rules.reward<</replace>><</link>> | + <<link "Orgasm">><<set $slaves[_i].rules.reward = "orgasm">><<replace "#standardReward">>$slaves[_i].rules.reward<</replace>><</link>> | + <<link "Situational">><<set $slaves[_i].rules.reward = "situational">><<replace "#standardReward">>$slaves[_i].rules.reward<</replace>><</link>> + + <<if setup.facilityHeads.includes($slaves[_i].assignment)>> + <<if $slaves[_i].lactation != 2>> + <br>Lactation maintenance for facility heads: ''<span id="lactationRules">$slaves[_i].rules.lactation</span>.'' + <<link "Left alone">><<set $slaves[_i].rules.lactation = "none">><<replace "#lactationRules">>$slaves[_i].rules.lactation<</replace>><</link>> | + <<if $slaves[_i].lactation == 0>> + <<link "Induce lactation">><<set $slaves[_i].rules.lactation = "induce">><<replace "#lactationRules">>$slaves[_i].rules.lactation<</replace>><</link>> <<else>> - <<link "Maintain lactation">><<set $slaves[$i].rules.lactation = "maintain">><<replace "#lactationRules">>$slaves[$i].rules.lactation<</replace>><</link>> + <<link "Maintain lactation">><<set $slaves[_i].rules.lactation = "maintain">><<replace "#lactationRules">>$slaves[_i].rules.lactation<</replace>><</link>> <</if>> <</if>> <</if>> <br><br>Non-assignment orgasm rules: <div style="text-indent:2em"> - Masturbation is ''<span id="relMasturbation"><<if $slaves[$i].rules.release.masturbation === 1>>allowed<<else>>forbidden<</if>></span>.'' - <<link "Allow">><<set $slaves[$i].rules.release.masturbation = 1>><<replace "#relMasturbation">>allowed<</replace>><</link>> | - <<link "Forbid">><<set $slaves[$i].rules.release.masturbation = 0>><<replace "#relMasturbation">>forbidden<</replace>><</link>> + Masturbation is ''<span id="relMasturbation"><<if $slaves[_i].rules.release.masturbation === 1>>allowed<<else>>forbidden<</if>></span>.'' + <<link "Allow">><<set $slaves[_i].rules.release.masturbation = 1>><<replace "#relMasturbation">>allowed<</replace>><</link>> | + <<link "Forbid">><<set $slaves[_i].rules.release.masturbation = 0>><<replace "#relMasturbation">>forbidden<</replace>><</link>> </div> <div style="text-indent:2em"> - Sex with romantic partner is ''<span id="relPartner"><<if $slaves[$i].rules.release.partner === 1>>allowed<<else>>forbidden<</if>></span>.'' - <<link "Allow">><<set $slaves[$i].rules.release.partner = 1>><<replace "#relPartner">>allowed<</replace>><</link>> | - <<link "Forbid">><<set $slaves[$i].rules.release.partner = 0>><<replace "#relPartner">>forbidden<</replace>><</link>> + Sex with romantic partner is ''<span id="relPartner"><<if $slaves[_i].rules.release.partner === 1>>allowed<<else>>forbidden<</if>></span>.'' + <<link "Allow">><<set $slaves[_i].rules.release.partner = 1>><<replace "#relPartner">>allowed<</replace>><</link>> | + <<link "Forbid">><<set $slaves[_i].rules.release.partner = 0>><<replace "#relPartner">>forbidden<</replace>><</link>> </div> <<if $seeIncest == 1>> <div style="text-indent:2em"> - Sex with close family is ''<span id="relFamily"><<if $slaves[$i].rules.release.family === 1>>allowed<<else>>forbidden<</if>></span>.'' - <<link "Allow">><<set $slaves[$i].rules.release.family = 1>><<replace "#relFamily">>allowed<</replace>><</link>> | - <<link "Forbid">><<set $slaves[$i].rules.release.family = 0>><<replace "#relFamily">>forbidden<</replace>><</link>> + Sex with close family is ''<span id="relFamily"><<if $slaves[_i].rules.release.family === 1>>allowed<<else>>forbidden<</if>></span>.'' + <<link "Allow">><<set $slaves[_i].rules.release.family = 1>><<replace "#relFamily">>allowed<</replace>><</link>> | + <<link "Forbid">><<set $slaves[_i].rules.release.family = 0>><<replace "#relFamily">>forbidden<</replace>><</link>> </div> <</if>> <div style="text-indent:2em"> - Sex with other slaves is ''<span id="relSlaves"><<if $slaves[$i].rules.release.slaves === 1>>allowed<<else>>forbidden<</if>></span>.'' - <<link "Allow">><<set $slaves[$i].rules.release.slaves = 1>><<replace "#relSlaves">>allowed<</replace>><</link>> | - <<link "Forbid">><<set $slaves[$i].rules.release.slaves = 0>><<replace "#relSlaves">>forbidden<</replace>><</link>> + Sex with other slaves is ''<span id="relSlaves"><<if $slaves[_i].rules.release.slaves === 1>>allowed<<else>>forbidden<</if>></span>.'' + <<link "Allow">><<set $slaves[_i].rules.release.slaves = 1>><<replace "#relSlaves">>allowed<</replace>><</link>> | + <<link "Forbid">><<set $slaves[_i].rules.release.slaves = 0>><<replace "#relSlaves">>forbidden<</replace>><</link>> </div> <div style="text-indent:2em"> - Routine sex with <<= properMaster()>> is ''<span id="relMaster"><<if $slaves[$i].rules.release.master === 1>>granted<<else>>denied<</if>></span>.'' - <<link "Grant">><<set $slaves[$i].rules.release.master = 1>><<replace "#relMaster">>granted<</replace>><</link>> | - <<link "Deny">><<set $slaves[$i].rules.release.master = 0>><<replace "#relMaster">>denied<</replace>><</link>> + Routine sex with <<= properMaster()>> is ''<span id="relMaster"><<if $slaves[_i].rules.release.master === 1>>granted<<else>>denied<</if>></span>.'' + <<link "Grant">><<set $slaves[_i].rules.release.master = 1>><<replace "#relMaster">>granted<</replace>><</link>> | + <<link "Deny">><<set $slaves[_i].rules.release.master = 0>><<replace "#relMaster">>denied<</replace>><</link>> </div> <</if>> - <<if $slaves[$i].clitPiercing == 3 || $slaves[$i].vaginalAccessory == "smart bullet vibrator">> + <<if $slaves[_i].clitPiercing == 3 || $slaves[_i].vaginalAccessory == "smart bullet vibrator">> <div> - <<if $slaves[$i].clitPiercing == 3>> - <<if $slaves[$i].dick < 1>> - $His smart clit piercing <<if $slaves[$i].vaginalAccessory == "smart bullet vibrator">>and smart bullet vibrator are<<else>>is<</if>> set to + <<if $slaves[_i].clitPiercing == 3>> + <<if $slaves[_i].dick < 1>> + $His smart clit piercing <<if $slaves[_i].vaginalAccessory == "smart bullet vibrator">>and smart bullet vibrator are<<else>>is<</if>> set to <<else>> - $His smart frenulum piercing <<if $slaves[$i].vaginalAccessory == "smart bullet vibrator">>and smart bullet vibrator are<<else>>is<</if>> set to + $His smart frenulum piercing <<if $slaves[_i].vaginalAccessory == "smart bullet vibrator">>and smart bullet vibrator are<<else>>is<</if>> set to <</if>> <<else>> $His smart bullet vibe is set to <</if>> - <strong><span id="setting">$slaves[$i].clitSetting</span></strong>. - <<link "Vanilla">><<set $slaves[$i].clitSetting = "vanilla">><<replace "#setting">>$slaves[$i].clitSetting<</replace>><</link>> - | <<link "Oral">><<set $slaves[$i].clitSetting = "oral">><<replace "#setting">>$slaves[$i].clitSetting<</replace>><</link>> - | <<link "Anal">><<set $slaves[$i].clitSetting = "anal">><<replace "#setting">>$slaves[$i].clitSetting<</replace>><</link>> - | <<link "Boobs">><<set $slaves[$i].clitSetting = "boobs">><<replace "#setting">>$slaves[$i].clitSetting<</replace>><</link>> - | <<link "Sub">><<set $slaves[$i].clitSetting = "submissive">><<replace "#setting">>$slaves[$i].clitSetting<</replace>><</link>> - | <<link "Dom">><<set $slaves[$i].clitSetting = "dom">><<replace "#setting">>$slaves[$i].clitSetting<</replace>><</link>> - | <<link "Humiliation">><<set $slaves[$i].clitSetting = "humiliation">><<replace "#setting">>$slaves[$i].clitSetting<</replace>><</link>> + <strong><span id="setting">$slaves[_i].clitSetting</span></strong>. + <<link "Vanilla">><<set $slaves[_i].clitSetting = "vanilla">><<replace "#setting">>$slaves[_i].clitSetting<</replace>><</link>> + | <<link "Oral">><<set $slaves[_i].clitSetting = "oral">><<replace "#setting">>$slaves[_i].clitSetting<</replace>><</link>> + | <<link "Anal">><<set $slaves[_i].clitSetting = "anal">><<replace "#setting">>$slaves[_i].clitSetting<</replace>><</link>> + | <<link "Boobs">><<set $slaves[_i].clitSetting = "boobs">><<replace "#setting">>$slaves[_i].clitSetting<</replace>><</link>> + | <<link "Sub">><<set $slaves[_i].clitSetting = "submissive">><<replace "#setting">>$slaves[_i].clitSetting<</replace>><</link>> + | <<link "Dom">><<set $slaves[_i].clitSetting = "dom">><<replace "#setting">>$slaves[_i].clitSetting<</replace>><</link>> + | <<link "Humiliation">><<set $slaves[_i].clitSetting = "humiliation">><<replace "#setting">>$slaves[_i].clitSetting<</replace>><</link>> <<if $seePreg != 0>> - | <<link "Preg">><<set $slaves[$i].clitSetting = "pregnancy">><<replace "#setting">>$slaves[$i].clitSetting<</replace>><</link>> + | <<link "Preg">><<set $slaves[_i].clitSetting = "pregnancy">><<replace "#setting">>$slaves[_i].clitSetting<</replace>><</link>> <</if>> - | <<link "Pain">><<set $slaves[$i].clitSetting = "masochist">><<replace "#setting">>$slaves[$i].clitSetting<</replace>><</link>> - | <<link "Sadism">><<set $slaves[$i].clitSetting = "sadist">><<replace "#setting">>$slaves[$i].clitSetting<</replace>><</link>> - | <<link "Men">><<set $slaves[$i].clitSetting = "men">><<replace "#setting">>$slaves[$i].clitSetting<</replace>><</link>> - | <<link "Anti-men">><<set $slaves[$i].clitSetting = "anti-men">><<replace "#setting">>$slaves[$i].clitSetting<</replace>><</link>> - | <<link "Women">><<set $slaves[$i].clitSetting = "women">><<replace "#setting">>$slaves[$i].clitSetting<</replace>><</link>> - | <<link "Anti-women">><<set $slaves[$i].clitSetting = "anti-women">><<replace "#setting">>$slaves[$i].clitSetting<</replace>><</link>> - | <<link "All sex">><<set $slaves[$i].clitSetting = "all">><<replace "#setting">>$slaves[$i].clitSetting<</replace>><</link>> - | <<link "No sex">><<set $slaves[$i].clitSetting = "none">><<replace "#setting">>$slaves[$i].clitSetting<</replace>><</link>> + | <<link "Pain">><<set $slaves[_i].clitSetting = "masochist">><<replace "#setting">>$slaves[_i].clitSetting<</replace>><</link>> + | <<link "Sadism">><<set $slaves[_i].clitSetting = "sadist">><<replace "#setting">>$slaves[_i].clitSetting<</replace>><</link>> + | <<link "Men">><<set $slaves[_i].clitSetting = "men">><<replace "#setting">>$slaves[_i].clitSetting<</replace>><</link>> + | <<link "Anti-men">><<set $slaves[_i].clitSetting = "anti-men">><<replace "#setting">>$slaves[_i].clitSetting<</replace>><</link>> + | <<link "Women">><<set $slaves[_i].clitSetting = "women">><<replace "#setting">>$slaves[_i].clitSetting<</replace>><</link>> + | <<link "Anti-women">><<set $slaves[_i].clitSetting = "anti-women">><<replace "#setting">>$slaves[_i].clitSetting<</replace>><</link>> + | <<link "All sex">><<set $slaves[_i].clitSetting = "all">><<replace "#setting">>$slaves[_i].clitSetting<</replace>><</link>> + | <<link "No sex">><<set $slaves[_i].clitSetting = "none">><<replace "#setting">>$slaves[_i].clitSetting<</replace>><</link>> </div> <</if>> - <<if $slaves[$i].voice != 0>> - <br>Speech rules: ''<span id="speechRules">$slaves[$i].rules.speech</span>.'' - <<link "Restrictive">><<set $slaves[$i].rules.speech = "restrictive">><<replace "#speechRules">>$slaves[$i].rules.speech<</replace>><</link>> | - <<link "Permissive">><<set $slaves[$i].rules.speech = "permissive">><<replace "#speechRules">>$slaves[$i].rules.speech<</replace>><</link>> - <<if $slaves[$i].accent > 0 && $slaves[$i].accent < 4>>| <<link "Accent elimination">><<set $slaves[$i].rules.speech = "accent elimination">><<replace "#speechRules">>$slaves[$i].rules.speech<</replace>><</link>> - <<elseif $slaves[$i].accent > 3>>| <<link "Language lessons">><<set $slaves[$i].rules.speech = "language lessons">><<replace "#speechRules">>$slaves[$i].rules.speech<</replace>><</link>> + <<if $slaves[_i].voice != 0>> + <br>Speech rules: ''<span id="speechRules">$slaves[_i].rules.speech</span>.'' + <<link "Restrictive">><<set $slaves[_i].rules.speech = "restrictive">><<replace "#speechRules">>$slaves[_i].rules.speech<</replace>><</link>> | + <<link "Permissive">><<set $slaves[_i].rules.speech = "permissive">><<replace "#speechRules">>$slaves[_i].rules.speech<</replace>><</link>> + <<if $slaves[_i].accent > 0 && $slaves[_i].accent < 4>>| <<link "Accent elimination">><<set $slaves[_i].rules.speech = "accent elimination">><<replace "#speechRules">>$slaves[_i].rules.speech<</replace>><</link>> + <<elseif $slaves[_i].accent > 3>>| <<link "Language lessons">><<set $slaves[_i].rules.speech = "language lessons">><<replace "#speechRules">>$slaves[_i].rules.speech<</replace>><</link>> <</if>> <</if>> <br> - Relationship rules: ''<span id="relationshipRules">$slaves[$i].rules.relationship</span>.'' - <<link "Restrictive">><<set $slaves[$i].rules.relationship = "restrictive">><<replace "#relationshipRules">>$slaves[$i].rules.relationship<</replace>><</link>> | - <<link "Just friends">><<set $slaves[$i].rules.relationship = "just friends">><<replace "#relationshipRules">>$slaves[$i].rules.relationship<</replace>><</link>> | - <<link "Permissive">><<set $slaves[$i].rules.relationship = "permissive">><<replace "#relationshipRules">>$slaves[$i].rules.relationship<</replace>><</link>> + Relationship rules: ''<span id="relationshipRules">$slaves[_i].rules.relationship</span>.'' + <<link "Restrictive">><<set $slaves[_i].rules.relationship = "restrictive">><<replace "#relationshipRules">>$slaves[_i].rules.relationship<</replace>><</link>> | + <<link "Just friends">><<set $slaves[_i].rules.relationship = "just friends">><<replace "#relationshipRules">>$slaves[_i].rules.relationship<</replace>><</link>> | + <<link "Permissive">><<set $slaves[_i].rules.relationship = "permissive">><<replace "#relationshipRules">>$slaves[_i].rules.relationship<</replace>><</link>> </div> </div> @@ -547,26 +547,26 @@ <<if $studio == 1>> <h3>Media</h3> - <<if $slaves[$i].porn.prestige == 3>> - //$He is so prestigious in the realm of $slaves[$i].porn.fameType porn that $his fame is self-sustaining.// - <<elseif $slaves[$i].porn.feed == 0>> - The media hub is not releasing highlights of $his sex life. [[Release|Slave Interact][$slaves[$i].porn.feed = 1]] + <<if $slaves[_i].porn.prestige == 3>> + //$He is so prestigious in the realm of $slaves[_i].porn.fameType porn that $his fame is self-sustaining.// + <<elseif $slaves[_i].porn.feed == 0>> + The media hub is not releasing highlights of $his sex life. [[Release|Slave Interact][$slaves[_i].porn.feed = 1]] <<else>> - The media hub is releasing highlights of $his sex life <<if $slaves[$i].porn.spending < 500>>to those who can find it<<elseif $slaves[$i].porn.spending < 2500>>on several websites<<elseif $slaves[$i].porn.spending > 5000>>through your old distributor<<else>>on many websites<</if>>. - <<if $slaves[$i].porn.spending == 0>> - [[Halt|Slave Interact][$slaves[$i].porn.feed = 0, $slaves[$i].porn.focus = "none"]] | - [[Publicize|Slave Interact][$slaves[$i].porn.spending += 1000]] + The media hub is releasing highlights of $his sex life <<if $slaves[_i].porn.spending < 500>>to those who can find it<<elseif $slaves[_i].porn.spending < 2500>>on several websites<<elseif $slaves[_i].porn.spending > 5000>>through your old distributor<<else>>on many websites<</if>>. + <<if $slaves[_i].porn.spending == 0>> + [[Halt|Slave Interact][$slaves[_i].porn.feed = 0, $slaves[_i].porn.focus = "none"]] | + [[Publicize|Slave Interact][$slaves[_i].porn.spending += 1000]] //Will cost <<print cashFormat(1000)>> weekly.// <<else>> - <<textbox "_newPornSpending" $slaves[$i].porn.spending>> weekly is spent to publicize them. [[Save changes|Slave Interact][$slaves[$i].porn.spending = Number(_newPornSpending) || 0]] | - [[Halt|Slave Interact][$slaves[$i].porn.feed = 0, $slaves[$i].porn.spending = 0, $slaves[$i].porn.focus = "none", $PCSlutContacts = 1]] | - <<if $slaves[$i].porn.spending < 5000>> - [[Increase|Slave Interact][$slaves[$i].porn.spending += 1000]] | + <<textbox "_newPornSpending" $slaves[_i].porn.spending>> weekly is spent to publicize them. [[Save changes|Slave Interact][$slaves[_i].porn.spending = Number(_newPornSpending) || 0]] | + [[Halt|Slave Interact][$slaves[_i].porn.feed = 0, $slaves[_i].porn.spending = 0, $slaves[_i].porn.focus = "none", $PCSlutContacts = 1]] | + <<if $slaves[_i].porn.spending < 5000>> + [[Increase|Slave Interact][$slaves[_i].porn.spending += 1000]] | <</if>> - [[Decrease|Slave Interact][$slaves[$i].porn.spending -= 1000]] - <<if $slaves[$i].porn.spending > 5000>><<set _warn = 1>><</if>> - <<set $slaves[$i].porn.spending = Number($slaves[$i].porn.spending) || 0>> - <<set $slaves[$i].porn.spending = Math.clamp(Math.ceil($slaves[$i].porn.spending/1000)*1000, 0, 5000)>> + [[Decrease|Slave Interact][$slaves[_i].porn.spending -= 1000]] + <<if $slaves[_i].porn.spending > 5000>><<set _warn = 1>><</if>> + <<set $slaves[_i].porn.spending = Number($slaves[_i].porn.spending) || 0>> + <<set $slaves[_i].porn.spending = Math.clamp(Math.ceil($slaves[_i].porn.spending/1000)*1000, 0, 5000)>> <<if _warn>><br>//Spending more than <<print cashFormat(5000)>> weekly will have no effect.//<</if>> <<if $PC.career == "escort">> <br> @@ -583,18 +583,18 @@ <<if $studioFeed == 1>> <br> - <<if $slaves[$i].porn.viewerCount < 100>> + <<if $slaves[_i].porn.viewerCount < 100>> $He lacks the fame in porn needed to discern what $his feed is getting tagged as. <<else>> - <<if $slaves[$i].porn.prestige > 0>> - $He is known for $slaves[$i].porn.fameType porn<<if $slaves[$i].porn.prestige > 1>> and viewers have grown to expect it from $him<</if>>. + <<if $slaves[_i].porn.prestige > 0>> + $He is known for $slaves[_i].porn.fameType porn<<if $slaves[_i].porn.prestige > 1>> and viewers have grown to expect it from $him<</if>>. <</if>> - <<if $slaves[$i].porn.focus == "none">> + <<if $slaves[_i].porn.focus == "none">> You are allowing $his viewers to guide the direction of $his content. <<else>> - You are focusing attention on the $slaves[$i].porn.focus aspect of $his content. + You are focusing attention on the $slaves[_i].porn.focus aspect of $his content. <</if>> - <<= App.Porn.genreChoiceLinks("Slave Interact", $slaves[$i])>> | [[No focus|Slave Interact][$slaves[$i].porn.focus = "none"]] + <<= App.Porn.genreChoiceLinks("Slave Interact", $slaves[_i])>> | [[No focus|Slave Interact][$slaves[_i].porn.focus = "none"]] <</if>> <</if>> <</if>> @@ -602,7 +602,7 @@ <h3>Financial</h3> <p> - <<SlaveExpenses $slaves[$i]>> + <<SlaveExpenses $slaves[_i]>> </p> <p> @@ -613,14 +613,14 @@ <</if>> <<if (_SL > 1)>> - <<if $slaves[$i].origin == "You bought $him from a body dump, completely broken." && ($week-$slaves[$i].weekAcquired <= 8)>> + <<if $slaves[_i].origin == "You bought $him from a body dump, completely broken." && ($week-$slaves[_i].weekAcquired <= 8)>> //A discarded slave must be kept for at least two months to ensure health before being sold.// | - <<elseif $slaves[$i].accent > 3>> + <<elseif $slaves[_i].accent > 3>> //$His lack of language and basic life skills is a red sign to most slave appraisers. $He must not act like a child to be sold without raising suspicion.// | <<else>> - <<link "Sell $him" "Sell Slave">><<run cashX(-500, "personalBusiness", $slaves[$i])>><</link>> //Listing $him for sale will cost <<print cashFormat(500)>>// | - <<if ($seeAge != 0) && ($slaves[$i].indenture < 1)>> - <<link "Retire $him" "SE retirement">><<set $retiree = $slaves[$i].ID, $retired = 1>><</link>> | + <<link "Sell $him" "Sell Slave">><<run cashX(-500, "personalBusiness", $slaves[_i])>><</link>> //Listing $him for sale will cost <<print cashFormat(500)>>// | + <<if ($seeAge != 0) && ($slaves[_i].indenture < 1)>> + <<link "Retire $him" "SE retirement">><<set $retiree = $slaves[_i].ID, $retired = 1>><</link>> | <</if>> <</if>> <<link "Discard $him" "Discard Confirm">><</link>> @@ -642,7 +642,7 @@ <div id="Customize" class="tabcontent"> <div class="content"> <span id="custom"></span> - <script>App.UI.SlaveInteract.custom (V.slaves[V.i])</script> + <script>App.UI.SlaveInteract.custom (V.slaves[V.slaveIndices[V.activeSlave.ID]])</script> /*<<include "Add custom descriptors">>*/ </div> -- GitLab