From c0982e806f684acffb88c86759d3b1f04f2c6c4f Mon Sep 17 00:00:00 2001
From: lowercasedonkey <lowercasedonkey@gmail.com>
Date: Fri, 18 Sep 2020 23:57:00 -0400
Subject: [PATCH] slave sold too

---
 src/uncategorized/slaveSold.tw | 288 ++++++++++++++++-----------------
 1 file changed, 144 insertions(+), 144 deletions(-)

diff --git a/src/uncategorized/slaveSold.tw b/src/uncategorized/slaveSold.tw
index 0297bb6541e..70cb9430f18 100644
--- a/src/uncategorized/slaveSold.tw
+++ b/src/uncategorized/slaveSold.tw
@@ -2,70 +2,70 @@
 
 <<set $nextButton = "Back to Main", $nextLink = "Main", $returnTo = "Main", $encyclopedia = "Personal Assistant">>
 
-<<setLocalPronouns $activeSlave>>
+<<setLocalPronouns getSlave($AS)>>
 
-<<if !["abortion TV", "elite auction", "eugenics arcology", "organ crafter", "peacekeepers", "repopulationist arcology", "tentacle bred", "womb filler"].includes($buyer) && ((($activeSlave.actualAge < $retirementAge-1) && $policies.retirement.physicalAgePolicy == 0) || (($activeSlave.physicalAge < $retirementAge-1) && $policies.retirement.physicalAgePolicy == 1))>> /* organ crafter is not viable now, the elite/peacekeepers won't part so easily with a prize, some take place x months later when the event's max is 15 weeks, and the rest are snuff events. You don't want that slave back. */
+<<if !["abortion TV", "elite auction", "eugenics arcology", "organ crafter", "peacekeepers", "repopulationist arcology", "tentacle bred", "womb filler"].includes($buyer) && (((getSlave($AS).actualAge < $retirementAge-1) && $policies.retirement.physicalAgePolicy == 0) || ((getSlave($AS).physicalAge < $retirementAge-1) && $policies.retirement.physicalAgePolicy == 1))>> /* organ crafter is not viable now, the elite/peacekeepers won't part so easily with a prize, some take place x months later when the event's max is 15 weeks, and the rest are snuff events. You don't want that slave back. */
 	<<if !$boomerangSlave || $boomerangWeeks > 15>>
-		<<if $activeSlave.fuckdoll == 0>>
-			<<if canWalk($activeSlave)>>
-				<<if canTalk($activeSlave)>>
-					<<if $activeSlave.fetish != "mindbroken">>
-						<<if $activeSlave.devotion > 50>>
-							<<if $activeSlave.trust > 95 || $activeSlave.trust < -20 || ($activeSlave.intelligence+$activeSlave.intelligenceImplant < -15)>>
-								<<set $boomerangSlave = clone($activeSlave), $boomerangWeeks = 1, $boomerangBuyer = $buyer>>
+		<<if getSlave($AS).fuckdoll == 0>>
+			<<if canWalk(getSlave($AS))>>
+				<<if canTalk(getSlave($AS))>>
+					<<if getSlave($AS).fetish != "mindbroken">>
+						<<if getSlave($AS).devotion > 50>>
+							<<if getSlave($AS).trust > 95 || getSlave($AS).trust < -20 || (getSlave($AS).intelligence+getSlave($AS).intelligenceImplant < -15)>>
+								<<set $boomerangSlave = clone(getSlave($AS)), $boomerangWeeks = 1, $boomerangBuyer = $buyer>>
 								<<set $boomerangSlave.assignment = "rest">>
 								<<set $boomerangStats = {PCpregSource: 0, PCmother: 0, PCfather: 0, boomerangMother: [], boomerangFather: [], boomerangPregSources: [], boomerangMotherTank: [], boomerangFatherTank: [], boomerangRelationship: 0, boomerangRivalry: 0, boomerangRelation: 0, boomerangBody: 0}>>
-								<<if $activeSlave.ID == $PC.pregSource>>
-									<<set $boomerangStats.PCpregSource = $activeSlave.ID>>
+								<<if getSlave($AS).ID == $PC.pregSource>>
+									<<set $boomerangStats.PCpregSource = getSlave($AS).ID>>
 								<</if>>
-								<<if $PC.mother == $activeSlave.ID>>
-									<<set $boomerangStats.PCmother = $activeSlave.ID>>
+								<<if $PC.mother == getSlave($AS).ID>>
+									<<set $boomerangStats.PCmother = getSlave($AS).ID>>
 								<</if>>
-								<<if $PC.father == $activeSlave.ID>>
-									<<set $boomerangStats.PCfather = $activeSlave.ID>>
+								<<if $PC.father == getSlave($AS).ID>>
+									<<set $boomerangStats.PCfather = getSlave($AS).ID>>
 								<</if>>
 								<<for _ss = 0; _ss < $slaves.length; _ss++>>
-									<<if $slaves[_ss].ID != $activeSlave.ID>>
-										<<if $slaves[_ss].mother == $activeSlave.ID>>
+									<<if $slaves[_ss].ID != getSlave($AS).ID>>
+										<<if $slaves[_ss].mother == getSlave($AS).ID>>
 											<<set $boomerangStats.boomerangMother.push($slaves[_ss].ID)>>
 										<</if>>
-										<<if $slaves[_ss].father == $activeSlave.ID>>
+										<<if $slaves[_ss].father == getSlave($AS).ID>>
 											<<set $boomerangStats.boomerangFather.push($slaves[_ss].ID)>>
 										<</if>>
-										<<if $activeSlave.ID == $slaves[_ss].pregSource>>
+										<<if getSlave($AS).ID == $slaves[_ss].pregSource>>
 											<<set $boomerangStats.boomerangPregSources.push($slaves[_ss].ID)>>
 										<</if>>
 									<</if>>
 								<</for>>
 								<<if $incubator > 0>>
 									<<for _z = 0; _z < $tanks.length; _z++>>
-										<<if $activeSlave.ID == $tanks[_z].mother>>
+										<<if getSlave($AS).ID == $tanks[_z].mother>>
 											<<set $boomerangStats.boomerangMotherTank.push($slaves[_z].ID)>>
 										<</if>>
-										<<if $activeSlave.ID == $tanks[_z].father>>
+										<<if getSlave($AS).ID == $tanks[_z].father>>
 											<<set $boomerangStats.boomerangFatherTank.push($slaves[_z].ID)>>
 										<</if>>
 									<</for>>
 								<</if>>
 								<<if $nursery > 0>>
 									<<for _z = 0; _z < $cribs.length; _z++>>
-										<<if $activeSlave.ID == $cribs[_z].mother>>
+										<<if getSlave($AS).ID == $cribs[_z].mother>>
 											<<set $boomerangStats.boomerangMotherTank.push($slaves[_z].ID)>>
 										<</if>>
-										<<if $activeSlave.ID == $cribs[_z].father>>
+										<<if getSlave($AS).ID == $cribs[_z].father>>
 											<<set $boomerangStats.boomerangFatherTank.push($slaves[_z].ID)>>
 										<</if>>
 									<</for>>
 								<</if>>
 								<<set $boomerangSlave.sisters = 0, $boomerangSlave.daughters = 0>>
-								<<if $activeSlave.relationship > 0>>
-									<<set $boomerangStats.boomerangRelationship = $activeSlave.relationshipTarget>>
+								<<if getSlave($AS).relationship > 0>>
+									<<set $boomerangStats.boomerangRelationship = getSlave($AS).relationshipTarget>>
 								<</if>>
-								<<if $activeSlave.rivalry > 0>>
-									<<set $boomerangStats.boomerangRivalry = $activeSlave.rivalryTarget>>
+								<<if getSlave($AS).rivalry > 0>>
+									<<set $boomerangStats.boomerangRivalry = getSlave($AS).rivalryTarget>>
 								<</if>>
-								<<if $activeSlave.bodySwap > 0>>
-									<<set _myBody = $slaves.findIndex(function(s) { return s.origBodyOwnerID == $activeSlave.ID; })>>
+								<<if getSlave($AS).bodySwap > 0>>
+									<<set _myBody = $slaves.findIndex(function(s) { return s.origBodyOwnerID == getSlave($AS).ID; })>>
 									<<if _myBody != -1>>
 										<<set $boomerangStats.boomerangBody = $slaves[_myBody].ID>>
 									<</if>>
@@ -81,27 +81,27 @@
 
 <<for _ss = 0; _ss < $slaves.length; _ss++>>
 	<<setLocalPronouns $slaves[_ss] 2>>
-	<<if $activeSlave.mother == $slaves[_ss].ID>>
+	<<if getSlave($AS).mother == $slaves[_ss].ID>>
 		$slaves[_ss].slaveName is @@.mediumorchid;grieved@@ that you are selling _his2 $daughter.
 		<br><br>
 		<<set $slaves[_ss].devotion -= 20>>
 	<</if>>
-	<<if $activeSlave.father == $slaves[_ss].ID>>
+	<<if getSlave($AS).father == $slaves[_ss].ID>>
 		$slaves[_ss].slaveName is @@.mediumorchid;disappointed@@ that you are selling _his2 $daughter.
 		<br><br>
 		<<set $slaves[_ss].devotion -= 10>>
 	<</if>>
