From 2af92b74d1744ede5f10760312fc34fa2e289094 Mon Sep 17 00:00:00 2001
From: lowercasedonkey <lowercasedonkey@gmail.com>
Date: Fri, 18 Sep 2020 23:49:23 -0400
Subject: [PATCH] sell slave to AS

---
 src/uncategorized/sellSlave.tw | 990 ++++++++++++++++-----------------
 1 file changed, 495 insertions(+), 495 deletions(-)

diff --git a/src/uncategorized/sellSlave.tw b/src/uncategorized/sellSlave.tw
index 22b5dd4efbb..4800e37ced4 100644
--- a/src/uncategorized/sellSlave.tw
+++ b/src/uncategorized/sellSlave.tw
@@ -3,45 +3,45 @@
 <<set $nextButton = "Back", $nextLink = "Slave Interact">>
 
 You prepare $him for sale. $His response to being put up for purchase is
-<<if $activeSlave.devotion < -50>>
-	<<if $activeSlave.trust > 20>>
+<<if getSlave($AS).devotion < -50>>
+	<<if getSlave($AS).trust > 20>>
 		annoyance; $he must have thought $he had a good thing going here despite $his defiance.
 	<<else>>
 		muted; perhaps $he hopes a new master will be less hateful than you.
 	<</if>>
-<<elseif $activeSlave.devotion < -20>>
-	<<if $activeSlave.trust > 20>>
+<<elseif getSlave($AS).devotion < -20>>
+	<<if getSlave($AS).trust > 20>>
 		mild panic; $he seems to be concerned about $his future.
 	<<else>>
 		muted weeping; for some reason, $he doesn't like being treated like meat on a slab.
 	<</if>>
-<<elseif $activeSlave.devotion <= 20>>hesitant; $he can't seem to make up $his mind whether this is going to mean an improvement or not.
-<<elseif $activeSlave.devotion <= 50>>obedient, if mechanical; $he may want to stay with you.
-<<elseif $activeSlave.devotion <= 95>>ill-concealed sorrow; $he clearly wants to stay with you very much.
+<<elseif getSlave($AS).devotion <= 20>>hesitant; $he can't seem to make up $his mind whether this is going to mean an improvement or not.
+<<elseif getSlave($AS).devotion <= 50>>obedient, if mechanical; $he may want to stay with you.
+<<elseif getSlave($AS).devotion <= 95>>ill-concealed sorrow; $he clearly wants to stay with you very much.
 <<else>>open, abject, and heart-wrenching begging. Staying with you truly seems to be $his only wish.
 <</if>>
-<<if $activeSlave.trust < -50>>$He's certainly very willing to get away from your horrible punishments.
-<<elseif $activeSlave.trust < -20>>$He's probably hoping $he'll be a little less frightened all the time, wherever $he goes.
-<<elseif $activeSlave.trust < 20>>$He does seem concerned that, hard as you are, $his buyer may be less fair.
-<<elseif $activeSlave.trust < 50>>$He's worried, probably because $he's learned how to avoid punishment here and will have to learn new rules.
-<<elseif $activeSlave.trust < 95>>
-	<<if $activeSlave.devotion < -20>>
+<<if getSlave($AS).trust < -50>>$He's certainly very willing to get away from your horrible punishments.
+<<elseif getSlave($AS).trust < -20>>$He's probably hoping $he'll be a little less frightened all the time, wherever $he goes.
+<<elseif getSlave($AS).trust < 20>>$He does seem concerned that, hard as you are, $his buyer may be less fair.
+<<elseif getSlave($AS).trust < 50>>$He's worried, probably because $he's learned how to avoid punishment here and will have to learn new rules.
+<<elseif getSlave($AS).trust < 95>>
+	<<if getSlave($AS).devotion < -20>>
 		$He's worried, probably because $he thinks you won't harm $him while another owner might.
 	<<else>>
 		$He promises $he will do $his best to make you proud by being a good slave to $his new owners.
 	<</if>>
 <<else>>
-	<<if $activeSlave.devotion < -20>>
+	<<if getSlave($AS).devotion < -20>>
 		$He's rather upset at the notion that $he may be going from a weak willed master to someone with the balls to actually try and break $him.
 	<<else>>
 		$He tries to conceal $his terror at going from a trustworthy slave master to the cruel and uncertain world outside your penthouse, but $he fails.
 	<</if>>
 <</if>>
 
-<<set _slaveCost = slaveCost($activeSlave)>>
+<<set _slaveCost = slaveCost(getSlave($AS))>>
 <<set _slaveCost = (random(70,80)*Math.trunc(_slaveCost/100))>>
 
-<<if $activeSlave.breedingMark == 1 && $propOutcome == 1 && $arcologies[0].FSRestart != "unset">>
+<<if getSlave($AS).breedingMark == 1 && $propOutcome == 1 && $arcologies[0].FSRestart != "unset">>
 	Since you are selling a breeding slave, $he will be sent to auction before other members of the Societal Elite.
 <<else>>
 <<if $showAppraisal == 1>>
@@ -225,133 +225,133 @@ A reputable slave appraiser arrives promptly to inspect $him and certify $his qu
 	<</if>>
 	I have examined your slave in accordance with the Book.
 <<case "Elite">>
-	a member of the Societal Elite you are familiar with greets you respectfully and <<if $PC.dick != 0>>tosses you a wink as she pats her rounded belly. "He's doing well.<<else>>calms her kicking child so she can continue. "Think he'll look as good as his father?<</if>> Anyway, as I'm sure you know, <<= properTitle()>>," she says as she uses curt instructions to direct $activeSlave.slaveName, "appraisals are based on a slave's potential worth as a toy, with modifiers for special characteristics." She scrolls down the list. "I'll just mention the interesting ones.
+	a member of the Societal Elite you are familiar with greets you respectfully and <<if $PC.dick != 0>>tosses you a wink as she pats her rounded belly. "He's doing well.<<else>>calms her kicking child so she can continue. "Think he'll look as good as his father?<</if>> Anyway, as I'm sure you know, <<= properTitle()>>," she says as she uses curt instructions to direct getSlave($AS).slaveName, "appraisals are based on a slave's potential worth as a toy, with modifiers for special characteristics." She scrolls down the list. "I'll just mention the interesting ones.
 <<case "futa">>
 	a curvy, middle aged, and quite attractive woman wearing a tank top and yoga pants greets you cheerfully and turns to the slave. As she does, you can't help but notice that the yoga pants make it obvious she has a penis almost as long as one of her forearms. She makes notes on a tablet, flipping through videos that display the slave in action as she works. "<<= properTitle()>>, I'm, like, sorry to have to say this to you since I know you know it better than I do, but it's the script, you know? Anyway appraisals are based on a slave's potential performance as a public slut, with modifiers for special characteristics." She makes notes. "I'll just mention the significant ones.
 <<case "businesswoman">>
-	an older<<if $arcologies[0].FSRepopulationFocusLaw == 1>>, slightly pregnant<</if>> businesswoman with a reputation for correctness gives you a prim nod before turning to the nude slave without wasting further time. She deftly makes notes on a haptic wrist interface, flipping through videos of the slave in action as she works. "As I'm sure you know, <<= properTitle()>>," she says as she uses curt instructions to direct $activeSlave.slaveName, "appraisals are based on a slave's potential income as a prostitute, with modifiers for special characteristics." Her fingers fly across the interface. "I'll just mention the significant ones.
+	an older<<if $arcologies[0].FSRepopulationFocusLaw == 1>>, slightly pregnant<</if>> businesswoman with a reputation for correctness gives you a prim nod before turning to the nude slave without wasting further time. She deftly makes notes on a haptic wrist interface, flipping through videos of the slave in action as she works. "As I'm sure you know, <<= properTitle()>>," she says as she uses curt instructions to direct getSlave($AS).slaveName, "appraisals are based on a slave's potential income as a prostitute, with modifiers for special characteristics." Her fingers fly across the interface. "I'll just mention the significant ones.
 <<case "slaver">>
-	a scarred old slaver with calloused hands and a knowing face, greets you in his companionable way before clapping his hands together and turning to the slave. He switches back and forth between the $girl and a battered old tablet with video proving $his skills. "Well, as you know <<if def $PC.customTitle>>$PC.customTitle<<elseif $PC.title == 1>>suh<<else>>madame<</if>>," he says as he firmly repositions $activeSlave.slaveName, "appraisals are based on a slave's potential income as a whore, with modifiers for special things." He pauses, prodding the tablet. "I'll just mention the main items.
+	a scarred old slaver with calloused hands and a knowing face, greets you in his companionable way before clapping his hands together and turning to the slave. He switches back and forth between the $girl and a battered old tablet with video proving $his skills. "Well, as you know <<if def $PC.customTitle>>$PC.customTitle<<elseif $PC.title == 1>>suh<<else>>madame<</if>>," he says as he firmly repositions getSlave($AS).slaveName, "appraisals are based on a slave's potential income as a whore, with modifiers for special things." He pauses, prodding the tablet. "I'll just mention the main items.
 <<default>>
-	a fashionably but formally dressed young man with slicked-back hair, greets you correctly before activating an examination visor and reviewing video evidence of the slave's skills. That done, he deactivates the visor and performs a quick physical examination. "As I'm sure you know, <<= properTitle()>>," he says as he gently repositions $activeSlave.slaveName to get a good look at $him, "appraisals are based on a slave's potential income as a whore, with modifiers for special characteristics." He pauses, using subvocalizations to make data entries. "I'll just mention the significant ones.
+	a fashionably but formally dressed young man with slicked-back hair, greets you correctly before activating an examination visor and reviewing video evidence of the slave's skills. That done, he deactivates the visor and performs a quick physical examination. "As I'm sure you know, <<= properTitle()>>," he says as he gently repositions getSlave($AS).slaveName to get a good look at $him, "appraisals are based on a slave's potential income as a whore, with modifiers for special characteristics." He pauses, using subvocalizations to make data entries. "I'll just mention the significant ones.
 <</switch>>
 
 <<if $arcologies[0].FSPetiteAdmirationSMR == 1 || $arcologies[0].FSStatuesqueGlorificationSMR == 1>>
-	<<if heightPass($activeSlave)>>
+	<<if heightPass(getSlave($AS))>>
 		$He is an attractive height, which is a good start.
 	<</if>>
 <</if>>
 
-<<if getBestVision($activeSlave) === 0>>
+<<if getBestVision(getSlave($AS)) === 0>>
 	$His blindness is an obvious issue.
 <</if>>
 
-<<if $activeSlave.geneticQuirks.albinism == 2>>
+<<if getSlave($AS).geneticQuirks.albinism == 2>>
 	$His albinism makes $him rather desirable.
 <</if>>
 
-<<if $activeSlave.career != 0>>
-	<<if setup.bodyguardCareers.includes($activeSlave.career)>>
+<<if getSlave($AS).career != 0>>
+	<<if setup.bodyguardCareers.includes(getSlave($AS).career)>>
 		$His background would help make $him a good Bodyguard; that's valuable.
-	<<elseif setup.wardenessCareers.includes($activeSlave.career)>>
+	<<elseif setup.wardenessCareers.includes(getSlave($AS).career)>>
 		$His background would help make $him a good Wardeness; that's valuable.
-	<<elseif setup.attendantCareers.includes($activeSlave.career)>>
+	<<elseif setup.attendantCareers.includes(getSlave($AS).career)>>
 		$His background would help make $him a good Attendant; that's valuable.
-	<<elseif setup.matronCareers.includes($activeSlave.career)>>
+	<<elseif setup.matronCareers.includes(getSlave($AS).career)>>
 		$His background would help make $him a good Matron; that's valuable.
-	<<elseif setup.schoolteacherCareers.includes($activeSlave.career)>>
+	<<elseif setup.schoolteacherCareers.includes(getSlave($AS).career)>>
 		$His background would help make $him a good Schoolteacher; that's valuable.
-	<<elseif setup.stewardessCareers.includes($activeSlave.career)>>
+	<<elseif setup.stewardessCareers.includes(getSlave($AS).career)>>
 		$His background would help make $him a good Stewardess; that's valuable.
-	<<elseif setup.milkmaidCareers.includes($activeSlave.career)>>
+	<<elseif setup.milkmaidCareers.includes(getSlave($AS).career)>>
 		$His background would help make $him a good Milkmaid; that's valuable.
-	<<elseif setup.farmerCareers.includes($activeSlave.career)>>
+	<<elseif setup.farmerCareers.includes(getSlave($AS).career)>>
 		$His background would help make $him a good Farmer; that's valuable.
-	<<elseif setup.madamCareers.includes($activeSlave.career)>>
+	<<elseif setup.madamCareers.includes(getSlave($AS).career)>>
 		$His background would help make $him a good Madam; that's valuable.
-	<<elseif setup.DJCareers.includes($activeSlave.career)>>
+	<<elseif setup.DJCareers.includes(getSlave($AS).career)>>
 		$His background would help make $him a good DJ; that's valuable.
-	<<elseif setup.HGCareers.includes($activeSlave.career)>>
+	<<elseif setup.HGCareers.includes(getSlave($AS).career)>>
 		$His background would help make $him a good Head Girl; that's valuable.
-	<<elseif setup.recruiterCareers.includes($activeSlave.career)>>
+	<<elseif setup.recruiterCareers.includes(getSlave($AS).career)>>
 		$His background would help make $him a good Recruiter; that's valuable.
-	<<elseif setup.matronCareers.includes($activeSlave.career)>>
+	<<elseif setup.matronCareers.includes(getSlave($AS).career)>>
 		$His background would help make $him a good Matron; that's valuable.
-	<<elseif setup.entertainmentCareers.includes($activeSlave.career)>>
+	<<elseif setup.entertainmentCareers.includes(getSlave($AS).career)>>
 		$His background should help $his flirting a little.
-	<<elseif setup.whoreCareers.includes($activeSlave.career)>>
+	<<elseif setup.whoreCareers.includes(getSlave($AS).career)>>
 		$His background should help $his fucking a little.
-	<<elseif setup.gratefulCareers.includes($activeSlave.career)>>
+	<<elseif setup.gratefulCareers.includes(getSlave($AS).career)>>
 		$His background should make $him a bit more trusting.
-	<<elseif setup.menialCareers.includes($activeSlave.career)>>
+	<<elseif setup.menialCareers.includes(getSlave($AS).career)>>
 		$His background should make $him a bit more tractable.
-	<<elseif setup.servantCareers.includes($activeSlave.career)>>
+	<<elseif setup.servantCareers.includes(getSlave($AS).career)>>
 		$His background should make $him a good servant.
 	<</if>>
 <</if>>
-<<if ($week-$activeSlave.weekAcquired >= 20) && ($activeSlave.skill.entertainment >= 100)>>
-	<<if setup.entertainmentCareers.includes($activeSlave.career)>>
+<<if ($week-getSlave($AS).weekAcquired >= 20) && (getSlave($AS).skill.entertainment >= 100)>>
+	<<if setup.entertainmentCareers.includes(getSlave($AS).career)>>
 	<<else>>
 		$He's gotten enough experience as a slave entertainer that $he has the added value of a $girl with a history in entertainment from before $he was a slave.
 	<</if>>
 <</if>>
-<<if ($activeSlave.counter.oral + $activeSlave.counter.anal + $activeSlave.counter.vaginal + $activeSlave.counter.mammary + $activeSlave.counter.penetrative > 1000)>>
-	<<if setup.whoreCareers.includes($activeSlave.career)>>
+<<if (getSlave($AS).counter.oral + getSlave($AS).counter.anal + getSlave($AS).counter.vaginal + getSlave($AS).counter.mammary + getSlave($AS).counter.penetrative > 1000)>>
+	<<if setup.whoreCareers.includes(getSlave($AS).career)>>
 	<<else>>
 		I see $he's sexually very experienced; that counts as a stand-in for the usual bonus value from having been a sex worker before enslavement.
 	<</if>>
 <</if>>
 
 <<set _careers = []>>
-<<if ($activeSlave.skill.headGirl >= $masteredXP)>>
+<<if (getSlave($AS).skill.headGirl >= $masteredXP)>>
 	<<set _careers.push("Head Girl")>>
 <</if>>
-<<if ($activeSlave.skill.recruiter >= $masteredXP)>>
+<<if (getSlave($AS).skill.recruiter >= $masteredXP)>>
 	<<set _careers.push("Recruiter")>>
 <</if>>
-<<if ($activeSlave.skill.bodyguard >= $masteredXP)>>
+<<if (getSlave($AS).skill.bodyguard >= $masteredXP)>>
 	<<set _careers.push("Bodyguard")>>
 <</if>>
