From 5cf46977631e65e0f54b57b1e4a2e7d0b268f6b1 Mon Sep 17 00:00:00 2001
From: lowercasedonkey <lowercasedonkey@gmail.com>
Date: Wed, 4 Mar 2020 18:32:24 -0500
Subject: [PATCH] revert as dump

---
 src/interaction/slaveInteract.js   |   5 +-
 src/uncategorized/slaveInteract.tw | 404 +++++++++++++++--------------
 2 files changed, 205 insertions(+), 204 deletions(-)

diff --git a/src/interaction/slaveInteract.js b/src/interaction/slaveInteract.js
index 090601ce87a..b074dd7901e 100644
--- a/src/interaction/slaveInteract.js
+++ b/src/interaction/slaveInteract.js
@@ -204,11 +204,10 @@ App.UI.SlaveInteract.assignmentBlock = function(blockId, slave) {
 	links.className = "choices";
 	links.appendChild(
 		App.UI.jobLinks.assignmentsFragment(
-			V.slaveIndices[slave.ID], "AS Dump",
+			V.slaveIndices[slave.ID], passage(),
 			(slave, assignment) => {
 				assignJob(slave, assignment),
-					V.activeSlave = slave,
-					V.returnTo = "Slave Interact";
+					V.activeSlave = slave;
 			}
 		)
 	);
diff --git a/src/uncategorized/slaveInteract.tw b/src/uncategorized/slaveInteract.tw
index 60f007fa6e9..df78e282ca9 100644
--- a/src/uncategorized/slaveInteract.tw
+++ b/src/uncategorized/slaveInteract.tw
@@ -2,8 +2,9 @@
 
 <<set $nextButton = "Confirm changes", $nextLink = "AS Dump", $returnTo = "Main">>
 <<set _SL = $slaves.length, _CL = $canines.length, _HL = $hooved.length, _FL = $felines.length>>
-<<setLocalPronouns $activeSlave>>
-<<run Enunciate($activeSlave)>>
+<script>V.i = V.slaveIndices[V.activeSlave.ID]</script>
+<<setLocalPronouns $slaves[$i]>>
+<<run Enunciate($slaves[$i])>>
 <style>
 .active {
 	background-color: grey;
@@ -13,8 +14,8 @@
 <<run App.UI.tabbar.handlePreSelectedTab($tabChoice.slaveInteract)>>
 
 
-<<if !assignmentVisible($activeSlave)>>
-	<<switch $activeSlave.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">>
@@ -45,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 $activeSlave.dick > 0>>
+<<if $slaves[$i].dick > 0>>
 	<<set $showEncyclopedia = 1, $encyclopedia = "Gender">>
 <</if>>
 
-<<run App.UI.SlaveInteract.placeInLine($activeSlave)>>
+<<run App.UI.SlaveInteract.placeInLine($slaves[$i])>>
 
 <p align="center">
 	<<if $cheatMode == 1>>
@@ -66,7 +67,7 @@
 	</span>
 	&nbsp;&nbsp;&nbsp;&nbsp;
 	<span class='slave-name'>
-		$activeSlave.slaveName
+		$slaves[$i].slaveName
 	</span>
 	&nbsp;&nbsp;&nbsp;&nbsp;
 	<span id="nextSlave" style="font-weight:bold">
@@ -78,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.activeSlave)" id="tab Appearance">Appearance</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, '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.activeSlave)" id="tab Customize">Customize</button>
+<button class="tablinks" onclick="App.UI.tabbar.openTab(event, 'Customize'), App.UI.SlaveInteract.custom(V.slaves[V.i])" id="tab Customize">Customize</button>
 <<if $familyTesting == 1>>
-	<button class="tablinks" onclick="App.UI.tabbar.openTab(event, 'FamilyTab'), renderFamilyTree(V.slaves, V.activeSlave.ID)" id="tab FamilyTab">Family</button>
+	<button class="tablinks" onclick="App.UI.tabbar.openTab(event, 'FamilyTab'), renderFamilyTree(V.slaves, V.slaves[V.i].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">&nbsp;</div><<= SlaveArt($activeSlave, 3, 0)>></div>
+			<div class="imageRef lrgVector"><div class="mask">&nbsp;</div><<= SlaveArt($slaves[$i], 3, 0)>></div>
 		<<else>>
-			<div class="imageRef lrgRender"><div class="mask">&nbsp;</div><<= SlaveArt($activeSlave, 3, 0)>></div>
+			<div class="imageRef lrgRender"><div class="mask">&nbsp;</div><<= SlaveArt($slaves[$i], 3, 0)>></div>
 		<</if>>
 	<</if>>
 </div>
@@ -147,11 +148,12 @@
 			<div id="miniscene"></div>
 			<span id="useSlave"></span>
 			<script>
-				App.UI.SlaveInteract.useSlaveDisplay(V.activeSlave)
+				console.log(V.i, V.slaves[V.i]);
+				App.UI.SlaveInteract.useSlaveDisplay(V.slaves[V.i]);
 			</script>
 		</p>
 		<p>
-			<<switch $activeSlave.assignment>>
+			<<switch $slaves[$i].assignment>>
 				<<case "recover from surgery">>
 					//$He is recovering from surgery this week//
 				<<case "guard you">>
@@ -187,7 +189,7 @@
 					/* CAN BE REASSIGNED */
 
 					<span id="assignmentLinks"></span>
-					<script>App.UI.SlaveInteract.assignmentBlock("assignmentLinks", V.activeSlave)</script>
+					<script>App.UI.SlaveInteract.assignmentBlock("assignmentLinks", V.slaves[V.i])</script>
 
 					<<set _numFacilities = $brothel+$club+$dairy+$farmyard+$servantsQuarters+$masterSuite+$spa+$nursery+$clinic+$schoolroom+$cellblock+$arcade+$HGSuite>>
 
@@ -196,17 +198,17 @@
 					<</if>> /* closes _numFacilities */
 
 					<div id="fucktoypref"></div>
-					<script>App.UI.SlaveInteract.fucktoyPref(V.activeSlave)</script>
+					<script>App.UI.SlaveInteract.fucktoyPref(V.slaves[V.i])</script>
 
 			<</switch>> /* END CAN BE REASSIGNED */
 
-			<<if $activeSlave.assignment == "whore" || $activeSlave.assignment == "work in the brothel">>
-				<br>Whoring Target: <strong><span id="whoreClass"><<if !$activeSlave.whoreClass>>auto<<elseif $activeSlave.whoreClass == 1>>the lower class<<elseif $activeSlave.whoreClass == 2>>the middle class<<elseif $activeSlave.whoreClass == 3>>the upper class<<elseif $activeSlave.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 $activeSlave.whoreClass = 0>><<replace "#whoreClass">>auto<</replace>><</link>> |
-				<<link "Lower Class">><<set $activeSlave.whoreClass = 1>><<replace "#whoreClass">>the lower class<</replace>><</link>> |
-				<<link "Middle Class">><<set $activeSlave.whoreClass = 2>><<replace "#whoreClass">>the middle class<</replace>><</link>> |
-				<<link "Upper Class">><<set $activeSlave.whoreClass = 3>><<replace "#whoreClass">>the upper class<</replace>><</link>> |
-				<<link "Millionaires">><<set $activeSlave.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>
@@ -218,52 +220,52 @@
 			<h3>Appearance</h3>
 
 			<span id="clothes"></span>
-			/*<script>App.UI.Wardrobe.clothes(V.activeSlave)</script>*/
+			/*<script>App.UI.Wardrobe.clothes(V.slaves[V.i])</script>*/
 			
-			<<if $activeSlave.fuckdoll == 0>>
+			<<if $slaves[$i].fuckdoll == 0>>
 				<span id="collar"></span>
-				/*<script>App.UI.Wardrobe.collar(V.activeSlave)</script>*/
+				/*<script>App.UI.Wardrobe.collar(V.slaves[V.i])</script>*/
 
 				<span id="armAccessory"></span>
-				/*<script>App.UI.Wardrobe.armAccessory(V.activeSlave)</script>*/
+				/*<script>App.UI.Wardrobe.armAccessory(V.slaves[V.i])</script>*/
 
-				<<if hasAnyLegs($activeSlave)>>
+				<<if hasAnyLegs($slaves[$i])>>
 					<span id="shoes"></span>
-					/*<script>App.UI.Wardrobe.shoes(V.activeSlave)</script>*/
+					/*<script>App.UI.Wardrobe.shoes(V.slaves[V.i])</script>*/
 
 					<span id="legAccessory"></span>
-					/*<script>App.UI.Wardrobe.legAccessory(V.activeSlave)</script>*/
+					/*<script>App.UI.Wardrobe.legAccessory(V.slaves[V.i])</script>*/
 				<</if>>
 
 				<span id="bellyAccessory"></span>
-				/*<script>App.UI.Wardrobe.bellyAccessory(V.activeSlave)</script>*/
+				/*<script>App.UI.Wardrobe.bellyAccessory(V.slaves[V.i])</script>*/
 
 				<span id="buttplug"></span>
-				/*<script>App.UI.Wardrobe.buttplug(V.activeSlave)</script>*/
+				/*<script>App.UI.Wardrobe.buttplug(V.slaves[V.i])</script>*/
 
-				<<if isItemAccessible("tail") && $activeSlave.buttplug != "none">>
+				<<if isItemAccessible("tail") && $slaves[$i].buttplug != "none">>
 					<span id="buttplugAttachment"></span>
-					/*<script>App.UI.Wardrobe.buttplugAttachment(V.activeSlave)</script>*/
+					/*<script>App.UI.Wardrobe.buttplugAttachment(V.slaves[V.i])</script>*/
 				<</if>>
 
-				<<if $activeSlave.vagina > -1>>
+				<<if $slaves[$i].vagina > -1>>
 					<span id="vaginalAccessory"></span>
-					/*<script>App.UI.Wardrobe.vaginalAccessory(V.activeSlave)</script>*/
+					/*<script>App.UI.Wardrobe.vaginalAccessory(V.slaves[V.i])</script>*/
 					<span id="vaginalAttachment"></span>
-					/*<script>App.UI.Wardrobe.vaginalAttachment(V.activeSlave)</script>*/
+					/*<script>App.UI.Wardrobe.vaginalAttachment(V.slaves[V.i])</script>*/
 				<</if>>
 
-				<<if $activeSlave.dick > 0>>
+				<<if $slaves[$i].dick > 0>>
 					<span id="dickAccessory"></span>
-					/*<script>App.UI.Wardrobe.dickAccessory(V.activeSlave)</script>*/
+					/*<script>App.UI.Wardrobe.dickAccessory(V.slaves[V.i])</script>*/
 				<</if>>
 
 				<span id="chastity"></span>
-				/*<script>App.UI.Wardrobe.chastity(V.activeSlave)</script>*/
+				/*<script>App.UI.Wardrobe.chastity(V.slaves[V.i])</script>*/
 
 				<h3>Shopping</h3>
 				<span id="shopping"></span>
-				<script>App.UI.Wardrobe.shopping(V.activeSlave)</script>
+				<script>App.UI.Wardrobe.shopping(V.slaves[V.i])</script>
 
 			<</if>> /* CLOSES FUCKDOLL CHECK */
 		</p>
@@ -274,102 +276,102 @@
 	<div class="content">
 		<h3>Physical Regimen</h3>
 		<span id="drugs"></span>
-		<script>App.UI.SlaveInteract.drugs(V.activeSlave)</script>
+		<script>App.UI.SlaveInteract.drugs(V.slaves[V.i])</script>
 
 		<span id="curatives"></span>
-		<script>App.UI.SlaveInteract.curatives(V.activeSlave)</script>
+		<script>App.UI.SlaveInteract.curatives(V.slaves[V.i])</script>
 
 		<span id="aphrodisiacs"></span>
-		<script>App.UI.SlaveInteract.aphrodisiacs(V.activeSlave)</script>
+		<script>App.UI.SlaveInteract.aphrodisiacs(V.slaves[V.i])</script>
 
 		<span id="fertilityblock"></span>
-		<script>App.UI.SlaveInteract.fertility(V.activeSlave)</script>
+		<script>App.UI.SlaveInteract.fertility(V.slaves[V.i])</script>
 
 		<span id="incubator"></span>
-		<script>App.UI.SlaveInteract.incubator(V.activeSlave)</script>
+		<script>App.UI.SlaveInteract.incubator(V.slaves[V.i])</script>
 
 		<span id="nursery"></span>
-		<script>App.UI.SlaveInteract.nursery(V.activeSlave)</script>
+		<script>App.UI.SlaveInteract.nursery(V.slaves[V.i])</script>
 
 		<<if $propOutcome == 1 && $arcologies[0].FSRestart != "unset">>
-			<<if $activeSlave.breedingMark == 0 && $activeSlave.fuckdoll == 0 && $activeSlave.eggType == "human" && isFertile($activeSlave) && $activeSlave.preg == 0>>
+			<<if $slaves[$i].breedingMark == 0 && $slaves[$i].fuckdoll == 0 && $slaves[$i].eggType == "human" && isFertile($slaves[$i]) && $slaves[$i].preg == 0>>
 				<br>&nbsp;&nbsp;&nbsp;&nbsp;
 				[[Breeder Eligibility Exam|BreedingTest]]
 			<</if>>
 		<</if>>
 
 		<span id="bloating"></span>
-		<script>App.UI.SlaveInteract.bloating(V.activeSlave)</script>
+		<script>App.UI.SlaveInteract.bloating(V.slaves[V.i])</script>
 
 		Hormones: <strong><span id="hormones">
-		<<if $activeSlave.hormones == -2>>intensive male<<elseif $activeSlave.hormones == -1>>male<<elseif $activeSlave.hormones == 2>>intensive female<<elseif $activeSlave.hormones == 1>>female<<else>>none<</if>></span></strong>.
-		<<if $activeSlave.indentureRestrictions < 2>>
-			<<link "Intensive Female">><<set $activeSlave.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 $activeSlave.hormones = 1>><<replace "#hormones">>female<</replace>><</link>> |
-		<<link "None">><<set $activeSlave.hormones = 0>><<replace "#hormones">>none<</replace>><</link>> |
-		<<link "Male">><<set $activeSlave.hormones = -1>><<replace "#hormones">>male<</replace>><</link>> |
-		<<if $activeSlave.indentureRestrictions < 2>>
-			<<link "Intensive Male">><<set $activeSlave.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">$activeSlave.diet</span></strong>.
-		<<link "Healthy">><<set $activeSlave.diet = "healthy">><<replace "#diet">>$activeSlave.diet<</replace>><</link>>
-		<<if ($activeSlave.health.condition < 90 || $activeSlave.chem >= 10) && ($dietCleanse == 1)>>
-			| <<link "Cleanse">><<set $activeSlave.diet = "cleansing">><<replace "#diet">>$activeSlave.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 ($activeSlave.balls > 0) && ($cumProDiet == 1)>>
-			| <<link "Cum production">><<set $activeSlave.diet = "cum production">><<replace "#diet">>$activeSlave.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($activeSlave) && $activeSlave.preg == 0 && ($dietFertility == 1)>>
-			| <<link "Fertility">><<set $activeSlave.diet = "fertility">><<replace "#diet">>$activeSlave.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 ($activeSlave.weight >= -95)>>
-			| <<link "Lose weight">><<set $activeSlave.diet = "restricted">><<replace "#diet">>$activeSlave.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 $activeSlave.weight <= 200>>
-			| <<link "Fatten">><<set $activeSlave.diet = "fattening">><<replace "#diet">>$activeSlave.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 $activeSlave.diet = "XX">><<replace "#diet">>$activeSlave.diet<</replace>><</link>>
-			| <<link "Testosterone enriched">><<set $activeSlave.diet = "XY">><<replace "#diet">>$activeSlave.diet<</replace>><</link>>
-			<<if $dietXXY == 1 && $activeSlave.balls > 0 && ($activeSlave.ovaries == 1 || $activeSlave.mpreg == 1)>>
-				| <<link "Herm hormone blend">><<set $activeSlave.diet = "XXY">><<replace "#diet">>$activeSlave.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 ($activeSlave.muscles <= 95) && !isAmputee($activeSlave)>>
-			| <<link "Build muscle">><<set $activeSlave.diet = "muscle building">><<replace "#diet">>$activeSlave.diet<</replace>><</link>>
-		<<elseif !isAmputee($activeSlave)>>
+		<<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 ($activeSlave.muscles > 5 || $activeSlave.fuckdoll == 0) && canWalk($activeSlave)>>
-			| <<link "Slim down">><<set $activeSlave.diet = "slimming">><<replace "#diet">>$activeSlave.diet<</replace>><</link>>
-		<<elseif !canWalk($activeSlave)>>
+		<<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 $activeSlave.fuckdoll > 0>>
+		<<elseif $slaves[$i].fuckdoll > 0>>
 			| //$He has no muscles left to lose//
 		<</if>>
 
-		<br>Diet Base: <strong><span id="dietBase"><<if $activeSlave.dietCum == 2>>cum based<<elseif ($activeSlave.dietCum == 1) && ($activeSlave.dietMilk == 0)>>cum added<<elseif ($activeSlave.dietCum == 1) && ($activeSlave.dietMilk == 1)>>cum and milk added<<elseif ($activeSlave.dietMilk == 1) && ($activeSlave.dietCum == 0)>>milk added<<elseif ($activeSlave.dietMilk == 2)>>milk based<<elseif ($activeSlave.dietCum == 0) && ($activeSlave.dietMilk == 0)>>normal<<else>>THERE HAS BEEN AN ERROR<</if>></span></strong>.
-		<<link "Normal">><<set $activeSlave.dietCum = 0>><<set $activeSlave.dietMilk = 0>><<replace "#dietBase">>normal<</replace>><</link>> |
-		<<link "Cum added">><<set $activeSlave.dietCum = 1>><<set $activeSlave.dietMilk = 0>><<replace "#dietBase">>cum added<</replace>><</link>> |
-		<<link "Milk added">><<set $activeSlave.dietCum = 0>><<set $activeSlave.dietMilk = 1>><<replace "#dietBase">>milk added<</replace>><</link>> |
-		<<link "Cum & milk added">><<set $activeSlave.dietCum = 1>><<set $activeSlave.dietMilk = 1>><<replace "#dietBase">>cum & milk added<</replace>><</link>> |
-		<<link "Cum based">><<set $activeSlave.dietCum = 2>><<set $activeSlave.dietMilk = 0>><<replace "#dietBase">>cum based<</replace>><</link>> |
-		<<link "Milk based">><<set $activeSlave.dietCum = 0>><<set $activeSlave.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 $activeSlave.onDiet == 0>>Free to stuff $himself.<<else>>On a strict diet.<</if>></span></strong>
-			<<link "No access">><<set $activeSlave.onDiet = 1>><<replace "#snacks">>On a strict diet.<</replace>><</link>> |
-			<<link "Full access">><<set $activeSlave.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>
@@ -378,165 +380,165 @@
 	<div class="content">
 		<p>
 			<<if $universalRulesImpregnation == "HG" && $seePreg != 0>>
-				<<if $activeSlave.HGExclude == 0>>
-					Will be bred by the Head Girl when fertile. <<link "Exempt $him" "Slave Interact">><<set $activeSlave.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 $activeSlave.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 $activeSlave.useRulesAssistant == 0>>
+			<<if $slaves[$i].useRulesAssistant == 0>>
 				<span class="gray">
 					''Not subject'' to the Rules Assistant.
 				</span>
 				<<link "Include $him" "Slave Interact">>
-					<<set $activeSlave.useRulesAssistant = 1>>
+					<<set $slaves[$i].useRulesAssistant = 1>>
 				<</link>>
 			<<else>>
 				__Rules Assistant:__ [[Rules Assistant Options|Rules Assistant]]
 
-				<<if (def $activeSlave.currentRules) && ($activeSlave.currentRules.length > 0)>>
+				<<if (def $slaves[$i].currentRules) && ($slaves[$i].currentRules.length > 0)>>
 					<ul style="margin:0">
-						<<= $defaultRules.filter(x => ruleApplied($activeSlave, 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($activeSlave)>>
+						<<run DefaultRules($slaves[$i])>>
 						<<set $returnTo = "Slave Interact">>
 						<<goto "AS Dump">>
 					<</link>>
 				</span>
 				|
 				<<link "Exempt $him" "Slave Interact">>
-					<<set $activeSlave.useRulesAssistant = 0>>
+					<<set $slaves[$i].useRulesAssistant = 0>>
 				<</link>>
 			<</if>>
 		</p>
-		<<if $activeSlave.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">$activeSlave.rules.living</span>.''
-			<<if setup.facilityCareers.includes($activeSlave.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 ($activeSlave.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 ($activeSlave.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 $activeSlave.rules.living = "spare">><<replace "#livingRules">>$activeSlave.rules.living<</replace>><</link>> |
-				<<link "Normal">><<set $activeSlave.rules.living = "normal">><<replace "#livingRules">>$activeSlave.rules.living<</replace>><</link>> |
-				<<if $roomsPopulation <= $rooms-0.5>><<link "Luxurious">><<set $activeSlave.rules.living = "luxurious">><<replace "#livingRules">>$activeSlave.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">$activeSlave.rules.punishment</span>.''
-			<<link "Confinement">><<set $activeSlave.rules.punishment = "confinement">><<replace "#standardPunishment">>$activeSlave.rules.punishment<</replace>><</link>> |
-			<<link "Whipping">><<set $activeSlave.rules.punishment = "whipping">><<replace "#standardPunishment">>$activeSlave.rules.punishment<</replace>><</link>> |
-			<<link "Chastity">><<set $activeSlave.rules.punishment = "chastity">><<replace "#standardPunishment">>$activeSlave.rules.punishment<</replace>><</link>> |
-			<<link "Situational">><<set $activeSlave.rules.punishment = "situational">><<replace "#standardPunishment">>$activeSlave.rules.punishment<</replace>><</link>>
-			<br>Typical reward: ''<span id="standardReward">$activeSlave.rules.reward</span>.''
-			<<link "Relaxation">><<set $activeSlave.rules.reward = "relaxation">><<replace "#standardReward">>$activeSlave.rules.reward<</replace>><</link>> |
-			<<link "Drugs">><<set $activeSlave.rules.reward = "drugs">><<replace "#standardReward">>$activeSlave.rules.reward<</replace>><</link>> |
-			<<link "Orgasm">><<set $activeSlave.rules.reward = "orgasm">><<replace "#standardReward">>$activeSlave.rules.reward<</replace>><</link>> |
-			<<link "Situational">><<set $activeSlave.rules.reward = "situational">><<replace "#standardReward">>$activeSlave.rules.reward<</replace>><</link>>
-
-			<<if setup.facilityHeads.includes($activeSlave.assignment)>>
-				<<if $activeSlave.lactation != 2>>
-					<br>Lactation maintenance for facility heads: ''<span id="lactationRules">$activeSlave.rules.lactation</span>.''
-					<<link "Left alone">><<set $activeSlave.rules.lactation = "none">><<replace "#lactationRules">>$activeSlave.rules.lactation<</replace>><</link>> |
-					<<if $activeSlave.lactation == 0>>
-						<<link "Induce lactation">><<set $activeSlave.rules.lactation = "induce">><<replace "#lactationRules">>$activeSlave.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 $activeSlave.rules.lactation = "maintain">><<replace "#lactationRules">>$activeSlave.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 $activeSlave.rules.release.masturbation === 1>>allowed<<else>>forbidden<</if>></span>.''
-				<<link "Allow">><<set $activeSlave.rules.release.masturbation = 1>><<replace "#relMasturbation">>allowed<</replace>><</link>> |
-				<<link "Forbid">><<set $activeSlave.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 $activeSlave.rules.release.partner === 1>>allowed<<else>>forbidden<</if>></span>.''
-				<<link "Allow">><<set $activeSlave.rules.release.partner = 1>><<replace "#relPartner">>allowed<</replace>><</link>> |
-				<<link "Forbid">><<set $activeSlave.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 $activeSlave.rules.release.family === 1>>allowed<<else>>forbidden<</if>></span>.''
-					<<link "Allow">><<set $activeSlave.rules.release.family = 1>><<replace "#relFamily">>allowed<</replace>><</link>> |
-					<<link "Forbid">><<set $activeSlave.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 $activeSlave.rules.release.slaves === 1>>allowed<<else>>forbidden<</if>></span>.''
-				<<link "Allow">><<set $activeSlave.rules.release.slaves = 1>><<replace "#relSlaves">>allowed<</replace>><</link>> |
-				<<link "Forbid">><<set $activeSlave.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 $activeSlave.rules.release.master === 1>>granted<<else>>denied<</if>></span>.''
-				<<link "Grant">><<set $activeSlave.rules.release.master = 1>><<replace "#relMaster">>granted<</replace>><</link>> |
-				<<link "Deny">><<set $activeSlave.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 $activeSlave.clitPiercing == 3 || $activeSlave.vaginalAccessory == "smart bullet vibrator">>
+		<<if $slaves[$i].clitPiercing == 3 || $slaves[$i].vaginalAccessory == "smart bullet vibrator">>
 			<div>
-			<<if $activeSlave.clitPiercing == 3>>
-				<<if $activeSlave.dick < 1>>
-					$His smart clit piercing <<if $activeSlave.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 $activeSlave.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">$activeSlave.clitSetting</span></strong>.
-			<<link "Vanilla">><<set $activeSlave.clitSetting = "vanilla">><<replace "#setting">>$activeSlave.clitSetting<</replace>><</link>>
-			| <<link "Oral">><<set $activeSlave.clitSetting = "oral">><<replace "#setting">>$activeSlave.clitSetting<</replace>><</link>>
-			| <<link "Anal">><<set $activeSlave.clitSetting = "anal">><<replace "#setting">>$activeSlave.clitSetting<</replace>><</link>>
-			| <<link "Boobs">><<set $activeSlave.clitSetting = "boobs">><<replace "#setting">>$activeSlave.clitSetting<</replace>><</link>>
-			| <<link "Sub">><<set $activeSlave.clitSetting = "submissive">><<replace "#setting">>$activeSlave.clitSetting<</replace>><</link>>
-			| <<link "Dom">><<set $activeSlave.clitSetting = "dom">><<replace "#setting">>$activeSlave.clitSetting<</replace>><</link>>
-			| <<link "Humiliation">><<set $activeSlave.clitSetting = "humiliation">><<replace "#setting">>$activeSlave.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 $activeSlave.clitSetting = "pregnancy">><<replace "#setting">>$activeSlave.clitSetting<</replace>><</link>>
+				| <<link "Preg">><<set $slaves[$i].clitSetting = "pregnancy">><<replace "#setting">>$slaves[$i].clitSetting<</replace>><</link>>
 			<</if>>
-			| <<link "Pain">><<set $activeSlave.clitSetting = "masochist">><<replace "#setting">>$activeSlave.clitSetting<</replace>><</link>>
-			| <<link "Sadism">><<set $activeSlave.clitSetting = "sadist">><<replace "#setting">>$activeSlave.clitSetting<</replace>><</link>>
-			| <<link "Men">><<set $activeSlave.clitSetting = "men">><<replace "#setting">>$activeSlave.clitSetting<</replace>><</link>>
-			| <<link "Anti-men">><<set $activeSlave.clitSetting = "anti-men">><<replace "#setting">>$activeSlave.clitSetting<</replace>><</link>>
-			| <<link "Women">><<set $activeSlave.clitSetting = "women">><<replace "#setting">>$activeSlave.clitSetting<</replace>><</link>>
-			| <<link "Anti-women">><<set $activeSlave.clitSetting = "anti-women">><<replace "#setting">>$activeSlave.clitSetting<</replace>><</link>>
-			| <<link "All sex">><<set $activeSlave.clitSetting = "all">><<replace "#setting">>$activeSlave.clitSetting<</replace>><</link>>
-			| <<link "No sex">><<set $activeSlave.clitSetting = "none">><<replace "#setting">>$activeSlave.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 $activeSlave.voice != 0>>
-			<br>Speech rules: ''<span id="speechRules">$activeSlave.rules.speech</span>.''
-			<<link "Restrictive">><<set $activeSlave.rules.speech = "restrictive">><<replace "#speechRules">>$activeSlave.rules.speech<</replace>><</link>> |
-			<<link "Permissive">><<set $activeSlave.rules.speech = "permissive">><<replace "#speechRules">>$activeSlave.rules.speech<</replace>><</link>>
-			<<if $activeSlave.accent > 0 && $activeSlave.accent < 4>>| <<link "Accent elimination">><<set $activeSlave.rules.speech = "accent elimination">><<replace "#speechRules">>$activeSlave.rules.speech<</replace>><</link>>
-			<<elseif $activeSlave.accent > 3>>| <<link "Language lessons">><<set $activeSlave.rules.speech = "language lessons">><<replace "#speechRules">>$activeSlave.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">$activeSlave.rules.relationship</span>.''
-		<<link "Restrictive">><<set $activeSlave.rules.relationship = "restrictive">><<replace "#relationshipRules">>$activeSlave.rules.relationship<</replace>><</link>> |
-		<<link "Just friends">><<set $activeSlave.rules.relationship = "just friends">><<replace "#relationshipRules">>$activeSlave.rules.relationship<</replace>><</link>> |
-		<<link "Permissive">><<set $activeSlave.rules.relationship = "permissive">><<replace "#relationshipRules">>$activeSlave.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>
 
@@ -545,26 +547,26 @@
 		
 		<<if $studio == 1>>
 			<h3>Media</h3>
-			<<if $activeSlave.porn.prestige == 3>>
-				//$He is so prestigious in the realm of $activeSlave.porn.fameType porn that $his fame is self-sustaining.//
-			<<elseif $activeSlave.porn.feed == 0>>
-				The media hub is not releasing highlights of $his sex life. [[Release|Slave Interact][$activeSlave.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 $activeSlave.porn.spending < 500>>to those who can find it<<elseif $activeSlave.porn.spending < 2500>>on several websites<<elseif $activeSlave.porn.spending > 5000>>through your old distributor<<else>>on many websites<</if>>.
-				<<if $activeSlave.porn.spending == 0>>
-					[[Halt|Slave Interact][$activeSlave.porn.feed = 0, $activeSlave.porn.focus = "none"]] |
-					[[Publicize|Slave Interact][$activeSlave.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" $activeSlave.porn.spending>> weekly is spent to publicize them. [[Save changes|Slave Interact][$activeSlave.porn.spending = Number(_newPornSpending) || 0]] |
-					[[Halt|Slave Interact][$activeSlave.porn.feed = 0, $activeSlave.porn.spending = 0, $activeSlave.porn.focus = "none", $PCSlutContacts = 1]] |
-					<<if $activeSlave.porn.spending < 5000>>
-						[[Increase|Slave Interact][$activeSlave.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][$activeSlave.porn.spending -= 1000]]
-					<<if $activeSlave.porn.spending > 5000>><<set _warn = 1>><</if>>
-					<<set $activeSlave.porn.spending = Number($activeSlave.porn.spending) || 0>>
-					<<set $activeSlave.porn.spending = Math.clamp(Math.ceil($activeSlave.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>
@@ -581,18 +583,18 @@
 
 				<<if $studioFeed == 1>>
 					<br>
-					<<if $activeSlave.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 $activeSlave.porn.prestige > 0>>
-							$He is known for $activeSlave.porn.fameType porn<<if $activeSlave.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 $activeSlave.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 $activeSlave.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", $activeSlave)>> | [[No focus|Slave Interact][$activeSlave.porn.focus = "none"]]
+						<<= App.Porn.genreChoiceLinks("Slave Interact", $slaves[$i])>> | [[No focus|Slave Interact][$slaves[$i].porn.focus = "none"]]
 					<</if>>
 				<</if>>
 			<</if>>
@@ -600,7 +602,7 @@
 		
 		<h3>Financial</h3>
 		<p>
-			<<SlaveExpenses $activeSlave>>
+			<<SlaveExpenses $slaves[$i]>>
 		</p>
 
 		<p>
@@ -611,14 +613,14 @@
 			<</if>>
 
 			<<if (_SL > 1)>>
-				<<if $activeSlave.origin == "You bought $him from a body dump, completely broken." && ($week-$activeSlave.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 $activeSlave.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", $activeSlave)>><</link>> //Listing $him for sale will cost <<print cashFormat(500)>>// |
-					<<if ($seeAge != 0) && ($activeSlave.indenture < 1)>>
-						<<link "Retire $him" "SE retirement">><<set $retiree = $activeSlave.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>>
@@ -640,7 +642,7 @@
 <div id="Customize" class="tabcontent">
 	<div class="content">
 		<span id="custom"></span>
-		<script>App.UI.SlaveInteract.custom (V.activeSlave)</script>
+		<script>App.UI.SlaveInteract.custom (V.slaves[V.i])</script>
 		
 		/*<<include "Add custom descriptors">>*/
 	</div>
-- 
GitLab