-	<<if $activeSlave.ID == $slaves[_ss].father>>
+	<<if getSlave($AS).ID == $slaves[_ss].father>>
 		$slaves[_ss].slaveName is @@.mediumorchid;saddened@@ that you are selling _his2 father.
 		<br><br>
 		<<set $slaves[_ss].devotion -= 10>>
 	<</if>>
-	<<if $activeSlave.ID == $slaves[_ss].mother>>
+	<<if getSlave($AS).ID == $slaves[_ss].mother>>
 		$slaves[_ss].slaveName is @@.mediumorchid;grieved@@ that you are selling _his2 mother.
 		<br><br>
 		<<set $slaves[_ss].devotion -= 20>>
 	<</if>>
-	<<switch areSisters($activeSlave, $slaves[_ss])>>
+	<<switch areSisters(getSlave($AS), $slaves[_ss])>>
 	<<case 1>>
 		$slaves[_ss].slaveName is @@.mediumorchid;devastated@@ that you are selling _his2 twin.
 		<br><br>
@@ -116,15 +116,15 @@
 		<<set $slaves[_ss].devotion -= 10>>
 	<</switch>>
 <</for>>
-<<if $activeSlave.relationship > 0>>
-	<<set _ss = $slaveIndices[$activeSlave.relationshipTarget]>>
+<<if getSlave($AS).relationship > 0>>
+	<<set _ss = $slaveIndices[getSlave($AS).relationshipTarget]>>
 	<<if (def _ss) && $slaves[_ss].fetish != "mindbroken">>
 		<<setLocalPronouns $slaves[_ss] 2>>
 		$slaves[_ss].slaveName is @@.mediumorchid;grieved@@ that you are selling _his2 best source of comfort and companionship in a life of bondage.
 		<br><br>
 		<<set $slaves[_ss].devotion -= $slaves[_ss].relationship*10>>
 	<</if>>
-<<elseif $activeSlave.relationship == -3>>
+<<elseif getSlave($AS).relationship == -3>>
 	Selling one of your slave $wives is @@.red;socially unacceptable.@@ In addition, your other devoted slaves are @@.gold;worried@@ that you may not respect their status.
 	<br><br>
 	<<run repX(-200, "slaveTransfer")>>
@@ -134,8 +134,8 @@
 		<</if>>
 	<</for>>
 <</if>>
-<<if $activeSlave.rivalry != 0>>
-	<<set _ss = $slaveIndices[$activeSlave.rivalryTarget]>>
+<<if getSlave($AS).rivalry != 0>>
+	<<set _ss = $slaveIndices[getSlave($AS).rivalryTarget]>>
 	<<if (def _ss) && $slaves[_ss].fetish != "mindbroken">>
 		<<setLocalPronouns $slaves[_ss] 2>>
 		$slaves[_ss].slaveName is @@.hotpink;pleased@@ that _he2 won't have to see _his2 rival any more.
@@ -148,7 +148,7 @@
 <<switch $buyer>>
 
 <<case "housekeeper">>
-	$activeSlave.slaveName settles into $his new life in a humbler part of $arcologies[0].name, and can occasionally be seen accompanying $his master in public.
+	getSlave($AS).slaveName settles into $his new life in a humbler part of $arcologies[0].name, and can occasionally be seen accompanying $his master in public.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].trust >= -20)>>
 			<<if ($slaves[_ss].physicalAge > 30)>>
@@ -162,7 +162,7 @@
 	<</if>>
 
 <<case "buttbreaker">>
-	In short order, $activeSlave.slaveName is heard out on the promenade, sobbing and screaming as $his new owner breaks in $his virgin butt in public.
+	In short order, getSlave($AS).slaveName is heard out on the promenade, sobbing and screaming as $his new owner breaks in $his virgin butt in public.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].anus == 0)>>
 			<<set $slaves[_ss].trust -= 2>>
@@ -174,7 +174,7 @@
 	<</if>>
 
 <<case "cheap brothel">>
-	$activeSlave.slaveName is soon seen on shift outside a seedy establishment in the lower arcology, mechanically offering $his holes to passersby and flinching whenever $his superiors come out to check on $him.
+	getSlave($AS).slaveName is soon seen on shift outside a seedy establishment in the lower arcology, mechanically offering $his holes to passersby and flinching whenever $his superiors come out to check on $him.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].assignment == "whore") || ($slaves[_ss].assignment == "work in the brothel")>>
 			<<set $slaves[_ss].trust -= 2>>
@@ -186,7 +186,7 @@
 	<</if>>
 
 <<case "nice brothel">>
-	$activeSlave.slaveName disappears for a time as $his training is perfected, but $he reappears in the refined brothel, wearing classy clothes and flirting gracefully with patrons of $his body.
+	getSlave($AS).slaveName disappears for a time as $his training is perfected, but $he reappears in the refined brothel, wearing classy clothes and flirting gracefully with patrons of $his body.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].assignment == "whore") || ($slaves[_ss].assignment == "work in the brothel")>>
 			<<set $slaves[_ss].trust += 1>>
@@ -198,7 +198,7 @@
 	<</if>>
 
 <<case "factory farm">>
-	$activeSlave.slaveName is never again seen in public, but $his fate is obvious: $he's chained to a milking rack somewhere in a cavernous factory farm, with milk draining from $his tits<<if $activeSlave.balls > 0>> and an electroshock stimulator up $his butt to force $him to cum<<elseif $activeSlave.ovaries > 0>> and a new baby in $his belly every ten months<</if>>.
+	getSlave($AS).slaveName is never again seen in public, but $his fate is obvious: $he's chained to a milking rack somewhere in a cavernous factory farm, with milk draining from $his tits<<if getSlave($AS).balls > 0>> and an electroshock stimulator up $his butt to force $him to cum<<elseif getSlave($AS).ovaries > 0>> and a new baby in $his belly every ten months<</if>>.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].devotion <= 50)>>
 			<<set $slaves[_ss].trust -= 2>>
@@ -210,7 +210,7 @@
 	<</if>>
 
 <<case "elite auction">>
-	$activeSlave.slaveName is quickly escorted out by $his new master. $He is rarely seen in public anymore, but $his records show $he is settling well into being $his new owner's breeder.
+	getSlave($AS).slaveName is quickly escorted out by $his new master. $He is rarely seen in public anymore, but $his records show $he is settling well into being $his new owner's breeder.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].breedingMark != 1 && $propOutcome == 1)>>
 			<<set $slaves[_ss].devotion -= 5>>
@@ -218,11 +218,11 @@
 		<</if>>
 	<</for>>
 	<<if (_slaveImpact == 1)>>
-		Your non-chosen slaves @@.mediumorchid;resent@@ you for denying them the special treatment $activeSlave.slaveName is receiving.
+		Your non-chosen slaves @@.mediumorchid;resent@@ you for denying them the special treatment getSlave($AS).slaveName is receiving.
 	<</if>>
 
 <<case "free range">>
-	$activeSlave.slaveName is a common sight around the arcology, since free range cows are allowed to range between milkings. $He seems reasonably content.
+	getSlave($AS).slaveName is a common sight around the arcology, since free range cows are allowed to range between milkings. $He seems reasonably content.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].assignment == "get milked") || ($slaves[_ss].assignment == "work in the dairy")>>
 			<<set $slaves[_ss].trust += 1>>
@@ -234,7 +234,7 @@
 	<</if>>
 
 <<case "volume breeder">>
-	The breeder already has stud stock, and $activeSlave.slaveName is rapidly impregnated. $He's kept in a stockyard on the lower service levels of the arcology, one of a dense crowd of beaten-down women with gravid bellies.
+	The breeder already has stud stock, and getSlave($AS).slaveName is rapidly impregnated. $He's kept in a stockyard on the lower service levels of the arcology, one of a dense crowd of beaten-down women with gravid bellies.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].ovaries == 1)>>
 			<<set $slaves[_ss].trust -= 2>>
@@ -246,7 +246,7 @@
 	<</if>>
 
 <<case "preg fetishist">>
-	$activeSlave.slaveName settles in to $his new role easily enough; $he's one of the most pampered slaves in the arcology. All $he's expected to do is light housework and self-maintenance, along with gentle unprotected vaginal sex with $his new master.
+	getSlave($AS).slaveName settles in to $his new role easily enough; $he's one of the most pampered slaves in the arcology. All $he's expected to do is light housework and self-maintenance, along with gentle unprotected vaginal sex with $his new master.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].fetish == "pregnancy")>>
 			<<if ($slaves[_ss].fetishKnown == 1)>>
@@ -260,7 +260,7 @@
 	<</if>>
 
 <<case "nipple fetishist">>
-	$activeSlave.slaveName's new mistress is an exhibitionist as well as a nipple fetishist, and before long, she's seen in the club, riding $activeSlave.slaveName's chest with her wet pussy. The slave is expected to keep $his nipples erect for her at all times.
+	getSlave($AS).slaveName's new mistress is an exhibitionist as well as a nipple fetishist, and before long, she's seen in the club, riding getSlave($AS).slaveName's chest with her wet pussy. The slave is expected to keep $his nipples erect for her at all times.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].fetish == "boobs")>>
 			<<if ($slaves[_ss].fetishKnown == 1)>>
@@ -274,7 +274,7 @@
 	<</if>>
 
 <<case "nipple fucker">>