-<<if ($activeSlave.skill.madam >= $masteredXP)>>
+<<if (getSlave($AS).skill.madam >= $masteredXP)>>
 	<<set _careers.push("Madam")>>
 <</if>>
-<<if ($activeSlave.skill.DJ >= $masteredXP)>>
+<<if (getSlave($AS).skill.DJ >= $masteredXP)>>
 	<<set _careers.push("DJ")>>
 <</if>>
-<<if ($activeSlave.skill.nurse >= $masteredXP)>>
+<<if (getSlave($AS).skill.nurse >= $masteredXP)>>
 	<<set _careers.push("Nurse")>>
 <</if>>
-<<if ($activeSlave.skill.teacher >= $masteredXP)>>
+<<if (getSlave($AS).skill.teacher >= $masteredXP)>>
 	<<set _careers.push("Schoolteacher")>>
 <</if>>
-<<if ($activeSlave.skill.attendant >= $masteredXP)>>
+<<if (getSlave($AS).skill.attendant >= $masteredXP)>>
 	<<set _careers.push("Attendant")>>
 <</if>>
-<<if ($activeSlave.skill.matron >= $masteredXP)>>
+<<if (getSlave($AS).skill.matron >= $masteredXP)>>
 	<<set _careers.push("Matron")>>
 <</if>>
-<<if ($activeSlave.skill.stewardess >= $masteredXP)>>
+<<if (getSlave($AS).skill.stewardess >= $masteredXP)>>
 	<<set _careers.push("Stewardess")>>
 <</if>>
-<<if ($activeSlave.skill.milkmaid >= $masteredXP)>>
+<<if (getSlave($AS).skill.milkmaid >= $masteredXP)>>
 	<<set _careers.push("Milkmaid")>>
 <</if>>
-<<if ($activeSlave.skill.farmer >= $masteredXP)>>
+<<if (getSlave($AS).skill.farmer >= $masteredXP)>>
 	<<set _careers.push("Farmer")>>
 <</if>>
-<<if ($activeSlave.skill.wardeness >= $masteredXP)>>
+<<if (getSlave($AS).skill.wardeness >= $masteredXP)>>
 	<<set _careers.push("Wardeness")>>
 <</if>>
-<<if ($activeSlave.skill.servant >= $masteredXP)>>
+<<if (getSlave($AS).skill.servant >= $masteredXP)>>
 	<<set _careers.push("Servant")>>
 <</if>>
-<<if ($activeSlave.skill.entertainer >= $masteredXP)>>
+<<if (getSlave($AS).skill.entertainer >= $masteredXP)>>
 	<<set _careers.push("Entertainer")>>
 <</if>>
-<<if ($activeSlave.skill.whore >= $masteredXP)>>
+<<if (getSlave($AS).skill.whore >= $masteredXP)>>
 	<<set _careers.push("Whore")>>
 <</if>>
-<<if ($activeSlave.skill.matron >= $masteredXP)>>
+<<if (getSlave($AS).skill.matron >= $masteredXP)>>
 	<<set _careers.push("Matron")>>
 <</if>>
 <<if _careers.length > 0>>
@@ -371,111 +371,111 @@ A reputable slave appraiser arrives promptly to inspect $him and certify $his qu
 	<</if>>
 <</if>>
 
-<<if $activeSlave.behavioralFlaw != "none">>
-	<<if $activeSlave.sexualFlaw != "none">>
+<<if getSlave($AS).behavioralFlaw != "none">>
+	<<if getSlave($AS).sexualFlaw != "none">>
 		$He has both a behavioral flaw and a sexual flaw; those are both minor negatives.
 	<<else>>
 		$He has a behavioral flaw, which is a minor negative.
 	<</if>>
 <</if>>
-<<if $activeSlave.sexualFlaw == "breeder" && $arcologies[0].FSRepopulationFocus != "unset">>
+<<if getSlave($AS).sexualFlaw == "breeder" && $arcologies[0].FSRepopulationFocus != "unset">>
 	$He is obsessed with breeding, which will make $him very popular in your arcology.
-<<elseif $activeSlave.sexualFlaw != "none">>
-	<<if $activeSlave.behavioralFlaw == "none">>
+<<elseif getSlave($AS).sexualFlaw != "none">>
+	<<if getSlave($AS).behavioralFlaw == "none">>
 		$He has a sexual flaw, which is a minor negative.
 	<</if>>
 <</if>>
-<<if ($activeSlave.behavioralFlaw != "none") || ($activeSlave.sexualFlaw != "none")>>
-	<<if $activeSlave.behavioralQuirk != "none">>
-		<<if $activeSlave.sexualQuirk != "none">>
+<<if (getSlave($AS).behavioralFlaw != "none") || (getSlave($AS).sexualFlaw != "none")>>
+	<<if getSlave($AS).behavioralQuirk != "none">>
+		<<if getSlave($AS).sexualQuirk != "none">>
 			On the other hand, $he has both a behavioral quirk and a sexual quirk; those are both minor positives.
 		<<else>>
 			On the other hand, $he has a behavioral quirk, which is a minor positive.
 		<</if>>
 	<</if>>
-	<<if $activeSlave.sexualQuirk != "none">>
-		<<if $activeSlave.behavioralQuirk == "none">>
+	<<if getSlave($AS).sexualQuirk != "none">>
+		<<if getSlave($AS).behavioralQuirk == "none">>
 			On the other hand, $he has a sexual quirk, which is a minor positive.
 		<</if>>
 	<</if>>
 <<else>>
-	<<if $activeSlave.behavioralQuirk != "none">>
-		<<if $activeSlave.sexualQuirk != "none">>
+	<<if getSlave($AS).behavioralQuirk != "none">>
+		<<if getSlave($AS).sexualQuirk != "none">>
 			$He has both a behavioral quirk and a sexual quirk; those are both minor positives.
 		<<else>>
 			$He has a behavioral quirk, which is a minor positive.
 		<</if>>
 	<</if>>
-	<<if $activeSlave.sexualQuirk != "none">>
-		<<if $activeSlave.behavioralQuirk == "none">>
+	<<if getSlave($AS).sexualQuirk != "none">>
+		<<if getSlave($AS).behavioralQuirk == "none">>
 			$He has a sexual quirk, which is a minor positive.
 		<</if>>
 	<</if>>
 <</if>>
 
-<<if $activeSlave.fetish == "mindbroken">>
+<<if getSlave($AS).fetish == "mindbroken">>
 	It's a shame $he's mindbroken. From a price perspective.
-<<elseif $activeSlave.fetish != "none" && $activeSlave.fetishKnown == 1>>
+<<elseif getSlave($AS).fetish != "none" && getSlave($AS).fetishKnown == 1>>
 	$His fetish is good for performance, of course, but it adds a little bonus to value, too.
-<<elseif $activeSlave.fetishKnown == 1>>
+<<elseif getSlave($AS).fetishKnown == 1>>
 	$His tastes are a tad plain, but at least it won't hurt $his value.
 <<else>>
 	It's a pity there's no information on $his fetishes. Without it, buyers tend to assume the worst.
 <</if>>
 
-<<if $activeSlave.attrKnown == 1>>
-	<<if $activeSlave.energy > 95>>
+<<if getSlave($AS).attrKnown == 1>>
+	<<if getSlave($AS).energy > 95>>
 		Nymphomania adds a major price bonus.
 	<</if>>
 <<else>>
 	With $his sex drive not well tested, I cannot award $him any value in that area.
 <</if>>
 
-<<if $activeSlave.vagina == 0>>
+<<if getSlave($AS).vagina == 0>>
 	Virgin pussies are less common than you might think; that's a minor positive.
 <</if>>
 <<if $arcologies[0].FSRepopulationFocusSMR != 0>>
-	<<if $activeSlave.preg < -1>>
+	<<if getSlave($AS).preg < -1>>
 		The lack of an ability to become pregnant greatly decreases value, the global market being what it is.
-	<<elseif ($activeSlave.bellyPreg >= 300000)>>
+	<<elseif (getSlave($AS).bellyPreg >= 300000)>>
 		That belly is all child? Incredible. Such fertility will price $him very high, the global market being what it is.
-	<<elseif ($activeSlave.bellyPreg >= 120000)>>
+	<<elseif (getSlave($AS).bellyPreg >= 120000)>>
 		Such a massive pregnancy demands a high value, the global market being what it is.
-	<<elseif ($activeSlave.preg > $activeSlave.pregData.normalBirth/4)>>
+	<<elseif (getSlave($AS).preg > getSlave($AS).pregData.normalBirth/4)>>
 		The advanced pregnancy adds a little value, the global market being what it is.
 	<</if>>
 <<elseif $arcologies[0].FSRestartSMR != 0>>
-	<<if $activeSlave.preg < -1>>
+	<<if getSlave($AS).preg < -1>>
 		$His infertility improves $his value, since $his kind should not be allowed to reproduce.
-	<<elseif ($activeSlave.bellyPreg >= 300000)>>
+	<<elseif (getSlave($AS).bellyPreg >= 300000)>>
 		That belly is all child? How horrible. $He'd make a better example of the horrors of pregnancy than a sex slave.
-	<<elseif ($activeSlave.bellyPreg >= 30000)>>
+	<<elseif (getSlave($AS).bellyPreg >= 30000)>>
 		What a disgusting creature, that filth inside $him will destroy $his value.
-	<<elseif ($activeSlave.preg > $activeSlave.pregData.normalBirth/4)>>
+	<<elseif (getSlave($AS).preg > getSlave($AS).pregData.normalBirth/4)>>
 		What a waste, if $he weren't pregnant, $he might be worth something.
 	<</if>>
 <<else>>
-	<<if $activeSlave.ovaries == 0 && $activeSlave.vagina > -1 && $activeSlave.genes == "XY">>
+	<<if getSlave($AS).ovaries == 0 && getSlave($AS).vagina > -1 && getSlave($AS).genes == "XY">>
 		The lack of a natural vagina still removes a little value, the global market being what it is.
-	<<elseif ($activeSlave.bellyPreg >= 300000)>>
+	<<elseif (getSlave($AS).bellyPreg >= 300000)>>
 		Such an obscene and life threatening display of fertility will turn off most buyers and considerably damage $his value, the global market being what it is.
-	<<elseif ($activeSlave.bellyPreg >= 120000)>>
+	<<elseif (getSlave($AS).bellyPreg >= 120000)>>
 		Such a massive and dangerous pregnancy removes some value, the global market being what it is.
-	<<elseif ($activeSlave.preg > $activeSlave.pregData.normalBirth/4)>>
+	<<elseif (getSlave($AS).preg > getSlave($AS).pregData.normalBirth/4)>>
 		The advanced pregnancy removes a little value, the global market being what it is.
 	<</if>>
 <</if>>
-<<if $activeSlave.mpreg == 1>>
+<<if getSlave($AS).mpreg == 1>>
 	What's this strange organ listed here? $He can become anally pregnant? That will certainly interest some buyers.
 <</if>>
-<<if $activeSlave.pregWeek < 0>>
+<<if getSlave($AS).pregWeek < 0>>
 	$He seems a little uncomfortable with $his holes being touched. By the feel of it, $he is a new mother, no? A lack of receptivity will not go over well with buyers; it may more profitable to let $him recover first.
 <</if>>
-<<set _intelligenceScore = ($activeSlave.intelligenceImplant < 0 ? $activeSlave.intelligence+$activeSlave.intelligenceImplant : $activeSlave.intelligence)>> /* negative education makes a slave seem slower than they are */
+<<set _intelligenceScore = (getSlave($AS).intelligenceImplant < 0 ? getSlave($AS).intelligence+getSlave($AS).intelligenceImplant : getSlave($AS).intelligence)>> /* negative education makes a slave seem slower than they are */
 <<if $arcologies[0].FSIntellectualDependencySMR == 1>>
 	<<if _intelligenceScore >= -15>>
 		$He's too smart to be of interest to local bidders, but there is still a demand for smart slaves elsewhere.
-		<<if $activeSlave.intelligenceImplant >= 15>>
+		<<if getSlave($AS).intelligenceImplant >= 15>>
 			$His education is an added positive too, in that regard.
 		<</if>>
 	<<else>>
@@ -486,7 +486,7 @@ A reputable slave appraiser arrives promptly to inspect $him and certify $his qu
 		$He's no where near smart enough to compete with the local markets, so outside bids are going to be the only option.
 	<<else>>
 		$His brain is probably going to bring in very generous bids on its own.
-		<<if $activeSlave.intelligenceImplant >= 15>>
+		<<if getSlave($AS).intelligenceImplant >= 15>>
 			$His education is an added positive, beyond that.
 		<<else>>
 			$He's uneducated, though, which will turn off some buyers.
@@ -495,24 +495,24 @@ A reputable slave appraiser arrives promptly to inspect $him and certify $his qu
 <<else>>
 	<<if _intelligenceScore > 95>>
 		$His genius is probably going to bring in very generous bids.
-		<<if $activeSlave.intelligenceImplant >= 15>>
+		<<if getSlave($AS).intelligenceImplant >= 15>>
 			$His education is an added positive, beyond that.
 		<</if>>
 	<<elseif _intelligenceScore > 15>>
 		Of course, $his intelligence is an asset outside of its sexual applications.
-		<<if $activeSlave.intelligenceImplant >= 15>>
+		<<if getSlave($AS).intelligenceImplant >= 15>>
 			$His education is an added positive, beyond that.
 		<</if>>
 	<<elseif _intelligenceScore < -15>>
 		Of course, $his stupidity will be a minor negative.
-		<<if $activeSlave.intelligenceImplant >= 15>>
+		<<if getSlave($AS).intelligenceImplant >= 15>>
 			$His education will help ameliorate that in price terms.
 		<<else>>
 			$He's uneducated, too.
 		<</if>>
 	<<elseif _intelligenceScore < -95>>
 		$His sheer idiocy will likely hamper bids.
-		<<if $activeSlave.intelligenceImplant >= 15>>
+		<<if getSlave($AS).intelligenceImplant >= 15>>
 			$His education will help a little, though I can't imagine the hassle it must have been to get $him to remember anything.
 		<<else>>
 			$He's uneducated, too, not that there's a surprise in that.
@@ -520,14 +520,14 @@ A reputable slave appraiser arrives promptly to inspect $him and certify $his qu
 	<</if>>
 <</if>>
 
-<<if $activeSlave.anus == 0>>
+<<if getSlave($AS).anus == 0>>
 	$His virgin anus is a minor positive, since anal defloration is in such high demand.
 <</if>>
 
-<<if $activeSlave.vagina > -1>>
-	<<if $activeSlave.dick > 0>>
+<<if getSlave($AS).vagina > -1>>
+	<<if getSlave($AS).dick > 0>>
 		$He has both sets of equipment, I see; that's very valuable.
-		<<if $activeSlave.ovaries > 0 && $activeSlave.balls > 0 && $activeSlave.ballType != "sterile">>
+		<<if getSlave($AS).ovaries > 0 && getSlave($AS).balls > 0 && getSlave($AS).ballType != "sterile">>
 			<<if $arcologies[0].FSRestartSMR == 1>>
 				And both are fertile? Horrible. Such fertility is wasted on trash.
 			<<else>>
@@ -537,38 +537,38 @@ A reputable slave appraiser arrives promptly to inspect $him and certify $his qu
 	<</if>>
 <</if>>
 
-<<if $activeSlave.pubertyXY == 0 && $activeSlave.physicalAge >= $potencyAge && $arcologies[0].FSGenderRadicalist == "unset" && $activeSlave.balls > 0>>
+<<if getSlave($AS).pubertyXY == 0 && getSlave($AS).physicalAge >= $potencyAge && $arcologies[0].FSGenderRadicalist == "unset" && getSlave($AS).balls > 0>>
 	$He never went through male puberty, that's a plus.
 <</if>>
 
-<<if $activeSlave.prestige > 0>>
+<<if getSlave($AS).prestige > 0>>
 	I see notes on $his notoriety in $his file. That will drive up $his price.
 <</if>>
 
-<<if $activeSlave.porn.prestige == 3>>
-	$He's pretty popular in $activeSlave.porn.fameType smut, isn't $he? Buyers will be lining up for $him.
-<<elseif $activeSlave.porn.prestige == 2>>
-	$He's gained quite the following in $activeSlave.porn.fameType smut. In fact, I've even seen some of $his smut; buyers will flock to $him.
-<<elseif $activeSlave.porn.prestige == 1>>
-	$He's got a small fanbase in $activeSlave.porn.fameType smut. Who knows? Maybe one of them will want $him all to themselves?
+<<if getSlave($AS).porn.prestige == 3>>
+	$He's pretty popular in getSlave($AS).porn.fameType smut, isn't $he? Buyers will be lining up for $him.
+<<elseif getSlave($AS).porn.prestige == 2>>
+	$He's gained quite the following in getSlave($AS).porn.fameType smut. In fact, I've even seen some of $his smut; buyers will flock to $him.
+<<elseif getSlave($AS).porn.prestige == 1>>
+	$He's got a small fanbase in getSlave($AS).porn.fameType smut. Who knows? Maybe one of them will want $him all to themselves?
 <</if>>
 
-<<if $activeSlave.devotion > 95>>
+<<if getSlave($AS).devotion > 95>>
 	$His worshipfulness is a major positive
 	<<set _trustPositive = 1>>
-<<elseif $activeSlave.devotion > 50>>
+<<elseif getSlave($AS).devotion > 50>>
 	$His devotion is a significant positive
 	<<set _trustPositive = 1>>
-<<elseif $activeSlave.devotion > 20>>
+<<elseif getSlave($AS).devotion > 20>>
 	$His acceptance of slavery is a minor positive
 	<<set _trustPositive = 1>>
-<<elseif $activeSlave.devotion >= -20>>
+<<elseif getSlave($AS).devotion >= -20>>
 	$His acceptance of slavery is equivocal
 	<<set _trustPositive = 0>>
-<<elseif $activeSlave.devotion >= -50>>
+<<elseif getSlave($AS).devotion >= -50>>
 	$His resistance to slavery is a minor negative
 	<<set _trustPositive = 0>>
-<<elseif $activeSlave.devotion >= -75>>
+<<elseif getSlave($AS).devotion >= -75>>
 	$His hatred of slavery is a significant negative
 	<<set _trustPositive = -1>>
 <<else>>
@@ -576,56 +576,56 @@ A reputable slave appraiser arrives promptly to inspect $him and certify $his qu
 	<<set _trustPositive = -1>>
 <</if>>
 <<if _trustPositive == 1>>
-	<<if $activeSlave.trust > 95>>
+	<<if getSlave($AS).trust > 95>>
 		and $his powerful trust is a major positive.
-	<<elseif $activeSlave.trust > 50>>
+	<<elseif getSlave($AS).trust > 50>>
 		and $his trust is a significant positive.
-	<<elseif $activeSlave.trust > 20>>
+	<<elseif getSlave($AS).trust > 20>>
 		and $his carefulness is a minor positive.
-	<<elseif $activeSlave.trust >= -20>>
+	<<elseif getSlave($AS).trust >= -20>>
 		and $his fearfulness is equivocal.
-	<<elseif $activeSlave.trust >= -50>>
+	<<elseif getSlave($AS).trust >= -50>>
 		but $his fear is a minor negative.
-	<<elseif $activeSlave.devotion >= -90>>
+	<<elseif getSlave($AS).devotion >= -90>>
 		but $his terrified state is a significant negative.
 	<<else>>
 		but $his abjectly terrified state is a major negative.
 	<</if>>
 <<elseif _trustPositive == 0>>
-	<<if $activeSlave.trust > 95>>
+	<<if getSlave($AS).trust > 95>>
 		but $his powerful trust is worrisome.
-	<<elseif $activeSlave.trust > 50>>
+	<<elseif getSlave($AS).trust > 50>>
 		but $his trust is a little out of place.
-	<<elseif $activeSlave.trust > 20>>
+	<<elseif getSlave($AS).trust > 20>>
 		and $his carefulness is a minor positive.
-	<<elseif $activeSlave.trust >= -20>>
+	<<elseif getSlave($AS).trust >= -20>>
 		and $his fearfulness is useful.
-	<<elseif $activeSlave.trust >= -50>>
+	<<elseif getSlave($AS).trust >= -50>>
 		and $his fear is useful.
-	<<elseif $activeSlave.devotion >= -90>>
+	<<elseif getSlave($AS).devotion >= -90>>
 		but $his terrified state will aid in fully breaking $him.
 	<<else>>
 		but $his abjectly terrified state will make it easy to break $him.
 	<</if>>
 <<else>>
-	<<if $activeSlave.trust > 95>>
+	<<if getSlave($AS).trust > 95>>
 		and $his powerful trust is a problem.
-	<<elseif $activeSlave.trust > 50>>
+	<<elseif getSlave($AS).trust > 50>>
 		and $his trust is troublesome.
-	<<elseif $activeSlave.trust > 20>>
+	<<elseif getSlave($AS).trust > 20>>
 		and $his carefulness is bad sign.
-	<<elseif $activeSlave.trust >= -20>>
+	<<elseif getSlave($AS).trust >= -20>>
 		but $his fearfulness is useful.
-	<<elseif $activeSlave.trust >= -50>>
+	<<elseif getSlave($AS).trust >= -50>>
 		but $his fear is useful.
-	<<elseif $activeSlave.devotion >= -90>>
+	<<elseif getSlave($AS).devotion >= -90>>
 		but $his terrified state will aid in fully breaking $him.
 	<<else>>
 		but $his abjectly terrified state will make it easy to break $him.
 	<</if>>
 <</if>>
 
-<<if (!jQuery.isEmptyObject($activeSlave.brand))>>
+<<if (!jQuery.isEmptyObject(getSlave($AS).brand))>>
 	<<if $rep > 10000>>
 		I see $he's branded with your mark; with your stellar reputation, that will make $him appraise better.
 	<<elseif $rep < 5000>>
@@ -636,78 +636,78 @@ A reputable slave appraiser arrives promptly to inspect $him and certify $his qu
 <</if>>
 
 <<if $policies.retirement.physicalAgePolicy == 1>>
-	<<set _TimeBeforeAgeRetirement = 52*($retirementAge-$activeSlave.physicalAge)>>
+	<<set _TimeBeforeAgeRetirement = 52*($retirementAge-getSlave($AS).physicalAge)>>
 <<else>>
-	<<set _TimeBeforeAgeRetirement = 52*($retirementAge-$activeSlave.actualAge)>>
+	<<set _TimeBeforeAgeRetirement = 52*($retirementAge-getSlave($AS).actualAge)>>
 <</if>>
 
-<<if ($activeSlave.actualAge >= $retirementAge-5)>>
+<<if (getSlave($AS).actualAge >= $retirementAge-5)>>
 	Since $he has a mere _TimeBeforeAgeRetirement weeks left until the local retirement age for sex slaves, buyers will be willing to offer much less for $him.
 <</if>>
 
-<<if $arcologies[0].FSSupremacistLawME != 0 && $activeSlave.race != $arcologies[0].FSSupremacistRace>>
+<<if $arcologies[0].FSSupremacistLawME != 0 && getSlave($AS).race != $arcologies[0].FSSupremacistRace>>
 	Your supremacism has pushed a lot of subhumans like $him into the market, so offers will be low.
-<<elseif $arcologies[0].FSSubjugationistLawME != 0 && $activeSlave.race == $arcologies[0].FSSubjugationistRace>>
+<<elseif $arcologies[0].FSSubjugationistLawME != 0 && getSlave($AS).race == $arcologies[0].FSSubjugationistRace>>
 	Your subjugationism has pushed a lot of animals like $him into the market, so $his race marks $him as low quality.
 <</if>>
 <<if $arcologies[0].FSRepopulationFocusSMR != 0>>
-	<<if $activeSlave.pregKnown == 1>>
+	<<if getSlave($AS).pregKnown == 1>>
 		Pregnant slaves appraise quite well, thanks to your leadership on repopulation.
 	<</if>>
 <</if>>
 <<if $arcologies[0].FSRestartSMR != 0>>
-	<<if $activeSlave.dick > 0>>
+	<<if getSlave($AS).dick > 0>>
 		Subhumans with dicks appraise less well, since they don't need them.
 	<</if>>
-	<<if $activeSlave.balls > 0>>
+	<<if getSlave($AS).balls > 0>>
 		$He has balls too. A slave that can impregnate is worth little under your vision of the future.
 	<</if>>
-	<<if $activeSlave.vagina > 0>>
+	<<if getSlave($AS).vagina > 0>>
 		Subhumans with vaginas appraise less well, since they don't need them.
 	<</if>>
-	<<if $activeSlave.ovaries > 0>>
+	<<if getSlave($AS).ovaries > 0>>
 		$He can get pregnant too. A slave that can bear children is worth little under your vision of the future.
 	<</if>>
 <</if>>
 <<if $arcologies[0].FSHedonisticDecadenceSMR != 0>>
-	<<if $activeSlave.weight > 60 && $activeSlave.muscles < 5>>
+	<<if getSlave($AS).weight > 60 && getSlave($AS).muscles < 5>>
 		Plush, soft slaves like $him appraise well, thanks to the shifting views on beauty.
 	<</if>>
 <</if>>
 <<if $arcologies[0].FSGenderFundamentalistSMR != 0>>
-	<<if $activeSlave.dick > 0>>
+	<<if getSlave($AS).dick > 0>>
 		Slaves with dicks appraise less well, thanks to your leadership on gender.
-		<<if $activeSlave.balls > 0>>
+		<<if getSlave($AS).balls > 0>>
 			That's especially true for $him, since $he still has $his balls.
 		<</if>>
 	<</if>>
 <</if>>
 <<if $arcologies[0].FSGenderRadicalistLawFuta != 0>>
 	<<if $arcologies[0].FSGenderRadicalistLawFuta == 1>>
-		<<if $activeSlave.dick > 0>>
-			<<if $activeSlave.vagina > -1>>
+		<<if getSlave($AS).dick > 0>>
+			<<if getSlave($AS).vagina > -1>>
 				Futas appraise better than ever, thanks to your leadership on gender.
 			<</if>>
 		<</if>>
 	<<elseif $arcologies[0].FSGenderRadicalistLawFuta == 2>>
-		<<if $activeSlave.dick > 0>>
-			<<if $activeSlave.balls > 0>>
+		<<if getSlave($AS).dick > 0>>
+			<<if getSlave($AS).balls > 0>>
 				Slaves with cocks and balls appraise quite well, thanks to your leadership on gender.
 			<</if>>
 		<</if>>
 	<<elseif $arcologies[0].FSGenderRadicalistLawFuta == 4>>
-		<<if $activeSlave.boobs <= 400>>
-			<<if $activeSlave.dick > 0 && $activeSlave.dick < 3>>
-				<<if $activeSlave.balls > 0 && $activeSlave.balls < 3>>
+		<<if getSlave($AS).boobs <= 400>>
+			<<if getSlave($AS).dick > 0 && getSlave($AS).dick < 3>>
+				<<if getSlave($AS).balls > 0 && getSlave($AS).balls < 3>>
 					Slaves with such cute little parts appraise quite well, thanks to your leadership on gender.
 				<</if>>
 			<</if>>
 		<</if>>
 	<<else>>
-		<<if $activeSlave.butt >= 5>>
-			<<if $activeSlave.anus >= 2>>
-				<<if $activeSlave.hips >= 1>>
-					<<if $activeSlave.skill.anal > 60>>
+		<<if getSlave($AS).butt >= 5>>
+			<<if getSlave($AS).anus >= 2>>
+				<<if getSlave($AS).hips >= 1>>
+					<<if getSlave($AS).skill.anal > 60>>
 						Slaves with big butts and skilled anuses appraise quite well, thanks to your leadership on gender.
 					<</if>>
 				<</if>>
@@ -723,7 +723,7 @@ A reputable slave appraiser arrives promptly to inspect $him and certify $his qu
 	And of course, you'll receive a premium for the nobility of such Imperial slaves.
 <</if>>
 
-<<if $activeSlave.indenture > -1>>
+<<if getSlave($AS).indenture > -1>>
 	Though I dislike mentioning something so obvious, being an indentured servant will have a huge impact on $his valuation.
 <</if>>
 
@@ -758,14 +758,14 @@ A reputable slave appraiser arrives promptly to inspect $him and certify $his qu
 
 <br><br>
 __Financial Records__
-<<includeDOM slaveExpenses(V.activeSlave)>>
+<<includeDOM slaveExpenses(getSlave(V.AS))>>
 
 <</if>> /* CLOSES APPRAISAL */
 <</if>> /* closes breeding mark */
 
 <br><br>
 
-<<if $activeSlave.breedingMark == 1 && $propOutcome == 1 && $arcologies[0].FSRestart != "unset">>
+<<if getSlave($AS).breedingMark == 1 && $propOutcome == 1 && $arcologies[0].FSRestart != "unset">>
 <<set $buyer = 0>>
 <<set _Price = 500*Math.trunc((_slaveCost*1.1)/500)>>
 	<br>The current offer for $him stands at ''<<print cashFormat(_Price)>>''.
@@ -780,71 +780,71 @@ __Bids Received__
 <<set $buyer = 0>>
 <<set _Price = 500*Math.trunc((_slaveCost*1.15)/500)>>
 
-<<if ($activeSlave.visualAge < 20) && ($activeSlave.weight < -10) && (random(1,100) > 80)>>
+<<if (getSlave($AS).visualAge < 20) && (getSlave($AS).weight < -10) && (random(1,100) > 80)>>
 	<br>''<<print cashFormat(_Price)>>'' from a citizen who likes his slaves young and slender.
 	<<set _NewOwner = 1>>
-<<elseif ($activeSlave.visualAge > 40) && ($activeSlave.weight > 10) && (random(1,100) > 80)>>
+<<elseif (getSlave($AS).visualAge > 40) && (getSlave($AS).weight > 10) && (random(1,100) > 80)>>
 	<br>''<<print cashFormat(_Price)>>'' from a citizen who likes her slaves mature and <<= $mother>>ly.
 	<<set _NewOwner = 1>>
-<<elseif ($activeSlave.dick > 3) && canAchieveErection($activeSlave) && (random(1,100) > 80)>>
+<<elseif (getSlave($AS).dick > 3) && canAchieveErection(getSlave($AS)) && (random(1,100) > 80)>>
 	<br>''<<print cashFormat(_Price)>>'' from a citizen who likes fat cocks.
 	<<set _NewOwner = 1>>
-<<elseif ($activeSlave.dick > 3) && ($activeSlave.balls == 0) && (random(1,100) > 80)>>
+<<elseif (getSlave($AS).dick > 3) && (getSlave($AS).balls == 0) && (random(1,100) > 80)>>
 	<br>''<<print cashFormat(_Price)>>'' from a citizen who likes a big limp dick flopping around when he fucks a slave's asspussy.
 	<<set _NewOwner = 1>>
-<<elseif ($activeSlave.dick == 1) && ($activeSlave.balls == 0 || $activeSlave.ballType == "sterile") && ($activeSlave.anus == 3) && (random(1,100) > 80)>>
+<<elseif (getSlave($AS).dick == 1) && (getSlave($AS).balls == 0 || getSlave($AS).ballType == "sterile") && (getSlave($AS).anus == 3) && (random(1,100) > 80)>>
 	<br>''<<print cashFormat(_Price)>>'' from a citizen who likes sissies with anal slits longer than their little limp dicks.
 	<<set _NewOwner = 1>>
-<<elseif ($activeSlave.dick > 0) && ($activeSlave.boobs < 300) && (random(1,100) > 80)>>
+<<elseif (getSlave($AS).dick > 0) && (getSlave($AS).boobs < 300) && (random(1,100) > 80)>>
 	<br>''<<print cashFormat(_Price)>>'' from a citizen who likes traps.
 	<<set _NewOwner = 1>>
-<<elseif ($activeSlave.dick > 0) && ($activeSlave.balls > 0) && ($activeSlave.boobs > 600) && (random(1,100) > 80)>>
+<<elseif (getSlave($AS).dick > 0) && (getSlave($AS).balls > 0) && (getSlave($AS).boobs > 600) && (random(1,100) > 80)>>
 	<br>''<<print cashFormat(_Price)>>'' from a citizen who likes lusty shemales.
 	<<set _NewOwner = 1>>
-<<elseif ($activeSlave.anusPiercing > 1) && ($activeSlave.nipplesPiercing > 1) && (random(1,100) > 80)>>
+<<elseif (getSlave($AS).anusPiercing > 1) && (getSlave($AS).nipplesPiercing > 1) && (random(1,100) > 80)>>
 	<br>''<<print cashFormat(_Price)>>'' from a citizen who is clearly fascinated by $his lewd piercings.
 	<<set _NewOwner = 1>>