-	$activeSlave.slaveName's new master is an exhibitionist as well as a nipple fetishist, and before long, he's seen in the club, plowing $activeSlave.slaveName's engorged breasts. Since nipple cunts aren't naturally lubricated, some owners find stimulating milk production a suitable replacement; judging from the pooling fluids and sympathetic gushes from $his ignored tit, he is one of them.
+	getSlave($AS).slaveName's new master is an exhibitionist as well as a nipple fetishist, and before long, he's seen in the club, plowing getSlave($AS).slaveName's engorged breasts. Since nipple cunts aren't naturally lubricated, some owners find stimulating milk production a suitable replacement; judging from the pooling fluids and sympathetic gushes from $his ignored tit, he is one of them.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].fetish == "boobs")>>
 			<<if ($slaves[_ss].fetishKnown == 1)>>
@@ -290,7 +290,7 @@
 	<</if>>
 
 <<case "anal fetishist">>
-	The next time $activeSlave.slaveName is seen in public, on an errand for $his master, $he's <<if canWalk($activeSlave)>>walking<<else>>moving<</if>> a little oddly. $His naked dick has the flaccidity of sexual satiation, and $he has a tired but dreamy expression on $his face.
+	The next time getSlave($AS).slaveName is seen in public, on an errand for $his master, $he's <<if canWalk(getSlave($AS))>>walking<<else>>moving<</if>> a little oddly. $His naked dick has the flaccidity of sexual satiation, and $he has a tired but dreamy expression on $his face.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].fetish == "buttslut")>>
 			<<if ($slaves[_ss].fetishKnown == 1)>>
@@ -304,7 +304,7 @@
 	<</if>>
 
 <<case "oral fetishist">>
-	The next time $activeSlave.slaveName is seen in public, $he's obediently accompanying $his new master. After doing some business on the promenade, he pulls $him into an alcove and lets $him masturbate as he uses $his throat.
+	The next time getSlave($AS).slaveName is seen in public, $he's obediently accompanying $his new master. After doing some business on the promenade, he pulls $him into an alcove and lets $him masturbate as he uses $his throat.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].fetish == "cumslut")>>
 			<<if ($slaves[_ss].fetishKnown == 1)>>
@@ -318,7 +318,7 @@
 	<</if>>
 
 <<case "pain fetishist">>
-	$activeSlave.slaveName is not seen again in public for a long time, but the crack of leather on flesh and the resultant hoarse female howling that issues from $his new mistress's apartment is well-known.
+	getSlave($AS).slaveName is not seen again in public for a long time, but the crack of leather on flesh and the resultant hoarse female howling that issues from $his new mistress's apartment is well-known.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].fetish == "masochist")>>
 			<<if ($slaves[_ss].fetishKnown == 1)>>
@@ -332,7 +332,7 @@
 	<</if>>
 
 <<case "sadism fetishist">>
-	$activeSlave.slaveName rarely leaves $his new mistress's apartments, but the slave rumor mill bears stories about $him to your penthouse anyway. $His mistress uses $him as a rapist on demand, and $his dumbly obedient brutality is renowned.
+	getSlave($AS).slaveName rarely leaves $his new mistress's apartments, but the slave rumor mill bears stories about $him to your penthouse anyway. $His mistress uses $him as a rapist on demand, and $his dumbly obedient brutality is renowned.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].fetish == "sadist")>>
 			<<if ($slaves[_ss].fetishKnown == 1)>>
@@ -346,7 +346,7 @@
 	<</if>>
 
 <<case "dom fetishist">>
-	$activeSlave.slaveName wins $himself a leadership position with $his new master, who repays $his hard work by allowing $him to use his slaves at will.
+	getSlave($AS).slaveName wins $himself a leadership position with $his new master, who repays $his hard work by allowing $him to use his slaves at will.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].fetish == "dom")>>
 			<<if ($slaves[_ss].fetishKnown == 1)>>
@@ -360,7 +360,7 @@
 	<</if>>
 
 <<case "sub fetishist">>
-	The back of $activeSlave.slaveName's head becomes a well-known sight in business circles, since $his mistress rarely lets it out from between her legs.
+	The back of getSlave($AS).slaveName's head becomes a well-known sight in business circles, since $his mistress rarely lets it out from between her legs.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].fetish == "submissive")>>
 			<<if ($slaves[_ss].fetishKnown == 1)>>
@@ -374,7 +374,7 @@
 	<</if>>
 
 <<case "supremacist arcology">>
-	$activeSlave.slaveName leaves your control forthwith, to be freed and installed in a favored life in an arcology that gives $activeSlave.race people every possible advantage.
+	getSlave($AS).slaveName leaves your control forthwith, to be freed and installed in a favored life in an arcology that gives getSlave($AS).race people every possible advantage.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].devotion < 10)>>
 			<<set $slaves[_ss].devotion -= 2>>
@@ -386,7 +386,7 @@
 	<</if>>
 
 <<case "subjugationist arcology">>
-	$activeSlave.slaveName is shipped off to help produce a race of $activeSlave.race idiots to perform eternal servitude. $He is not perceptive enough to fear $his upcoming life as a downtrodden breeder.
+	getSlave($AS).slaveName is shipped off to help produce a race of getSlave($AS).race idiots to perform eternal servitude. $He is not perceptive enough to fear $his upcoming life as a downtrodden breeder.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].intelligence+$slaves[_ss].intelligenceImplant > 15)>>
 			<<set $slaves[_ss].trust -= 2>>
@@ -398,7 +398,7 @@
 	<</if>>
 
 <<case "gender radicalist arcology">>
-	$activeSlave.slaveName is shipped off, but $his buyer is so unwilling to waste any time that the shipment container includes hormonal injectors to get $him started on an intensive feminization regime as quickly as possible.
+	getSlave($AS).slaveName is shipped off, but $his buyer is so unwilling to waste any time that the shipment container includes hormonal injectors to get $him started on an intensive feminization regime as quickly as possible.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].dick > 0)>>
 			<<if ($slaves[_ss].devotion <= 20)>>
@@ -412,7 +412,7 @@
 	<</if>>
 
 <<case "gender fundamentalist arcology">>
-	$activeSlave.slaveName is taken away to join the legion of airheaded, big-titted sex slaves that throng the arcology owned by $his purchaser.
+	getSlave($AS).slaveName is taken away to join the legion of airheaded, big-titted sex slaves that throng the arcology owned by $his purchaser.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].intelligence+$slaves[_ss].intelligenceImplant > 50)>>
 			<<set $slaves[_ss].devotion -= 2>>
@@ -424,7 +424,7 @@
 	<</if>>
 
 <<case "paternalist arcology">>
-	$activeSlave.slaveName is shipped off to be improved into a happy, educated slave at the best pace $his new owner can manage.
+	getSlave($AS).slaveName is shipped off to be improved into a happy, educated slave at the best pace $his new owner can manage.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].devotion < -20)>>
 			<<if ($slaves[_ss].intelligence+$slaves[_ss].intelligenceImplant < -15)>>
@@ -438,7 +438,7 @@
 	<</if>>
 
 <<case "degradationist arcology">>
-	Stories about the place $he's going have reached $arcologies[0].name, and $activeSlave.slaveName suspects the fate $he's been condemned to when $he's loaded into a shipping container expressly designed to keep the inmate awake and uncomfortable.
+	Stories about the place $he's going have reached $arcologies[0].name, and getSlave($AS).slaveName suspects the fate $he's been condemned to when $he's loaded into a shipping container expressly designed to keep the inmate awake and uncomfortable.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].devotion > 20)>>
 			<<set $slaves[_ss].trust -= 2>>
@@ -450,7 +450,7 @@
 	<</if>>
 
 <<case "slimness enthusiast arcology">>
-	$activeSlave.slaveName is taken away to join the tribe of squealing, slim forms that populate the arcology of $his new owner.
+	getSlave($AS).slaveName is taken away to join the tribe of squealing, slim forms that populate the arcology of $his new owner.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].intelligence+$slaves[_ss].intelligenceImplant > 50)>>
 			<<set $slaves[_ss].devotion -= 2>>
@@ -462,7 +462,7 @@
 	<</if>>
 
 <<case "asset expansionist arcology">>
-	A shipping container arrives for $activeSlave.slaveName; as $he's loaded into it, it sedates $him and begins to pump hormones, curatives and growth enhancers into no less than seven places scattered over $his body.
+	A shipping container arrives for getSlave($AS).slaveName; as $he's loaded into it, it sedates $him and begins to pump hormones, curatives and growth enhancers into no less than seven places scattered over $his body.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].devotion <= 20)>>
 			<<set $slaves[_ss].trust -= 2>>
@@ -474,7 +474,7 @@
 	<</if>>
 
 <<case "organ crafter">>
-	$activeSlave.slaveName is seen in a research report nine months later; $he has undergone some interesting changes. As expected by someone interested in $his odd womb, $he is quite pregnant, but what really stands out is the massive size of $his testicles and $his huge round implants. A quick glance at the article reveals that they aren't implants; in fact, $his breasts and testicles are rounded with children.
+	getSlave($AS).slaveName is seen in a research report nine months later; $he has undergone some interesting changes. As expected by someone interested in $his odd womb, $he is quite pregnant, but what really stands out is the massive size of $his testicles and $his huge round implants. A quick glance at the article reveals that they aren't implants; in fact, $his breasts and testicles are rounded with children.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].mpreg == 1)>>
 			<<set $slaves[_ss].trust -= 5>>