-<<elseif ($activeSlave.anusTat > 1) && ($activeSlave.buttTat > 1) && (random(1,100) > 80)>>
+<<elseif (getSlave($AS).anusTat > 1) && (getSlave($AS).buttTat > 1) && (random(1,100) > 80)>>
 	<br>''<<print cashFormat(_Price)>>'' from a citizen who is clearly aroused by $his slutty tattoos.
 	<<set _NewOwner = 1>>
-<<elseif ($activeSlave.boobs > 800) && ($activeSlave.areolaeShape != "circle") && (random(1,100) > 80)>>
+<<elseif (getSlave($AS).boobs > 800) && (getSlave($AS).areolaeShape != "circle") && (random(1,100) > 80)>>
 	<br>''<<print cashFormat(_Price)>>'' from a citizen who can't take his eyes off $his unique areolae.
 	<<set _NewOwner = 1>>
-<<elseif ($activeSlave.clit > 2) && (random(1,100) > 80)>>
+<<elseif (getSlave($AS).clit > 2) && (random(1,100) > 80)>>
 	<br>''<<print cashFormat(_Price)>>'' from a citizen who keeps running her tongue over her lips while staring at the slave's giant clit.
 	<<set _NewOwner = 1>>
-<<elseif ($activeSlave.labia > 1) && (random(1,100) > 80)>>
+<<elseif (getSlave($AS).labia > 1) && (random(1,100) > 80)>>
 	<br>''<<print cashFormat(_Price)>>'' from a citizen who has an obvious fascination with $his dangling labia.
 	<<set _NewOwner = 1>>
-<<elseif ($activeSlave.boobs > 2000) && (random(1,100) > 80)>>
+<<elseif (getSlave($AS).boobs > 2000) && (random(1,100) > 80)>>
 	<br>''<<print cashFormat(_Price)>>'' from a citizen with an obvious breast expansion fetish.
 	<<set _NewOwner = 1>>
-<<elseif ($activeSlave.preg > $activeSlave.pregData.normalBirth/2) && ($activeSlave.lactation == 1) && (random(1,100) > 80)>>
+<<elseif (getSlave($AS).preg > getSlave($AS).pregData.normalBirth/2) && (getSlave($AS).lactation == 1) && (random(1,100) > 80)>>
 	<br>''<<print cashFormat(_Price)>>'' from a citizen who pays obsessive attention to $his gravid belly and naturally lactating breasts.
 	<<set _NewOwner = 1>>
-<<elseif ($activeSlave.ovaries == 1) && ($activeSlave.physicalAge < 25) && (random(1,100) > 80)>>
+<<elseif (getSlave($AS).ovaries == 1) && (getSlave($AS).physicalAge < 25) && (random(1,100) > 80)>>
 	<br>''<<print cashFormat(_Price)>>'' from a citizen who pays unusually close attention to the section of the medical report on $his fertility.
 	<<set _NewOwner = 1>>
-<<elseif ($activeSlave.butt > 6) && (random(1,100) > 80)>>
+<<elseif (getSlave($AS).butt > 6) && (random(1,100) > 80)>>
 	<br>''<<print cashFormat(_Price)>>'' from a citizen with an obvious butt expansion fetish.
 	<<set _NewOwner = 1>>
-<<elseif ($activeSlave.face > 10) && (random(1,100) > 80)>>
+<<elseif (getSlave($AS).face > 10) && (random(1,100) > 80)>>
 	<br>''<<print cashFormat(_Price)>>'' from a citizen who can't keep his eyes off $his pretty face.
 	<<set _NewOwner = 1>>
-<<elseif ($activeSlave.skill.anal >= 100) && (random(1,100) > 80)>>
+<<elseif (getSlave($AS).skill.anal >= 100) && (random(1,100) > 80)>>
 	<br>''<<print cashFormat(_Price)>>'' from a citizen interested in acquiring a skilled butthole bitch.
 	<<set _NewOwner = 1>>
-<<elseif ($activeSlave.skill.vaginal >= 100) && (random(1,100) > 80)>>
+<<elseif (getSlave($AS).skill.vaginal >= 100) && (random(1,100) > 80)>>
 	<br>''<<print cashFormat(_Price)>>'' from a citizen interested in acquiring a slut with real vaginal skill.
 	<<set _NewOwner = 1>>
-<<elseif ($activeSlave.skill.oral >= 100) && (random(1,100) > 80)>>
+<<elseif (getSlave($AS).skill.oral >= 100) && (random(1,100) > 80)>>
 	<br>''<<print cashFormat(_Price)>>'' from a citizen interested in acquiring a skilled cocksucker.
 	<<set _NewOwner = 1>>
-<<elseif ($activeSlave.health.condition > 80) && (random(1,100) > 80)>>
+<<elseif (getSlave($AS).health.condition > 80) && (random(1,100) > 80)>>
 	<br>''<<print cashFormat(_Price)>>'' from a citizen who pays creepily close attention to the state of $his health, and ignores everything else.
 	<<set _NewOwner = 1>>
-<<elseif ($activeSlave.nationality != 0) && (random(1,100) > 80)>>
-	<br>''<<print cashFormat(_Price)>>'' from a citizen with a special appetite for <<print moreNational($activeSlave.nationality)>> <<= $girl>>s.
+<<elseif (getSlave($AS).nationality != 0) && (random(1,100) > 80)>>
+	<br>''<<print cashFormat(_Price)>>'' from a citizen with a special appetite for <<print moreNational(getSlave($AS).nationality)>> <<= $girl>>s.
 	<<set _NewOwner = 1>>
 <</if>>
 <<if _NewOwner == 1>>
@@ -853,64 +853,64 @@ __Bids Received__
 	<</link>>
 <</if>>
 
-<<if $activeSlave.physicalAge > 30>>
-	<<if $activeSlave.devotion > 20>>
+<<if getSlave($AS).physicalAge > 30>>
+	<<if getSlave($AS).devotion > 20>>
 		<<if random(1,100) > 50>>
 			<br>''<<print cashFormat(500*Math.trunc((_slaveCost*0.9)/500))>>'' from a polite older citizen looking for a housekeeper and bedwarmer.
 			<<link "Accept bid" "Slave Sold">>
 				<<set _Price = 500*Math.trunc((_slaveCost*0.9)/500)>>
-				<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+				<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 				<<set $buyer = "housekeeper">>
 			<</link>>
 		<</if>>
 	<</if>>
 <</if>>
 
-<<if isFertile($activeSlave) && $seePreg != 0>>
+<<if isFertile(getSlave($AS)) && $seePreg != 0>>
 
 	<<if _slaveCost > 10000>>
 		<<if random(1,100) > 60>>
 			<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.05)/500))>>'' from a male citizen who wants to ensure his posterity by using $him to carry his children.
 			<<link "Accept bid" "Slave Sold">>
 				<<set _Price = 500*Math.trunc((_slaveCost*1.05)/500)>>
-				<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+				<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 				<<set $buyer = "preg fetishist">>
 			<</link>>
 		<</if>>
 	<</if>>
 
-	<<if $activeSlave.mpreg == 1>>
+	<<if getSlave($AS).mpreg == 1>>
 		<<if random(1,100) > 60>>
 			<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.05)/500))>>'' from an organ modifier interested in $his anal womb.
 			<<link "Accept bid" "Slave Sold">>
 				<<set _Price = 500*Math.trunc((_slaveCost*1.05)/500)>>
-				<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+				<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 				<<set $buyer = "organ crafter">>
 			<</link>>
 		<</if>>
 	<</if>>
 
 	<<if $seeHyperPreg == 1 && $seeExtreme == 1>>
-		<<if $activeSlave.vagina == 0>>
+		<<if getSlave($AS).vagina == 0>>
 			<<if random(1,100) > 60>>
 				<br>''<<print cashFormat(400*Math.trunc((_slaveCost*1.05)/500))>>'' from a pharmaceuticals corporation looking for fertile virgins for testing extreme fertility drugs.
 				<<link "Accept bid" "Slave Sold">>
 					<<set _Price = 400*Math.trunc((_slaveCost*1.05)/500)>>
-					<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+					<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 					<<set $buyer = "womb filler">>
 				<</link>>
 			<</if>>
 		<</if>>
 	<</if>>
 
-	<<if $activeSlave.intelligence > 50>>
-		<<if $activeSlave.face >= 55>>
-			<<if $activeSlave.faceShape != "masculine">>
+	<<if getSlave($AS).intelligence > 50>>
+		<<if getSlave($AS).face >= 55>>
+			<<if getSlave($AS).faceShape != "masculine">>
 				<<if random(1,100) > 90>>
 					<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.1)/500))>>'' from a fellow arcology owner seeking a smart, pretty slave to use as a breeder to produce superior children.
 					<<link "Accept bid" "Slave Sold">>
 						<<set _Price = 500*Math.trunc((_slaveCost*1.1)/500)>>
-						<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+						<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 						<<set $buyer = "eugenics arcology">>
 					<</link>>
 				<</if>>
@@ -918,25 +918,25 @@ __Bids Received__
 		<</if>>
 	<</if>>
 
-	<<if $activeSlave.hips > 1>>
-		<<if $activeSlave.vagina == 0>>
+	<<if getSlave($AS).hips > 1>>
+		<<if getSlave($AS).vagina == 0>>
 			<<if random(1,100) > 60>>
 				<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.05)/500))>>'' from a fellow arcology owner focusing on building a future society based on his genes: he seeks fertile virgins with wide hips, feeling they will be the best mothers.
 				<<link "Accept bid" "Slave Sold">>
 					<<set _Price = 500*Math.trunc((_slaveCost*1.05)/500)>>
-					<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+					<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 					<<set $buyer = "repopulationist arcology">>
 				<</link>>
 			<</if>>
 		<</if>>
 	<</if>>
 
-	<<if $activeSlave.vagina == 0>>
+	<<if getSlave($AS).vagina == 0>>
 		<<if random(1,100) > 60>>
 			<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.3)/500))>>'' from a slave trader with a notorious virgin impregnation fetish: he uses his work to provide himself with an endless supply of virgins to knock up and resell.
 			<<link "Accept bid" "Slave Sold">>
 				<<set _Price = 500*Math.trunc((_slaveCost*1.3)/500)>>
-				<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+				<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 				<<set $buyer = "virgin trader">>
 			<</link>>
 		<</if>>
@@ -946,13 +946,13 @@ __Bids Received__
 
 <<if $seePreg != 0>>
 	<<if $seeHyperPreg == 1 && $seeExtreme == 1>>
-		<<if $activeSlave.preg > $activeSlave.pregData.normalBirth/2>>
-			<<if $activeSlave.bellyPreg >= 300000>>
+		<<if getSlave($AS).preg > getSlave($AS).pregData.normalBirth/2>>
+			<<if getSlave($AS).bellyPreg >= 300000>>
 				<<if random(1,100) > 60>>
 					<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.05)/500))>>'' from a group that takes pleasure in performing abortions on live TV.
 					<<link "Accept bid" "Slave Sold">>
 						<<set _Price = 400*Math.trunc((_slaveCost*1.05)/500)>>
-						<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+						<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 						<<set $buyer = "abortion TV">>
 					<</link>>
 				<</if>>
@@ -961,36 +961,36 @@ __Bids Received__
 	<</if>>
 <</if>>
 
-<<if $activeSlave.nipples == "huge">>
+<<if getSlave($AS).nipples == "huge">>
 	<<if random(1,100) > 60>>
 		<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.05)/500))>>'' from a female citizen with a very specific fetish: she loves breasts to the point of enjoying slaves with nipples large enough to meaningfully penetrate her.
 		<<link "Accept bid" "Slave Sold">>
 			<<set _Price = 500*Math.trunc((_slaveCost*1.05)/500)>>
-			<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+			<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 			<<set $buyer = "nipple fetishist">>
 		<</link>>
 	<</if>>
 <</if>>
 
-<<if $activeSlave.nipples == "fuckable">>
+<<if getSlave($AS).nipples == "fuckable">>
 	<<if random(1,100) > 60>>
 		<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.1)/500))>>'' from a male citizen with a kink that's hard to satisfy: he loves nipple fucking, but hates how breasts just don't work that way.
 		<<link "Accept bid" "Slave Sold">>
 			<<set _Price = 500*Math.trunc((_slaveCost*1.1)/500)>>
-			<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+			<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 			<<set $buyer = "nipple fetishist">>
 		<</link>>
 	<</if>>
 <</if>>
 
-<<if $activeSlave.balls > 0>>
-	<<if $activeSlave.skill.anal > 10>>
-		<<if $activeSlave.devotion > 20>>
+<<if getSlave($AS).balls > 0>>
+	<<if getSlave($AS).skill.anal > 10>>
+		<<if getSlave($AS).devotion > 20>>
 			<<if random(1,100) > 60>>
 				<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.05)/500))>>'' from a citizen who enjoys buttfucking slaves with the necessary equipment, willingness, and anal skill to reward his efforts with messy, hands-free orgasms of their own.
 				<<link "Accept bid" "Slave Sold">>
 					<<set _Price = 500*Math.trunc((_slaveCost*1.05)/500)>>
-					<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+					<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 					<<set $buyer = "anal fetishist">>
 				<</link>>
 			<</if>>
@@ -998,40 +998,40 @@ __Bids Received__
 	<</if>>
 <</if>>
 
-<<if $activeSlave.skill.oral > 30>>
-	<<if $activeSlave.devotion > 20>>
+<<if getSlave($AS).skill.oral > 30>>
+	<<if getSlave($AS).devotion > 20>>
 		<<if random(1,100) > 60>>
 			<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.05)/500))>>'' from an unusually well-endowed citizen who strongly prefers oral sex with willing partners who can deepthroat him successfully.
 			<<link "Accept bid" "Slave Sold">>
 				<<set _Price = 500*Math.trunc((_slaveCost*1.05)/500)>>
-				<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+				<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 				<<set $buyer = "oral fetishist">>
 			<</link>>
 		<</if>>
 	<</if>>
 <</if>>
 
-<<if $activeSlave.fetish != "masochist">>
-	<<if $activeSlave.devotion > 50>>
+<<if getSlave($AS).fetish != "masochist">>
+	<<if getSlave($AS).devotion > 50>>
 		<<if random(1,100) > 60>>
 			<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.05)/500))>>'' from a sadistic citizen who likes hurting her slaves, dislikes masochists for their enjoyment of her treatment, yet prefers slaves who will not hate her.
 			<<link "Accept bid" "Slave Sold">>
 				<<set _Price = 500*Math.trunc((_slaveCost*1.05)/500)>>
-				<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+				<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 				<<set $buyer = "pain fetishist">>
 			<</link>>
 		<</if>>
 	<</if>>
 <</if>>
 
-<<if $activeSlave.muscles > 30>>
-	<<if $activeSlave.height >= 170>>
-		<<if $activeSlave.intelligence+$activeSlave.intelligenceImplant < -15>>
+<<if getSlave($AS).muscles > 30>>
+	<<if getSlave($AS).height >= 170>>
+		<<if getSlave($AS).intelligence+getSlave($AS).intelligenceImplant < -15>>
 			<<if random(1,100) > 60>>
 				<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.05)/500))>>'' from a sadistic citizen who is looking for an imposing, stupid slave she can train to rape her victims on command.
 				<<link "Accept bid" "Slave Sold">>
 					<<set _Price = 500*Math.trunc((_slaveCost*1.05)/500)>>
-					<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+					<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 					<<set $buyer = "sadism fetishist">>
 				<</link>>
 			<</if>>
@@ -1039,14 +1039,14 @@ __Bids Received__
 	<</if>>
 <</if>>
 
-<<if $activeSlave.devotion > 20>>
-	<<if $activeSlave.intelligence+$activeSlave.intelligenceImplant > 50>>
-		<<if $activeSlave.intelligenceImplant >= 15>>
+<<if getSlave($AS).devotion > 20>>
+	<<if getSlave($AS).intelligence+getSlave($AS).intelligenceImplant > 50>>
+		<<if getSlave($AS).intelligenceImplant >= 15>>
 			<<if random(1,100) > 60>>
 				<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.05)/500))>>'' from a newly wealthy citizen who is expanding his household and is interested in smart, educated, and obedient slaves for leadership roles.
 				<<link "Accept bid" "Slave Sold">>
 					<<set _Price = 500*Math.trunc((_slaveCost*1.05)/500)>>
-					<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+					<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 					<<set $buyer = "dom fetishist">>
 				<</link>>
 			<</if>>
@@ -1054,38 +1054,38 @@ __Bids Received__
 	<</if>>
 <</if>>
 