@@ -486,7 +486,7 @@
 	<</if>>
 
 <<case "abortion TV">>
-	$activeSlave.slaveName is soon seen on live TV, restrained and still grotesquely pregnant. $He screams into $his restraints as the host approaches with a comically large syringe of abortifacients and drives it deep into $his womb. Within minutes, a flood of liquid and fetuses are pouring from $his gaping cunt, all the while he times how long it takes $his overburdened womb to drain of all its contents.
+	getSlave($AS).slaveName is soon seen on live TV, restrained and still grotesquely pregnant. $He screams into $his restraints as the host approaches with a comically large syringe of abortifacients and drives it deep into $his womb. Within minutes, a flood of liquid and fetuses are pouring from $his gaping cunt, all the while he times how long it takes $his overburdened womb to drain of all its contents.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if $slaves[_ss].bellyPreg >= 300000>>
 			<<set $slaves[_ss].trust -= 15>>
@@ -498,7 +498,7 @@
 	<</if>>
 
 <<case "womb filler">>
-	$activeSlave.slaveName is seen in a drug report nine months later; $he is unrecognizable. $His gaunt body is completely bloated by $his enormous womb, leaving <<if !isAmputee($activeSlave)>>what's left of $his <<if hasAnyArms($activeSlave)>>arm<<if hasBothArms($activeSlave)>>s<</if>><<if hasAnyLegs($activeSlave)>> and <</if>><</if>><<if hasAnyLegs($activeSlave)>>leg<<if hasBothLegs($activeSlave)>>s<</if>><</if>> dangling<<else>>$his torso teetering<</if>> pathetically atop its quivering mass. The headline reads "New drug allows for upwards of seven hundred children carried at once". Live on stream, $his body loses stability and ruptures, flooding the room with fluid and children.
+	getSlave($AS).slaveName is seen in a drug report nine months later; $he is unrecognizable. $His gaunt body is completely bloated by $his enormous womb, leaving <<if !isAmputee(getSlave($AS))>>what's left of $his <<if hasAnyArms(getSlave($AS))>>arm<<if hasBothArms(getSlave($AS))>>s<</if>><<if hasAnyLegs(getSlave($AS))>> and <</if>><</if>><<if hasAnyLegs(getSlave($AS))>>leg<<if hasBothLegs(getSlave($AS))>>s<</if>><</if>> dangling<<else>>$his torso teetering<</if>> pathetically atop its quivering mass. The headline reads "New drug allows for upwards of seven hundred children carried at once". Live on stream, $his body loses stability and ruptures, flooding the room with fluid and children.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].vagina == 0)>>
 			<<if isFertile($slaves[_ss])>>
@@ -512,7 +512,7 @@
 	<</if>>
 
 <<case "repopulationist arcology">>
-	$activeSlave.slaveName is seen nine months later with an enormous pregnancy and the most content look on $his face. $He <<if hasAnyArms($activeSlave)>>gently pats $his quadruplet filled belly and lets off a moan as $his children kick in response<<else>>moans lewdly as $his children kick away in $his womb<</if>>.
+	getSlave($AS).slaveName is seen nine months later with an enormous pregnancy and the most content look on $his face. $He <<if hasAnyArms(getSlave($AS))>>gently pats $his quadruplet filled belly and lets off a moan as $his children kick in response<<else>>moans lewdly as $his children kick away in $his womb<</if>>.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].vagina == 0)>>
 			<<if isFertile($slaves[_ss])>>
@@ -524,11 +524,11 @@
 		<</if>>
 	<</for>>
 	<<if (_slaveImpact == 1)>>
-		Your other pregnancy fetishists @@.mediumorchid;are jealous@@ of $activeSlave.slaveName's good fortune.
+		Your other pregnancy fetishists @@.mediumorchid;are jealous@@ of getSlave($AS).slaveName's good fortune.
 	<</if>>
 
 <<case "eugenics arcology">>
-	$activeSlave.slaveName is seen nearly a year later, happy and healthy, along with $his owner and newborn son. They are quite a good looking family.
+	getSlave($AS).slaveName is seen nearly a year later, happy and healthy, along with $his owner and newborn son. They are quite a good looking family.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].intelligence+$slaves[_ss].intelligenceImplant < -15)>>
 			<<if isFertile($slaves[_ss])>>
@@ -538,11 +538,11 @@
 		<</if>>
 	<</for>>
 	<<if (_slaveImpact == 1)>>
-		Your more idiotic slaves are @@.mediumorchid;deeply jealous@@ of $activeSlave.slaveName's new pampered lifestyle, oblivious to the demanding nature of eugenics.
+		Your more idiotic slaves are @@.mediumorchid;deeply jealous@@ of getSlave($AS).slaveName's new pampered lifestyle, oblivious to the demanding nature of eugenics.
 	<</if>>
 
 <<case "hedonistic decadence arcology">>
-	$activeSlave.slaveName is taken away to join a quivering mass of plump, pampered ladies that crowd the bedroom of $his new owner.
+	getSlave($AS).slaveName is taken away to join a quivering mass of plump, pampered ladies that crowd the bedroom of $his new owner.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if $slaves[_ss].behavioralFlaw == "gluttonous">>
 			<<set $slaves[_ss].devotion -= 2>>
@@ -550,11 +550,11 @@
 		<</if>>
 	<</for>>
 	<<if (_slaveImpact == 1)>>
-		Your more gluttonous slaves are @@.mediumorchid;deeply jealous@@ of $activeSlave.slaveName's constant feedings and excessive weight gain.
+		Your more gluttonous slaves are @@.mediumorchid;deeply jealous@@ of getSlave($AS).slaveName's constant feedings and excessive weight gain.
 	<</if>>
 
 <<case "stuffer chef">>
-	$activeSlave.slaveName's new owner is quite fond of his work and typically sends out photos of his progress. This is no exception; you are treated to a series of images featuring $activeSlave.slaveName being force-fed until $his stomach bulges. Day after day, you watch $him handle more and more food until $his belly is big enough to fill $his lap even when empty.
+	getSlave($AS).slaveName's new owner is quite fond of his work and typically sends out photos of his progress. This is no exception; you are treated to a series of images featuring getSlave($AS).slaveName being force-fed until $his stomach bulges. Day after day, you watch $him handle more and more food until $his belly is big enough to fill $his lap even when empty.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if $slaves[_ss].weight < 10>>
 			<<set $slaves[_ss].trust -= 2>>
@@ -566,7 +566,7 @@
 	<</if>>
 
 <<case "transformation fetishist arcology">>
-	A purchasing agent arrives for $activeSlave.slaveName; he uses a lull in the proceedings to use a permanent marker to begin mapping out surgical sites across $his body. There are a lot of them.
+	A purchasing agent arrives for getSlave($AS).slaveName; he uses a lull in the proceedings to use a permanent marker to begin mapping out surgical sites across $his body. There are a lot of them.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].devotion <= 20)>>
 			<<set $slaves[_ss].trust -= 2>>
@@ -578,7 +578,7 @@
 	<</if>>
 
 <<case "physical idealist arcology">>
-	Stories about the arcology $activeSlave.slaveName is headed to have circulated among slaves. Most intelligent slaves see a life of workouts as relatively harmless.
+	Stories about the arcology getSlave($AS).slaveName is headed to have circulated among slaves. Most intelligent slaves see a life of workouts as relatively harmless.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].weight > 10)>>
 			<<if ($slaves[_ss].intelligence+$slaves[_ss].intelligenceImplant < -15)>>
@@ -592,7 +592,7 @@
 	<</if>>
 
 <<case "pastoralist arcology">>
-	$activeSlave.slaveName is subjected to a stock assay and then packed off to take $his place as a prize heifer.
+	getSlave($AS).slaveName is subjected to a stock assay and then packed off to take $his place as a prize heifer.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].lactation == 0)>>
 			<<if ($slaves[_ss].devotion <= 20)>>
@@ -606,7 +606,7 @@
 	<</if>>
 
 <<case "chattel religionist arcology">>
-	$activeSlave.slaveName is terrified of $his impending religious life; perhaps $he's heard the new text that reads 'no woman come of age is holy unless she performs the act as many times per day as she has years less than forty.'
+	getSlave($AS).slaveName is terrified of $his impending religious life; perhaps $he's heard the new text that reads 'no woman come of age is holy unless she performs the act as many times per day as she has years less than forty.'
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].counter.anal < 200)>>
 			<<set $slaves[_ss].trust -= 2>>
@@ -618,7 +618,7 @@
 	<</if>>
 
 <<case "roman revivalist arcology">>
-	$activeSlave.slaveName is shipped to a new arcology, and culturally, across the centuries. $His skill at arms is well enough known that $his impending role as a gladiatrix is easily deduced.
+	getSlave($AS).slaveName is shipped to a new arcology, and culturally, across the centuries. $His skill at arms is well enough known that $his impending role as a gladiatrix is easily deduced.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].skill.combat > 0)>>
 			<<set $slaves[_ss].trust -= 2>>
@@ -630,7 +630,7 @@
 	<</if>>
 
 <<case "aztec revivalist arcology">>