-<<if $activeSlave.devotion > 50>>
-	<<if $activeSlave.skill.oral >= 100>>
+<<if getSlave($AS).devotion > 50>>
+	<<if getSlave($AS).skill.oral >= 100>>
 		<<if random(1,100) > 60>>
 			<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.05)/500))>>'' from a citizen whose job keeps her deskbound; bored, she's looking for a devoted oral slave to occupy the space under the desk and be her constant pussylicking appliance.
 			<<link "Accept bid" "Slave Sold">>
 				<<set _Price = 500*Math.trunc((_slaveCost*1.05)/500)>>
-				<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+				<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 				<<set $buyer = "sub fetishist">>
 			<</link>>
 		<</if>>
 	<</if>>
 <</if>>
 
-<<if $activeSlave.anus == 0>>
+<<if getSlave($AS).anus == 0>>
 	<<if random(1,100) > 60>>
 		<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.3)/500))>>'' from a wealthy citizen infamous for cruelly raping anal virgins in public; he buys and abuses a new one every few weeks.
 		<<link "Accept bid" "Slave Sold">>
 			<<set _Price = 500*Math.trunc((_slaveCost*1.3)/500)>>
-			<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+			<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 			<<set $buyer = "buttbreaker">>
 		<</link>>
 	<</if>>
 <</if>>
 
-<<if $activeSlave.skill.oral >= 100>>
-	<<if $activeSlave.skill.anal >= 100>>
-		<<if $activeSlave.intelligence+$activeSlave.intelligenceImplant > 15>>
+<<if getSlave($AS).skill.oral >= 100>>
+	<<if getSlave($AS).skill.anal >= 100>>
+		<<if getSlave($AS).intelligence+getSlave($AS).intelligenceImplant > 15>>
 			<<if random(1,100) > 60>>
 				<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.1)/500))>>'' from a small, local slave trainer interested in using $him to help train new slaves in the sexual arts.
 				<<link "Accept bid" "Slave Sold">>
 					<<set _Price = 500*Math.trunc((_slaveCost*1.1)/500)>>
-					<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+					<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 					<<set $buyer = "trainer staffing">>
 				<</link>>
 			<</if>>
@@ -1093,16 +1093,16 @@ __Bids Received__
 	<</if>>
 <</if>>
 
-<<if $activeSlave.skill.oral >= 100>>
-	<<if $activeSlave.skill.anal >= 100>>
-		<<if $activeSlave.intelligence+$activeSlave.intelligenceImplant > 15>>
-			<<if $activeSlave.intelligenceImplant >= 15>>
-				<<if $activeSlave.physicalAge > 35>>
+<<if getSlave($AS).skill.oral >= 100>>
+	<<if getSlave($AS).skill.anal >= 100>>
+		<<if getSlave($AS).intelligence+getSlave($AS).intelligenceImplant > 15>>
+			<<if getSlave($AS).intelligenceImplant >= 15>>
+				<<if getSlave($AS).physicalAge > 35>>
 					<<if random(1,100) > 60>>
 						<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.4)/500))>>'' from a skilled slave trainer who feels that MILFs make the best slave trainers.
 						<<link "Accept bid" "Slave Sold">>
 							<<set _Price = 500*Math.trunc((_slaveCost*1.4)/500)>>
-							<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+							<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 							<<set $buyer = "D milf staffing">>
 						<</link>>
 					<</if>>
@@ -1112,15 +1112,15 @@ __Bids Received__
 	<</if>>
 <</if>>
 
-<<if $activeSlave.boobsImplant == 0>>
-	<<if $activeSlave.lactation > 0>>
-		<<if $activeSlave.ovaries > 0>>
-			<<if $activeSlave.boobs > 1000>>
+<<if getSlave($AS).boobsImplant == 0>>
+	<<if getSlave($AS).lactation > 0>>
+		<<if getSlave($AS).ovaries > 0>>
+			<<if getSlave($AS).boobs > 1000>>
 				<<if random(1,100) > 60>>
 					<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.25)/500))>>'' from a prominent citizen with a notorious fetish for fertile, natural cows.
 					<<link "Accept bid" "Slave Sold">>
 						<<set _Price = 500*Math.trunc((_slaveCost*1.25)/500)>>
-						<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+						<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 						<<set $buyer = "D hucow">>
 					<</link>>
 				<</if>>
@@ -1129,15 +1129,15 @@ __Bids Received__
 	<</if>>
 <</if>>
 
-<<if $activeSlave.muscles > 5>>
-	<<if $activeSlave.weight < -10>>
-		<<if $activeSlave.teeth == "pointy">>
-			<<if $activeSlave.skill.combat > 0>>
+<<if getSlave($AS).muscles > 5>>
+	<<if getSlave($AS).weight < -10>>
+		<<if getSlave($AS).teeth == "pointy">>
+			<<if getSlave($AS).skill.combat > 0>>
 				<<if random(1,100) > 60>>
 					<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.35)/500))>>'' from a prominent citizen who's pursuing some sort of mercenary project that requires worryingly large numbers of thin <<= $girl>>s with sharp teeth.
 					<<link "Accept bid" "Slave Sold">>
 						<<set _Price = 500*Math.trunc((_slaveCost*1.35)/500)>>
-						<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+						<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 						<<set $buyer = "D startled the witch">>
 					<</link>>
 				<</if>>
@@ -1147,28 +1147,28 @@ __Bids Received__
 <</if>>
 
 
-<<if $activeSlave.teeth == "fangs">>
-	<<if (skinToneLevel($activeSlave.skin) < 7)>>
+<<if getSlave($AS).teeth == "fangs">>
+	<<if (skinToneLevel(getSlave($AS).skin) < 7)>>
 		<<if random(1,100) > 60>>
 			<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.35)/500))>>'' from a becloaked individual with an unusual interest in pale <<= $girl>>s with fangs.
 			<<link "Accept bid" "Slave Sold">>
 				<<set _Price = 500*Math.trunc((_slaveCost*1.35)/500)>>
-				<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+				<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 				<<set $buyer = "vampire clan">>
 			<</link>>
 		<</if>>
 	<</if>>
 <</if>>
 
-<<if $activeSlave.vagina == 0>>
-	<<if $activeSlave.anus > 1>>
-		<<if $activeSlave.skill.anal >= 100>>
-			<<if $activeSlave.physicalAge < 25>>
+<<if getSlave($AS).vagina == 0>>
+	<<if getSlave($AS).anus > 1>>
+		<<if getSlave($AS).skill.anal >= 100>>
+			<<if getSlave($AS).physicalAge < 25>>
 				<<if random(1,100) > 60>>
 					<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.35)/500))>>'' from a prominent citizen who appreciates <<= $girl>>s who are both vaginal virgins and anal veterans.
 					<<link "Accept bid" "Slave Sold">>
 						<<set _Price = 500*Math.trunc((_slaveCost*1.35)/500)>>
-						<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+						<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 						<<set $buyer = "D virgin asspussy">>
 					<</link>>
 				<</if>>
@@ -1177,15 +1177,15 @@ __Bids Received__
 	<</if>>
 <</if>>
 
-<<if $activeSlave.vagina == 0>>
-	<<if ($activeSlave.fetish == "submissive") || ($activeSlave.fetish == "pregnancy")>>
-		<<if $activeSlave.skill.entertainment > 30>>
-			<<if $activeSlave.physicalAge < 30>>
+<<if getSlave($AS).vagina == 0>>
+	<<if (getSlave($AS).fetish == "submissive") || (getSlave($AS).fetish == "pregnancy")>>
+		<<if getSlave($AS).skill.entertainment > 30>>
+			<<if getSlave($AS).physicalAge < 30>>
 				<<if random(1,100) > 60>>
 					<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.35)/500))>>'' from a prominent citizen with moist palms who insistently refers to $him as "his waifu," whatever that means.
 					<<link "Accept bid" "Slave Sold">>
 						<<set _Price = 500*Math.trunc((_slaveCost*1.35)/500)>>
-						<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+						<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 						<<set $buyer = "D waifu">>
 					<</link>>
 				<</if>>
@@ -1194,29 +1194,29 @@ __Bids Received__
 	<</if>>
 <</if>>
 
-<<if $activeSlave.vagina > 0 && $activeSlave.dick == 0 && $activeSlave.balls == 0>>
-	<<if $activeSlave.physicalAge >= 20 && $activeSlave.physicalAge < 25>>
-		<<if $activeSlave.visualAge >= 20 && $activeSlave.visualAge < 25>>
-			<<if $activeSlave.preg <= 0 && $activeSlave.bellyImplant <= 0>>
-				<<if $activeSlave.weight < 10 && $activeSlave.weight > -10>>
-					<<if $activeSlave.waist < 10 && $activeSlave.waist > -50>>
-						<<if $activeSlave.boobs >= 550 && $activeSlave.boobs < 1000>>
-							<<if $activeSlave.butt > 2 && $activeSlave.butt < 5>>
-								<<if $activeSlave.hips > 0 && $activeSlave.hips < 3>>
-									<<if $activeSlave.face >= 20>>
+<<if getSlave($AS).vagina > 0 && getSlave($AS).dick == 0 && getSlave($AS).balls == 0>>
+	<<if getSlave($AS).physicalAge >= 20 && getSlave($AS).physicalAge < 25>>
+		<<if getSlave($AS).visualAge >= 20 && getSlave($AS).visualAge < 25>>
+			<<if getSlave($AS).preg <= 0 && getSlave($AS).bellyImplant <= 0>>
+				<<if getSlave($AS).weight < 10 && getSlave($AS).weight > -10>>
+					<<if getSlave($AS).waist < 10 && getSlave($AS).waist > -50>>
+						<<if getSlave($AS).boobs >= 550 && getSlave($AS).boobs < 1000>>
+							<<if getSlave($AS).butt > 2 && getSlave($AS).butt < 5>>
+								<<if getSlave($AS).hips > 0 && getSlave($AS).hips < 3>>
+									<<if getSlave($AS).face >= 20>>
 										<<set _movieDouble = random(1,100)>>
 										<<if _movieDouble > 90 && $seePreg != 0>>
 											<br>''<<print cashFormat(700*Math.trunc((_slaveCost*1.35)/700))>>'' from a production studio interested in using $him as a double.
 											<<link "Accept bid" "Slave Sold">>
 												<<set _Price = 700*Math.trunc((_slaveCost*1.35)/700)>>
-												<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+												<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 												<<set $buyer = "monster movie">>
 											<</link>>
 										<<elseif _movieDouble > 70>>
 											<br>''<<print cashFormat(700*Math.trunc((_slaveCost*1.35)/700))>>'' from a production studio interested in using $him as a double.
 											<<link "Accept bid" "Slave Sold">>
 												<<set _Price = 700*Math.trunc((_slaveCost*1.35)/700)>>
-												<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+												<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 												<<set $buyer = "sex double">>
 											<</link>>
 										<</if>>
@@ -1231,15 +1231,15 @@ __Bids Received__
 	<</if>>
 <</if>>
 
-<<if $activeSlave.dick > 0>>
-	<<if $activeSlave.skill.oral >= 100>>
-		<<if $activeSlave.height < 160>>
-			<<if $activeSlave.butt > 3>>
+<<if getSlave($AS).dick > 0>>
+	<<if getSlave($AS).skill.oral >= 100>>
+		<<if getSlave($AS).height < 160>>
+			<<if getSlave($AS).butt > 3>>
 				<<if random(1,100) > 60>>
 					<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.35)/500))>>'' from a prominent citizen who likes to provide his favored, well-endowed slaves with subordinate, orally skilled dickgirls with nice butts.
 					<<link "Accept bid" "Slave Sold">>
 						<<set _Price = 500*Math.trunc((_slaveCost*1.35)/500)>>
-						<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+						<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 						<<set $buyer = "D oral servants">>
 					<</link>>
 				<</if>>
@@ -1248,17 +1248,17 @@ __Bids Received__
 	<</if>>
 <</if>>
 
-<<if $activeSlave.dick > 0>>
-	<<if $activeSlave.devotion > 20>>
-		<<if $activeSlave.fetish == "buttslut">>
-			<<if $activeSlave.visualAge < 25>>
-				<<if $activeSlave.boobs < 400>>
-					<<if $activeSlave.weight <= 10>>
+<<if getSlave($AS).dick > 0>>
+	<<if getSlave($AS).devotion > 20>>
+		<<if getSlave($AS).fetish == "buttslut">>
+			<<if getSlave($AS).visualAge < 25>>
+				<<if getSlave($AS).boobs < 400>>
+					<<if getSlave($AS).weight <= 10>>
 						<<if random(1,100) > 60>>
 							<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.35)/500))>>'' from a prominent citizen who prefers slaves that look like demure <<= $girl>>s with their clothes on, and are willing to take cock up their pretty asspussies.
 							<<link "Accept bid" "Slave Sold">>
 								<<set _Price = 500*Math.trunc((_slaveCost*1.35)/500)>>
-								<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+								<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 								<<set $buyer = "D trap lover">>
 							<</link>>
 						<</if>>
@@ -1269,15 +1269,15 @@ __Bids Received__
 	<</if>>
 <</if>>
 
-<<if $activeSlave.height > 185>>
-	<<if $activeSlave.butt > 8>>
-		<<if $activeSlave.buttImplant < 2>>
-			<<if $activeSlave.weight > 10>>
+<<if getSlave($AS).height > 185>>
+	<<if getSlave($AS).butt > 8>>
+		<<if getSlave($AS).buttImplant < 2>>
+			<<if getSlave($AS).weight > 10>>
 				<<if random(1,100) > 60>>
 					<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.35)/500))>>'' from an eccentric citizen notorious for keeping tall slaves with huge soft butts, just so he can bury himself between their cheeks when they're standing.
 					<<link "Accept bid" "Slave Sold">>
 						<<set _Price = 500*Math.trunc((_slaveCost*1.35)/500)>>
-						<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+						<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 						<<set $buyer = "D butt bury">>
 					<</link>>
 				<</if>>
@@ -1286,18 +1286,18 @@ __Bids Received__
 	<</if>>
 <</if>>
 
-<<if $activeSlave.dick > 1>>
-	<<if $activeSlave.balls == 1>>
-		<<if $activeSlave.vagina > -1>>
-			<<if canAchieveErection($activeSlave)>>
-				<<if $activeSlave.lactation > 0>>
-					<<if $activeSlave.face > 10>>
-						<<if $activeSlave.faceShape != "masculine">>
+<<if getSlave($AS).dick > 1>>
+	<<if getSlave($AS).balls == 1>>
+		<<if getSlave($AS).vagina > -1>>
+			<<if canAchieveErection(getSlave($AS))>>
+				<<if getSlave($AS).lactation > 0>>
+					<<if getSlave($AS).face > 10>>
+						<<if getSlave($AS).faceShape != "masculine">>
 							<<if random(1,100) > 60>>
 								<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.35)/500))>>'' from a prominent citizen with strong opinions on futas: he likes a feminine $girl with a nice cock, a lovely pussy, no visible balls and yet the ability to get hard, and plentifully milky nipples.
 								<<link "Accept bid" "Slave Sold">>
 									<<set _Price = 500*Math.trunc((_slaveCost*1.35)/500)>>
-									<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+									<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 									<<set $buyer = "D milky herm">>
 								<</link>>
 							<</if>>
@@ -1309,15 +1309,15 @@ __Bids Received__
 	<</if>>
 <</if>>
 
-<<if $activeSlave.dick == 0>>
-	<<if $activeSlave.muscles > 30>>
-		<<if $activeSlave.devotion > 20>>
-			<<if $activeSlave.height > 180>>
+<<if getSlave($AS).dick == 0>>
+	<<if getSlave($AS).muscles > 30>>
+		<<if getSlave($AS).devotion > 20>>
+			<<if getSlave($AS).height > 180>>
 				<<if random(1,100) > 60>>
 					<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.35)/500))>>'' from a prominent citizen whose friends never let him hear the end of his incorrigibly romantic treatment of his apartment full of amazons.
 					<<link "Accept bid" "Slave Sold">>
 						<<set _Price = 500*Math.trunc((_slaveCost*1.35)/500)>>
-						<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+						<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 						<<set $buyer = "D amazon hunter">>
 					<</link>>
 				<</if>>
@@ -1327,16 +1327,16 @@ __Bids Received__
 <</if>>
 
 <<if $seePreg != 0>>
-	<<if $activeSlave.ovaries == 1>>
-		<<if $activeSlave.preg > -2>>
-			<<if $activeSlave.muscles > 30>>
-				<<if $activeSlave.weight <= 10>>
-					<<if $activeSlave.height < 165>>
+	<<if getSlave($AS).ovaries == 1>>
+		<<if getSlave($AS).preg > -2>>
+			<<if getSlave($AS).muscles > 30>>
+				<<if getSlave($AS).weight <= 10>>
+					<<if getSlave($AS).height < 165>>
 						<<if random(1,100) > 60>>
 							<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.35)/500))>>'' from a prominent citizen who keeps a large harem of lithe, muscular <<= $girl>>s to bear him children.
 							<<link "Accept bid" "Slave Sold">>
 								<<set _Price = 500*Math.trunc((_slaveCost*1.35)/500)>>