-	$activeSlave.slaveName is transported after losing a military engagement. Though $his will remains strong, $he's @@.gold;filled with fear@@ when $he sees the rivers of blood that flow through the city.
+	getSlave($AS).slaveName is transported after losing a military engagement. Though $his will remains strong, $he's @@.gold;filled with fear@@ when $he sees the rivers of blood that flow through the city.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].skill.combat > 0)>>
 			<<set $slaves[_ss].trust -= 2>>
@@ -642,7 +642,7 @@
 	<</if>>
 
 <<case "egyptian revivalist arcology">>
-	$activeSlave.slaveName's journey to $his new home is respectful, even celebratory, as far as you can see. $He is gravely informed by the purchasing agent that many slaves await $his learned instruction.
+	getSlave($AS).slaveName's journey to $his new home is respectful, even celebratory, as far as you can see. $He is gravely informed by the purchasing agent that many slaves await $his learned instruction.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].intelligence+$slaves[_ss].intelligenceImplant < -50)>>
 			<<set $slaves[_ss].devotion -= 2>>
@@ -654,7 +654,7 @@
 	<</if>>
 
 <<case "virgin trader">>
-	$activeSlave.slaveName is seen in a shipment of slaves leaving the arcology a month later, with just the slightest hint of a gravid belly and a worn-down expression on $his face.
+	getSlave($AS).slaveName is seen in a shipment of slaves leaving the arcology a month later, with just the slightest hint of a gravid belly and a worn-down expression on $his face.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].vagina == 0)>>
 			<<if ($slaves[_ss].ovaries == 1)>>
@@ -668,7 +668,7 @@
 	<</if>>
 
 <<case "body purist arcology">>
-	$activeSlave.slaveName is shipped to $his new owner's arcology to have $his implants extracted and the resultant damage addressed.
+	getSlave($AS).slaveName is shipped to $his new owner's arcology to have $his implants extracted and the resultant damage addressed.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].devotion <= 50)>>
 			<<if ($slaves[_ss].boobsImplant > 1000)>>
@@ -682,7 +682,7 @@
 	<</if>>
 
 <<case "trainer staffing">>
-	$activeSlave.slaveName is soon well-known among the slaves of the arcology, as many of them are sold after passing under $his hands in training. $He performs effectively, imparting good sex slave ethics in a generation of sluts.
+	getSlave($AS).slaveName is soon well-known among the slaves of the arcology, as many of them are sold after passing under $his hands in training. $He performs effectively, imparting good sex slave ethics in a generation of sluts.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].intelligence+$slaves[_ss].intelligenceImplant > 15)>>
 			<<set $slaves[_ss].trust += 1>>
@@ -694,7 +694,7 @@
 	<</if>>
 
 <<case "teaching trainer">>
-	$activeSlave.slaveName is not pleased by $his change in circumstances, since $he is soon subjected to training rigor that $he did not experience while your property.
+	getSlave($AS).slaveName is not pleased by $his change in circumstances, since $he is soon subjected to training rigor that $he did not experience while your property.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].intelligenceImplant < 15)>>
 			<<set $slaves[_ss].trust -= 2>>
@@ -706,7 +706,7 @@
 	<</if>>
 
 <<case "implanting trainer">>
-	A few weeks later, $activeSlave.slaveName is seen in a shipment of slaves heading out of the arcology. $He has new fake tits, a bigger butt, lip implants, and even some facial bone structure alterations, but $his balloon breasts are the most shocking change.
+	A few weeks later, getSlave($AS).slaveName is seen in a shipment of slaves heading out of the arcology. $He has new fake tits, a bigger butt, lip implants, and even some facial bone structure alterations, but $his balloon breasts are the most shocking change.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].boobsImplant == 0)>>
 			<<set $slaves[_ss].trust -= 2>>
@@ -714,11 +714,11 @@
 		<</if>>
 	<</for>>
 	<<if (_slaveImpact == 1)>>
-		Your unimplanted slaves @@.gold;fear they'll go under the knife@@ for invasive surgery like $activeSlave.slaveName suffered, should you ever decide to sell them.
+		Your unimplanted slaves @@.gold;fear they'll go under the knife@@ for invasive surgery like getSlave($AS).slaveName suffered, should you ever decide to sell them.
 	<</if>>
 
 <<case "purifying trainer">>
-	A few weeks later, $activeSlave.slaveName is seen in a shipment of slaves heading out of the arcology. $He is almost unrecognizable, having been quickly returned to as natural an appearance as skillful removal of $his implants could manage.
+	A few weeks later, getSlave($AS).slaveName is seen in a shipment of slaves heading out of the arcology. $He is almost unrecognizable, having been quickly returned to as natural an appearance as skillful removal of $his implants could manage.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].boobsImplant > 800)>>
 			<<set $slaves[_ss].trust += 1>>
@@ -730,7 +730,7 @@
 	<</if>>
 
 <<case "D virgin asspussy">>
-	$activeSlave.slaveName's buyer takes charge of $him, and cannot resist immediately running a hand between $his buttocks to sink a couple of groping fingers into $his soft asspussy.
+	getSlave($AS).slaveName's buyer takes charge of $him, and cannot resist immediately running a hand between $his buttocks to sink a couple of groping fingers into $his soft asspussy.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].fetish == "buttslut")>>
 			<<set $slaves[_ss].trust += 1>>
@@ -742,7 +742,7 @@
 	<</if>>
 
 <<case "D startled the witch">>
-	$activeSlave.slaveName heads off to form part of whatever great design $his new master is pursuing; all you know is that it apparently requires lots of lithe, sharp toothed slave <<= $girl>>s.
+	getSlave($AS).slaveName heads off to form part of whatever great design $his new master is pursuing; all you know is that it apparently requires lots of lithe, sharp toothed slave <<= $girl>>s.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].devotion <= 20)>>
 			<<set $slaves[_ss].trust += 1>>
@@ -754,7 +754,7 @@
 	<</if>>
 
 <<case "vampire clan">>
-	$activeSlave.slaveName is quickly embraced by $his new owner and spirited away like all the other <<= $girl>>s that catch his fancy.
+	getSlave($AS).slaveName is quickly embraced by $his new owner and spirited away like all the other <<= $girl>>s that catch his fancy.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].devotion <= 20)>>
 			<<set $slaves[_ss].trust += 1>>
@@ -766,7 +766,7 @@
 	<</if>>
 
 <<case "D milf staffing">>
-	$activeSlave.slaveName becomes a common sight around the arcology, training slaves for $his new master. They're usually seen hanging close by $him as $he manages them with an air at once protective and frankly sexual.
+	getSlave($AS).slaveName becomes a common sight around the arcology, training slaves for $his new master. They're usually seen hanging close by $him as $he manages them with an air at once protective and frankly sexual.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].actualAge > 35)>>
 			<<set $slaves[_ss].trust += 1>>
@@ -778,7 +778,7 @@
 	<</if>>
 
 <<case "D hucow">>
-	$activeSlave.slaveName becomes quite a fixture at social events hosted by $his new master; he enjoys showing off how healthy, happy and productive his cow is.
+	getSlave($AS).slaveName becomes quite a fixture at social events hosted by $his new master; he enjoys showing off how healthy, happy and productive his cow is.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].lactation > 0)>>
 			<<set $slaves[_ss].trust += 1>>
@@ -790,7 +790,7 @@
 	<</if>>
 
 <<case "D r9k">>
-	$activeSlave.slaveName's nervous buyer comes to collect $him, stammering and sweating and doing his best to pretend he does this all the time.
+	getSlave($AS).slaveName's nervous buyer comes to collect $him, stammering and sweating and doing his best to pretend he does this all the time.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].counter.vaginal + $slaves[_ss].counter.anal < 20)>>
 			<<set $slaves[_ss].trust += 1>>
@@ -802,7 +802,7 @@
 	<</if>>
 
 <<case "slimming trainer">>
-	$activeSlave.slaveName is occasionally visible around the arcology, looking rather tired and gaunt under the stresses of a severe crash diet coupled with a punishing cardio regime.
+	getSlave($AS).slaveName is occasionally visible around the arcology, looking rather tired and gaunt under the stresses of a severe crash diet coupled with a punishing cardio regime.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].weight > 10)>>
 			<<set $slaves[_ss].trust -= 2>>
@@ -814,7 +814,7 @@
 	<</if>>
 
 <<case "broadening trainer">>
-	$activeSlave.slaveName is only rarely seen around the arcology, since $his new owners force $him to spend most of $his time sleeping, eating and looking after $himself. But $his belly, painfully distended with food, makes $his situation obvious.
+	getSlave($AS).slaveName is only rarely seen around the arcology, since $his new owners force $him to spend most of $his time sleeping, eating and looking after $himself. But $his belly, painfully distended with food, makes $his situation obvious.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].weight > 10)>>
 			<<set $slaves[_ss].trust -= 2>>
@@ -826,7 +826,7 @@
 	<</if>>
 
 <<case "cow trainer">>
-	$activeSlave.slaveName is last seen somewhat later, packed into a shipment of cows heading out of the arcology. $He looks rather ill from the drugs $he's been filled with, and $his now-distended breasts are marred by unsightly stretch marks.
+	getSlave($AS).slaveName is last seen somewhat later, packed into a shipment of cows heading out of the arcology. $He looks rather ill from the drugs $he's been filled with, and $his now-distended breasts are marred by unsightly stretch marks.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].lactation == 0)>>
 			<<set $slaves[_ss].trust -= 2>>
@@ -838,7 +838,7 @@
 	<</if>>
 
 <<case "clipping trainer">>
-	$activeSlave.slaveName is frequently seen in public over the next few weeks, since $he's being trained to improve $his feminine deportment. $He grows visibly more feminine as time passes, as the hormonal effects of having $his balls cut off become apparent.
+	getSlave($AS).slaveName is frequently seen in public over the next few weeks, since $he's being trained to improve $his feminine deportment. $He grows visibly more feminine as time passes, as the hormonal effects of having $his balls cut off become apparent.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].balls > 0)>>
 			<<set $slaves[_ss].trust -= 2>>
@@ -850,7 +850,7 @@
 	<</if>>
 
 <<case "reassignment trainer">>
-	$activeSlave.slaveName is next seen after some weeks of surgery. $He's barely recognizable, and now possesses a serviceable vagina which $he clearly is unsure of. $His original status is scarcely discernible.
+	getSlave($AS).slaveName is next seen after some weeks of surgery. $He's barely recognizable, and now possesses a serviceable vagina which $he clearly is unsure of. $His original status is scarcely discernible.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].dick > 0)>>
 			<<set $slaves[_ss].trust -= 2>>
@@ -862,7 +862,7 @@
 	<</if>>
 
 <<case "arcade">>
-	The upper half of $activeSlave.slaveName's body is never seen again. $His butt, on the other hand, is periodically visible in a lower-level arcade, $his orifices gradually showing the wear and $his price gradually decreasing, until finally $he is seen no more.
+	The upper half of getSlave($AS).slaveName's body is never seen again. $His butt, on the other hand, is periodically visible in a lower-level arcade, $his orifices gradually showing the wear and $his price gradually decreasing, until finally $he is seen no more.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].devotion < 10)>>
 			<<set $slaves[_ss].trust -= 2>>
@@ -874,25 +874,25 @@
 	<</if>>
 
 <<case "D cannibal">>
-	$activeSlave.slaveName is never seen again. $His buyer prefers to keep whatever happened to $him private. However, rumors of steaks, rump roasts, sweetbreads, and blood pudding eaten at three in the morning filter out from time to time. Naturally, these murmurs never fail to @@.gold;terrify@@ your other slaves.
+	getSlave($AS).slaveName is never seen again. $His buyer prefers to keep whatever happened to $him private. However, rumors of steaks, rump roasts, sweetbreads, and blood pudding eaten at three in the morning filter out from time to time. Naturally, these murmurs never fail to @@.gold;terrify@@ your other slaves.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<set $slaves[_ss].trust -= 2>>
 	<</for>>
 
 <<case "harvester">>
-	Though $activeSlave.slaveName's fate as a source of organs for transplantation is not announced, rumors of what happens to those who @@.gold;fail to be valuable to you@@ pass among your slaves.
+	Though getSlave($AS).slaveName's fate as a source of organs for transplantation is not announced, rumors of what happens to those who @@.gold;fail to be valuable to you@@ pass among your slaves.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<set $slaves[_ss].trust -= 2>>
 	<</for>>
 
 <<case "D amazon hunter">>
-	When $activeSlave.slaveName's buyer appears, the big $girl is almost bashful. He tries to resist the impulse, but quickly breaks down and sweeps $him into a tight hug. $He accepts the embrace meekly. Your other slaves find this @@.mediumaquamarine;very romantic.@@
+	When getSlave($AS).slaveName's buyer appears, the big $girl is almost bashful. He tries to resist the impulse, but quickly breaks down and sweeps $him into a tight hug. $He accepts the embrace meekly. Your other slaves find this @@.mediumaquamarine;very romantic.@@
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<set $slaves[_ss].trust += 1>>
 	<</for>>
 
 <<case "D oral servants">>
-	$activeSlave.slaveName is an occasional sight around the arcology; $he's never seen outside the company of $his new slave superior. This is one of $his new master's more favored slaves. $He has a huge cock, and $activeSlave.slaveName is usually seen crouching down, hugging one of $his superior's legs and keeping $his mouth obediently near that dick.
+	getSlave($AS).slaveName is an occasional sight around the arcology; $he's never seen outside the company of $his new slave superior. This is one of $his new master's more favored slaves. $He has a huge cock, and getSlave($AS).slaveName is usually seen crouching down, hugging one of $his superior's legs and keeping $his mouth obediently near that dick.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].fetishKnown == 1)>>
 			<<if ($slaves[_ss].fetish == "cumslut")>>
@@ -906,7 +906,7 @@
 	<</if>>
 
 <<case "D trap lover">>
-	$activeSlave.slaveName becomes a frequent sight around the arcology, accompanying $his new master. $He's clearly happy, and is frequently seen to offer $his butt to him with a smile.
+	getSlave($AS).slaveName becomes a frequent sight around the arcology, accompanying $his new master. $He's clearly happy, and is frequently seen to offer $his butt to him with a smile.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].dick > 0)>>
 			<<if ($slaves[_ss].devotion > 20)>>
@@ -920,7 +920,7 @@
 	<</if>>
 
 <<case "D butt bury">>
-	$activeSlave.slaveName's buyer arrives promptly; he seems pleased with his new slave's bountiful bottom, so far off the ground.
+	getSlave($AS).slaveName's buyer arrives promptly; he seems pleased with his new slave's bountiful bottom, so far off the ground.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].fetish == "buttslut")>>
 			<<if ($slaves[_ss].fetishKnown == 1)>>
@@ -934,7 +934,7 @@
 	<</if>>
 
 <<case "D milky herm">>
-	$activeSlave.slaveName's buyer arrives and seems pleased with $his lovely feminine appearance; he verifies $his lactation and $his ability to achieve erection despite $his lack of visible balls.
+	getSlave($AS).slaveName's buyer arrives and seems pleased with $his lovely feminine appearance; he verifies $his lactation and $his ability to achieve erection despite $his lack of visible balls.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].dick > 0)>>
 			<<if ($slaves[_ss].boobs > 400)>>
@@ -948,7 +948,7 @@
 	<</if>>
 
 <<case "D shorty breeder">>
-	$activeSlave.slaveName's lithe, muscular form is rarely seen after $his buyer takes charge of $him, since $he seems to spend most of $his time at home making babies.
+	getSlave($AS).slaveName's lithe, muscular form is rarely seen after $his buyer takes charge of $him, since $he seems to spend most of $his time at home making babies.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].fetish == "pregnancy")>>
 			<<if ($slaves[_ss].fetishKnown == 1)>>
@@ -962,16 +962,16 @@
 	<</if>>
 
 <<case "D waifu">>
-	$activeSlave.slaveName is rarely seen after $his buyer takes charge of $him, since he prefers to keep his beloved at home. Though $he seems to be well treated, arcology society finds him repellent enough that your other slaves do not envy $him.
+	getSlave($AS).slaveName is rarely seen after $his buyer takes charge of $him, since he prefers to keep his beloved at home. Though $he seems to be well treated, arcology society finds him repellent enough that your other slaves do not envy $him.
 
 <<case "fuckdoll">>
-	Though $activeSlave.slaveName's fate as a living fucktoy is not obvious, since most of $his body will forever after be encased in thick latex, rumors of what happens to those who @@.gold;fail to be valuable to you@@ pass among your slaves.
+	Though getSlave($AS).slaveName's fate as a living fucktoy is not obvious, since most of $his body will forever after be encased in thick latex, rumors of what happens to those who @@.gold;fail to be valuable to you@@ pass among your slaves.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<set $slaves[_ss].trust -= 2>>
 	<</for>>
 
 <<case "porn studio">>
-	$activeSlave.slaveName becomes a frequent sight in $activeSlave.porn.fameType smut and attracts huge crowds with each public appearance.
+	getSlave($AS).slaveName becomes a frequent sight in getSlave($AS).porn.fameType smut and attracts huge crowds with each public appearance.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if $slaves[_ss].porn.prestige > 0 && $slaves[_ss].porn.prestige < 3>>
 			<<if ($slaves[_ss].devotion > 20)>>
@@ -985,7 +985,7 @@
 	<</if>>
 
 <<case "obsessed fan">>
-	$activeSlave.slaveName is rarely seen after $his buyer takes charge of $him, since he prefers to keep his prize safe and sound at home.
+	getSlave($AS).slaveName is rarely seen after $his buyer takes charge of $him, since he prefers to keep his prize safe and sound at home.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if $slaves[_ss].porn.prestige == 1>>
 			<<if ($slaves[_ss].devotion > 20)>>
@@ -1000,7 +1000,7 @@
 
 
 <<case "tentacle bred">>