-								<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+								<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 								<<set $buyer = "D shorty breeder">>
 							<</link>>
 						<</if>>
@@ -1347,16 +1347,16 @@ __Bids Received__
 	<</if>>
 <</if>>
 
-<<if $activeSlave.devotion > 20>>
-	<<if $activeSlave.fetish == "cumslut">>
-		<<if $activeSlave.lips > 30>>
-			<<if hasAnyArms($activeSlave) && hasAnyLegs($activeSlave)>>
-				<<if $activeSlave.skill.oral > 50>>
+<<if getSlave($AS).devotion > 20>>
+	<<if getSlave($AS).fetish == "cumslut">>
+		<<if getSlave($AS).lips > 30>>
+			<<if hasAnyArms(getSlave($AS)) && hasAnyLegs(getSlave($AS))>>
+				<<if getSlave($AS).skill.oral > 50>>
 					<<if random(1,100) > 60>>
 						<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.35)/500))>>'' from a prominent citizen who's looking for a fresh, skilled pair of lips eager to wrap around a thick cock.
 						<<link "Accept bid" "Slave Sold">>
 							<<set _Price = 500*Math.trunc((_slaveCost*1.35)/500)>>
-							<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+							<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 							<<set $buyer = "D oral servants">>
 						<</link>>
 					<</if>>
@@ -1366,16 +1366,16 @@ __Bids Received__
 	<</if>>
 <</if>>
 
-<<if $activeSlave.skill.vaginal <= 10>>
-	<<if $activeSlave.skill.anal <= 10>>
-		<<if $activeSlave.skill.oral <= 10>>
-			<<if $activeSlave.skill.whoring <= 10>>
-				<<if $activeSlave.skill.entertainment <= 10>>
+<<if getSlave($AS).skill.vaginal <= 10>>
+	<<if getSlave($AS).skill.anal <= 10>>
+		<<if getSlave($AS).skill.oral <= 10>>
+			<<if getSlave($AS).skill.whoring <= 10>>
+				<<if getSlave($AS).skill.entertainment <= 10>>
 					<<if random(1,100) > 80>>
 						<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.15)/500))>>'' from a prominent citizen who's a notoriously inexperienced lover; it's painfully obvious that he prefers inexperienced slaves as they make him feel less insecure.
 						<<link "Accept bid" "Slave Sold">>
 							<<set _Price = 500*Math.trunc((_slaveCost*1.15)/500)>>
-							<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+							<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 							<<set $buyer = "D r9k">>
 						<</link>>
 					<</if>>
@@ -1385,15 +1385,15 @@ __Bids Received__
 	<</if>>
 <</if>>
 
-<<if $activeSlave.weight > 10>>
-	<<if $activeSlave.muscles > 5>>
-		<<if $activeSlave.health.condition > 60>>
+<<if getSlave($AS).weight > 10>>
+	<<if getSlave($AS).muscles > 5>>
+		<<if getSlave($AS).health.condition > 60>>
 			<<if _slaveCost < 10000>>
 				<<if random(1,100) > 60>>
 					<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.25)/500))>>'' from a prominent citizen who takes unusually close interest in $his health and muscle tone, and cannot quite hide his salivation as he does so.
 					<<link "Accept bid" "Slave Sold">>
 						<<set _Price = 500*Math.trunc((_slaveCost*1.25)/500)>>
-						<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+						<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 						<<set $buyer = "D cannibal">>
 					<</link>>
 				<</if>>
@@ -1402,33 +1402,33 @@ __Bids Received__
 	<</if>>
 <</if>>
 
-<<if $activeSlave.porn.prestige == 1>>
+<<if getSlave($AS).porn.prestige == 1>>
 	<<if random(1,100) == 69>>
 		<br>''<<print cashFormat(200*Math.trunc((_slaveCost*2)/200))>>'' from an obsessive fan who absolutely must have $him for himself.
 		<<link "Accept bid" "Slave Sold">>
 			<<set _Price = 200*Math.trunc((_slaveCost*2)/200)>>
-			<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+			<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 			<<set $buyer = "obsessed fan">>
 		<</link>>
 	<</if>>
-<<elseif $activeSlave.porn.prestige == 3>>
+<<elseif getSlave($AS).porn.prestige == 3>>
 	<<if random(1,100) > 90>>
 		<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.3)/500))>>'' from a studio interested in continued production of $his porn.
 		<<link "Accept bid" "Slave Sold">>
 			<<set _Price = 500*Math.trunc((_slaveCost*1.3)/500)>>
-			<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+			<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 			<<set $buyer = "porn studio">>
 		<</link>>
 	<</if>>
 <</if>>
 
 <<if $arcologies[0].FSDegradationist == "unset">>
-	<<if $activeSlave.intelligenceImplant < 15>>
+	<<if getSlave($AS).intelligenceImplant < 15>>
 		<<if random(1,100) > 60>>
 			<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.1)/500))>>'' from a slave trainer that specializes in educating slaves and reselling them at a profit.
 			<<link "Accept bid" "Slave Sold">>
 				<<set _Price = 500*Math.trunc((_slaveCost*1.1)/500)>>
-				<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+				<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 				<<set $buyer = "teaching trainer">>
 			<</link>>
 		<</if>>
@@ -1436,12 +1436,12 @@ __Bids Received__
 <</if>>
 
 <<if $arcologies[0].FSBodyPurist == "unset">>
-	<<if $activeSlave.boobsImplant == 0>>
+	<<if getSlave($AS).boobsImplant == 0>>
 		<<if random(1,100) > 60>>
 			<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.1)/500))>>'' from a slave trainer that specializes in filling slaves with implants before resale.
 			<<link "Accept bid" "Slave Sold">>
 				<<set _Price = 500*Math.trunc((_slaveCost*1.1)/500)>>
-				<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+				<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 				<<set $buyer = "implanting trainer">>
 			<</link>>
 		<</if>>
@@ -1449,12 +1449,12 @@ __Bids Received__
 <</if>>
 
 <<if $arcologies[0].FSTransformationFetishist == "unset">>
-	<<if $activeSlave.boobsImplant > 0>>
+	<<if getSlave($AS).boobsImplant > 0>>
 		<<if random(1,100) > 60>>
 			<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.1)/500))>>'' from a slave trainer that specializes in fixing slaves who have been surgically ruined with overimplantation.
 			<<link "Accept bid" "Slave Sold">>
 				<<set _Price = 500*Math.trunc((_slaveCost*1.1)/500)>>
-				<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+				<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 				<<set $buyer = "purifying trainer">>
 			<</link>>
 		<</if>>
@@ -1462,14 +1462,14 @@ __Bids Received__
 <</if>>
 
 <<if $arcologies[0].FSAssetExpansionist == "unset">>
-	<<if $activeSlave.boobs > 600>>
-		<<if $activeSlave.butt > 3>>
-			<<if $activeSlave.weight > 10>>
+	<<if getSlave($AS).boobs > 600>>
+		<<if getSlave($AS).butt > 3>>
+			<<if getSlave($AS).weight > 10>>
 				<<if random(1,100) > 60>>
 					<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.1)/500))>>'' from a slave trainer that specializes in slimming down fat slaves to appeal to buyers who prefer slim <<= $girl>>s.
 					<<link "Accept bid" "Slave Sold">>
 						<<set _Price = 500*Math.trunc((_slaveCost*1.1)/500)>>
-						<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+						<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 						<<set $buyer = "slimming trainer">>
 					<</link>>
 				<</if>>
@@ -1479,14 +1479,14 @@ __Bids Received__
 <</if>>
 
 <<if $arcologies[0].FSSlimnessEnthusiast == "unset">>
-	<<if $activeSlave.boobs < 600>>
-		<<if $activeSlave.butt < 3>>
-			<<if $activeSlave.weight < -10>>
+	<<if getSlave($AS).boobs < 600>>
+		<<if getSlave($AS).butt < 3>>
+			<<if getSlave($AS).weight < -10>>
 				<<if random(1,100) > 60>>
 					<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.1)/500))>>'' from a slave trainer that specializes in improving slaves with disappointing assets; they prefer pharmaceutical means but are not averse to surgical intervention if necessary.
 					<<link "Accept bid" "Slave Sold">>
 						<<set _Price = 500*Math.trunc((_slaveCost*1.1)/500)>>
-						<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+						<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 						<<set $buyer = "broadening trainer">>
 					<</link>>
 				<</if>>
@@ -1495,14 +1495,14 @@ __Bids Received__
 	<</if>>
 <</if>>
 
-<<if $activeSlave.boobs > 1000>>
-	<<if $activeSlave.boobsImplant == 0>>
-		<<if $activeSlave.lactation == 0>>
+<<if getSlave($AS).boobs > 1000>>
+	<<if getSlave($AS).boobsImplant == 0>>
+		<<if getSlave($AS).lactation == 0>>
 			<<if random(1,100) > 60>>
 				<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.1)/500))>>'' from a slave trainer that specializes in getting $women ready to be dairy cows by using aggressive hormonal and pharmaceutical treatment to balloon their tits.
 				<<link "Accept bid" "Slave Sold">>
 					<<set _Price = 500*Math.trunc((_slaveCost*1.1)/500)>>
-					<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+					<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 					<<set $buyer = "cow trainer">>
 				<</link>>
 			<</if>>
@@ -1511,13 +1511,13 @@ __Bids Received__
 <</if>>
 
 <<if $arcologies[0].FSGenderFundamentalist == "unset">>
-	<<if $activeSlave.balls > 0>>
-		<<if $activeSlave.boobs < 500>>
+	<<if getSlave($AS).balls > 0>>
+		<<if getSlave($AS).boobs < 500>>
 			<<if random(1,100) > 60>>
 				<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.1)/500))>>'' from a slave trainer that specializes in feminizing imperfect shemales; an orchiectomy is invariably their first step.
 				<<link "Accept bid" "Slave Sold">>
 					<<set _Price = 500*Math.trunc((_slaveCost*1.1)/500)>>
-					<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+					<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 					<<set $buyer = "clipping trainer">>
 				<</link>>
 			<</if>>
@@ -1526,13 +1526,13 @@ __Bids Received__
 <</if>>
 
 <<if $arcologies[0].FSGenderRadicalist == "unset">>
-	<<if $activeSlave.dick > 0>>
+	<<if getSlave($AS).dick > 0>>
 		<<if _slaveCost > 10000>>
 			<<if random(1,100) > 60>>
 				<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.1)/500))>>'' from a slave trainer that specializes in creating proper slave women from raw material that falls short of that ideal but has potential anyway.
 				<<link "Accept bid" "Slave Sold">>
 					<<set _Price = 500*Math.trunc((_slaveCost*1.1)/500)>>
-					<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+					<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 					<<set $buyer = "reassignment trainer">>
 				<</link>>
 			<</if>>
@@ -1540,27 +1540,27 @@ __Bids Received__
 	<</if>>
 <</if>>
 
-<<if $activeSlave.boobs - $activeSlave.boobsImplant > 2000>>
-	<<if $activeSlave.lactation > 1>>
+<<if getSlave($AS).boobs - getSlave($AS).boobsImplant > 2000>>
+	<<if getSlave($AS).lactation > 1>>
 		<<if random(1,100) > 70>>
 			<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.25)/500))>>'' from a fellow arcology owner working towards autarkic slave pastoralism. He's awed by $his milk productivity.
 			<<link "Accept bid" "Slave Sold">>
 				<<set _Price = 500*Math.trunc((_slaveCost*1.25)/500)>>
-				<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+				<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 				<<set $buyer = "pastoralist arcology">>
 			<</link>>
 		<</if>>
 	<</if>>
 <</if>>
 
-<<if $activeSlave.devotion > 50>>
-	<<if $activeSlave.intelligence+$activeSlave.intelligenceImplant > 50>>
-		<<if $activeSlave.intelligenceImplant >= 30>>
+<<if getSlave($AS).devotion > 50>>
+	<<if getSlave($AS).intelligence+getSlave($AS).intelligenceImplant > 50>>
+		<<if getSlave($AS).intelligenceImplant >= 30>>
 			<<if random(1,100) > 70>>
 				<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.25)/500))>>'' from a fellow arcology owner building a facsimile of ancient Egypt. He's in the market for wise and educated slaves willing to pass on their skills.
 				<<link "Accept bid" "Slave Sold">>
 					<<set _Price = 500*Math.trunc((_slaveCost*1.25)/500)>>
-					<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+					<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 					<<set $buyer = "egyptian revivalist arcology">>
 				<</link>>
 			<</if>>
@@ -1568,14 +1568,14 @@ __Bids Received__
 	<</if>>
 <</if>>
 
-<<if $activeSlave.skill.combat >= 1>>
-	<<if $activeSlave.health.condition > 40>>
-		<<if $activeSlave.muscles > 25>>
+<<if getSlave($AS).skill.combat >= 1>>
+	<<if getSlave($AS).health.condition > 40>>
+		<<if getSlave($AS).muscles > 25>>
 			<<if random(1,100) > 70>>
 				<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.25)/500))>>'' from a fellow arcology owner building a recreation of the Great Aztec Empire. He's in the market for willing, strong and combat ready slaves, to bolster his empire
 				<<link "Accept bid" "Slave Sold">>
 					<<set _Price = 500*Math.trunc((_slaveCost*1.25)/500)>>
-					<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+					<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 					<<set $buyer = "aztec revivalist arcology">>
 				<</link>>
 			<</if>>
@@ -1583,14 +1583,14 @@ __Bids Received__
 	<</if>>
 <</if>>
 
-<<if $activeSlave.skill.combat > 0>>
-	<<if $activeSlave.health.condition > 40>>
-		<<if $activeSlave.muscles > 5>>
+<<if getSlave($AS).skill.combat > 0>>
+	<<if getSlave($AS).health.condition > 40>>
+		<<if getSlave($AS).muscles > 5>>
 			<<if random(1,100) > 70>>
 				<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.25)/500))>>'' from a fellow arcology owner building a facsimile of classical Rome. He's in the market for slaves with basic combat skills to fight in modern gladiatorial combats.
 				<<link "Accept bid" "Slave Sold">>
 					<<set _Price = 500*Math.trunc((_slaveCost*1.25)/500)>>
-					<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+					<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 					<<set $buyer = "roman revivalist arcology">>
 				<</link>>
 			<</if>>
@@ -1598,14 +1598,14 @@ __Bids Received__
 	<</if>>
 <</if>>
 
-<<if $activeSlave.health.condition > 40>>
-	<<if $activeSlave.intelligence+$activeSlave.intelligenceImplant > 20>>
-		<<if $activeSlave.muscles > 5>>
+<<if getSlave($AS).health.condition > 40>>
+	<<if getSlave($AS).intelligence+getSlave($AS).intelligenceImplant > 20>>
+		<<if getSlave($AS).muscles > 5>>
 			<<if random(1,100) > 70>>
 				<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.25)/500))>>'' from an arcology owner who's crowned himself a neo-noble, looking for healthy, intelligent, and fit slaves to build up a prestigious harem worthy of a genuine King.
 				<<link "Accept bid" "Slave Sold">>
 					<<set _Price = 500*Math.trunc((_slaveCost*1.25)/500)>>
-					<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+					<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 					<<set $buyer = "neoimperialist arcology">>
 				<</link>>
 			<</if>>
@@ -1613,27 +1613,27 @@ __Bids Received__
 	<</if>>
 <</if>>
 
-<<if $activeSlave.face > 10>>
-	<<if $activeSlave.counter.anal < 100>>
+<<if getSlave($AS).face > 10>>
+	<<if getSlave($AS).counter.anal < 100>>
 		<<if random(1,100) > 70>>
-			<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.25)/500))>>'' from a fellow arcology owner with interesting religious beliefs, which require beautiful slaves to be available to the public. Since $activeSlave.slaveName is pretty and not heavily used, he considers it a duty to buy $him and make $him a holy prostitute.
+			<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.25)/500))>>'' from a fellow arcology owner with interesting religious beliefs, which require beautiful slaves to be available to the public. Since getSlave($AS).slaveName is pretty and not heavily used, he considers it a duty to buy $him and make $him a holy prostitute.
 			<<link "Accept bid" "Slave Sold">>
 				<<set _Price = 500*Math.trunc((_slaveCost*1.25)/500)>>