-	Sometime later, a snuff film starring $activeSlave.slaveName as a heroine captured, raped, and fatally bred by tentacles is released. It receives rave reviews for the scene involving $activeSlave.slaveName, depicting $his aphrodisiac-filled body being penetrated in all $his holes by tentacles. Their thrusting into $him increases until large bulges of cum pass through the ones filling $his stretched cunt, visibly bloating $his belly. $He then collapses to the ground, $his swollen belly rapidly growing with the tentacle spawn gestating within $him. As they bulge against the straining walls of $his implant-filled middle; $he lets out a final moan as $his belly ruptures, releasing $his "spawn" to hunt down the other heroines.
+	Sometime later, a snuff film starring getSlave($AS).slaveName as a heroine captured, raped, and fatally bred by tentacles is released. It receives rave reviews for the scene involving getSlave($AS).slaveName, depicting $his aphrodisiac-filled body being penetrated in all $his holes by tentacles. Their thrusting into $him increases until large bulges of cum pass through the ones filling $his stretched cunt, visibly bloating $his belly. $He then collapses to the ground, $his swollen belly rapidly growing with the tentacle spawn gestating within $him. As they bulge against the straining walls of $his implant-filled middle; $he lets out a final moan as $his belly ruptures, releasing $his "spawn" to hunt down the other heroines.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if canSee($slaves[_ss])>>
 			<<if $slaves[_ss].intelligence+$slaves[_ss].intelligenceImplant < -15>>
@@ -1010,11 +1010,11 @@
 		<</if>>
 	<</for>>
 	<<if _slaveImpact == 1>>
-		Your less than intelligent slaves are @@.mediumorchid;deeply envious@@ of $activeSlave.slaveName, completely failing to comprehend what they saw were not special effects.
+		Your less than intelligent slaves are @@.mediumorchid;deeply envious@@ of getSlave($AS).slaveName, completely failing to comprehend what they saw were not special effects.
 	<</if>>
 
 <<case "concert hall">>
-	As $activeSlave.slaveName now spends all $his time backstage, $he's rarely seen again. Occasionally, however, a roadie will bring $him outside as he hauls the equipment, and $he jacks him off.
+	As getSlave($AS).slaveName now spends all $his time backstage, $he's rarely seen again. Occasionally, however, a roadie will bring $him outside as he hauls the equipment, and $he jacks him off.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].hears < 0)>>
 			<<set $slaves[_ss].trust += 1>>
@@ -1026,7 +1026,7 @@
 	<</if>>
 
 <<case "etiquette coach">>
-	$activeSlave.slaveName's new etiquette trainer sends you courtesy updates on $his progress, as $he learns proper poise and enunciation, the correct locations of silverware, and how to avoid making vulgar comments while performing lascivious acts.
+	getSlave($AS).slaveName's new etiquette trainer sends you courtesy updates on $his progress, as $he learns proper poise and enunciation, the correct locations of silverware, and how to avoid making vulgar comments while performing lascivious acts.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].sexualFlaw == "crude")>>
 			<<set $slaves[_ss].trust -= 1>>
@@ -1038,7 +1038,7 @@
 	<</if>>
 
 <<case "sex double">>
-	$activeSlave.slaveName soon makes $his debut on the big screen in a debaucherous gangbang in place of the popular lead. $He is a spitting image of the actress, even when coated in layers of semen.
+	getSlave($AS).slaveName soon makes $his debut on the big screen in a debaucherous gangbang in place of the popular lead. $He is a spitting image of the actress, even when coated in layers of semen.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].sexualFlaw == "attention whore")>>
 			<<set $slaves[_ss].devotion -= 2>>
@@ -1046,11 +1046,11 @@
 		<</if>>
 	<</for>>
 	<<if (_slaveImpact == 1)>>
-		The attention whores among your slaves are @@.mediumorchid;envious@@ of $activeSlave.slaveName's good fortune.
+		The attention whores among your slaves are @@.mediumorchid;envious@@ of getSlave($AS).slaveName's good fortune.
 	<</if>>
 
 <<case "monster movie">>
-	$activeSlave.slaveName soon makes $his debut on the big screen in a thrilling horror movie. At its end, the male lead finds his partner, played by $him in this scene, glued to a wall with a massively distended middle filled to capacity with the monster's spawn. The camera slowly zooms in on $him as $he gives birth to a future sequel.
+	getSlave($AS).slaveName soon makes $his debut on the big screen in a thrilling horror movie. At its end, the male lead finds his partner, played by $him in this scene, glued to a wall with a massively distended middle filled to capacity with the monster's spawn. The camera slowly zooms in on $him as $he gives birth to a future sequel.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].sexualFlaw == "breeder")>>
 			<<set $slaves[_ss].devotion -= 2>>
@@ -1058,11 +1058,11 @@
 		<</if>>
 	<</for>>
 	<<if (_slaveImpact == 1)>>
-		The pregnancy obsessed sluts among your slaves are @@.mediumorchid;envious@@ of $activeSlave.slaveName's new experience, even if it is fake.
+		The pregnancy obsessed sluts among your slaves are @@.mediumorchid;envious@@ of getSlave($AS).slaveName's new experience, even if it is fake.
 	<</if>>
 	
 <<case "sniper spotter">>
-	The mercenary sniper greets $activeSlave.slaveName before the two of them head off for a battlefield halfway around the world. "Let's hope you've got a good eye for political assassinations," he says humorlessly.
+	The mercenary sniper greets getSlave($AS).slaveName before the two of them head off for a battlefield halfway around the world. "Let's hope you've got a good eye for political assassinations," he says humorlessly.
 	<<for _ss = 0; _ss < $slaves.length; _ss++>>
 		<<if ($slaves[_ss].skill.combat <= 15)>>
 			<<set $slaves[_ss].devotion -= 3>>
@@ -1074,46 +1074,46 @@
 	<</if>>
 
 <<case "peacekeepers">>
-	$activeSlave.slaveName is delivered to General $peacekeepers.generalName's forces, to serve as a barracks whore. Several days later, the purchasing officer forwards a short shot of $activeSlave.slaveName
-	<<set _slaveCost = slaveCost($activeSlave)>>
+	getSlave($AS).slaveName is delivered to General $peacekeepers.generalName's forces, to serve as a barracks whore. Several days later, the purchasing officer forwards a short shot of getSlave($AS).slaveName
+	<<set _slaveCost = slaveCost(getSlave($AS))>>
 	<<if $peacekeepers.tastes == 0>>
 		<<if _slaveCost > random(10000,50000) || $peacekeepers.attitude > 90>><<set _influential = 1>><<else>><<set _influential = 0>><</if>>
-		<<if _influential && $activeSlave.belly >= 300000>>
-			<<set _belly = bellyAdjective($activeSlave)>>
+		<<if _influential && getSlave($AS).belly >= 300000>>
+			<<set _belly = bellyAdjective(getSlave($AS))>>
 			smiling as $his _belly belly is used as the center of a large bukkake party. You can just barely make out the figure of someone taking $him from behind beyond $his immensity. There's a note attached, stating superfluously that $his exotic feature makes $him very popular. General $peacekeepers.generalName's buyer is going to be looking for more massive bellied <<= $girl>>s in the future.
 			<<set $peacekeepers.tastes = "bellies with girls attached">>
-		<<elseif _influential && $activeSlave.balls > 0 && $activeSlave.scrotum > 0 && $activeSlave.dick > 0 && $activeSlave.vagina > -1 && $activeSlave.energy > 50>>
+		<<elseif _influential && getSlave($AS).balls > 0 && getSlave($AS).scrotum > 0 && getSlave($AS).dick > 0 && getSlave($AS).vagina > -1 && getSlave($AS).energy > 50>>
 			with dicks in $his mouth, pussy, and ass. $He's totally covered in cum, and a lot of it is $hers. There's a note attached, stating superfluously that $he's very popular. General $peacekeepers.generalName's buyer is going to be looking for more lusty futas in the future.
 			<<set $peacekeepers.tastes = "lusty futanari">>
-		<<elseif _influential && $activeSlave.fetish == "cumslut" && $activeSlave.fetishStrength > 95 && $activeSlave.sexualFlaw == "cum addict">>
-			on <<if hasBothLegs($activeSlave)>>$his knees<<else>>the ground<</if>>, sucking dick. That's where $he's at home, of course, and as soon as the man $he's blowing cums down $his throat and steps away, another immediately replaces him. $activeSlave.slaveName keeps guzzling penis without hesitation. There's a note attached, stating superfluously that $his apparently bottomless appetite for cum has made $him very popular. General $peacekeepers.generalName's buyer is going to be looking for more cum addicts in the future.
+		<<elseif _influential && getSlave($AS).fetish == "cumslut" && getSlave($AS).fetishStrength > 95 && getSlave($AS).sexualFlaw == "cum addict">>
+			on <<if hasBothLegs(getSlave($AS))>>$his knees<<else>>the ground<</if>>, sucking dick. That's where $he's at home, of course, and as soon as the man $he's blowing cums down $his throat and steps away, another immediately replaces him. getSlave($AS).slaveName keeps guzzling penis without hesitation. There's a note attached, stating superfluously that $his apparently bottomless appetite for cum has made $him very popular. General $peacekeepers.generalName's buyer is going to be looking for more cum addicts in the future.
 			<<set $peacekeepers.tastes = "cum addicts">>
-		<<elseif _influential && $activeSlave.boobs > 2000 && $activeSlave.lactation > 1>>
+		<<elseif _influential && getSlave($AS).boobs > 2000 && getSlave($AS).lactation > 1>>
 			standing obediently in a comfort station in one of their rear area facilities, while a huge group of muscular men and women take turns drinking straight from $his nipples as a break from using the other whores. Someone's fucking $him from behind. There's a note attached, stating superfluously that $he's very popular. General $peacekeepers.generalName's buyer is going to be looking for more big-breasted cows in the future.
 			<<set $peacekeepers.tastes = "big-breasted cows">>
-		<<elseif _influential && $activeSlave.boobs > 20000 && $activeSlave.butt > 10>>
+		<<elseif _influential && getSlave($AS).boobs > 20000 && getSlave($AS).butt > 10>>
 			standing obediently in a comfort station in one of their rear area facilities, while a huge group of muscular men titfuck $his near endless cleavage and another, smaller group use $his gigantic asscheeks. There's a note attached, stating superfluously that $his mind-blowing assets make $him very popular. General $peacekeepers.generalName's buyer is going to be looking for more slaves with bountiful T&A in the future.
 			<<set $peacekeepers.tastes = "flesh balloons">>
-		<<elseif _influential && $activeSlave.physicalAge > 34 && $activeSlave.visualAge > 34 && $activeSlave.energy > 80>>
-			energetically bouncing atop one young man while a muscular young woman standing over $him rides $his face. <<if (hasAnyArms($activeSlave))>>$He's got dicks in <<if (!hasBothArms($activeSlave))>>$his hand<<else>>both of $his hands<</if>>, and is stroking them eagerly. <</if>>There's a note attached, stating superfluously that $he's very popular. General $peacekeepers.generalName's buyer is going to be looking for more horny MILFs in the future.
+		<<elseif _influential && getSlave($AS).physicalAge > 34 && getSlave($AS).visualAge > 34 && getSlave($AS).energy > 80>>
+			energetically bouncing atop one young man while a muscular young woman standing over $him rides $his face. <<if (hasAnyArms(getSlave($AS)))>>$He's got dicks in <<if (!hasBothArms(getSlave($AS)))>>$his hand<<else>>both of $his hands<</if>>, and is stroking them eagerly. <</if>>There's a note attached, stating superfluously that $he's very popular. General $peacekeepers.generalName's buyer is going to be looking for more horny MILFs in the future.
 			<<set $peacekeepers.tastes = "horny MILFs">>
-		<<elseif _influential && $activeSlave.physicalAge < 13 && $activeSlave.visualAge < 13 && $activeSlave.boobs > 2000>>
+		<<elseif _influential && getSlave($AS).physicalAge < 13 && getSlave($AS).visualAge < 13 && getSlave($AS).boobs > 2000>>
 			kneeling over a soldier, putting $his proportionally massive breasts to work. There's a note attached, stating superfluously that $he's very popular. It's not surprising; $he's young, full of energy, and practically overflowing with tit flesh. General $peacekeepers.generalName's buyer is going to be looking for more busty little <<= $girl>>s in the future.
 			<<set $peacekeepers.tastes = "oppai loli">>
-		<<elseif _influential && $activeSlave.physicalAge < 25 && $activeSlave.visualAge < 25 && $activeSlave.face > 95>>
+		<<elseif _influential && getSlave($AS).physicalAge < 25 && getSlave($AS).visualAge < 25 && getSlave($AS).face > 95>>
 			striking a come-hither pose for an enormous crowd of cheering soldiers. There's a note attached, stating superfluously that $he's very popular. It's not surprising; $he's young, very beautiful, and able to handle a lot of devoted attention. General $peacekeepers.generalName's buyer is going to be looking for more beautiful young sex slaves in the future.
 			<<set $peacekeepers.tastes = "beautiful young sex slaves">>
-		<<elseif _influential && $activeSlave.vagina == 0 && isFertile($activeSlave)>>
+		<<elseif _influential && getSlave($AS).vagina == 0 && isFertile(getSlave($AS))>>
 			happily taking it vaginally while teasing the growing crowd eager to cum in $his needy pussy. There's a note attached, stating superfluously that $he's very popular. It's not surprising; $he has a burning need that they are dutifully fulfilling. General $peacekeepers.generalName's buyer is going to be looking for more eager virgins in the future.
 			<<set $peacekeepers.tastes = "fertile virgins">>
-		<<elseif _influential && $activeSlave.preg > $activeSlave.pregData.normalBirth/4 && $activeSlave.fetish == "pregnancy" && $activeSlave.sexualFlaw == "breeder">>
-			on $his back, getting fucked while teasing $his growing baby bump. That's where $he's at home, of course, and as soon as the man $he's taking cums in $his <<if $activeSlave.mpreg > 0>>asspussy<<else>>pussy<</if>> and steps away, another immediately replaces him. $activeSlave.slaveName keeps <<if hasBothLegs($activeSlave)>>spreading $his legs<<else>>presenting $himself<</if>> without hesitation. There's a note attached, stating superfluously that $his apparently bottomless appetite for bareback sex has made $him very popular. General $peacekeepers.generalName's buyer is going to be looking for more baby-obsessed breeders in the future.
+		<<elseif _influential && getSlave($AS).preg > getSlave($AS).pregData.normalBirth/4 && getSlave($AS).fetish == "pregnancy" && getSlave($AS).sexualFlaw == "breeder">>
+			on $his back, getting fucked while teasing $his growing baby bump. That's where $he's at home, of course, and as soon as the man $he's taking cums in $his <<if getSlave($AS).mpreg > 0>>asspussy<<else>>pussy<</if>> and steps away, another immediately replaces him. getSlave($AS).slaveName keeps <<if hasBothLegs(getSlave($AS))>>spreading $his legs<<else>>presenting $himself<</if>> without hesitation. There's a note attached, stating superfluously that $his apparently bottomless appetite for bareback sex has made $him very popular. General $peacekeepers.generalName's buyer is going to be looking for more baby-obsessed breeders in the future.
 			<<set $peacekeepers.tastes = "baby obsessed breeders">>
-		<<elseif _influential && $activeSlave.preg > $activeSlave.pregData.normalBirth/4 && $activeSlave.energy > 50>>
-			eagerly bouncing atop one young man while a muscular young woman standing over $him rides $his face. <<if (hasAnyArms($activeSlave))>>$He's got dicks in <<if (!hasBothArms($activeSlave))>>$his hand<<else>>both of $his hands<</if>>, and is stroking them eagerly, encouraging their owners to cum on $his rounded middle. <</if>>There's a note attached, stating superfluously that $he's very popular. General $peacekeepers.generalName's buyer is going to be looking for more horny preggos in the future.
+		<<elseif _influential && getSlave($AS).preg > getSlave($AS).pregData.normalBirth/4 && getSlave($AS).energy > 50>>
+			eagerly bouncing atop one young man while a muscular young woman standing over $him rides $his face. <<if (hasAnyArms(getSlave($AS)))>>$He's got dicks in <<if (!hasBothArms(getSlave($AS)))>>$his hand<<else>>both of $his hands<</if>>, and is stroking them eagerly, encouraging their owners to cum on $his rounded middle. <</if>>There's a note attached, stating superfluously that $he's very popular. General $peacekeepers.generalName's buyer is going to be looking for more horny preggos in the future.
 			<<set $peacekeepers.tastes = "lusty preggos">>
 		<<else>>
-			<<if $activeSlave.devotion > 20>><<if $activeSlave.energy > 80>>eagerly<<else>>willingly<</if>> offering $himself outside<<else>>restrained for use inside<</if>> a comfort station at one of their rear area facilities, together with a note stating that $he's satisfactory. $He's sufficient but not remarkable enough to have a major impact.
+			<<if getSlave($AS).devotion > 20>><<if getSlave($AS).energy > 80>>eagerly<<else>>willingly<</if>> offering $himself outside<<else>>restrained for use inside<</if>> a comfort station at one of their rear area facilities, together with a note stating that $he's satisfactory. $He's sufficient but not remarkable enough to have a major impact.
 		<</if>>
 	<<else>>
 		<<switch $peacekeepers.tastes>>
@@ -1155,7 +1155,7 @@
 		$His presence will influence General $peacekeepers.generalName's troops in favor of a closer relationship with the Free City; old world mores are difficult to maintain while inside an arcology-trained sex slave.
 		<<set $peacekeepers.attitude += Math.ceil(_slaveCost/10000)>>
 	<<elseif $peacekeepers.attitude < 100>>
-		With $activeSlave.slaveName added to their stable of sex slaves, General $peacekeepers.generalName's troops will be fully converted to the idea of aligning with the slaveowning Free Cities, and the general will no longer have to maintain even plausible deniability. @@.yellow;General $peacekeepers.generalName's little empire is now effectively a client state of $arcologies[0].name.@@
+		With getSlave($AS).slaveName added to their stable of sex slaves, General $peacekeepers.generalName's troops will be fully converted to the idea of aligning with the slaveowning Free Cities, and the general will no longer have to maintain even plausible deniability. @@.yellow;General $peacekeepers.generalName's little empire is now effectively a client state of $arcologies[0].name.@@
 		<<set $peacekeepers.attitude = 100>>
 	<<else>>
 		General $peacekeepers.generalName's little empire continues to be a reliable client state of $arcologies[0].name, and a good market for $peacekeepers.tastes.
@@ -1166,8 +1166,8 @@
 
 <</switch>>
 
-<<if isShelterSlave($activeSlave)>>
+<<if isShelterSlave(getSlave($AS))>>
 	<<set $shelterAbuse += 1>>
 <</if>>
 
-<<= removeSlave($activeSlave)>>
+<<= removeSlave(getSlave($AS))>>
-- 
GitLab