-				<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+				<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 				<<set $buyer = "chattel religionist arcology">>
 			<</link>>
 		<</if>>
 	<</if>>
 <</if>>
 
-<<if $activeSlave.muscles > 5>>
-	<<if $activeSlave.muscles <= 95>>
-		<<if $activeSlave.health.condition > 60>>
+<<if getSlave($AS).muscles > 5>>
+	<<if getSlave($AS).muscles <= 95>>
+		<<if getSlave($AS).health.condition > 60>>
 			<<if random(1,100) > 70>>
-				<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.25)/500))>>'' from a fellow arcology owner devoted to muscular ladies. He seems to feel that $activeSlave.slaveName is not at $his true potential, and wants a try at improving $his physique himself.
+				<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.25)/500))>>'' from a fellow arcology owner devoted to muscular ladies. He seems to feel that getSlave($AS).slaveName is not at $his true potential, and wants a try at improving $his physique himself.
 				<<link "Accept bid" "Slave Sold">>
 					<<set _Price = 500*Math.trunc((_slaveCost*1.25)/500)>>
-					<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+					<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 					<<set $buyer = "physical idealist arcology">>
 				<</link>>
 			<</if>>
@@ -1641,14 +1641,14 @@ __Bids Received__
 	<</if>>
 <</if>>
 
-<<if $activeSlave.weight > 30>>
-	<<if $activeSlave.weight <= 95>>
-		<<if $activeSlave.health.condition > 60>>
+<<if getSlave($AS).weight > 30>>
+	<<if getSlave($AS).weight <= 95>>
+		<<if getSlave($AS).health.condition > 60>>
 			<<if random(1,100) > 70>>
-				<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.25)/500))>>'' from a fellow arcology owner devoted to chubby ladies. He seems to feel that $activeSlave.slaveName can handle a fair bit more weight, and wants a try at fattening $him up himself.
+				<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.25)/500))>>'' from a fellow arcology owner devoted to chubby ladies. He seems to feel that getSlave($AS).slaveName can handle a fair bit more weight, and wants a try at fattening $him up himself.
 				<<link "Accept bid" "Slave Sold">>
 					<<set _Price = 500*Math.trunc((_slaveCost*1.25)/500)>>
-					<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+					<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 					<<set $buyer = "hedonistic decadence arcology">>
 				<</link>>
 			<</if>>
@@ -1657,14 +1657,14 @@ __Bids Received__
 <</if>>
 
 <<if $arcologies[0].FSSlimnessEnthusiast != "unset">>
-	<<if $activeSlave.weight < 10>>
-		<<if $activeSlave.muscles < 10>>
-			<<if $activeSlave.belly == 0 && $activeSlave.preg < 1>>
+	<<if getSlave($AS).weight < 10>>
+		<<if getSlave($AS).muscles < 10>>
+			<<if getSlave($AS).belly == 0 && getSlave($AS).preg < 1>>
 				<<if random(1,100) > 80>>
 					<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.1)/400))>>'' from a chef that likes stuffing more than just turkeys.
 					<<link "Accept bid" "Slave Sold">>
 						<<set _Price = 500*Math.trunc((_slaveCost*1.1)/400)>>
-						<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+						<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 						<<set $buyer = "stuffer chef">>
 					<</link>>
 				<</if>>
@@ -1673,27 +1673,27 @@ __Bids Received__
 	<</if>>
 <</if>>
 
-<<if $activeSlave.boobs > 1000>>
-	<<if $activeSlave.boobsImplant == 0>>
+<<if getSlave($AS).boobs > 1000>>
+	<<if getSlave($AS).boobsImplant == 0>>
 		<<if random(1,100) > 70>>
-			<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.25)/500))>>'' from a fellow arcology owner who loves breast implants. Since large natural breasts can support larger implants, he seems to feel $activeSlave.slaveName has good potential to be implanted up to a truly gigantic size without too much stretching.
+			<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.25)/500))>>'' from a fellow arcology owner who loves breast implants. Since large natural breasts can support larger implants, he seems to feel getSlave($AS).slaveName has good potential to be implanted up to a truly gigantic size without too much stretching.
 			<<link "Accept bid" "Slave Sold">>
 				<<set _Price = 500*Math.trunc((_slaveCost*1.25)/500)>>
-				<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+				<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 				<<set $buyer = "transformation fetishist arcology">>
 			<</link>>
 		<</if>>
 	<</if>>
 <</if>>
 
-<<if $activeSlave.boobs > 800>>
-	<<if $activeSlave.boobsImplant == 0>>
-		<<if $activeSlave.physicalAge < 25>>
+<<if getSlave($AS).boobs > 800>>
+	<<if getSlave($AS).boobsImplant == 0>>
+		<<if getSlave($AS).physicalAge < 25>>
 			<<if random(1,100) > 70>>
 				<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.25)/500))>>'' from a fellow arcology owner who never fails to dream big. He's interested in $him mostly for growth potential, since $his assets have grown so big, so young.
 				<<link "Accept bid" "Slave Sold">>
 					<<set _Price = 500*Math.trunc((_slaveCost*1.25)/500)>>
-					<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+					<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 					<<set $buyer = "asset expansionist arcology">>
 				<</link>>
 			<</if>>
@@ -1701,15 +1701,15 @@ __Bids Received__
 	<</if>>
 <</if>>
 
-<<if $activeSlave.boobs < 500>>
-	<<if $activeSlave.butt < 3>>
-		<<if $activeSlave.physicalAge < 25>>
-			<<if $activeSlave.anus < 2>>
+<<if getSlave($AS).boobs < 500>>
+	<<if getSlave($AS).butt < 3>>
+		<<if getSlave($AS).physicalAge < 25>>
+			<<if getSlave($AS).anus < 2>>
 				<<if random(1,100) > 70>>
 					<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.25)/500))>>'' from a fellow arcology owner with simple tastes. He likes his slaves young, slim, and reasonably innocent.
 					<<link "Accept bid" "Slave Sold">>
 						<<set _Price = 500*Math.trunc((_slaveCost*1.25)/500)>>
-						<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+						<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 						<<set $buyer = "slimness enthusiast arcology">>
 					<</link>>
 				<</if>>
@@ -1718,14 +1718,14 @@ __Bids Received__
 	<</if>>
 <</if>>
 
-<<if $activeSlave.boobsImplant > 0>>
-	<<if $activeSlave.buttImplant > 0>>
-		<<if $activeSlave.lipsImplant > 0>>
+<<if getSlave($AS).boobsImplant > 0>>
+	<<if getSlave($AS).buttImplant > 0>>
+		<<if getSlave($AS).lipsImplant > 0>>
 			<<if random(1,100) > 70>>
 				<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.25)/500))>>'' from a fellow arcology owner with a hatred of implants that reaches missionary zeal. He buys slaves full of silicone, removes their implants, reconditions them, and resells them whenever his finances will permit.
 				<<link "Accept bid" "Slave Sold">>
 					<<set _Price = 500*Math.trunc((_slaveCost*1.25)/500)>>
-					<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+					<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 					<<set $buyer = "body purist arcology">>
 				<</link>>
 			<</if>>
@@ -1733,25 +1733,25 @@ __Bids Received__
 	<</if>>
 <</if>>
 
-<<if $activeSlave.trust > 20>>
+<<if getSlave($AS).trust > 20>>
 	<<if random(1,100) > 70>>
 		<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.25)/500))>>'' from a fellow arcology owner who runs a terrifyingly degrading society. He prefers slaves who have been well-treated previously; it lends their screams a certain special authenticity.
 		<<link "Accept bid" "Slave Sold">>
 			<<set _Price = 500*Math.trunc((_slaveCost*1.25)/500)>>
-			<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+			<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 			<<set $buyer = "degradationist arcology">>
 		<</link>>
 	<</if>>
 <</if>>
 
-<<if $activeSlave.intelligenceImplant < 5>>
-	<<if $activeSlave.devotion > 20>>
-		<<if $activeSlave.fetish != "mindbroken">>
+<<if getSlave($AS).intelligenceImplant < 5>>
+	<<if getSlave($AS).devotion > 20>>
+		<<if getSlave($AS).fetish != "mindbroken">>
 			<<if random(1,100) > 70>>
 				<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.25)/500))>>'' from a fellow arcology owner with an almost messianic calling to educate and improve slaves, though somewhat hypocritically, he prefers to start with reasonably obedient <<= $girl>>s, which usually means slaves broken by someone else.
 				<<link "Accept bid" "Slave Sold">>
 					<<set _Price = 500*Math.trunc((_slaveCost*1.25)/500)>>
-					<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+					<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 					<<set $buyer = "paternalist arcology">>
 				<</link>>
 			<</if>>
@@ -1759,16 +1759,16 @@ __Bids Received__
 	<</if>>
 <</if>>
 
-<<if $activeSlave.dick == 0>>
-	<<if $activeSlave.boobs > 800>>
-		<<if $activeSlave.butt > 3>>
-			<<if $activeSlave.devotion > 20>>
-				<<if $activeSlave.intelligence+$activeSlave.intelligenceImplant < -15>>
+<<if getSlave($AS).dick == 0>>
+	<<if getSlave($AS).boobs > 800>>
+		<<if getSlave($AS).butt > 3>>
+			<<if getSlave($AS).devotion > 20>>
+				<<if getSlave($AS).intelligence+getSlave($AS).intelligenceImplant < -15>>
 					<<if random(1,100) > 70>>
 						<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.25)/500))>>'' from a fellow arcology owner who likes willing, uncomplicated young ladies with bouncing boobs and big butts. He's an uncomplicated sort.
 						<<link "Accept bid" "Slave Sold">>
 							<<set _Price = 500*Math.trunc((_slaveCost*1.25)/500)>>
-							<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+							<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 							<<set $buyer = "gender fundamentalist arcology">>
 						<</link>>
 					<</if>>
@@ -1778,14 +1778,14 @@ __Bids Received__
 	<</if>>
 <</if>>
 
-<<if $activeSlave.dick > 0>>
-	<<if $activeSlave.face < -10>>
-		<<if $activeSlave.boobs < 400>>
+<<if getSlave($AS).dick > 0>>
+	<<if getSlave($AS).face < -10>>
+		<<if getSlave($AS).boobs < 400>>
 			<<if random(1,100) > 70>>
 				<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.25)/500))>>'' from a fellow arcology owner with a notorious fetish for the process of feminization. He prefers diamonds in the rough, because the process of polishing is so much fun.
 				<<link "Accept bid" "Slave Sold">>
 					<<set _Price = 500*Math.trunc((_slaveCost*1.25)/500)>>
-					<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+					<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 					<<set $buyer = "gender radicalist arcology">>
 				<</link>>
 			<</if>>
@@ -1793,14 +1793,14 @@ __Bids Received__
 	<</if>>
 <</if>>
 
-<<if $activeSlave.race != "mixed race">>
-	<<if $activeSlave.devotion <= 20>>
-		<<if $activeSlave.trust < 20>>
+<<if getSlave($AS).race != "mixed race">>
+	<<if getSlave($AS).devotion <= 20>>
+		<<if getSlave($AS).trust < 20>>
 			<<if random(1,100) > 70>>
-				<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.25)/500))>>'' from a fellow arcology owner with a strongly held belief that $activeSlave.race people should not be slaves. He devotes as much of his resources as he can to manumission of such <<= $girl>>s, concentrating on the downtrodden.
+				<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.25)/500))>>'' from a fellow arcology owner with a strongly held belief that getSlave($AS).race people should not be slaves. He devotes as much of his resources as he can to manumission of such <<= $girl>>s, concentrating on the downtrodden.
 				<<link "Accept bid" "Slave Sold">>
 					<<set _Price = 500*Math.trunc((_slaveCost*1.25)/500)>>
-					<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+					<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 					<<set $buyer = "supremacist arcology">>
 				<</link>>
 			<</if>>
@@ -1809,14 +1809,14 @@ __Bids Received__
 <</if>>
 
 <<if $seePreg != 0>>
-	<<if $activeSlave.race != "mixed race">>
-		<<if $activeSlave.intelligence+$activeSlave.intelligenceImplant < -50>>
-			<<if $activeSlave.ovaries == 1>>
+	<<if getSlave($AS).race != "mixed race">>
+		<<if getSlave($AS).intelligence+getSlave($AS).intelligenceImplant < -50>>
+			<<if getSlave($AS).ovaries == 1>>
 				<<if random(1,100) > 70>>
-					<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.25)/500))>>'' from a fellow arcology owner working on a project to breed a race of $activeSlave.race people with natural, unquestioning obedience. He clearly considers $him good stock for the project.
+					<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.25)/500))>>'' from a fellow arcology owner working on a project to breed a race of getSlave($AS).race people with natural, unquestioning obedience. He clearly considers $him good stock for the project.
 					<<link "Accept bid" "Slave Sold">>
 						<<set _Price = 500*Math.trunc((_slaveCost*1.25)/500)>>
-						<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+						<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 						<<set $buyer = "subjugationist arcology">>
 					<</link>>
 				<</if>>
@@ -1831,7 +1831,7 @@ __Bids Received__
 			<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.1)/500))>>'' from a cheap brothel chain that operates a franchise on a lower level of the arcology.
 			<<link "Accept bid" "Slave Sold">>
 				<<set _Price = 500*Math.trunc((_slaveCost*1.1)/500)>>
-				<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+				<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 				<<set $buyer = "cheap brothel">>
 			<</link>>
 		<</if>>
@@ -1840,12 +1840,12 @@ __Bids Received__
 
 <<if $arcologies[0].FSPaternalist == "unset">>
 	<<if _slaveCost < 20000>>
-		<<if $activeSlave.boobsImplant == 0>>
+		<<if getSlave($AS).boobsImplant == 0>>
 			<<if random(1,100) > 50>>
 				<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.1)/500))>>'' from a factory farm notorious for extracting every drop of value from its slaves' bodies.
 				<<link "Accept bid" "Slave Sold">>
 					<<set _Price = 500*Math.trunc((_slaveCost*1.1)/500)>>
-					<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+					<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 					<<set $buyer = "factory farm">>
 				<</link>>
 			<</if>>
@@ -1859,7 +1859,7 @@ __Bids Received__
 			<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.1)/500))>>'' from a sex arcade that maintains good service quality by rapidly cycling new slaves through their facilities.
 			<<link "Accept bid" "Slave Sold">>
 				<<set _Price = 500*Math.trunc((_slaveCost*1.1)/500)>>
-				<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+				<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 				<<set $buyer = "arcade">>
 			<</link>>
 		<</if>>
@@ -1869,13 +1869,13 @@ __Bids Received__
 <<if $seePreg != 0>>
 	<<if $arcologies[0].FSPaternalist == "unset">>
 		<<if _slaveCost < 10000>>
-			<<if $activeSlave.health.condition > 40>>
-				<<if $activeSlave.ovaries == 1>>
+			<<if getSlave($AS).health.condition > 40>>
+				<<if getSlave($AS).ovaries == 1>>
 					<<if random(1,100) > 50>>
 						<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.1)/500))>>'' from a high-volume breeding operation interested in $him mostly for $his healthy, functional womb.
 						<<link "Accept bid" "Slave Sold">>
 							<<set _Price = 500*Math.trunc((_slaveCost*1.1)/500)>>
-							<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+							<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 							<<set $buyer = "volume breeder">>
 						<</link>>
 					<</if>>
@@ -1891,7 +1891,7 @@ __Bids Received__
 			<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.1)/500))>>'' from a group of partners that run a handsome brothel off the promenade.
 			<<link "Accept bid" "Slave Sold">>
 				<<set _Price = 500*Math.trunc((_slaveCost*1.1)/500)>>
-				<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+				<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 				<<set $buyer = "nice brothel">>
 			<</link>>
 		<</if>>
@@ -1900,13 +1900,13 @@ __Bids Received__
 
 <<if $arcologies[0].FSDegradationist == "unset">>
 	<<if _slaveCost < 50000>>
-		<<if $activeSlave.boobsImplant == 0>>
-			<<if $activeSlave.health.condition > 40>>
+		<<if getSlave($AS).boobsImplant == 0>>
+			<<if getSlave($AS).health.condition > 40>>
 				<<if random(1,100) > 50>>
 					<br>''<<print cashFormat(500*Math.trunc((_slaveCost*0.8)/500))>>'' from a free-range farm that pays for the high costs of high quality livestock care by aggressively marketing its cruelty-free products.
 					<<link "Accept bid" "Slave Sold">>
 						<<set _Price = 500*Math.trunc((_slaveCost*0.8)/500)>>
-						<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+						<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 						<<set $buyer = "free range">>
 					<</link>>
 				<</if>>
@@ -1915,13 +1915,13 @@ __Bids Received__
 	<</if>>
 <</if>>
 
-<<if $activeSlave.health.condition > 40>>
+<<if getSlave($AS).health.condition > 40>>
 	<<if _slaveCost < 5000>>
 		<<if random(1,100) > 10>>
 			<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.2)/500))>>'' from an organ harvesting firm that acquires healthy raw materials cheaply.
 			<<link "Accept bid" "Slave Sold">>
 				<<set _Price = 500*Math.trunc((_slaveCost*1.2)/500)>>
-				<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+				<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 				<<set $buyer = "harvester">>
 			<</link>>
 		<</if>>
@@ -1933,7 +1933,7 @@ __Bids Received__
 		<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1)/500))>>'' from a manufacturer of large sexual appliances that include a living inmate, drugged into helplessness.
 		<<link "Accept bid" "Slave Sold">>
 			<<set _Price = 500*Math.trunc((_slaveCost*1)/500)>>
-			<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+			<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 			<<set $buyer = "fuckdoll">>
 		<</link>>
 	<</if>>
@@ -1941,13 +1941,13 @@ __Bids Received__
 
 <<if $seeExtreme == 1>>
 	<<if _slaveCost < 5000>>
-		<<if $activeSlave.vagina > -1>>
-			<<if $activeSlave.bellyImplant > -1>>
+		<<if getSlave($AS).vagina > -1>>
+			<<if getSlave($AS).bellyImplant > -1>>
 				<<if random(1,100) > 90>>
 					<br>''<<print cashFormat(7000)>>'' from a porn director interested in a cheap slave with a belly implant for use in a snuff film.
 					<<link "Accept bid" "Slave Sold">>
 						<<set _Price = 7000>>
-						<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+						<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 						<<set $buyer = "tentacle bred">>
 					<</link>>
 				<</if>>
@@ -1960,50 +1960,50 @@ __Bids Received__
 	<br>''<<print cashFormat(500*Math.trunc((_slaveCost*0.9)/500))>>'' from a reputable slave trader who will likely ship $him out of the arcology.
 	<<link "Accept bid" "Slave Sold">>
 		<<set _Price = 500*Math.trunc((_slaveCost*0.9)/500)>>
-		<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+		<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 	<</link>>
 <</if>>
 
-<<if $activeSlave.fetish == "mindbroken">>
+<<if getSlave($AS).fetish == "mindbroken">>
 	<<if random(1,100) > 20>>
 		<br>''<<print cashFormat(500*Math.trunc((_slaveCost*0.9)/500))>>'' from a slave trader who buys vast numbers of mindbroken <<= $girl>>s. His purpose is unknown, and none of them are ever seen again.
 		<<link "Accept bid" "Slave Sold">>
 			<<set _Price = 500*Math.trunc((_slaveCost*0.9)/500)>>
-			<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+			<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 		<</link>>
 	<</if>>
 <</if>>
 
-<<if ($activeSlave.hears == -2)>>
+<<if (getSlave($AS).hears == -2)>>
 	<<if random(1,100) > 60>>
 		<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.3)/500))>>'' from a concert venue that wants a sex slave to keep the stage crew satisfied, but doesn't want to worry about any possible hearing loss.
 		<<link "Accept bid" "Slave Sold">>
 			<<set _Price = 500*Math.trunc((_slaveCost*1.3)/500)>>
-			<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+			<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 			<<set $buyer = "concert hall">>
 		<</link>>
 	<</if>>
 <</if>>
 
-<<if ($activeSlave.sexualFlaw == "crude")>>
+<<if (getSlave($AS).sexualFlaw == "crude")>>
 	<<if random(1,100) > 60>>
 		<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.4)/500))>>'' from a slave trainer that specializes in teaching proper manners and etiquette to low-class slaves.
 		<<link "Accept bid" "Slave Sold">>
 			<<set _Price = 500*Math.trunc((_slaveCost*1.4)/500)>>
-			<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+			<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 			<<set $buyer = "etiquette coach">>
 		<</link>>
 	<</if>>
 <</if>>
 
-<<if hasBothEyes($activeSlave)>>
-	<<if canSeePerfectly($activeSlave)>>
-		<<if isSlim($activeSlave)>>
+<<if hasBothEyes(getSlave($AS))>>
+	<<if canSeePerfectly(getSlave($AS))>>
+		<<if isSlim(getSlave($AS))>>
 			<<if random(1,100) > 65>>
 				<br>''<<print cashFormat(450*Math.trunc((_slaveCost*1.45)/450))>>'' from a mercenary sniper looking for a small slave to act as his spotter.
 				<<link "Accept bid" "Slave Sold">>
 					<<set _Price = 450*Math.trunc((_slaveCost*1.45)/450)>>
-					<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+					<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 					<<set $buyer = "sniper spotter">>
 				<</link>>
 			<</if>>
@@ -2015,69 +2015,69 @@ __Bids Received__
 	<<if $peacekeepers>>
 		<<if $peacekeepers.strength >= 50>>
 			<<if $peacekeepers.attitude < 100>>
-				<<if $activeSlave.skill.oral + $activeSlave.skill.anal + $activeSlave.skill.vaginal > 100>>
+				<<if getSlave($AS).skill.oral + getSlave($AS).skill.anal + getSlave($AS).skill.vaginal > 100>>
 					<br>''<<print cashFormat(500*Math.trunc((_slaveCost*0.5)/500))>>'' from the officer in charge of 'recreational activities' for General $peacekeepers.generalName's forces. This is far less than the slave is worth, but the bid comes with the implicit offer of more influence over the peacekeepers.
 					<<link "Accept bid" "Slave Sold">>
 						<<set _Price = 500*Math.trunc((_slaveCost*0.5)/500), $buyer = "peacekeepers">>
-						<<run cashX(_Price, "slaveTransfer", $activeSlave)>>
+						<<run cashX(_Price, "slaveTransfer", getSlave($AS))>>
 					<</link>>
 				<</if>>
 			<<else>>
 				<<switch $peacekeepers.tastes>>
 				<<case "lusty futanari">>
-					<<if $activeSlave.balls > 0 && $activeSlave.ballType != "sterile" && $activeSlave.scrotum > 0 && $activeSlave.dick > 0 && $activeSlave.vagina > -1 && $activeSlave.energy > 50>>
+					<<if getSlave($AS).balls > 0 && getSlave($AS).ballType != "sterile" && getSlave($AS).scrotum > 0 && getSlave($AS).dick > 0 && getSlave($AS).vagina > -1 && getSlave($AS).energy > 50>>
 						<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.2)/500))>>'' from the sex slave buyer for General $peacekeepers.generalName's client state, which prefers $peacekeepers.tastes.
-						<<link "Accept bid" "Slave Sold">><<set _Price = 500*Math.trunc((_slaveCost*1.2)/500), $buyer = "peacekeepers">><<run cashX(_Price, "slaveTransfer", $activeSlave)>><</link>>
+						<<link "Accept bid" "Slave Sold">><<set _Price = 500*Math.trunc((_slaveCost*1.2)/500), $buyer = "peacekeepers">><<run cashX(_Price, "slaveTransfer", getSlave($AS))>><</link>>
 					<</if>>
 				<<case "cum addicts">>
-					<<if $activeSlave.fetish == "cumslut" && $activeSlave.fetishStrength > 95 && $activeSlave.sexualFlaw == "cum addict">>
+					<<if getSlave($AS).fetish == "cumslut" && getSlave($AS).fetishStrength > 95 && getSlave($AS).sexualFlaw == "cum addict">>
 						<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.2)/500))>>'' from the sex slave buyer for General $peacekeepers.generalName's client state, which prefers $peacekeepers.tastes.
-						<<link "Accept bid" "Slave Sold">><<set _Price = 500*Math.trunc((_slaveCost*1.2)/500), $buyer = "peacekeepers">><<run cashX(_Price, "slaveTransfer", $activeSlave)>><</link>>
+						<<link "Accept bid" "Slave Sold">><<set _Price = 500*Math.trunc((_slaveCost*1.2)/500), $buyer = "peacekeepers">><<run cashX(_Price, "slaveTransfer", getSlave($AS))>><</link>>
 					<</if>>
 				<<case "horny MILFs">>
-					<<if $activeSlave.physicalAge > 34 && $activeSlave.visualAge > 34 && $activeSlave.energy > 80>>
+					<<if getSlave($AS).physicalAge > 34 && getSlave($AS).visualAge > 34 && getSlave($AS).energy > 80>>
 						<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.2)/500))>>'' from the sex slave buyer for General $peacekeepers.generalName's client state, which prefers $peacekeepers.tastes.
-						<<link "Accept bid" "Slave Sold">><<set _Price = 500*Math.trunc((_slaveCost*1.2)/500), $buyer = "peacekeepers">><<run cashX(_Price, "slaveTransfer", $activeSlave)>><</link>>
+						<<link "Accept bid" "Slave Sold">><<set _Price = 500*Math.trunc((_slaveCost*1.2)/500), $buyer = "peacekeepers">><<run cashX(_Price, "slaveTransfer", getSlave($AS))>><</link>>
 					<</if>>
 				<<case "big-breasted cows">>
-					<<if $activeSlave.boobs > 2000 && $activeSlave.lactation > 1>>
+					<<if getSlave($AS).boobs > 2000 && getSlave($AS).lactation > 1>>
 						<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.2)/500))>>'' from the sex slave buyer for General $peacekeepers.generalName's client state, which prefers $peacekeepers.tastes.
-						<<link "Accept bid" "Slave Sold">><<set _Price = 500*Math.trunc((_slaveCost*1.2)/500), $buyer = "peacekeepers">><<run cashX(_Price, "slaveTransfer", $activeSlave)>><</link>>
+						<<link "Accept bid" "Slave Sold">><<set _Price = 500*Math.trunc((_slaveCost*1.2)/500), $buyer = "peacekeepers">><<run cashX(_Price, "slaveTransfer", getSlave($AS))>><</link>>
 					<</if>>
 				<<case "beautiful young sex slaves">>
-					<<if $activeSlave.physicalAge < 25 && $activeSlave.visualAge < 25 && $activeSlave.face > 95>>
+					<<if getSlave($AS).physicalAge < 25 && getSlave($AS).visualAge < 25 && getSlave($AS).face > 95>>
 						<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.2)/500))>>'' from the sex slave buyer for General $peacekeepers.generalName's client state, which prefers $peacekeepers.tastes.
-						<<link "Accept bid" "Slave Sold">><<set _Price = 500*Math.trunc((_slaveCost*1.2)/500), $buyer = "peacekeepers">><<run cashX(_Price, "slaveTransfer", $activeSlave)>><</link>>
+						<<link "Accept bid" "Slave Sold">><<set _Price = 500*Math.trunc((_slaveCost*1.2)/500), $buyer = "peacekeepers">><<run cashX(_Price, "slaveTransfer", getSlave($AS))>><</link>>
 					<</if>>
 				<<case "fertile virgins">>
-					<<if $activeSlave.vagina == 0 && isFertile($activeSlave)>>
+					<<if getSlave($AS).vagina == 0 && isFertile(getSlave($AS))>>
 						<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.2)/500))>>'' from the sex slave buyer for General $peacekeepers.generalName's client state, which prefers $peacekeepers.tastes.
-						<<link "Accept bid" "Slave Sold">><<set _Price = 500*Math.trunc((_slaveCost*1.2)/500), $buyer = "peacekeepers">><<run cashX(_Price, "slaveTransfer", $activeSlave)>><</link>>
+						<<link "Accept bid" "Slave Sold">><<set _Price = 500*Math.trunc((_slaveCost*1.2)/500), $buyer = "peacekeepers">><<run cashX(_Price, "slaveTransfer", getSlave($AS))>><</link>>
 					<</if>>
 				<<case "lusty preggos">>
-					<<if $activeSlave.preg > $activeSlave.pregData.normalBirth/4 && $activeSlave.energy > 50>>
+					<<if getSlave($AS).preg > getSlave($AS).pregData.normalBirth/4 && getSlave($AS).energy > 50>>
 						<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.2)/500))>>'' from the sex slave buyer for General $peacekeepers.generalName's client state, which prefers $peacekeepers.tastes.
-						<<link "Accept bid" "Slave Sold">><<set _Price = 500*Math.trunc((_slaveCost*1.2)/500), $buyer = "peacekeepers">><<run cashX(_Price, "slaveTransfer", $activeSlave)>><</link>>
+						<<link "Accept bid" "Slave Sold">><<set _Price = 500*Math.trunc((_slaveCost*1.2)/500), $buyer = "peacekeepers">><<run cashX(_Price, "slaveTransfer", getSlave($AS))>><</link>>
 					<</if>>
 				<<case "baby obsessed breeders">>
-					<<if $activeSlave.preg > $activeSlave.pregData.normalBirth/4 && $activeSlave.fetish == "pregnancy" && $activeSlave.sexualFlaw == "breeder">>
+					<<if getSlave($AS).preg > getSlave($AS).pregData.normalBirth/4 && getSlave($AS).fetish == "pregnancy" && getSlave($AS).sexualFlaw == "breeder">>
 						<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.2)/500))>>'' from the sex slave buyer for General $peacekeepers.generalName's client state, which prefers $peacekeepers.tastes.
-						<<link "Accept bid" "Slave Sold">><<set _Price = 500*Math.trunc((_slaveCost*1.2)/500), $buyer = "peacekeepers">><<run cashX(_Price, "slaveTransfer", $activeSlave)>><</link>>
+						<<link "Accept bid" "Slave Sold">><<set _Price = 500*Math.trunc((_slaveCost*1.2)/500), $buyer = "peacekeepers">><<run cashX(_Price, "slaveTransfer", getSlave($AS))>><</link>>
 					<</if>>
 				<<case "bellies with girls attached">>
-					<<if $activeSlave.belly >= 300000>>
+					<<if getSlave($AS).belly >= 300000>>
 						<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.2)/500))>>'' from the sex slave buyer for General $peacekeepers.generalName's client state, which prefers $peacekeepers.tastes.
-						<<link "Accept bid" "Slave Sold">><<set _Price = 500*Math.trunc((_slaveCost*1.2)/500), $buyer = "peacekeepers">><<run cashX(_Price, "slaveTransfer", $activeSlave)>><</link>>
+						<<link "Accept bid" "Slave Sold">><<set _Price = 500*Math.trunc((_slaveCost*1.2)/500), $buyer = "peacekeepers">><<run cashX(_Price, "slaveTransfer", getSlave($AS))>><</link>>
 					<</if>>
 				<<case "flesh balloons">>
-					<<if $activeSlave.boobs > 20000 && $activeSlave.butt > 10>>
+					<<if getSlave($AS).boobs > 20000 && getSlave($AS).butt > 10>>
 						<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.2)/500))>>'' from the sex slave buyer for General $peacekeepers.generalName's client state, which prefers $peacekeepers.tastes.
-						<<link "Accept bid" "Slave Sold">><<set _Price = 500*Math.trunc((_slaveCost*1.2)/500), $buyer = "peacekeepers">><<run cashX(_Price, "slaveTransfer", $activeSlave)>><</link>>
+						<<link "Accept bid" "Slave Sold">><<set _Price = 500*Math.trunc((_slaveCost*1.2)/500), $buyer = "peacekeepers">><<run cashX(_Price, "slaveTransfer", getSlave($AS))>><</link>>
 					<</if>>
 				<<case "oppai loli">>
-					<<if $activeSlave.boobs > 2000 && $activeSlave.physicalAge < 13 && $activeSlave.visualAge < 13>>
+					<<if getSlave($AS).boobs > 2000 && getSlave($AS).physicalAge < 13 && getSlave($AS).visualAge < 13>>
 						<br>''<<print cashFormat(500*Math.trunc((_slaveCost*1.2)/500))>>'' from the sex slave buyer for General $peacekeepers.generalName's client state, which prefers $peacekeepers.tastes.
-						<<link "Accept bid" "Slave Sold">><<set _Price = 500*Math.trunc((_slaveCost*1.2)/500), $buyer = "peacekeepers">><<run cashX(_Price, "slaveTransfer", $activeSlave)>><</link>>
+						<<link "Accept bid" "Slave Sold">><<set _Price = 500*Math.trunc((_slaveCost*1.2)/500), $buyer = "peacekeepers">><<run cashX(_Price, "slaveTransfer", getSlave($AS))>><</link>>
 					<</if>>
 				<</switch>>
 			<</if>>
-- 
GitLab