diff --git a/.eslintrc.json b/.eslintrc.json
index 4fb440a9657f4027c037acc8ab43a77faa389d2f..48aa53ffbe9882b7f3f596a9353bc0936abf84ab 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -34,7 +34,7 @@
 		"eqeqeq": "error",
 		"no-fallthrough": "error",
 		"space-before-function-paren": ["error", "never"],
-		"no-nested-ternary": "warn",
+		"no-trailing-spaces": "warn",
 		"no-unneeded-ternary": "error",
 		"camelcase": "warn",
 		"padded-blocks": ["error", "never"],
diff --git a/src/endWeek/saServeThePublic.js b/src/endWeek/saServeThePublic.js
index c7c0ba7403f24862bcb4465b4a128956e9096a39..6a627cac402a63320063d5c1488b1c558244048a 100644
--- a/src/endWeek/saServeThePublic.js
+++ b/src/endWeek/saServeThePublic.js
@@ -664,7 +664,7 @@ window.saServeThePublic = (function saServeThePublic() {
 				r += ` The public fetishizes body mods and considers ${hers} interesting.`;
 			}
 		} else if (arcology.FSBodyPurist > 20 || arcology.FSPaternalist > 20) {
-			if (V.modScore > 7) {
+			if (V.modScore <= 7) {
 				r += ` The public disapproves of body mods and is pleased that ${he}'s unspoiled in that regard.`;
 			} else {
 				r += ` The public disapproves of body mods and considers ${hers} unappealing.`;
diff --git a/src/endWeek/saWhore.js b/src/endWeek/saWhore.js
index 57caf147ec2ec0fe0871fe0a7d4c8ecc172c4b92..d9729133642d8afe877d4aa5dba5f2cf6f9ddd41 100644
--- a/src/endWeek/saWhore.js
+++ b/src/endWeek/saWhore.js
@@ -820,15 +820,15 @@ window.saWhore = (function saWhore() {
 
 		if (arcology.FSTransformationFetishist > 20 || arcology.FSDegradationist > 20) {
 			if ((V.modScore > 15) || (V.piercingScore > 8 && V.tatScore > 5)) {
-				r += ` Many customers fetishizes body mods and considers ${hers} fascinating.`;
+				r += ` Many customers fetishize body mods and consider ${hers} fascinating.`;
 			} else if (V.modScore > 7) {
-				r += ` Many customers fetishizes body mods and considers ${hers} interesting.`;
+				r += ` Many customers fetishize body mods and consider ${hers} interesting.`;
 			}
 		} else if (arcology.FSBodyPurist > 20 || arcology.FSPaternalist > 20) {
-			if (V.modScore > 7) {
-				r += ` Many customers disapproves of body mods and is pleased that ${he}'s unspoiled in that regard.`;
+			if (V.modScore <= 7) {
+				r += ` Many customers disapprove of body mods and are pleased that ${he}'s unspoiled in that regard.`;
 			} else {
-				r += ` Many customers disapproves of body mods and considers ${hers} unappealing.`;
+				r += ` Many customers disapprove of body mods and consider ${hers} unappealing.`;
 			}
 		} else {
 			if ((V.modScore > 15) || (V.piercingScore > 8 && V.tatScore > 5)) {
@@ -1031,7 +1031,7 @@ window.saWhore = (function saWhore() {
 
 		if (slave.bellyPreg >= 1500 || setup.fakeBellies.includes(slave.bellyAccessory) || slave.bellyImplant >= 1500) {
 			if (arcology.FSRepopulationFocus !== "unset") {
-				r =+ ` In the new culture of ${arcology.name}, ${his} pregnancy makes ${him} a profitable whore`;
+				r += ` In the new culture of ${arcology.name}, ${his} pregnancy makes ${him} a profitable whore`;
 				if (setup.fakeBellies.includes(slave.bellyAccessory) || slave.bellyImplant >= 1500) {
 					r += `, even if it's not real`;
 				}
@@ -1076,7 +1076,7 @@ window.saWhore = (function saWhore() {
 		}
 		if (arcology.FSEdoRevivalist !== "unset") {
 			if (slave.nationality === "Japanese" || slave.nationality === "Edo Revivalist") {
-				r =+ ` As a proper Japanese ${girl}, ${he} is considered extremely desirable.`;
+				r += ` As a proper Japanese ${girl}, ${he} is considered extremely desirable.`;
 			}
 		} else if (arcology.FSChineseRevivalist !== "unset") {
 			if (slave.nationality === "Chinese" || slave.nationality === "Chinese Revivalist") {
diff --git a/src/js/generateMarketSlave.js b/src/js/generateMarketSlave.js
new file mode 100644
index 0000000000000000000000000000000000000000..0f0efcc94efe6d04afdc67f7838cf4aa88b6e4f9
--- /dev/null
+++ b/src/js/generateMarketSlave.js
@@ -0,0 +1,2647 @@
+
+window.generateMarketSlave = function(market = "kidnappers", numArcology = 1) {
+	const V = State.variables;
+	let r = "";
+
+	switch (market) {
+		case "corporate":
+			if (V.corpSpecAge === 1) {
+				V.activeSlaveOneTimeMinAge = V.minimumSlaveAge;
+				V.activeSlaveOneTimeMaxAge = 19;
+			} else if (V.corpSpecAge === 3) {
+				if (V.pedo_mode === 1) {
+					V.activeSlaveOneTimeMinAge = 24;
+					V.activeSlaveOneTimeMaxAge = V.retirementAge;
+				} else {
+					V.activeSlaveOneTimeMinAge = 36;
+					V.activeSlaveOneTimeMaxAge = V.retirementAge;
+				}
+			}
+			V.one_time_age_overrides_pedo_mode = 1;
+			if (V.corpSpecRaces.length > 0) {
+				V.fixedRace = V.corpSpecRaces.random();
+			}
+			if (V.corpSpecGender === 1) {
+				r += `Slaves without pussies are not trained. `;
+				V.activeSlave = GenerateNewSlave("XX");
+			} else if (V.corpSpecGender === 2) {
+				r += `Slaves without dicks are not trained. `;
+				V.activeSlave = GenerateNewSlave("XY");
+			} else {
+				r += `Slaves are passed to training regardless of whether they have dicks or pussies. `;
+				V.activeSlave = GenerateNewSlave();
+			}
+			V.activeSlave.origin = "She was enslaved and trained by your corporation.";
+			V.activeSlave.devotion = jsRandom(-30, 0);
+			V.activeSlave.trust = jsRandom(-45, -25);
+			V.activeSlave.health = jsRandom(25, 50);
+
+			if (V.corpSpecDevotion > 0) {
+				V.activeSlave.devotion = jsRandom(-120, -90) + V.corpSpecDevotion * 30;
+				if (V.corpSpecDevotion === 1) {
+					r += `It does everything it can to make trainees furious. `;
+				} else if (V.corpSpecDevotion === 2) {
+					r += `It makes no effort to tame trainees. `;
+				} else if (V.corpSpecDevotion === 4) {
+					r += `It focuses on selecting trainees predisposed towards obedience. `;
+				} else if (V.corpSpecDevotion === 5) {
+					r += `It focuses on selecting trainees predisposed towards devotion to their owner. `;
+				}
+			} else {
+				r += `It does not select trainees based on their initial feelings about slavery. `;
+			}
+			if (V.corpSpecIntelligence === 3) {
+				r += `Intelligent slaves have a high priority for training. `;
+				V.activeSlave.intelligence = Intelligence.random({limitIntelligence: [30, 100]});
+			} else if (V.corpSpecIntelligence === 1) {
+				r += `Stupid slaves have a high priority for training. `;
+				V.activeSlave.intelligence = Intelligence.random({limitIntelligence: [-100, -30]});
+			} else {
+				r += `Slaves' intelligence is not given special consideration. `;
+			}
+			if (V.corpSpecAge === 1) {
+				r += `Teenage slaves are strongly favored for training. `;
+				/*V.activeSlave.age = jsRandom(18,19)>>*/
+			} else if (V.corpSpecAge === 3) {
+				r += `Newly enslaved MILFs are strongly favored for training. `;
+				/*V.activeSlave.age = jsRandom(36,V.retirementAge)>>*/
+			} else {
+				r += `Promising slaves are trained without special sorting based on age. `;
+			}
+			if (V.corpSpecRaces.length === 12) {
+				r += `There is no racial element to trainee selection. `;
+			} else if (V.corpSpecRaces.length === 1) {
+				const corpSpecRace = V.corpSpecRaces.random();
+				r += `The corporation specializes in ${corpSpecRace} slaves. `;
+			} else {
+				r += `The corporation selects slaves based on race. /*getting into the specifics of which races exactly is a hellhole I'd rather not jump into*/ `;
+			}
+			if (V.corpSpecTrust > 0) {
+				V.activeSlave.trust = jsRandom(-105, -85) + V.corpSpecTrust * 20;
+				if (V.corpSpecTrust === 1) {
+					r += `The corporation applies extremely brutal slave breaking techniques, uncontrollable sobbing and bloodcurdling screams are heard around the clock. `;
+				} else if (V.corpSpecTrust === 2) {
+					r += `The corporation applies brutal slave breaking techniques. `;
+				} else if (V.corpSpecTrust === 4) {
+					r += `The corporation applies caring slave breaking techniques. `;
+				} else {
+					r += `The corporation applies surprisingly caring slave breaking techniques that sometimes convince refugees and similar downtrodden people that slavery is a step up for them. `;
+				}
+			} else {
+				r += `The corporation applies standard slave breaking techniques. `;
+			}
+			if (V.corpSpecHeight > 0) {
+				V.activeSlave.height = Math.trunc(Height.random(V.activeSlave, {limitMult: [V.corpSpecHeight - 4, V.corpSpecHeight - 2]}));
+				if (V.corpSpecHeight === 1) {
+					r += `The corporation specifically targets very short slaves. `;
+				} else if (V.corpSpecHeight === 2) {
+					r += `The corporation targets short slaves. `;
+				} else if (V.corpSpecHeight === 4) {
+					r += `The corporation targets tall slaves. `;
+				} else if (V.corpSpecHeight === 5) {
+					r += `The corporation specifically targets incredibly tall slaves. `;
+				}
+			}
+			if (V.corpSpecVirgin === 1) {
+				r += `The corporation ensures its slaves are virgins. `;
+				V.activeSlave.anus = 0;
+				if (V.activeSlave.vagina > 0) {
+					V.activeSlave.vagina = 0;
+				}
+			}
+			if (V.corpSpecWeight > 0) {
+				V.activeSlave.weight = jsRandom(-85 + V.corpSpecWeight * 20, -65 + V.corpSpecWeight * 30);
+				if (V.corpSpecWeight === 1) {
+					r += `Trainees are practically starved through a rigorous diet. `;
+				} else if (V.corpSpecWeight === 2) {
+					r += `Trainees are put on a diet to get them nice and thin. `;
+				} else if (V.corpSpecWeight === 3) {
+					r += `Thin trainees are fattened up; fat trainees are slimmed down. `;
+				} else if (V.corpSpecWeight === 5) {
+					r += `Trainees are fattened until they're nice and curvy. `;
+				} else {
+					r += `Trainees are fed as much as they can stomach. `;
+				}
+			} else {
+				r += `Only the unhealthiest trainees are fed special diets. `;
+			}
+			if (V.corpSpecMuscle > 0) {
+				V.activeSlave.muscles = jsRandom(-85, -65) + V.corpSpecMuscle * 25;
+				if (V.corpSpecMuscle === 1) {
+					r += `Trainees are kept physically inactive and frail. `;
+				} else if (V.corpSpecMuscle === 2) {
+					r += `Trainees are kept physically weak. `;
+				} else if (V.corpSpecMuscle === 3) {
+					r += `Trainees' muscles are kept soft. `;
+				} else if (V.corpSpecMuscle === 4) {
+					r += `Trainees are brought up to a good state of physical fitness. `;
+				} else if (V.corpSpecMuscle === 5) {
+					r += `Trainees are subjected to punishing workout routines and only sold when ripped. `;
+				}
+			} else {
+				r += `Trainees are not subjected to any special workout routine. `;
+			}
+			if (V.corpSpecAccent === 1) {
+				r += `The corporation teaches its trainees the lingua franca but allows them to retain distinctive accents. `;
+				V.activeSlave.accent = Math.clamp(V.activeSlave.accent, 0, 1);
+			} else if (V.corpSpecAccent === 2) {
+				r += `The corporation teaches its trainees to speak the lingua franca without accent. `;
+				V.activeSlave.accent = 0;
+			} else {
+				r += `The corporation does not expend any special effort teaching language. `;
+			}
+			if (V.corpSpecEducation > 0) {
+				V.activeSlave.intelligenceImplant = 15 * V.corpSpecEducation;
+				V.activeSlave.skill.whoring = Math.clamp(V.activeSlave.skill.whoring, 15 * V.corpSpecEducation, 100);
+				V.activeSlave.skill.entertainment = Math.clamp(V.activeSlave.skill.entertainment, 15 * V.corpSpecEducation, 100);
+				if (V.corpSpecEducation === 1) {
+					r += `Its slave students receive basic slave educations. `;
+				} else if (V.corpSpecEducation === 2) {
+					r += `Its slave students receive advanced slave educations. `;
+				}
+			} else {
+				r += `Its slaves are not given special educational attention. `;
+			}
+			if (V.corpSpecSexEd > 0) {
+				V.activeSlave.skill.oral = Math.clamp(V.activeSlave.skill.oral, 15 * V.corpSpecSexEd, 100);
+				if (V.activeSlave.anus > 0) {
+					V.activeSlave.skill.anal = Math.clamp(V.activeSlave.skill.anal, 15 * V.corpSpecSexEd, 100);
+				} else if (V.activeSlave.anus === 0) {
+					V.activeSlave.skill.anal = Math.clamp(V.activeSlave.skill.anal, 15, 100);
+				}
+				if (V.activeSlave.vagina > 0) {
+					V.activeSlave.skill.vaginal = Math.clamp(V.activeSlave.skill.vaginal, 15 * V.corpSpecSexEd, 100);
+				} else if (V.activeSlave.vagina === 0) {
+					V.activeSlave.skill.vaginal = Math.clamp(V.activeSlave.skill.vaginal, 15, 100);
+				}
+				if (V.corpSpecSexEd === 1) {
+					r += `Trainees spend many hours learning sexual competence. `;
+				} else if (V.corpSpecSexEd === 2) {
+					r += `Trainees spend days learning sexual skills. `;
+				}
+			} else {
+				r += `No special sexual training is applied. `;
+			}
+			if (V.corpSpecCosmetics === 1) {
+				r += `The corporation uses subtle cosmetic surgery to improve its slaves for sale. `;
+				if ((V.activeSlave.anus > 3)) {
+					V.activeSlave.anus = 3;
+					if (V.activeSlave.skill.anal > 10) {V.activeSlave.skill.anal -= 10;}
+				}
+				if (V.activeSlave.vagina > 3) {
+					V.activeSlave.vagina = 3;
+					if (V.activeSlave.skill.vaginal > 10) {V.activeSlave.skill.vaginal -= 10;}
+				}
+				if (V.activeSlave.faceImplant <= 30 && V.activeSlave.face <= 95) {
+					if (V.activeSlave.faceShape === "masculine") {V.activeSlave.faceShape = "androgynous";}
+					V.activeSlave.faceImplant = 20;
+					V.activeSlave.face = Math.clamp(V.activeSlave.face+20, -100, 100);
+				}
+				if ((V.activeSlave.ageImplant !== 1) && (V.activeSlave.visualAge >= 25)) {
+					V.activeSlave.ageImplant = 1;
+					ageImplantAdjustment(V.activeSlave);
+				}
+				if ((V.activeSlave.voice === 1) && (V.activeSlave.voiceImplant === 0)) {
+					V.activeSlave.voice += 1;
+					V.activeSlave.voiceImplant += 1;
+				}		V.activeSlave.waist = Math.trunc(V.activeSlave.waist, -100, -15);
+				if (((V.activeSlave.boobShape === "saggy") || (V.activeSlave.boobShape === "downward-facing"))) {
+					V.activeSlave.boobShape = "normal";
+				}
+				if (((V.activeSlave.boobShape === "normal") || (V.activeSlave.boobShape === "wide-set"))) {
+					if (V.activeSlave.boobs > 800) {V.activeSlave.boobShape = "torpedo-shaped";}
+					else {V.activeSlave.boobShape = "perky";}
+				}
+			} else {
+				r += `The corporation does not use cosmetic surgery to improve its slaves for sale. `;
+			}
+			if (V.corpSpecPussy === 1) {
+				r += `The corporation adds pussies where needed. `;
+				V.activeSlave.vagina = 0,
+				V.activeSlave.ovaries = 1;
+			} else if (V.corpSpecPussy === -1) {
+				r += `The corporation removes pussies where possible. `;
+				V.activeSlave.vagina = -1,
+				V.activeSlave.ovaries = 0;
+			}
+			if (V.corpSpecDick === 1) {
+				r += `The corporation adds dicks where needed. `;
+				V.activeSlave.dick = 2,
+				V.activeSlave.prostate = 1;
+			} else if (V.corpSpecDick === -1) {
+				r += `The corporation removes dicks where possible. `;
+				V.activeSlave.dick = 0,
+				V.activeSlave.prostate = 0;
+			}
+			if (V.corpSpecBalls === 1 && V.activeSlave.dick > 0) {
+				r += `The corporation adds balls where needed. `;
+				V.activeSlave.balls = 2;
+			} else if (V.corpSpecBalls === -1) {
+				r += `The corporation removes balls where possible. `;
+				V.activeSlave.balls = 0,
+				V.activeSlave.scrotum = 0;
+			}
+			if (typeof V.corpSpecPussy === "undefined" && typeof V.corpSpecDick === "undefined" && typeof V.corpSpecBalls === "undefined") {
+				r += `The corporation does not reconfigure slave genitalia. `;
+			}
+			if (V.corpSpecHormones === 1) {
+				r += `It applies almost universal female hormone therapy. `;
+				if ((V.activeSlave.dick > 0)) {
+					V.activeSlave.dick = Math.clamp(V.activeSlave.dick-1, 1, 6);
+				}
+				if ((V.activeSlave.balls > 0)) {
+					V.activeSlave.balls = Math.clamp(V.activeSlave.balls-1, 1, 6);
+				}
+				if ((V.activeSlave.clit > 0)) {
+					V.activeSlave.clit = Math.clamp(V.activeSlave.clit-1, 0, 3);
+				}
+				if ((V.activeSlave.voice < 3) && (V.activeSlave.voice > 0)) {
+					V.activeSlave.voice = Math.clamp(V.activeSlave.voice+1, 1, 3);
+				}
+				if ((V.activeSlave.vagina > -1) && (V.activeSlave.ovaries !== 0) && (V.activeSlave.vaginaLube < 2)) {
+					V.activeSlave.vaginaLube = Math.clamp(V.activeSlave.vaginaLube+1, 0, 2);
+				}
+				if (((V.activeSlave.butt-V.activeSlave.buttImplant) < 2)) {
+					V.activeSlave.butt = Math.clamp(V.activeSlave.butt+1, 0, 10);
+				}
+				if (((V.activeSlave.boobs-V.activeSlave.boobsImplant) < 500)) {
+					V.activeSlave.boobs = Math.clamp(V.activeSlave.boobs+400, 0, 10000);
+				}
+				if (V.activeSlave.face <= 95) {
+					V.activeSlave.face = Math.clamp(V.activeSlave.face+20, -100, 100);
+				}
+				if ((V.activeSlave.faceShape === "masculine")) {
+					V.activeSlave.faceShape = "androgynous";
+				} else if ((V.activeSlave.faceShape === "androgynous")) {
+					V.activeSlave.faceShape = "normal";
+				}
+				if ((V.activeSlave.physicalAge < 25)) {
+					V.activeSlave.shoulders = Math.clamp(V.activeSlave.shoulders-1, -2, 2);
+					V.activeSlave.hips = Math.clamp(V.activeSlave.hips+1, -2, 2);
+				}
+				if ((V.activeSlave.muscles > 30) && (V.activeSlave.diet !== "muscle building") && (V.generalUpgradeMuscle !== "toned") && (V.generalUpgradeMuscle !== "ripped")) {
+					V.activeSlave.muscles = Math.clamp(V.activeSlave.muscles-10, 0, 30);
+				}
+				if ((V.activeSlave.nipples === "tiny")) {
+					V.activeSlave.nipples = "cute";
+				}
+				if ((V.activeSlave.height > 180)) {
+					V.activeSlave.height -= jsRandom(3, 6);
+				}		V.activeSlave.devotion += jsRandom(5, 10);
+				V.activeSlave.trust += jsRandom(5, 10);
+				V.activeSlave.attrXY = Math.clamp(V.activeSlave.attrXY+jsRandom(5, 10), 0, 100);
+			} else if (V.corpSpecHormones === 2) {
+				r += `It applies almost universal male hormone therapy. `;
+				if ((V.activeSlave.dick > 0)) {
+					V.activeSlave.dick = Math.clamp(V.activeSlave.dick+1, 1, 6);
+				}
+				if ((V.activeSlave.balls > 0)) {
+					V.activeSlave.balls = Math.clamp(V.activeSlave.balls+1, 1, 6);
+				}
+				if ((V.activeSlave.clit > 0) && (V.activeSlave.dick === 0)) {
+					V.activeSlave.clit = Math.clamp(V.activeSlave.clit+1, 0, 3);
+				}
+				if ((V.activeSlave.voice > 1)) {
+					V.activeSlave.voice = Math.clamp(V.activeSlave.voice-1, 1, 3);
+				}
+				if ((V.activeSlave.vagina > -1) && (V.activeSlave.vaginaLube > 0)) {
+					V.activeSlave.vaginaLube = Math.clamp(V.activeSlave.vaginaLube-1, 0, 2);
+				}		V.activeSlave.butt = Math.clamp(V.activeSlave.butt-1, 0, 10);
+				V.activeSlave.boobs = Math.clamp(V.activeSlave.boobs-400, 0, 10000);
+				if (V.activeSlave.face > 10) {
+					V.activeSlave.face = Math.clamp(V.activeSlave.face-20, -100, 100);
+				}
+				if ((V.activeSlave.faceShape === "androgynous")) {
+					V.activeSlave.faceShape = "masculine";
+				} else {
+					V.activeSlave.faceShape = "androgynous";
+				}
+				if ((V.activeSlave.physicalAge < 25)) {
+					V.activeSlave.shoulders = Math.clamp(V.activeSlave.shoulders+1, -2, 2);
+					V.activeSlave.hips = Math.clamp(V.activeSlave.hips-1, -2, 2);
+				}
+				if ((V.activeSlave.muscles <= 95) && (V.activeSlave.diet !== "slimming")) {
+					V.activeSlave.muscles = Math.clamp(V.activeSlave.muscles+20, 0, 3);
+				}
+				if ((V.activeSlave.nipples === "huge")) {
+					V.activeSlave.nipples = "cute";
+				}
+				if ((V.activeSlave.height < 155)) {
+					V.activeSlave.height += jsRandom(3, 6);
+				}		V.activeSlave.devotion -= jsRandom(5, 10);
+				V.activeSlave.trust -= jsRandom(5, 10);
+				V.activeSlave.attrXX = Math.clamp(V.activeSlave.attrXX+jsRandom(5, 10), 0, 100);
+			} else {
+				r += `It does not use hormones on a systematic level. `;
+			}
+			if (V.corpSpecInjection > 0) {
+				if (V.corpSpecInjection === 1) {
+					r += `If anything, hormones are used to reduce asset sizes. `;
+					V.activeSlave.lips = jsRandom(0, 20),
+					V.activeSlave.butt = jsRandom(1, 2),
+					V.activeSlave.boobs = 10 * jsRandom(30, 60),
+					V.activeSlave.nipples = jsEither("cute", "tiny");
+					if (V.activeSlave.dick > 0) {
+						V.activeSlave.dick = jsRandom(1, 2);
+					}			if (V.activeSlave.balls > 0) {
+						V.activeSlave.balls = jsRandom(1, 2);
+					}
+				} else if (V.corpSpecInjection === 2) {
+					r += `Growth hormones are used to correct flat chests and butts. `;
+					V.activeSlave.lips = jsRandom(25, 45),
+					V.activeSlave.butt = jsRandom(3, 4),
+					V.activeSlave.boobs = 10 * jsRandom(70, 100),
+					V.activeSlave.nipples = jsEither("cute", "partially inverted");
+					if (V.activeSlave.dick > 0) {
+						V.activeSlave.dick = jsRandom(3, 4);
+					}			if (V.activeSlave.balls > 0) {
+						V.activeSlave.balls = jsRandom(3, 4);
+					}
+				} else if (V.corpSpecInjection === 3) {
+					r += `Growth hormones are used throughout slave training to ensure expansion. `;
+					V.activeSlave.lips = jsRandom(35, 55),
+					V.activeSlave.butt = jsRandom(4, 5),
+					V.activeSlave.boobs = 10 * jsRandom(120, 180),
+					V.activeSlave.nipples = jsEither("cute", "partially inverted");
+					if (V.activeSlave.dick > 0) {
+						V.activeSlave.dick = jsRandom(4, 5);
+					}			if (V.activeSlave.balls > 0) {
+						V.activeSlave.balls = jsRandom(4, 5);
+					}
+				} else if (V.corpSpecInjection === 4) {
+					r += `Advanced growth hormones are applied on a grand scale. `;
+					V.activeSlave.lips = jsRandom(55, 85),
+					V.activeSlave.butt = jsRandom(6, 8),
+					V.activeSlave.boobs = 100 * jsRandom(40, 60),
+					V.activeSlave.nipples = jsEither("huge", "inverted");
+					if (V.activeSlave.dick > 0) {
+						V.activeSlave.dick = jsRandom(5, 6);
+					}			if (V.activeSlave.balls > 0) {
+						V.activeSlave.balls = jsRandom(5, 6);
+					}
+				} else if (V.corpSpecInjection === 5) {
+					r += `Advanced growth hormones are applied with total focus on increasing slaves' productiveness. `;
+					V.activeSlave.lips = jsRandom(35, 65),
+					V.activeSlave.butt = jsRandom(4, 6),
+					V.activeSlave.boobs = 100 * jsRandom(60, 80),
+					V.activeSlave.nipples = jsEither("huge", "inverted");
+					if (V.activeSlave.dick > 0) {
+						V.activeSlave.dick = jsRandom(6, 8);
+					}			if (V.activeSlave.balls > 0) {
+						V.activeSlave.balls = jsRandom(5, 7);
+					}
+				}
+			} else {
+				r += `Growth hormones are not applied. `;
+			}
+			if (V.corpSpecImplants === 1) {
+				r += `Slaves are given tasteful breast, butt, and lip implants. `;
+				V.activeSlave.buttImplant = 1;
+				V.activeSlave.butt = Math.clamp(V.activeSlave.butt+V.activeSlave.buttImplant, 0, 10);
+				V.activeSlave.boobsImplant = 600;
+				V.activeSlave.boobs = Math.clamp(V.activeSlave.boobs+V.activeSlave.boobsImplant, 0, 10000);
+				V.activeSlave.lipsImplant = 20;
+				V.activeSlave.lips = Math.clamp(V.activeSlave.lips+V.activeSlave.lipsImplant, 0, 55);
+			} else if (V.corpSpecImplants === 2) {
+				r += `Slaves are given absurd breast, butt, and lip implants. `;
+				V.activeSlave.buttImplant = 4;
+				V.activeSlave.butt = Math.clamp(V.activeSlave.butt+V.activeSlave.buttImplant, 0, 10, V.activeSlave.butt+V.activeSlave.buttImplant);
+				V.activeSlave.boobsImplant = 2400;
+				V.activeSlave.boobs = Math.clamp(V.activeSlave.boobs+V.activeSlave.boobsImplant, 0, 10000);
+				V.activeSlave.lipsImplant = 60;
+				V.activeSlave.lips = Math.clamp(V.activeSlave.lipsImplant+V.activeSlave.buttImplant, 0, 100);
+			} else {
+				r += `Slaves are not given breast, butt, or lip implants. `;
+			}
+			if (V.corpSpecAmputee === 1) {
+				r += `The corporation removes all limbs from its slaves. `;
+				V.activeSlave.amp = 1;
+			}
+			if (V.corpSpecMilk === 1) {
+				r += `The corporation provides naturally lactating slaves `;
+				V.activeSlave.lactation = 1,
+				V.activeSlave.lactationDuration = 2,
+				V.activeSlave.lactationAdaptation = 15;
+			} else if (V.corpSpecMilk === 2) {
+				r += `The corporation provides slaves with chemically induced lactation. `;
+				V.activeSlave.lactation = 2,
+				V.activeSlave.lactationDuration = 2;
+			}
+			break;
+		case "neighbor":
+			if ((numArcology < V.arcologies.length) && (numArcology > 0)) {
+				market = numArcology;
+			} else {
+				market = 1;
+			}
+			V.activeArcology = V.arcologies[0];
+			V.targetArcology = V.arcologies[market];
+			arcologyOpinion();
+			V.opinion = Math.trunc(V.opinion/20);
+			V.opinion = Math.clamp(V.opinion, -10, 10);
+
+			if (V.arcologies[market].FSSubjugationist > 20) {
+				V.fixedRace = V.arcologies[market].FSSubjugationistRace;
+			}	V.activeSlave = GenerateNewSlave();
+			V.activeSlave.origin = "You bought her from ";
+			V.activeSlave.origin += V.arcologies[market].name;
+			V.activeSlave.origin += ".";
+			V.activeSlave.devotion = -20 + Math.trunc(V.arcologies[market].prosperity/10) + jsRandom(0, 10);
+			V.activeSlave.trust = -20 + Math.trunc(V.arcologies[market].prosperity/10) + jsRandom(0, 10);
+			V.activeSlave.health = -50 + Math.trunc(V.arcologies[market].prosperity/25) + jsRandom(0, 5);
+			if (V.activeSlave.vagina > 0) {
+				V.activeSlave.skill.vaginal += Math.clamp(V.arcologies[market].prosperity/2, 15, 100);
+			}
+			if (V.activeSlave.anus > 0) {
+				V.activeSlave.skill.anal += Math.clamp(V.arcologies[market].prosperity/2, 15, 100);
+			}	V.activeSlave.skill.oral += Math.clamp(V.arcologies[market].prosperity/2, 15, 100);
+			V.activeSlave.attrKnown = 1;
+			V.activeSlave.fetishKnown = 1;
+			if (V.activeSlave.accent >= 3) {
+				if (V.arcologies[market].prosperity > jsRandom(0, 200)) {
+					V.activeSlave.accent -= 1;
+				}
+			}
+			if (V.arcologies[market].prosperity > jsRandom(0, 200)) {
+				V.activeSlave.sexualFlaw = "none";
+			}
+			if (V.arcologies[market].prosperity > jsRandom(0, 200)) {
+				V.activeSlave.behavioralFlaw = "none";
+			}
+			if (V.arcologies[market].FSSubjugationist > 20) {
+				r += `They're universally V.arcologies[market].FSSubjugationistRace. `;
+			}
+			if (V.arcologies[market].FSRepopulationFocus > 50) {
+				r += `They are exclusively female and all extremely pregnant. `;
+				V.activeSlave.ovaries = 1;
+				V.activeSlave.vagina = jsRandom(0, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3);
+				V.activeSlave.dick = 0;
+				V.activeSlave.balls = 0;
+				V.activeSlave.scrotum = 0;
+				V.activeSlave.preg = 0; /*removing contraception of default slave generation so isFertile can work right*/
+				if (isFertile(V.activeSlave)) {
+					V.activeSlave.vagina = jsRandom(1, 4);
+					V.activeSlave.preg = jsRandom(21, 39);
+					if (jsRandom(1, 2) === 1 && V.seeHyperPreg === 1) {
+						V.activeSlave.pregType = jsRandom(3, 29);
+						V.activeSlave.pregAdaptation = 250;
+					} else {
+						V.activeSlave.pregType = jsRandom(3, 8);
+						V.activeSlave.pregAdaptation = 100;
+					}			SetBellySize(V.activeSlave);
+				}		V.activeSlave.lactation = jsRandom(0, 1);
+				if (V.activeSlave.lactation > 0) {
+					V.activeSlave.lactationDuration = 2;
+				}
+			} else if (V.arcologies[market].FSRestart > 50) {
+				r += `They have all been rendered unable to reproduce. `;
+				if (V.activeSlave.ovaries === 1) {
+					V.activeSlave.preg = -2, V.activeSlave.belly = 0, V.activeSlave.bellyPreg = 0;
+				}
+				if (V.activeSlave.balls > 0) {
+					V.activeSlave.balls = 0;
+				}
+				if (V.arcologies[market].FSRestartResearch === 1) {
+					r += `Smart and attractive slaves are beginning to be a rarity lately. `;
+					if (V.activeSlave.face >= 0) {
+						V.activeSlave.face -= 100;
+					}			if (V.activeSlave.intelligence >= 0) {
+						V.activeSlave.intelligence -= 100;
+					}			V.activeSlave.chem = jsRandom(40, 100);
+					V.activeSlave.addict = jsEither(0, 0, 0, 0, 0, 0, 0, 0, 5, 20, 20, 50, 100);
+				}
+			}
+			if (V.arcologies[market].FSGenderRadicalist > 50) {
+				r += `They all show signs of intensive hormone therapy. `;
+				V.activeSlave.chem += jsRandom(10, 100);
+				if (V.activeSlave.dick > 0) {
+					V.activeSlave.boobs += 100*jsRandom(0, 4);
+					V.activeSlave.butt += jsRandom(0, 2);
+					if (V.activeSlave.hips < 2) {
+						V.activeSlave.hips += jsRandom(0, 1);
+					}			if (V.activeSlave.shoulders > -2) {
+						V.activeSlave.shoulders -= jsRandom(0, 1);
+					}			if (V.activeSlave.face < 80) {
+						V.activeSlave.face += jsRandom(0, 20);
+					}			if (V.activeSlave.faceShape === "masculine") {
+						if (jsRandom(0, 1) === 0) {
+							V.activeSlave.faceShape = "androgynous";
+						}
+					}			if (V.activeSlave.dick > 2) {
+						V.activeSlave.dick -= jsRandom(0, 2);
+					}			if (V.activeSlave.balls > 2) {
+						V.activeSlave.balls -= jsRandom(0, 2);
+					}			if (V.arcologies[market].FSGenderRadicalistResearch === 1 && jsRandom(1, 100) <= 20) {
+						r += `This one has a notably rounded belly for a slave with no vagina. `;
+						V.activeSlave.ovaries = 0;
+						V.activeSlave.vagina = -1;
+						V.activeSlave.mpreg = 1;
+						if (isFertile(V.activeSlave)) {
+							V.activeSlave.preg = jsRandom(1, 39);
+							V.activeSlave.pregType = setPregType(V.activeSlave);
+							SetBellySize(V.activeSlave);
+						}
+					}
+				} else {
+					V.activeSlave.boobs -= 100*jsRandom(0, 2);
+					V.activeSlave.butt -= jsRandom(0, 1);
+					if (V.activeSlave.hips > -2) {
+						V.activeSlave.hips -= jsRandom(0, 1);
+					}			if (V.activeSlave.shoulders < 2) {
+						V.activeSlave.shoulders += jsRandom(0, 1);
+					}			if (V.activeSlave.face >= -80) {
+						V.activeSlave.face -= jsRandom(0, 20);
+					}			if (V.activeSlave.faceShape !== "androgynous") {
+						if (jsRandom(0, 1) === 0) {
+							V.activeSlave.faceShape = "androgynous";
+						}
+					}			V.activeSlave.clit += jsRandom(0, 2);
+					V.activeSlave.labia += jsRandom(0, 1);
+					if (V.activeSlave.muscles <= 95) {
+						V.activeSlave.muscles += jsRandom(0, 20);
+					}
+				}
+			} else if (V.arcologies[market].FSGenderFundamentalist > 50) {
+				r += `Fertile slaves from there almost never appear without swollen bellies and sensitive nipples. `;
+				V.activeSlave.preg = 0; /*removing contraception of default slave generation so isFertile can work right*/
+				if (isFertile(V.activeSlave)) {
+					V.activeSlave.preg = jsRandom(1, 40);
+					V.activeSlave.pregType = setPregType(V.activeSlave);
+					SetBellySize(V.activeSlave);
+					V.activeSlave.lactation = jsRandom(0, 1);
+					if (V.activeSlave.lactation > 0) {
+						V.activeSlave.lactationDuration = 2;
+					}
+				}
+			}
+			if (V.arcologies[market].FSPaternalist > 20) {
+				r += `They're often gratifyingly devoted and trusting. `;
+				if (V.activeSlave.devotion < 10) {
+					V.activeSlave.devotion += jsRandom(0, 8);
+				}
+				if (V.activeSlave.trust < 50) {
+					V.activeSlave.trust += jsRandom(0, 8);
+				}
+			} else if (V.arcologies[market].FSDegradationist > 20) {
+				r += `They can be depended upon to be terrified into abject submission. `;
+				DegradingName(V.activeSlave);
+				if (V.activeSlave.trust > -10) {
+					V.activeSlave.trust -= jsRandom(0, 10);
+				}
+				if (jsRandom(1, 100) > 90) {
+					V.activeSlave.eyes = -2;
+				}
+				if (jsRandom(1, 100) > 90) {
+					V.activeSlave.hears = -2;
+				}
+				if (V.arcologies[market].FSRepopulationFocus === "unset" && V.arcologies[market].FSBodyPurist === "unset") {
+					if (isFertile(V.activeSlave) && jsRandom(1, 10) === 9) {
+						V.activeSlave.abortionTat = jsRandom(1, (Math.min(V.activeSlave.physicalAge-V.fertilityAge, V.activeSlave.physicalAge-V.minimumSlaveAge))*2);
+					}
+				}
+			}
+			if (V.arcologies[market].FSBodyPurist > 80) {
+				r += `They're quite pristine, free of any genomic damage or addictions regardless of any transformations they've had. `;
+				V.activeSlave.chem = 0;
+				V.activeSlave.addict = 0;
+			} else if (V.arcologies[market].FSTransformationFetishist > 80) {
+				r += `They vary in terms of what size their implants are, not whether they have them. `;
+				V.activeSlave.chem += jsRandom(10, 100);
+				V.activeSlave.boobsImplant = 200*jsRandom(2, 20);
+				V.activeSlave.boobs += V.activeSlave.boobsImplant;
+				V.activeSlave.buttImplant = jsRandom(2, 5);
+				V.activeSlave.butt += V.activeSlave.buttImplant;
+				V.activeSlave.lipsImplant = jsEither(10, 20);
+				V.activeSlave.lips += V.activeSlave.lipsImplant;
+				if (V.arcologies[market].FSTransformationFetishistResearch === 1 && jsRandom(1, 100) <= 20) {
+					r += `This one's implants are unusually large; a showcase of what V.his home arcology is capable of. `;
+					V.activeSlave.boobsImplant += 200*jsRandom(100, 200);
+					V.activeSlave.boobs += V.activeSlave.boobsImplant;
+					V.activeSlave.buttImplant += jsRandom(7, 12);
+					V.activeSlave.butt += V.activeSlave.buttImplant;
+				}
+			}
+			if (V.arcologies[market].FSYouthPreferentialist > 20) {
+				r += `They're usually on the younger side. `;
+				if (V.activeSlave.actualAge > 30) {
+					if (jsRandom(0, 1) === 0) {
+						V.activeSlave.actualAge = jsRandom(18, 25);
+						V.activeSlave.visualAge = V.activeSlave.actualAge;
+						V.activeSlave.physicalAge = V.activeSlave.actualAge;
+						V.activeSlave.ovaryAge = V.activeSlave.actualAge;
+						if (V.activeSlave.boobs > 400) {
+							V.activeSlave.boobs -= 100*jsRandom(0, 2);
+						}				if (V.activeSlave.butt > 3) {
+							V.activeSlave.butt -= jsRandom(0, 2);
+						}
+					} else if (V.arcologies[market].FSYouthPreferentialistResearch === 1) {
+						if (V.activeSlave.actualAge > 30) {
+							r += `Well, all of them certainly look it. Always best to check their ages before buying. `;
+							V.activeSlave.visualAge = jsRandom(18, 25);
+							V.activeSlave.chem += jsRandom(10, 40);
+						}
+					} else {
+						r += `And if they aren't, they sure don't look their age. `;
+						V.activeSlave.ageImplant = 1, V.activeSlave.faceImplant += jsRandom(10, 30);
+						ageImplantAdjustment(V.activeSlave);
+					}
+				}
+			} else if (V.arcologies[market].FSMaturityPreferentialist > 20) {
+				r += `They're usually on the more mature side. `;
+				if (V.activeSlave.actualAge < 30) {
+					if (jsRandom(0, 1) === 0) {
+						V.activeSlave.actualAge = jsRandom(36, V.retirementAge);
+						V.activeSlave.visualAge = V.activeSlave.actualAge;
+						V.activeSlave.physicalAge = V.activeSlave.actualAge;
+						V.activeSlave.ovaryAge = V.activeSlave.actualAge;
+						if (V.activeSlave.boobs < 400) {
+							V.activeSlave.boobs += 100*jsRandom(0, 2);
+						}				if (V.activeSlave.butt < 3) {
+							V.activeSlave.butt += jsRandom(0, 2);
+						}
+					}
+				}
+			}
+			if (V.arcologies[market].FSSlimnessEnthusiast > 20) {
+				r += `They're never overweight, and are often quite lithe. `;
+				if (V.activeSlave.boobs > 400) {
+					V.activeSlave.boobs -= 100*jsRandom(0, 2);
+				}
+				if (V.activeSlave.butt > 3) {
+					V.activeSlave.butt -= jsRandom(0, 2);
+				}
+				if (V.activeSlave.weight > 10) {
+					V.activeSlave.weight = jsRandom(-30, 0);
+				}
+				if (V.arcologies[market].FSSlimnessEnthusiastResearch === 1 && jsRandom(1, 100) <= 50) {
+					r += `This one is perfectly flat; an ideal showcase of V.his home arcology's tastes. `;
+					V.activeSlave.boobs = 100;
+					V.activeSlave.butt = 0;
+					V.activeSlave.weight = jsRandom(-30, 0);
+				}
+			} else if (V.arcologies[market].FSAssetExpansionist > 20) {
+				r += `Their butts are usually imposing, but their tits are what's often most impressive. `;
+				V.activeSlave.chem += jsRandom(10, 100);
+				if (V.activeSlave.boobs < 5000) {
+					V.activeSlave.boobs += 100*jsRandom(5, 50);
+				}
+				if (V.activeSlave.butt < 6) {
+					V.activeSlave.butt += jsRandom(2, 4);
+				}
+				if (V.activeSlave.weight < -10) {
+					V.activeSlave.weight += jsRandom(0, 20);
+				}
+				if (V.arcologies[market].FSAssetExpansionistResearch === 1 && jsRandom(1, 100) <= 20) {
+					r += `This one is unusually large; a showcase of what V.his home arcology is capable of. `;
+					V.activeSlave.boobs = 200*jsRandom(100, 200);
+					V.activeSlave.butt = jsRandom(10, 20);
+					if (V.activeSlave.dick > 0 && V.seeDicks !== 0) {
+						V.activeSlave.dick = jsRandom(20, 30);
+						V.activeSlave.balls = jsRandom(20, 125);
+					}
+				}
+			}
+			if (V.arcologies[market].FSPhysicalIdealist > 20) {
+				r += `They're usually quite muscular, some to a truly imposing degree, and they're almost never unhealthy. `;
+				V.activeSlave.muscles = jsRandom(10, 100);
+				if (V.activeSlave.health < 20) {
+					V.activeSlave.health += jsRandom(0, 8);
+				}
+			} else if (V.arcologies[market].FSHedonisticDecadence > 20) {
+				if (V.arcologies[market].FSSlimnessEnthusiast > 20) {
+					r += `They're quite soft, usually sporting a cute muffin top, and rather laid back. `;
+					V.activeSlave.weight = jsRandom(10, 25);
+				} else {
+					r += `They're usually very soft and rather laid back. `;
+					V.activeSlave.weight = jsRandom(30, 180);
+				}		r += `Though they often come with intense fetishes. `;
+				V.activeSlave.muscles = jsRandom(-50, 0);
+				V.activeSlave.trust += jsRandom(5, 15);
+				V.activeSlave.energy += jsRandom(0, 10);
+				if (V.arcologies[market].FSHedonisticDecadenceResearch === 1) {
+					r += `They appear to have greatly enjoyed their stay at V.arcologies[market].name. `;
+					V.activeSlave.energy += jsRandom(0, 10), V.activeSlave.trust += jsRandom(10, 20), V.activeSlave.devotion += jsRandom(10, 20);
+				}
+				if (jsRandom(0, 3) === 0) {
+					V.activeSlave.behavioralFlaw = "gluttonous";
+				}
+				if (V.activeSlave.fetish === "none") {
+					V.activeSlave.fetish = jsEither("boobs", "buttslut", "cumslut", "dom", "humiliation", "masochist", "pregnancy", "sadist", "submissive");
+				}		V.activeSlave.fetishStrength = jsRandom(60, 90);
+				if (jsRandom(1, 100) <= 5 && V.activeSlave.fetish !== "mindbroken") {
+					switch (V.activeSlave.fetish) {
+						case "submissive":
+							V.activeSlave.sexualFlaw = "neglectful"; break;
+						case "cumslut":
+							V.activeSlave.sexualFlaw = "cum addict"; break;
+						case "humiliation":
+							V.activeSlave.sexualFlaw = "attention whore"; break;
+						case "buttslut":
+							V.activeSlave.sexualFlaw = "anal addict"; break;
+						case "boobs":
+							V.activeSlave.sexualFlaw = "breast growth"; break;
+						case "pregnancy":
+							V.activeSlave.sexualFlaw = "breeder"; break;
+						case "dom":
+							V.activeSlave.sexualFlaw = "abusive"; break;
+						case "sadist":
+							V.activeSlave.sexualFlaw = "malicious"; break;
+						case "masochist":
+							V.activeSlave.sexualFlaw = "self hating";
+					}			V.activeSlave.fetishStrength = 100;
+				}
+			}
+			if (V.arcologies[market].FSPastoralist > 20) {
+				r += `Lactation is nearly universal among them, sometimes in ludicrous quantities. They tend to have huge udders, as well. `;
+				V.activeSlave.chem += jsRandom(10, 100);
+				if (V.activeSlave.boobs < 5000) {
+					V.activeSlave.boobs += 100*jsRandom(5, 50);
+				}
+				if (V.activeSlave.lactation === 0) {
+					V.activeSlave.lactation = jsEither(0, 1, 1, 1, 1, 2);
+				}
+				if (V.activeSlave.lactation > 0) {
+					V.activeSlave.lactationDuration = 2;
+				}
+				if (V.activeSlave.weight < -10) {
+					V.activeSlave.weight += jsRandom(0, 20);
+				}
+			} else if (V.arcologies[market].FSCummunism > 20) {
+				r += `Big balls and huge loads are commonplace among them, even if they sometimes lack dicks. They tend to be hard workers, as well. `;
+				V.activeSlave.chem += jsRandom(10, 100);
+				if (V.arcologies[market].FSRestart > 50) {
+					V.activeSlave.dick = 0, V.activeSlave.vagina = -1;
+				}
+				if (V.activeSlave.balls < 20) {
+					V.activeSlave.balls += jsRandom(5, 20);
+				}		V.activeSlave.scrotum = V.activeSlave.balls-5;
+				V.activeSlave.prostate = jsEither(1, 1, 1, 2, 2, 3);
+				if (V.activeSlave.muscles < 30) {
+					V.activeSlave.muscles += jsRandom(0, 20);
+				}
+			}
+			if (V.arcologies[market].FSChattelReligionist > 20) {
+				r += `They're rarely anything but devoted, and sometimes present interesting peccadilloes. `;
+				V.activeSlave.slaveName = setup.chattelReligionistSlaveNames.random();
+				if (V.activeSlave.devotion < 10) {
+					V.activeSlave.devotion += jsRandom(0, 10);
+				}
+				if (V.activeSlave.devotion < 10) {
+					V.activeSlave.devotion += jsRandom(0, 10);
+				}
+				if (jsRandom(0, 1) === 0) {
+					V.activeSlave.behavioralQuirk = "sinful";
+				}
+			}
+			if (V.arcologies[market].FSRomanRevivalist > 20) {
+				r += `They've often seen things that drive any squeamishness out of them. `;
+				V.activeSlave.slaveName = setup.romanSlaveNames.random();
+				if (jsRandom(0, 1) === 0) {
+					V.activeSlave.sexualQuirk = "unflinching";
+				}
+			} else if (V.arcologies[market].FSAztecRevivalist > 20) {
+				r += `They've seen sights that will traumatize almost anyoneif (!canSee(V.activeSlave)>>, so to speak}		V.activeSlave.slaveName = setup.aztecSlaveNames.random()) { `;
+				if (jsRandom(0, 1) === 0) {
+					V.activeSlave.trust = -30;
+				}
+			} else if (V.arcologies[market].FSEgyptianRevivalist > 20) {
+				r += `They've often done things that give them a distinct appetite for perversion. `;
+				V.activeSlave.slaveName = setup.ancientEgyptianSlaveNames.random();
+				if (jsRandom(0, 1) === 0) {
+					V.activeSlave.sexualQuirk = "perverted";
+				}
+			} else if (V.arcologies[market].FSEdoRevivalist > 20) {
+				r += `They have frequently absorbed much culture there. `;
+				V.activeSlave.slaveName = setup.edoSlaveNames.random();
+				V.activeSlave.skill.entertainment = Math.clamp(V.activeSlave.skill.entertainment, 35, 100);
+			} else if (V.arcologies[market].FSArabianRevivalist > 20) {
+				r += `They've often been part of large harems in which selflessness is prized. `;
+				if (jsRandom(0, 1) === 0) {
+					V.activeSlave.sexualQuirk = "caring";
+				}
+			} else if (V.arcologies[market].FSChineseRevivalist > 20) {
+				r += `They've all passed through a thorough and uncompromising educational system for slaves. `;
+				V.activeSlave.intelligenceImplant = 10;
+				if (V.activeSlave.intelligence < 60) {
+					V.activeSlave.intelligence += jsRandom(0, 20);
+				}
+			}
+			if (V.arcologies[market].FSIncestFetishist > 20) {
+				r += `Incest is acceptable, if not preferable to them. `;
+				if (V.activeSlave.sexualQuirk === "none" && V.activeSlave.behavioralQuirk === "none") {
+					if (jsRandom(0, 1) === 0) {
+						V.activeSlave.sexualQuirk = "perverted";
+					} else {
+						V.activeSlave.behavioralQuirk = "sinful";
+					}
+				} else if (V.activeSlave.sexualQuirk === "none" || V.activeSlave.sexualQuirk === "perverted") {
+					V.activeSlave.sexualQuirk = "perverted";
+				} else {
+					V.activeSlave.behavioralQuirk = "sinful";
+				}
+			}
+			if ((V.arcologies[0].FSDegradationist !== "unset") && (V.arcologies[market].FSPaternalist !== "unset")) {
+				V.activeSlave.devotion = jsRandom(-90, -60);
+				V.activeSlave.trust = -20;
+				r += `'' V.arcologies[market].name'' is Paternalist, and your arcology is Degradationist. To its slaves, other niceties of social alignment are trivial. They view your arcology as a literal Hell on Earth. `;
+			} else if ((V.arcologies[0].FSDegradationist !== "unset") && (V.arcologies[market].FSPaternalist !== "unset")) {
+				V.activeSlave.devotion = jsRandom(60, 90);
+				V.activeSlave.trust = 20;
+				r += `'' V.arcologies[market].name'' is Degradationist, and your arcology is Paternalist. To its slaves, other niceties of social alignment are trivial. They view your arcology as a promised land. `;
+			} else if (V.opinion !== 0) {
+				V.activeSlave.devotion += V.opinion;
+				V.activeSlave.trust += V.opinion;
+				V.activeSlave.devotion = Math.clamp(V.activeSlave.devotion, -100, 75);
+				V.activeSlave.trust = Math.clamp(V.activeSlave.trust, -100, 75);
+				if (V.opinion > 2) {
+					r += `Your arcology's close social alignment with '' V.arcologies[market].name'' makes its slaves more accepting of the prospect of life in your arcology, and willing to trust that they'll know how to survive there. `;
+				} else if (V.opinion < -2) {
+					r += `Your arcology's very different culture from '' V.arcologies[market].name'''s makes its slaves unhappy with the prospect of life in your arcology, and afraid of what will happen to them there. `;
+				}
+			} break;
+		case "heap":
+			V.activeSlave = GenerateNewSlave();
+			V.activeSlave.origin = "You bought her from a body dump, completely broken.";
+			V.activeSlave.devotion = 0;
+			V.activeSlave.trust = 0;
+			V.activeSlave.career = "a slave";
+			V.activeSlave.intelligence = Intelligence.random({limitIntelligence: [-100, 0]});
+			V.activeSlave.intelligenceImplant = 0;
+			V.activeSlave.health = jsRandom(-99, 0);
+			V.activeSlave.weight = jsRandom(-100, 0);
+			V.activeSlave.eyes = jsEither(-2, -1, -1, -1, -1, 1, 1, 1);
+			V.activeSlave.hears = jsEither(-2, -1, -1, -1, -1, 0, 0, 0);
+			if (V.seeExtreme === 1) {
+				V.activeSlave.amp = jsEither(0, 0, 0, 0, 0, 0, 1, 1, 1);
+			}
+			if (V.activeSlave.amp !== 1) {
+				V.activeSlave.heels = jsEither(0, 0, 0, 0, 0, 1, 1);
+			}	V.activeSlave.voice = jsRandom(0, 2);
+			V.activeSlave.face = jsRandom(-100, 20);
+			if (V.activeSlave.vagina > -1) {
+				V.activeSlave.vagina = jsEither(1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 10);
+				V.activeSlave.preg = jsRandom(-3, -1);
+				V.activeSlave.belly = 0, V.activeSlave.bellyPreg = 0;
+				V.activeSlave.counter.vaginal += jsRandom(0, 300);
+			}	V.activeSlave.anus = jsEither(1, 2, 2, 3, 3, 3, 3, 4, 4, 4);
+			if (V.activeSlave.balls > 1) {
+				if (jsRandom(1, 100) > 50) {
+					V.activeSlave.balls = 0;
+				}
+			}	V.activeSlave.counter.oral += jsRandom(0, 300);
+			V.activeSlave.counter.anal += jsRandom(0, 300);
+			if (V.activeSlave.boobs > 500) {
+				V.activeSlave.counter.mammary += jsRandom(0, 300);
+			}	V.activeSlave.skill.vaginal = 0;
+			V.activeSlave.skill.oral = 0;
+			V.activeSlave.skill.anal = 0;
+			V.activeSlave.skill.whoring = 0;
+			V.activeSlave.skill.entertainment = 0;
+			V.activeSlave.skill.combat = 0;
+			V.activeSlave.addict = jsEither(0, 0, 0, 10, 10, 20, 30);
+			V.activeSlave.chem = jsRandom(0, 1000);
+			V.activeSlave.behavioralFlaw = "none";
+			V.activeSlave.behavioralQuirk = "none";
+			V.activeSlave.sexualFlaw = "none";
+			V.activeSlave.sexualQuirk = "none";
+			V.activeSlave.fetish = "mindbroken";
+			V.activeSlave.fetishStrength = 0;
+			break;
+		case "wetware":
+			V.fixedNationality = "Stateless";
+			V.activeSlave = GenerateNewSlave();
+			V.activeSlave.origin = "You bought her from a wetware CPU farm, her body ruined but her mind subjected to a simulated career.";
+			V.activeSlave.devotion = 40;
+			V.activeSlave.trust = -100;
+			V.activeSlave.career = jsEither("a business owner", "a college scout", "a counselor", "a dairy worker", "a doctor", "a house DJ", "a politician", "a prison guard", "a secretary", "a soldier", "a teacher");
+			V.activeSlave.intelligence = Intelligence.random({limitIntelligence: [20, 100]});
+			V.activeSlave.intelligenceImplant = 30;
+			V.activeSlave.health = jsRandom(-99, -50);
+			V.activeSlave.weight = jsRandom(-100, -50);
+			V.activeSlave.muscles = jsRandom(-100, -50);
+			V.activeSlave.eyes = -2;
+			V.activeSlave.hears = -2;
+			if (V.seeExtreme === 1) {
+				V.activeSlave.amp = 1;
+			}
+			if (V.activeSlave.amp !== 1) {
+				V.activeSlave.heels = 1;
+			}	V.activeSlave.voice = 0;
+			V.activeSlave.face = jsRandom(-100, -50);
+			V.activeSlave.butt = 0;
+			if (V.activeSlave.vagina > -1) {
+				V.activeSlave.vagina = jsEither(1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 10);
+				V.activeSlave.preg = jsRandom(-3, -1);
+				V.activeSlave.counter.vaginal += jsRandom(0, 300);
+			}	V.activeSlave.anus = jsEither(1, 2, 2, 3, 3, 3, 3, 4, 4, 4);
+			if (V.activeSlave.balls > 1 && jsRandom(1, 100) > 50) {
+				V.activeSlave.balls = 0;
+			}	V.activeSlave.counter.oral += jsRandom(0, 300);
+			V.activeSlave.counter.anal += jsRandom(0, 300);
+			if (V.activeSlave.boobs > 500) {
+				V.activeSlave.counter.mammary += jsRandom(0, 300);
+			}	V.activeSlave.skill.vaginal = jsRandom(50, 100);
+			V.activeSlave.skill.oral = jsRandom(50, 100);
+			V.activeSlave.skill.anal = jsRandom(50, 100);
+			V.activeSlave.skill.whoring = jsRandom(50, 100);
+			V.activeSlave.skill.entertainment = jsRandom(50, 100);
+			switch (V.activeSlave.career) {
+				case "a lawyer":
+					V.activeSlave.slaveName = "WCPU-HG"; break;
+				case "a college scout":
+					V.activeSlave.slaveName = "WCPU-RC"; break;
+				case "a business owner":
+					V.activeSlave.slaveName = "WCPU-MD"; break;
+				case "a house DJ":
+					V.activeSlave.slaveName = "WCPU-DJ"; break;
+				case "a soldier":
+					V.activeSlave.slaveName = "WCPU-BG"; break;
+				case "a prison guard":
+					V.activeSlave.slaveName = "WCPU-WD"; break;
+				case "a doctor":
+					V.activeSlave.slaveName = "WCPU-NS"; break;
+				case "a counselor":
+					V.activeSlave.slaveName = "WCPU-AT"; break;
+				case "a dairy worker":
+					V.activeSlave.slaveName = "WCPU-MK"; break;
+				case "a secretary":
+					V.activeSlave.slaveName = "WCPU-ST"; break;
+				case "a teacher":
+					V.activeSlave.slaveName = "WCPU-TE";
+			}
+			V.activeSlave.slaveSurname = `#${V.activeSlave.skill.vaginal}${V.activeSlave.skill.oral}${V.activeSlave.skill.anal}${V.activeSlave.skill.whoring}${V.activeSlave.skill.entertainment}-${V.activeSlave.intelligence} `;
+			V.activeSlave.birthName = "";
+			V.activeSlave.birthSurname = "";
+			if (V.activeSlave.career === "a soldier") {
+				V.activeSlave.skill.combat = 1;
+			} else {
+				V.activeSlave.skill.combat = 0;
+			}	V.activeSlave.addict = jsEither(0, 0, 0, 10, 10, 20, 30);
+			V.activeSlave.chem = jsRandom(500, 1000);
+			V.activeSlave.behavioralFlaw = "none";
+			V.activeSlave.behavioralQuirk = "none";
+			V.activeSlave.sexualFlaw = "none";
+			V.activeSlave.sexualQuirk = "none";
+			V.activeSlave.fetish = "none";
+			V.activeSlave.fetishStrength = 0;
+			break;
+		case "kidnappers":
+			V.activeSlave = GenerateNewSlave();
+			V.activeSlave.origin = "You bought her from the kidnappers' slave market, so she was probably forced into slavery.";
+			V.activeSlave.devotion -= 5;
+			V.activeSlave.trust = jsRandom(-45, -25);
+			V.activeSlave.intelligence = Intelligence.random({limitIntelligence: [-90, 45]});
+			V.activeSlave.health = jsRandom(-80, 20);
+			if (V.activeSlave.vagina > 1 && isFertile(V.activeSlave)) {
+				V.activeSlave.preg = jsEither(-2, -1, -1, -1, -1, -1, -1, -1, 1, 20, 40);
+				if (V.activeSlave.preg > 0) {
+					V.activeSlave.pregType = setPregType(V.activeSlave);
+				}		SetBellySize(V.activeSlave);
+			}
+			break;
+		case "indentures":
+			V.oneTimeDisableDisability = 1;
+			if (V.arcologies[0].FSSupremacistLawME === 1) {
+				V.fixedRace = V.arcologies[0].FSSupremacistRace;
+			} else if (V.arcologies[0].FSSubjugationistLawME === 1) {
+				const races = setup.filterRacesLowercase.filter(race => race !== V.arcologies[0].FSSubjugationistRace);
+				V.fixedRace = races.random();
+			}	V.activeSlave = GenerateNewSlave();
+			V.activeSlave.origin = "You purchased her indenture contract, making her yours for as long as it lasts.";
+			V.activeSlave.indentureRestrictions = jsEither(0, 1, 1, 2, 2, 2, 2);
+			if (V.activeSlave.indentureRestrictions >= 2) {
+				V.activeSlave.devotion = jsRandom(25, 45);
+				V.activeSlave.trust = jsRandom(-20, 20);
+			} else if (V.activeSlave.indentureRestrictions === 1) {
+				V.activeSlave.devotion = jsRandom(-20, 20);
+				V.activeSlave.trust = jsRandom(-45, -25);
+			} else {
+				V.activeSlave.devotion = jsRandom(-45, -25);
+				V.activeSlave.trust = jsRandom(-75, -60);
+			}	V.activeSlave.indenture = jsEither(26, 52, 104, 156, 208);
+
+			break;
+		case "hunters":
+			V.activeSlave = GenerateNewSlave();
+			V.activeSlave.origin = "You bought her from the runaway hunters' slave market after they recaptured her and her original owner did not pay their fee.";
+			V.activeSlave.devotion = -20;
+			V.activeSlave.trust = jsRandom(-15, 15);
+			V.activeSlave.intelligence = Intelligence.random({limitIntelligence: [0, 100]});
+			V.activeSlave.intelligenceImplant = 15;
+			if (V.activeSlave.physicalAge >= 12) {
+				V.activeSlave.teeth = "normal";
+			}	V.activeSlave.health = jsRandom(-10, 70);
+			if (V.activeSlave.vagina > -1) {
+				V.activeSlave.preg = jsEither(-2, -1, -1, -1, -1, -1, -1, -1, 1, 1);
+				if (V.activeSlave.physicalAge < V.activeSlave.pubertyAgeXX) {V.activeSlave.preg = -1;}
+				if (V.activeSlave.preg > 0) {
+					V.activeSlave.pregType = setPregType(V.activeSlave);
+				}		SetBellySize(V.activeSlave);
+				V.activeSlave.skill.vaginal = jsRandom(15, 100);
+				V.activeSlave.vagina = jsRandom(1, 3);
+			}
+			if (V.activeSlave.balls > 0) {
+				if (jsRandom(1, 3) === 1) {
+					V.activeSlave.balls = 0;
+				}
+			}	V.activeSlave.skill.combat = jsEither(0, 0, 0, 0, 0, 1);
+			V.activeSlave.skill.entertainment = jsRandom(15, 100);
+			V.activeSlave.skill.whoring = jsRandom(15, 100);
+			V.activeSlave.skill.oral = jsRandom(15, 100);
+			V.activeSlave.skill.anal = jsRandom(15, 100);
+			V.activeSlave.anus = jsRandom(1, 3);
+			V.activeSlave.weight = Math.clamp(-25, 25, V.activeSlave.weight);
+			V.activeSlave.behavioralFlaw = jsEither("anorexic", "arrogant", "bitchy", "devout", "gluttonous", "hates men", "hates women", "hates women", "liberated", "odd");
+			V.activeSlave.sexualFlaw = jsEither("apathetic", "crude", "hates anal", "hates oral", "hates penetration", "idealistic", "judgemental", "repressed", "shamefast");
+			if (jsRandom(1, 2) === 1) {
+				let slaveGen = jsRandom(2, 8)*200;
+				V.activeSlave.boobs += slaveGen;
+				V.activeSlave.boobsImplant += slaveGen;
+				slaveGen = jsRandom(1, 3);
+				V.activeSlave.butt += slaveGen;
+				V.activeSlave.buttImplant += slaveGen;
+				slaveGen = jsEither(10, 20);
+				V.activeSlave.lips += slaveGen;
+				V.activeSlave.lipsImplant += slaveGen;
+				V.activeSlave.waist = Math.trunc(V.activeSlave.waist, -100, 15);
+				if (V.activeSlave.face < 40) {
+					V.activeSlave.faceImplant = 20*jsRandom(0, 1);
+					V.activeSlave.face = Math.clamp(V.activeSlave.face+V.activeSlave.faceImplant, -100, 100);
+				}
+				if (V.activeSlave.physicalAge >= 30) {
+					V.activeSlave.ageImplant += jsRandom(0, 1);
+					if (V.activeSlave.ageImplant === 1) {
+						ageImplantAdjustment(V.activeSlave);
+					}
+				}
+			}
+			if (V.arcologies[0].FSPaternalistSMR === 0) {
+				V.activeSlave.heels = 1;
+			}
+			break;
+		case "underage raiders":
+			V.activeSlaveOneTimeMinAge = V.minimumSlaveAge;
+			V.activeSlaveOneTimeMaxAge = V.fertilityAge;
+			V.one_time_age_overrides_pedo_mode = 1; // Must not have had their first period.
+			V.activeSlave = GenerateNewSlave();
+			V.activeSlave.origin = "You bought her from the underage raiders' slave market.";
+			V.activeSlave.trust -= 25;
+			V.activeSlave.health += 20;
+			V.activeSlave.career = setup.veryYoungCareers.random();
+			V.activeSlave.birthWeek = 0;
+			if (V.activeSlave.vagina !== -1) {
+				V.activeSlave.skill.vaginal = 0;
+				V.activeSlave.vagina = 0;
+				V.activeSlave.trueVirgin = 1;
+				V.activeSlave.preg = 0;
+				SetBellySize(V.activeSlave);
+			}	V.activeSlave.skill.anal = 0;
+			V.activeSlave.anus = 0;
+			V.activeSlave.skill.oral = 0;
+			V.activeSlave.skill.whoring = 0;
+
+			break;
+		case "raiders":
+			V.activeSlaveOneTimeMinAge = 18;
+			V.activeSlaveOneTimeMaxAge = 18;
+			V.one_time_age_overrides_pedo_mode = 1; // Supposed to have just reached the age of majority.
+			V.activeSlave = GenerateNewSlave();
+			V.activeSlave.origin = "You bought her from the girl raiders' slave market the week she reached her majority.";
+			V.activeSlave.trust -= 25;
+			V.activeSlave.health += 20;
+			V.activeSlave.career = jsEither("a cheerleader", "a farm laborer", "a party girl", "a student", "a student", "a student", "a student", "a student");
+			V.activeSlave.birthWeek = 0;
+			if (V.activeSlave.vagina !== -1) {
+				if (jsRandom(1, 2) === 1) {
+					V.activeSlave.skill.vaginal = 0;
+					V.activeSlave.vagina = 0;
+					V.activeSlave.trueVirgin = 1;
+					V.activeSlave.preg = 0;
+					SetBellySize(V.activeSlave);
+				}
+			}
+			if (jsRandom(1, 2) === 1) {
+				V.activeSlave.skill.anal = 0;
+				V.activeSlave.anus = 0;
+			}
+			if (jsRandom(1, 2) === 1) {
+				V.activeSlave.skill.oral = 0;
+			}	V.activeSlave.skill.whoring = 0;
+
+			break;
+		case "trainers":
+			V.activeSlaveOneTimeMaxAge = 42;
+			V.activeSlave = GenerateNewSlave();
+			V.activeSlave.origin = "You bought her from the trainers' slave market after they put her through basic training.";
+			V.activeSlave.devotion += 40;
+			V.activeSlave.trust += 40;
+			V.activeSlave.health += 30;
+			if (V.activeSlave.vagina !== -1) {
+				V.activeSlave.skill.vaginal += 15;
+			} else {
+				V.activeSlave.skill.vaginal = 0;
+				V.activeSlave.clit = 0;
+			}
+			if (V.activeSlave.vagina === 0) {
+				V.activeSlave.vagina += 1;
+			}
+			if (V.activeSlave.anus === 0) {
+				V.activeSlave.anus += 1;
+			}	V.activeSlave.skill.oral += 15;
+			V.activeSlave.skill.anal += 15;
+			V.activeSlave.fetishKnown = 1;
+			if (V.activeSlave.accent >= 3) {
+				V.activeSlave.accent -= 1;
+			}
+			if (jsRandom(1, 100) > 50) {
+				V.activeSlave.sexualFlaw = "none";
+			}
+			if (jsRandom(1, 100) > 50) {
+				V.activeSlave.behavioralFlaw = "none";
+			}
+			break;
+		case "TSS":
+			if (V.TSS.schoolUpgrade === 1) {
+				V.activeSlaveOneTimeMinAge = 36;
+			} else {
+				V.activeSlaveOneTimeMaxAge = 18;
+			}	V.oneTimeDisableDisability = 1;
+			V.activeSlave = GenerateNewSlave("XX");
+			V.activeSlave.career = "a slave";
+			V.activeSlave.butt = jsEither(1, 2, 2, 3);
+			V.activeSlave.boobs = jsEither(200, 300, 300, 400);
+			if (V.TSS.schoolUpgrade === 1) {
+				V.activeSlave.origin = "You bought her fresh from the new Slavegirl School after she was retrained as a slave girl.";
+				V.activeSlave.butt += 1;
+				V.activeSlave.boobs += 200;
+				V.activeSlave.anus = 1;
+				V.activeSlave.vagina = 1;
+			} else {
+				V.activeSlave.origin = "You bought her fresh from the Slavegirl School right after her majority.";
+				V.activeSlave.anus = 0;
+				V.activeSlave.vagina = 0;
+				V.activeSlave.trueVirgin = 1;
+				V.activeSlave.birthWeek = 0;
+			}	V.activeSlave.intelligenceImplant = 30;
+			if (V.activeSlave.physicalAge >= 12) {
+				V.activeSlave.teeth = "normal";
+			}	V.activeSlave.intelligence = Intelligence.random({limitIntelligence: [-20, 70]});
+			V.activeSlave.devotion = jsRandom(25, 45);
+			V.activeSlave.trust = jsRandom(25, 45);
+			V.activeSlave.health = jsRandom(50, 60);
+			V.activeSlave.preg = 0;
+			SetBellySize(V.activeSlave);
+			V.activeSlave.weight = 0;
+			V.activeSlave.waist = jsRandom(-30, 10);
+			V.activeSlave.chem = 20;
+			if (V.TSS.schoolUpgrade === 0) {
+				V.activeSlave.skill.vaginal = 0;
+				V.activeSlave.skill.oral = 0;
+				V.activeSlave.skill.anal = 0;
+				V.activeSlave.skill.whoring = 0;
+				V.activeSlave.skill.entertainment = 15;
+			} else {
+				V.activeSlave.skill.vaginal = 15;
+				V.activeSlave.skill.oral = 15;
+				V.activeSlave.skill.anal = 15;
+				V.activeSlave.skill.whoring = 15;
+				V.activeSlave.skill.entertainment = 15;
+			}	V.activeSlave.skill.combat = 0;
+			V.activeSlave.pubicHStyle = "waxed";
+			V.activeSlave.underArmHStyle = "waxed";
+			V.activeSlave.sexualFlaw = jsEither("none");
+			V.activeSlave.behavioralFlaw = jsEither("none");
+			V.activeSlave.hStyle = "tails";
+			V.activeSlave.custom.tattoo = "V.He has the simple logo of the corporation that operates The Slavegirl School tattooed on V.his left cheek.";
+
+			break;
+		case "GRI":
+			V.activeSlaveOneTimeMinAge = 16;
+			V.activeSlaveOneTimeMaxAge = 19;
+			V.oneTimeDisableDisability = 1;
+			V.activeSlave = GenerateNewSlave("XX");
+			V.activeSlave.origin = "You bought her from the Growth Research Institute right after her use as a test subject ended.";
+			V.activeSlave.career = "a slave";
+			V.activeSlave.intelligenceImplant = 0;
+			V.activeSlave.devotion = jsRandom(-15, -5);
+			V.activeSlave.trust = jsRandom(-25, -45);
+			V.activeSlave.chem = 100;
+			if (V.GRI.schoolUpgrade === 1) {
+				V.activeSlave.health = 200;
+			} else {
+				V.activeSlave.health = jsRandom(-80, 100);
+			}	V.activeSlave.height = jsRandom(160, 210);
+			V.activeSlave.butt = jsRandom(4, 10);
+			if (V.GRI.schoolUpgrade === 2) {
+				V.activeSlave.boobs = 200*jsRandom(15, 30);
+				V.activeSlave.lactation = 2, V.activeSlave.lactationDuration = 2;
+			} else {
+				V.activeSlave.boobs = 200*jsRandom(4, 20);
+			}	V.activeSlave.nipples = jsEither("huge", "inverted");
+			V.activeSlave.areolae = jsEither(0, 1, 2, 3, 4);
+			V.activeSlave.clit = jsEither(0, 1, 2, 3);
+			V.activeSlave.lips = jsRandom(5, 85);
+			V.activeSlave.anus = 0;
+			V.activeSlave.vagina = 0;
+			V.activeSlave.preg = 0;
+			SetBellySize(V.activeSlave);
+			V.activeSlave.weight = 0;
+			V.activeSlave.waist = jsRandom(-20, 30);
+			V.activeSlave.skill.vaginal = 0;
+			V.activeSlave.skill.oral = 0;
+			V.activeSlave.skill.anal = 0;
+			V.activeSlave.skill.whoring = 0;
+			V.activeSlave.skill.entertainment = 0;
+			V.activeSlave.skill.combat = 0;
+			V.activeSlave.pubicHStyle = "waxed";
+			V.activeSlave.birthWeek = 0;
+			V.activeSlave.behavioralFlaw = jsEither("odd");
+			V.activeSlave.hStyle = "shaved";
+			V.activeSlave.hLength = 0;
+			V.activeSlave.custom.tattoo = "V.He has a barcode that identified V.his when she was a test subject at the Growth Research Institute tattooed on V.his left cheek.";
+
+			break;
+		case "SCP":
+			V.activeSlaveOneTimeMinAge = 16;
+			V.activeSlaveOneTimeMaxAge = 19;
+			V.oneTimeDisableDisability = 1;
+			V.activeSlave = GenerateNewSlave("XX");
+			V.activeSlave.origin = "You bought her from St. Claver Preparatory after she served as a plastic surgeon's passing final exam.";
+			V.activeSlave.chem = 20;
+			V.activeSlave.career = "a slave";
+			if (V.SCP.schoolUpgrade === 1) {
+				V.activeSlave.intelligenceImplant = 0;
+				V.activeSlave.intelligence = -60;
+				V.activeSlave.devotion = 100;
+				V.activeSlave.trust = 100;
+			} else {
+				V.activeSlave.intelligenceImplant = 15;
+				V.activeSlave.teeth = "normal";
+				V.activeSlave.intelligence = Intelligence.random({limitIntelligence: [-30, 60]});
+				V.activeSlave.devotion = jsRandom(25, 45);
+				V.activeSlave.trust = jsRandom(25, 45);
+			}	V.activeSlave.health = 100;
+			V.activeSlave.heightImplant = 1;
+			V.activeSlave.height += 10;
+			V.activeSlave.buttImplant = (4-V.activeSlave.butt);
+			V.activeSlave.butt += V.activeSlave.buttImplant;
+			V.activeSlave.boobsImplant = (2000-V.activeSlave.boobs);
+			V.activeSlave.boobs += V.activeSlave.boobsImplant;
+			V.activeSlave.nipples = "tiny";
+			V.activeSlave.areolae = 0;
+			V.activeSlave.clit = 0;
+			V.activeSlave.lipsImplant = (20-V.activeSlave.lips);
+			V.activeSlave.lips += V.activeSlave.lipsImplant;
+			V.activeSlave.faceImplant = 40;
+			V.activeSlave.face = Math.clamp(V.activeSlave.face+V.activeSlave.faceImplant, -100, 100);
+			V.activeSlave.faceShape = "normal";
+			V.activeSlave.anus = 0;
+			V.activeSlave.vagina = 0;
+			V.activeSlave.preg = 0;
+			SetBellySize(V.activeSlave);
+			V.activeSlave.weight = -20;
+			V.activeSlave.waist = -50;
+			if (V.SCP.schoolUpgrade === 2) {
+				V.activeSlave.skill.vaginal = 15;
+				V.activeSlave.skill.oral = 15;
+				V.activeSlave.skill.anal = 15;
+				V.activeSlave.skill.whoring = 15;
+				V.activeSlave.skill.entertainment = 15;
+			} else {
+				V.activeSlave.skill.vaginal = 0;
+				V.activeSlave.skill.oral = 0;
+				V.activeSlave.skill.anal = 0;
+				V.activeSlave.skill.whoring = 0;
+				V.activeSlave.skill.entertainment = 0;
+			}	V.activeSlave.skill.combat = 0;
+			V.activeSlave.pubicHStyle = "waxed";
+			V.activeSlave.underArmHStyle = "waxed";
+			V.activeSlave.birthWeek = 0;
+			V.activeSlave.sexualFlaw = jsEither("none");
+			V.activeSlave.behavioralFlaw = jsEither("none");
+			V.activeSlave.hStyle = "tails";
+			V.activeSlave.pubicHColor = "blonde";
+			V.activeSlave.underArmHColor = "blonde";
+			V.activeSlave.eyebrowHColor = "blonde";
+			V.activeSlave.race = "white";
+			V.activeSlave.skin = "sun tanned";
+			V.activeSlave.override_H_Color = 1;
+			V.activeSlave.override_Arm_H_Color = 1;
+			V.activeSlave.override_Pubic_H_Color = 1;
+			V.activeSlave.override_Brow_H_Color = 1;
+			V.activeSlave.override_Race = 1;
+			V.activeSlave.override_Skin = 1;
+			V.activeSlave.custom.tattoo = "V.He has the coat of arms of St. Claver Preparatory tattooed on V.his left cheek.";
+
+			break;
+		case "LDE":
+			V.activeSlaveOneTimeMinAge = 16;
+			V.activeSlaveOneTimeMaxAge = 19;
+			V.oneTimeDisableDisability = 1;
+			V.activeSlave = GenerateNewSlave("XY");
+			V.activeSlave.origin = "You bought her from the innovative École des Enculées right after her graduation.";
+			V.activeSlave.career = "a slave";
+			V.activeSlave.intelligenceImplant = 0;
+			V.activeSlave.chem = 100;
+			if (V.LDE.schoolUpgrade === 1) {
+				V.activeSlave.devotion = 100;
+				V.activeSlave.trust = 100;
+			} else {
+				V.activeSlave.devotion = jsRandom(60, 75);
+				V.activeSlave.trust = jsRandom(55, 60);
+			}	V.activeSlave.health = jsRandom(60, 80);
+			V.activeSlave.muscles = 0;
+			V.activeSlave.butt = jsEither(4, 5);
+			V.activeSlave.face = jsRandom(15, 55);
+			V.activeSlave.faceShape = "androgynous";
+			V.activeSlave.boobs = jsEither(500, 650, 800);
+			V.activeSlave.waist = -15;
+			V.activeSlave.lips = 35;
+			if (V.LDE.schoolUpgrade === 2) {
+				V.activeSlave.dick = jsEither(3, 4);
+				V.activeSlave.balls = jsEither(3, 4);
+				if (V.activeSlave.foreskin > 0) {V.activeSlave.foreskin = V.activeSlave.dick;}
+				if (V.activeSlave.balls > 0) {V.activeSlave.scrotum = V.activeSlave.balls;}
+			} else {
+				V.activeSlave.dick = jsEither(1, 1, 1, 2);
+				V.activeSlave.balls = jsEither(1, 1, 1, 2);
+				if (V.activeSlave.foreskin > 0) {V.activeSlave.foreskin = V.activeSlave.dick;}
+				if (V.activeSlave.balls > 0) {V.activeSlave.scrotum = V.activeSlave.balls;}
+				V.activeSlave.pubertyXY = 0;
+				V.activeSlave.pubertyAgeXY = jsRandom(24, 50);
+			}	V.activeSlave.anus = 2;
+			V.activeSlave.vagina = -1;
+			V.activeSlave.preg = 0;
+			SetBellySize(V.activeSlave);
+			V.activeSlave.weight = jsRandom(0, 20);
+			V.activeSlave.skill.vaginal = 0;
+			V.activeSlave.skill.oral = 15;
+			V.activeSlave.skill.anal = 100;
+			V.activeSlave.skill.whoring = 15;
+			V.activeSlave.skill.entertainment = 15;
+			V.activeSlave.skill.combat = 0;
+			V.activeSlave.pubicHStyle = "waxed";
+			V.activeSlave.birthWeek = 0;
+			V.activeSlave.sexualFlaw = "none";
+			V.activeSlave.behavioralFlaw = jsEither("none", "odd");
+			V.activeSlave.fetishStrength = jsEither(1, 2);
+			V.activeSlave.fetish = "buttslut";
+			V.activeSlave.fetishKnown = 1;
+			V.activeSlave.attrKnown = 1;
+			V.activeSlave.hStyle = "tails";
+			V.activeSlave.hLength = 100;
+			V.activeSlave.custom.tattoo = "V.He has the buttock-shaped symbol of the École des Enculées that created V.his tattooed on V.his left cheek.";
+
+			break;
+		case "TGA":
+			V.activeSlaveOneTimeMinAge = 16;
+			V.activeSlaveOneTimeMaxAge = 19;
+			V.oneTimeDisableDisability = 1;
+			V.activeSlave = GenerateNewSlave("XY");
+			V.activeSlave.origin = "You bought her fresh from the intense Gymnasium-Academy right after her majority.";
+			V.activeSlave.career = "a slave";
+			V.activeSlave.intelligenceImplant = 30;
+			V.activeSlave.teeth = "normal";
+			V.activeSlave.intelligence = Intelligence.random({limitIntelligence: [-20, 60]});
+			V.activeSlave.chem = 20;
+			if (V.TGA.schoolUpgrade === 1) {
+				V.activeSlave.devotion = 100;
+				V.activeSlave.trust = 100;
+			} else {
+				V.activeSlave.devotion = jsRandom(25, 45);
+				V.activeSlave.trust = jsRandom(25, 45);
+			}	V.activeSlave.health = 100;
+			V.activeSlave.muscles = jsEither(20, 50, 50);
+			V.activeSlave.butt = jsEither(2, 2, 3);
+			V.activeSlave.boobs = jsEither(100, 200);
+			V.activeSlave.dick = jsRandom(3, 5);
+			V.activeSlave.balls = jsRandom(3, 5);
+			V.activeSlave.anus = 0;
+			V.activeSlave.vagina = -1;
+			V.activeSlave.preg = 0;
+			SetBellySize(V.activeSlave);
+			V.activeSlave.weight = 0;
+			V.activeSlave.waist = jsRandom(-10, 30);
+			V.activeSlave.skill.vaginal = 0;
+			V.activeSlave.skill.oral = 0;
+			V.activeSlave.skill.anal = 0;
+			V.activeSlave.skill.whoring = 0;
+			V.activeSlave.skill.entertainment = 0;
+			if (V.TGA.schoolUpgrade === 2) {
+				V.activeSlave.skill.combat = 1;
+			} else {
+				V.activeSlave.skill.combat = 0;
+			}	V.activeSlave.pubicHStyle = "waxed";
+			V.activeSlave.underArmHStyle = "waxed";
+			V.activeSlave.birthWeek = 0;
+			V.activeSlave.sexualFlaw = jsEither("apathetic", "none");
+			V.activeSlave.behavioralFlaw = jsEither("arrogant", "none", "odd");
+			V.activeSlave.hStyle = "short";
+			V.activeSlave.hLength = 2;
+			V.activeSlave.custom.tattoo = "V.He has the baroque crest of the Gymnasium-Academy that trained V.his branded into V.his left cheek.";
+			break;
+		case "TCR":
+			if (V.TCR.schoolUpgrade === 2 && jsRandom(1, 100) <= 20) {
+				V.activeSlaveOneTimeMinAge = V.fertilityAge;
+				V.activeSlaveOneTimeMaxAge = 18;
+				V.one_time_age_overrides_pedo_mode = 1;
+				V.oneTimeDisableDisability = 1;
+				V.activeSlave = GenerateNewSlave("XX");
+				V.activeSlave.origin = "You bought her from The Cattle Ranch.";
+				V.activeSlave.career = "a dairy slave";
+				V.activeSlave.slaveName = setup.cowSlaveNames.random();
+				V.activeSlave.slaveSurname = 0;
+				V.activeSlave.butt = jsEither(2, 2, 3, 3, 3, 4, 4);
+				V.activeSlave.boobs = ((V.activeSlave.physicalAge*100)*2)+jsEither(-100, -100, 0, 0, 100, 100, 200, 200, 300, 500);
+				V.activeSlave.lactation = 0;
+				V.activeSlave.lactationAdaptation = 0;
+				V.activeSlave.lactationDuration = 0;
+				V.activeSlave.anus = 0;
+				V.activeSlave.vagina = 0;
+				V.activeSlave.trueVirgin = 1;
+				V.activeSlave.vaginaLube = jsEither(1, 1, 2);
+				V.activeSlave.intelligenceImplant = 0;
+				V.activeSlave.devotion = -20;
+				V.activeSlave.trust = -20;
+				V.activeSlave.health = jsRandom(20, 30);
+				V.activeSlave.preg = 0;
+				SetBellySize(V.activeSlave);
+				V.activeSlave.hips = jsEither(0, 0, 1, 1, 1, 2);
+				V.activeSlave.weight = jsRandom(-20, 10);
+				V.activeSlave.waist = jsRandom(-30, 10);
+				V.activeSlave.muscles = 0;
+				V.activeSlave.skill.vaginal = 0;
+				V.activeSlave.skill.oral = 0;
+				V.activeSlave.skill.anal = 0;
+				V.activeSlave.skill.whoring = 0;
+				V.activeSlave.skill.entertainment = 0;
+				V.activeSlave.skill.combat = 0;
+				V.activeSlave.pubicHStyle = "waxed";
+				V.activeSlave.underArmHStyle = "waxed";
+				V.activeSlave.heels = 1;
+				V.activeSlave.hStyle = "neat";
+				V.activeSlave.collar = "leather with cowbell";
+				V.activeSlave.custom.tattoo = "V.He has the logo of the Cattle Ranch branded on V.his thigh.";
+			} else if (V.TCR.schoolUpgrade === 1 && jsRandom(1, 100) <= 20) {
+				V.activeSlaveOneTimeMinAge = V.potencyAge+1;
+				V.activeSlaveOneTimeMaxAge = 24;
+				V.one_time_age_overrides_pedo_mode = 1;
+				V.oneTimeDisableDisability = 1;
+				V.activeSlave = GenerateNewSlave("XY");
+				V.activeSlave.slaveName = setup.cowSlaveNames.random();
+				V.activeSlave.slaveSurname = 0;
+				V.activeSlave.origin = "You bought her from The Cattle Ranch.";
+				V.activeSlave.career = "a breeding bull";
+				V.activeSlave.butt = jsEither(3, 3, 4, 4, 4, 5, 6);
+				V.activeSlave.boobs = 100;
+				V.activeSlave.anus = 0;
+				V.activeSlave.intelligence = -100;
+				V.activeSlave.intelligenceImplant = 0;
+				V.activeSlave.devotion = 100;
+				V.activeSlave.trust = 100;
+				V.activeSlave.health = jsRandom(20, 30);
+				V.activeSlave.hips = jsEither(1, 1, 1, 2, 2);
+				V.activeSlave.dick = 6;
+				V.activeSlave.foreskin = 0;
+				V.activeSlave.balls = jsRandom(19, 30);
+				V.activeSlave.scrotum = 10;
+				V.activeSlave.prostate = 2;
+				V.activeSlave.weight = jsRandom(10, 30);
+				V.activeSlave.waist = jsRandom(0, 100);
+				V.activeSlave.muscles = jsRandom(80, 100);
+				V.activeSlave.skill.vaginal = 0;
+				V.activeSlave.skill.oral = 0;
+				V.activeSlave.skill.anal = 0;
+				V.activeSlave.skill.whoring = 0;
+				V.activeSlave.skill.entertainment = 0;
+				V.activeSlave.skill.combat = 0;
+				V.activeSlave.pubicHStyle = "waxed";
+				V.activeSlave.underArmHStyle = "waxed";
+				V.activeSlave.heels = 1;
+				V.activeSlave.energy = 100;
+				V.activeSlave.fetish = "mindbroken";
+				V.activeSlave.fetishStrength = 10;
+				V.activeSlave.fetishKnown = 1;
+				V.activeSlave.sexualFlaw = jsEither("none");
+				V.activeSlave.behavioralFlaw = jsEither("none");
+				V.activeSlave.sexualQuirk = jsEither("none");
+				V.activeSlave.behavioralQuirk = jsEither("none");
+				V.activeSlave.hStyle = "neat";
+				V.activeSlave.custom.tattoo = "V.He has the logo of the Cattle Ranch branded on V.his thigh.";
+			} else {
+				V.activeSlaveOneTimeMinAge = 19;
+				V.activeSlaveOneTimeMaxAge = 24;
+				V.one_time_age_overrides_pedo_mode = 1;
+				V.oneTimeDisableDisability = 1;
+				V.activeSlave = GenerateNewSlave("XX");
+				V.activeSlave.slaveName = setup.cowSlaveNames.random();
+				V.activeSlave.slaveSurname = 0;
+				V.activeSlave.origin = "You bought her from The Cattle Ranch.";
+				V.activeSlave.career = "a dairy cow";
+				V.activeSlave.butt = jsEither(3, 3, 4, 4, 4, 5, 6);
+				V.activeSlave.boobs = ((V.activeSlave.physicalAge*100)*2)+jsEither(-100, -100, 0, 0, 100, 100, 200, 200, 300, 500);
+				V.activeSlave.lactation = 1, V.activeSlave.lactationDuration = 2;
+				V.activeSlave.lactationAdaptation = 100;
+				V.activeSlave.anus = 1;
+				V.activeSlave.vagina = 3;
+				V.activeSlave.vaginaLube = 2;
+				V.activeSlave.intelligence = jsEither(-100, -100, -100, -100, -60, -60, -30);
+				V.activeSlave.intelligenceImplant = 0;
+				V.activeSlave.devotion = 100;
+				V.activeSlave.trust = 100;
+				V.activeSlave.health = jsRandom(20, 30);
+				V.activeSlave.preg = jsRandom(10, 40);
+				V.activeSlave.pregType = jsRandom(1, 5);
+				V.activeSlave.pregKnown = 1;
+				SetBellySize(V.activeSlave);
+				V.activeSlave.bellySag = 2;
+				V.activeSlave.bellySagPreg = 2;
+				V.activeSlave.hips = jsEither(1, 1, 1, 2, 2);
+				V.activeSlave.counter.birthsTotal = jsRandom(1, 7);
+				V.activeSlave.pregAdaptation = 120;
+				V.activeSlave.weight = jsRandom(20, 90);
+				V.activeSlave.waist = jsRandom(-10, 50);
+				V.activeSlave.muscles = jsRandom(60, 80);
+				V.activeSlave.chem = 0;
+				V.activeSlave.skill.vaginal = 0;
+				V.activeSlave.skill.oral = 0;
+				V.activeSlave.skill.anal = 0;
+				V.activeSlave.skill.whoring = 0;
+				V.activeSlave.skill.entertainment = 0;
+				V.activeSlave.skill.combat = 0;
+				V.activeSlave.pubicHStyle = "waxed";
+				V.activeSlave.underArmHStyle = "waxed";
+				V.activeSlave.heels = 1;
+				V.activeSlave.fetish = "mindbroken";
+				V.activeSlave.fetishStrength = 10;
+				V.activeSlave.fetishKnown = 1;
+				V.activeSlave.sexualFlaw = jsEither("none");
+				V.activeSlave.behavioralFlaw = jsEither("none");
+				V.activeSlave.sexualQuirk = jsEither("none");
+				V.activeSlave.behavioralQuirk = jsEither("none");
+				V.activeSlave.hStyle = "neat";
+				V.activeSlave.collar = "leather with cowbell";
+				V.activeSlave.custom.tattoo = "V.He has the logo of the Cattle Ranch branded on V.his thigh.";
+			} break;
+		case "TFS":
+			V.activeSlaveOneTimeMinAge = 25;
+			V.activeSlaveOneTimeMaxAge = 29;
+			V.one_time_age_overrides_pedo_mode = 1;
+			V.oneTimeDisableDisability = 1;
+			if (V.TFS.schoolUpgrade === 3 && V.TFS.compromiseWeek+15 <= V.week) {
+				V.activeSlave = GenerateNewSlave();
+			} else {
+				V.activeSlave = GenerateNewSlave("XY");
+			}	V.activeSlave.origin = "You bought her from the enigmatic Futanari Sisters after they sold her into slavery.";
+			V.activeSlave.career = "a Futanari Sister";
+			V.activeSlave.faceShape = jsEither("exotic", "sensual");
+			V.activeSlave.pubertyXY = 1;
+			var sisterAge = jsRandom(1, 5);
+			if (sisterAge === 1) {
+				V.activeSlave.intelligence = -60;
+				V.activeSlave.hips = 0;
+				V.activeSlave.face = jsEither(35, 35, 35, 75, 100);
+				if (V.TFS.schoolUpgrade === 3 && V.TFS.compromiseWeek+15 <= V.week) {
+					if (V.activeSlave.genes === "XY") {
+						V.activeSlave.balls = 6;
+						V.activeSlave.scrotum = V.activeSlave.balls;
+					} else {
+						V.activeSlave.balls = 1;
+						V.activeSlave.scrotum = 0;
+					}
+				} else if (V.TFS.schoolUpgrade === 1) {
+					V.activeSlave.balls = 1;
+					V.activeSlave.scrotum = 0;
+				} else if (V.TFS.schoolUpgrade === 2) {
+					V.activeSlave.balls = 6;
+					V.activeSlave.scrotum = V.activeSlave.balls;
+				} else {
+					V.activeSlave.balls = jsRandom(2, 3);
+					V.activeSlave.scrotum = V.activeSlave.balls;
+				}		V.activeSlave.lips = 10;
+				V.activeSlave.weight = 0;
+				V.activeSlave.waist = jsRandom(-30, 10);
+				V.activeSlave.actualAge = jsRandom(19, 24);
+				V.activeSlave.physicalAge = V.activeSlave.actualAge;
+				V.activeSlave.visualAge = V.activeSlave.actualAge;
+				V.activeSlave.ovaryAge = V.activeSlave.actualAge;
+				V.activeSlave.vagina = 2;
+				V.activeSlave.anus = 2;
+				V.activeSlave.fetish = "submissive";
+			} else if (sisterAge === 2) {
+				V.activeSlave.intelligence = -30;
+				V.activeSlave.hips = 1;
+				V.activeSlave.face = jsEither(35, 35, 35, 75, 100);
+				if (V.TFS.schoolUpgrade === 3 && V.TFS.compromiseWeek+15 <= V.week) {
+					if (V.activeSlave.genes === "XY") {
+						V.activeSlave.balls = 7;
+						V.activeSlave.scrotum = V.activeSlave.balls;
+					} else {
+						V.activeSlave.balls = 1;
+						V.activeSlave.scrotum = 0;
+					}
+				} else if (V.TFS.schoolUpgrade === 1) {
+					V.activeSlave.balls = 1;
+					V.activeSlave.scrotum = 0;
+				} else if (V.TFS.schoolUpgrade === 2) {
+					V.activeSlave.balls = 6;
+					V.activeSlave.scrotum = V.activeSlave.balls;
+				} else {
+					V.activeSlave.balls = jsRandom(2, 3);
+					V.activeSlave.scrotum = V.activeSlave.balls;
+				}		V.activeSlave.lips = 0;
+				V.activeSlave.weight = 0;
+				V.activeSlave.waist = jsRandom(-30, 10);
+				V.activeSlave.vagina = 2;
+				V.activeSlave.anus = 2;
+				V.activeSlave.fetish = jsEither("buttslut", "cumslut", "submissive");
+			} else if (sisterAge === 3) {
+				V.activeSlave.intelligence = 0;
+				V.activeSlave.hips = 2;
+				V.activeSlave.face = jsEither(35, 35, 75, 75, 100);
+				if (V.TFS.schoolUpgrade === 3 && V.TFS.compromiseWeek+15 <= V.week) {
+					if (V.activeSlave.genes === "XY") {
+						V.activeSlave.balls = 8;
+						V.activeSlave.scrotum = V.activeSlave.balls;
+					} else {
+						V.activeSlave.balls = 1;
+						V.activeSlave.scrotum = 0;
+					}
+				} else if (V.TFS.schoolUpgrade === 1) {
+					V.activeSlave.balls = 1;
+					V.activeSlave.scrotum = 0;
+				} else if (V.TFS.schoolUpgrade === 2) {
+					V.activeSlave.balls = 6;
+					V.activeSlave.scrotum = V.activeSlave.balls;
+				} else {
+					V.activeSlave.balls = jsRandom(3, 4);
+					V.activeSlave.scrotum = V.activeSlave.balls;
+				}		V.activeSlave.lips = jsRandom(15, 25);
+				V.activeSlave.weight = 20;
+				V.activeSlave.waist = jsRandom(-30, 20);
+				V.activeSlave.actualAge = jsRandom(30, 34);
+				V.activeSlave.physicalAge = V.activeSlave.actualAge;
+				V.activeSlave.visualAge = V.activeSlave.actualAge;
+				V.activeSlave.ovaryAge = V.activeSlave.actualAge;
+				V.activeSlave.vagina = 2;
+				V.activeSlave.anus = 2;
+				V.activeSlave.fetish = jsEither("buttslut", "cumslut");
+			} else if (sisterAge === 4) {
+				V.activeSlave.intelligence = 30;
+				V.activeSlave.hips = 2;
+				V.activeSlave.face = jsEither(35, 75, 75, 100, 100);
+				if (V.TFS.schoolUpgrade === 3 && V.TFS.compromiseWeek+15 <= V.week) {
+					if (V.activeSlave.genes === "XY") {
+						V.activeSlave.balls = 9;
+						V.activeSlave.scrotum = V.activeSlave.balls;
+					} else {
+						V.activeSlave.balls = 1;
+						V.activeSlave.scrotum = 0;
+					}
+				} else if (V.TFS.schoolUpgrade === 1) {
+					V.activeSlave.balls = 1;
+					V.activeSlave.scrotum = 0;
+				} else if (V.TFS.schoolUpgrade === 2) {
+					V.activeSlave.balls = 6;
+					V.activeSlave.scrotum = V.activeSlave.balls;
+				} else {
+					V.activeSlave.balls = jsRandom(4, 5);
+					V.activeSlave.scrotum = V.activeSlave.balls;
+				}		V.activeSlave.lips = jsRandom(25, 55);
+				V.activeSlave.weight = 20;
+				V.activeSlave.waist = jsRandom(-30, 20);
+				V.activeSlave.actualAge = jsRandom(35, 39);
+				V.activeSlave.physicalAge = V.activeSlave.actualAge;
+				V.activeSlave.visualAge = V.activeSlave.actualAge;
+				V.activeSlave.ovaryAge = V.activeSlave.actualAge;
+				V.activeSlave.vagina = 3;
+				V.activeSlave.anus = 3;
+				V.activeSlave.fetish = jsEither("buttslut", "cumslut", "dom");
+			} else {
+				V.activeSlave.intelligence = 60;
+				V.activeSlave.hips = 2;
+				V.activeSlave.face = jsEither(35, 75, 100, 100, 100);
+				if (V.TFS.schoolUpgrade === 3 && V.TFS.compromiseWeek+15 <= V.week) {
+					if (V.activeSlave.genes === "XY") {
+						V.activeSlave.balls = 10;
+						V.activeSlave.scrotum = V.activeSlave.balls;
+					} else {
+						V.activeSlave.balls = 1;
+						V.activeSlave.scrotum = 0;
+					}
+				} else if (V.TFS.schoolUpgrade === 1) {
+					V.activeSlave.balls = 1;
+					V.activeSlave.scrotum = 0;
+				} else if (V.TFS.schoolUpgrade === 2) {
+					V.activeSlave.balls = 6;
+					V.activeSlave.scrotum = V.activeSlave.balls;
+				} else {
+					V.activeSlave.balls = jsRandom(5, 6);
+					V.activeSlave.scrotum = V.activeSlave.balls;
+				}		V.activeSlave.lips = jsRandom(25, 55);
+				V.activeSlave.weight = 50;
+				V.activeSlave.waist = jsRandom(-50, 20);
+				V.activeSlave.actualAge = jsRandom(40, 42);
+				V.activeSlave.physicalAge = V.activeSlave.actualAge;
+				V.activeSlave.visualAge = V.activeSlave.actualAge;
+				V.activeSlave.ovaryAge = V.activeSlave.actualAge;
+				V.activeSlave.vagina = 3;
+				V.activeSlave.anus = 3;
+				V.activeSlave.fetish = "dom";
+			}	V.activeSlave.chem = 100+(sisterAge*50);
+			V.activeSlave.butt = sisterAge+jsRandom(2, 4);
+			V.activeSlave.boobs = 50*((10*sisterAge)+jsRandom(10, 20));
+			V.activeSlave.dick = sisterAge+jsRandom(1, 2);
+			if (V.activeSlave.foreskin > 0) {V.activeSlave.foreskin = V.activeSlave.dick;}
+			V.activeSlave.preg = -3;
+			if (V.TFS.farmUpgrade > 0) {
+				V.activeSlave.ovaries = 1;
+				V.activeSlave.preg = -1;
+				V.activeSlave.pubertyXX = 1;
+				if (V.TFS.farmUpgrade >= 2) {
+					if (V.week - V.TFS.farmUpgradeAsked < 35) {
+						V.activeSlave.preg = jsRandom(1, (V.week - V.TFS.farmUpgradeAsked));
+					} else {
+						V.activeSlave.preg = jsRandom(1, 40);
+					}			if (V.TFS.farmUpgrade === 3) {
+						V.activeSlave.pregType = jsRandom(20, 40);
+						V.activeSlave.pregAdaptation = 500;
+					} else {
+						V.activeSlave.pregType = 1;
+					}			V.activeSlave.pregWeek = V.activeSlave.preg;
+					V.activeSlave.pregSource = -9;
+				}
+			}	SetBellySize(V.activeSlave);
+			V.activeSlave.intelligenceImplant = 30;
+			V.activeSlave.teeth = "normal";
+			if (V.TFS.schoolUpgrade === 2) {
+				V.activeSlave.energy = 100;
+			} else {
+				V.activeSlave.energy = V.activeSlave.physicalAge+jsRandom(20, 30);
+			}	V.activeSlave.devotion = jsRandom(30, 40);
+			V.activeSlave.trust = jsRandom(60, 75);
+			V.activeSlave.health = jsRandom(60, 80);
+			V.activeSlave.muscles = 20;
+			if (V.activeSlave.genes === "XY") {
+				V.activeSlave.shoulders = 1;
+			}	V.activeSlave.skill.vaginal = 100;
+			V.activeSlave.skill.oral = 100;
+			V.activeSlave.skill.anal = 100;
+			V.activeSlave.skill.whoring = 15;
+			V.activeSlave.skill.entertainment = 100;
+			V.activeSlave.skill.combat = 0;
+			V.activeSlave.pubicHStyle = "waxed";
+			V.activeSlave.underArmHStyle = "waxed";
+			if (V.TFS.schoolUpgrade === 1) {
+				V.activeSlave.sexualQuirk = "caring";
+			}	V.activeSlave.sexualFlaw = jsEither("hates women", "none");
+			V.activeSlave.behavioralFlaw = jsEither("arrogant", "none");
+			V.activeSlave.fetishStrength = 100;
+			V.activeSlave.fetishKnown = 0;
+			V.activeSlave.attrKnown = 0;
+			V.activeSlave.hStyle = "neat";
+			V.activeSlave.hLength = 150;
+			V.activeSlave.custom.tattoo = "V.He has a simple pink heart tattooed on V.his right temple.";
+			V.activeSlave.trueVirgin = 1;
+			break;
+		case "HA":
+			V.activeSlaveOneTimeMinAge = 22;
+			V.activeSlaveOneTimeMaxAge = 26;
+			V.one_time_age_overrides_pedo_mode = 1;
+			V.oneTimeDisableDisability = 1;
+			V.activeSlave = GenerateNewSlave("XX");
+			V.activeSlave.origin = "You bought her from the prestigious Hippolyta Academy.";
+			V.activeSlave.career = "a bodyguard";
+			V.activeSlave.intelligenceImplant = 30;
+			V.activeSlave.faceShape = jsEither("cute", "normal");
+			V.activeSlave.face = jsEither(35, 35, 35, 50, 75, 100);
+			V.activeSlave.lips = jsRandom(0, 25);
+			V.activeSlave.actualAge = jsRandom(20, 25);
+			V.activeSlave.physicalAge = V.activeSlave.actualAge;
+			V.activeSlave.visualAge = V.activeSlave.actualAge;
+			V.activeSlave.ovaryAge = V.activeSlave.actualAge;
+			V.activeSlave.hips = 0;
+			V.activeSlave.vagina = jsRandom(0, 1);
+			V.activeSlave.anus = jsRandom(0, 1);
+			V.activeSlave.fetish = "none";
+			V.activeSlave.chem = 10 * jsRandom(1, 3);
+			V.activeSlave.butt = jsRandom(2, 4);
+			V.activeSlave.boobs = jsRandom(3, 6) * 100;
+			V.activeSlave.preg = 0;
+			SetBellySize(V.activeSlave);
+			V.activeSlave.teeth = "normal";
+			V.activeSlave.devotion = jsRandom(60, 75);
+			V.activeSlave.trust = jsRandom(60, 75);
+			V.activeSlave.health = jsRandom(60, 80);
+			var minHeight = jsRandom(170, 180);
+			if (V.HA.schoolUpgrade === 2) {
+				V.activeSlave.height = Math.trunc(Math.clamp(Height.random(V.activeSlave, {limitMult: [2, 15], spread: .1}), minHeight, 274));
+				V.activeSlave.muscles = jsRandom(40, 80);
+			} else {
+				V.activeSlave.height = Math.trunc(Math.clamp(Height.random(V.activeSlave, {limitMult: [1, 4]}), minHeight, 274));
+				V.activeSlave.muscles = jsRandom(20, 40);
+			}
+			if (V.HA.schoolUpgrade === 3) {
+				V.activeSlave.weight = jsEither(10, 20, 20, 30, 30, 40, 40, 50);
+				V.activeSlave.waist = jsRandom(-10, 40);
+			} else {
+				V.activeSlave.weight = -10;
+				V.activeSlave.waist = jsRandom(-20, 10);
+			}	V.activeSlave.shoulders = 0;
+			if (V.HA.schoolUpgrade === 1) {
+				V.activeSlave.intelligence = Intelligence.random({limitIntelligence: [20, 70]});
+				V.activeSlave.skill.vaginal = jsEither(20, 20, 40);
+				V.activeSlave.skill.oral = jsEither(20, 20, 40);
+				V.activeSlave.skill.anal = jsEither(20, 20, 40);
+				V.activeSlave.skill.whoring = jsEither(20, 20, 40);
+				V.activeSlave.skill.entertainment = jsEither(60, 80, 80, 100);
+			} else {
+				V.activeSlave.intelligence = jsRandom(0, 20);
+				V.activeSlave.skill.vaginal = 10;
+				V.activeSlave.skill.oral = 10;
+				V.activeSlave.skill.anal = 10;
+				V.activeSlave.skill.whoring = 10;
+				V.activeSlave.skill.entertainment = jsEither(20, 40, 40, 60);
+			}	V.activeSlave.skill.combat = 1;
+			V.activeSlave.pubicHStyle = "waxed";
+			V.activeSlave.underArmHStyle = "waxed";
+			V.activeSlave.sexualQuirk = jsEither("caring", "none", "none", "unflinching");
+			V.activeSlave.sexualFlaw = jsEither("apathetic", "judgemental", "none", "none");
+			V.activeSlave.behavioralFlaw = jsEither("arrogant", "none");
+			V.activeSlave.behavioralQuirk = jsEither("confident", "fitness", "none", "none");
+			V.activeSlave.fetishStrength = 0;
+			V.activeSlave.fetishKnown = 0;
+			V.activeSlave.attrKnown = 0;
+			V.activeSlave.hStyle = jsEither("braided", "bun", "neat", "ponytail", "tails");
+			V.activeSlave.hLength = jsRandom(5, 50);
+			V.activeSlave.clothes = "a nice maid outfit";
+			V.activeSlave.custom.tattoo = "V.He has the sword and eagle symbol of the Hippolyta Academy tattooed on V.his left shoulder.";
+			break;
+		case "gangs and smugglers":
+			if (V.pedo_mode === 1) {
+				V.activeSlaveOneTimeMinAge = 6;
+				V.activeSlaveOneTimeMaxAge = 18;
+				V.one_time_age_overrides_pedo_mode = 1;
+			} else {
+				V.activeSlaveOneTimeMinAge = 16;
+				if (V.retirementAge > 56) {
+					V.activeSlaveOneTimeMaxAge = 55;
+				} else {
+					V.activeSlaveOneTimeMaxAge = V.retirementAge-2;
+				}
+			}	V.oneTimeDisableDisability = 1;
+			V.activeSlave = GenerateNewSlave("XY");
+
+			var criminal = setup.gangCriminalPool.random();
+
+			switch (criminal) {
+				case "mule":
+					V.activeSlave.origin = "You purchased her life at a prison sale. She was locked away for smuggling illegal contraband inside her body.";
+					V.prisonCrime = "is incarcerated for being a willing drug mule.";
+					V.activeSlave.career = "a drug mule";
+					V.activeSlave.devotion = jsRandom(-20, 20);
+					V.activeSlave.trust = jsRandom(-100, -25);
+					V.activeSlave.hStyle = "buzzcut";
+					V.activeSlave.hLength = 0;
+					V.activeSlave.intelligence = jsEither(-100, -100, -60, -60, -60, -30, -30);
+					V.activeSlave.health = jsRandom(-80, 20);
+					V.activeSlave.anus = 4;
+					V.activeSlave.chem = 10 * jsRandom(1, 3);
+					V.activeSlave.addict = 100; break;
+				case "arms smuggler":
+					V.activeSlave.origin = "You purchased her life at a prison sale. She was locked away for smuggling arms to forces antagonistic to the Free Cities.";
+					V.prisonCrime = "is incarcerated for being an arms dealer.";
+					V.activeSlave.career = "an arms dealer";
+					V.activeSlave.devotion = jsRandom(-100, -50);
+					V.activeSlave.trust = jsRandom(-60, 25);
+					V.activeSlave.hStyle = "buzzcut";
+					V.activeSlave.hLength = 0;
+					V.activeSlave.intelligence = jsRandom(0, 60);
+					V.activeSlave.health = jsRandom(-20, 20);
+					V.activeSlave.weight = jsRandom(-30, 10);
+					V.activeSlave.waist = jsRandom(-10, 50);
+					V.activeSlave.muscles = jsRandom(10, 40); break;
+				case "drug smuggler":
+					V.activeSlave.origin = "You purchased her life at a prison sale. She was locked away for smuggling drugs into the Free City.";
+					V.prisonCrime = "is incarcerated for smuggling drugs.";
+					V.activeSlave.career = "a drug smuggler";
+					V.activeSlave.devotion = jsRandom(-60, -20);
+					V.activeSlave.trust = jsRandom(-60, 40);
+					V.activeSlave.hStyle = "buzzcut";
+					V.activeSlave.hLength = 0;
+					V.activeSlave.intelligence = jsRandom(-60, 60);
+					V.activeSlave.health = jsRandom(-20, 20); break;
+				case "smuggler":
+					V.activeSlave.origin = "You purchased her life at a prison sale. She was locked away for smuggling goods into the Free City.";
+					V.prisonCrime = "is incarcerated for smuggling goods.";
+					V.activeSlave.career = "a smuggler";
+					V.activeSlave.devotion = jsRandom(-80, -20);
+					V.activeSlave.trust = jsRandom(-100, 40);
+					V.activeSlave.hStyle = "buzzcut";
+					V.activeSlave.hLength = 0;
+					V.activeSlave.intelligence = jsRandom(0, 60);
+					V.activeSlave.health = jsRandom(-20, 40);
+					V.activeSlave.muscles = jsRandom(10, 40); break;
+				case "fence":
+					V.activeSlave.origin = "You purchased her life at a prison sale. She was locked away for dealing in stolen goods.";
+					V.prisonCrime = "is incarcerated for buying and selling stolen goods.";
+					V.activeSlave.career = "a fence";
+					V.activeSlave.devotion = jsRandom(-100, -20);
+					V.activeSlave.trust = jsRandom(-20, 40);
+					V.activeSlave.hStyle = "buzzcut";
+					V.activeSlave.hLength = 0;
+					V.activeSlave.intelligence = jsRandom(-60, 30);
+					V.activeSlave.health = jsRandom(-20, 60); break;
+				case "gang murderer":
+					V.activeSlave.origin = "You purchased her life at a prison sale. She was locked away for gang related murder.";
+					V.prisonCrime = "is incarcerated for gang related murders.";
+					V.activeSlave.career = "a gang member";
+					V.activeSlave.devotion = jsRandom(-100, -50);
+					V.activeSlave.trust = jsRandom(0, 100);
+					V.activeSlave.hStyle = "buzzcut";
+					V.activeSlave.hLength = 0;
+					V.activeSlave.intelligence = jsEither(-30, -20, 0, 0, 20, 40, 60);
+					V.activeSlave.behavioralFlaw = "arrogant";
+					V.activeSlave.health = jsRandom(-20, 20);
+					V.activeSlave.muscles = jsRandom(20, 80);
+					V.activeSlave.chem = 10 * jsRandom(1, 3);
+					V.activeSlave.custom.tattoo = "The prominent emblem of a local gang spans the length of his shoulders.";
+					V.activeSlave.skill.combat = 1; break;
+				case "gang assaulter":
+					V.activeSlave.origin = "You purchased her life at a prison sale. She was locked away for gang related extortion of local businesses.";
+					V.prisonCrime = "is incarcerated for gang related activities.";
+					V.activeSlave.career = "a gang member";
+					V.activeSlave.devotion = jsRandom(-100, -50);
+					V.activeSlave.trust = jsRandom(0, 100);
+					V.activeSlave.hStyle = "buzzcut";
+					V.activeSlave.hLength = 0;
+					V.activeSlave.intelligence = jsRandom(-100, 0);
+					V.activeSlave.behavioralFlaw = "arrogant";
+					V.activeSlave.health = jsRandom(-20, 20);
+					V.activeSlave.muscles = jsRandom(40, 80);
+					V.activeSlave.weight = jsRandom(-30, 10);
+					V.activeSlave.waist = jsRandom(10, 50);
+					V.activeSlave.chem = 10 * jsRandom(1, 3);
+					V.activeSlave.custom.tattoo = "The prominent emblem of a local gang spans the length of his shoulders.";
+					V.activeSlave.skill.combat = 1; break;
+				case "gang bruiser":
+					V.activeSlave.origin = "You purchased her life at a prison sale. She was locked away for a gang related beating of a local businessman.";
+					V.prisonCrime = "is incarcerated for gang related activities.";
+					V.activeSlave.career = "a gang member";
+					V.activeSlave.devotion = jsRandom(-100, -50);
+					V.activeSlave.trust = jsRandom(0, 100);
+					V.activeSlave.hStyle = "buzzcut";
+					V.activeSlave.hLength = 0;
+					V.activeSlave.intelligence = jsRandom(-100, 0);
+					V.activeSlave.behavioralFlaw = "arrogant";
+					V.activeSlave.health = jsRandom(-20, 20);
+					V.activeSlave.muscles = jsRandom(60, 80);
+					V.activeSlave.weight = jsRandom(-30, 10);
+					V.activeSlave.waist = jsRandom(10, 70);
+					V.activeSlave.chem = 10 * jsRandom(1, 3);
+					V.activeSlave.custom.tattoo = "The prominent emblem of a local gang spans the length of his shoulders.";
+					V.activeSlave.skill.combat = 1; break;
+				case "gang thief":
+					V.activeSlave.origin = "You purchased her life at a prison sale. She was locked away for gang related raiding of several local warehouses.";
+					V.prisonCrime = "is incarcerated for gang related activities.";
+					V.activeSlave.career = "a gang member";
+					V.activeSlave.devotion = jsRandom(-100, -50);
+					V.activeSlave.trust = jsRandom(0, 100);
+					V.activeSlave.hStyle = "buzzcut";
+					V.activeSlave.hLength = 0;
+					V.activeSlave.intelligence = jsRandom(-40, 60);
+					V.activeSlave.behavioralFlaw = "arrogant";
+					V.activeSlave.health = jsRandom(-20, 20);
+					V.activeSlave.muscles = jsRandom(20, 80);
+					V.activeSlave.weight = jsRandom(-30, 30);
+					V.activeSlave.waist = jsRandom(10, 70);
+					V.activeSlave.chem = 10 * jsRandom(1, 3);
+					V.activeSlave.custom.tattoo = "The prominent emblem of a local gang spans the length of his shoulders.";
+					V.activeSlave.skill.combat = 1; break;
+				case "drug peddler":
+					V.activeSlave.origin = "You purchased her life at a prison sale. She was locked away for gang related drug distribution.";
+					V.prisonCrime = "is incarcerated for gang related activities.";
+					V.activeSlave.career = "a drug pusher";
+					V.activeSlave.devotion = jsRandom(-100, -50);
+					V.activeSlave.trust = jsRandom(0, 100);
+					V.activeSlave.hStyle = "buzzcut";
+					V.activeSlave.hLength = 0;
+					V.activeSlave.intelligence = jsRandom(-40, 60);
+					V.activeSlave.health = jsRandom(-20, 20);
+					V.activeSlave.muscles = jsRandom(20, 40);
+					V.activeSlave.chem = 10 * jsRandom(3, 5);
+					V.activeSlave.custom.tattoo = "The prominent emblem of a local gang spans the length of his shoulders.";
+					V.activeSlave.skill.combat = 1; break;
+				case "hitman":
+					V.activeSlave.origin = "You purchased her life at a prison sale. She was locked away for a series of high profile murders.";
+					V.prisonCrime = "is incarcerated for a series of murders-for-hire.";
+					V.activeSlave.career = "a hitman";
+					V.activeSlave.devotion = jsRandom(-75, -50);
+					V.activeSlave.trust = jsRandom(-60, 25);
+					V.activeSlave.hStyle = "buzzcut";
+					V.activeSlave.hLength = 0;
+					V.activeSlave.intelligence = jsRandom(0, 100);
+					V.activeSlave.health = jsRandom(-20, 60);
+					V.activeSlave.weight = jsRandom(-30, 10);
+					V.activeSlave.waist = jsRandom(-10, 50);
+					V.activeSlave.muscles = jsRandom(20, 40);
+					V.activeSlave.skill.combat = 1; break;
+				case "assassin":
+					V.activeSlave.origin = "You purchased her life at a prison sale. She was locked away for a high profile assassination.";
+					V.prisonCrime = "is incarcerated for an assassination.";
+					V.activeSlave.career = "an assassin";
+					V.activeSlave.devotion = -100;
+					V.activeSlave.trust = 100;
+					V.activeSlave.hStyle = "buzzcut";
+					V.activeSlave.hLength = 0;
+					V.activeSlave.intelligence = 100;
+					V.activeSlave.health = jsRandom(-20, 60);
+					V.activeSlave.weight = jsRandom(-30, 10);
+					V.activeSlave.waist = jsRandom(-10, 10);
+					V.activeSlave.muscles = jsRandom(20, 40);
+					V.activeSlave.skill.combat = 1; break;
+				case "murder":
+					V.activeSlave.origin = "You purchased her life at a prison sale. She was locked away for repeat murder.";
+					V.prisonCrime = "is incarcerated for murder.";
+					V.activeSlave.career = "a murderer";
+					V.activeSlave.devotion = jsRandom(-100, -50);
+					V.activeSlave.trust = jsRandom(0, 100);
+					V.activeSlave.hStyle = "buzzcut";
+					V.activeSlave.hLength = 0;
+					V.activeSlave.intelligence = jsRandom(-40, 60);
+					V.activeSlave.health = jsRandom(-20, 20);
+					V.activeSlave.muscles = jsRandom(20, 80);
+					V.activeSlave.skill.combat = 1; break;
+				case "manslaughter":
+					V.activeSlave.origin = "You purchased her life at a prison sale. She was locked away for manslaughter.";
+					V.prisonCrime = "is incarcerated for manslaughter.";
+					V.activeSlave.career = "a criminal";
+					V.activeSlave.devotion = jsRandom(-20, 50);
+					V.activeSlave.trust = jsRandom(0, 20);
+					V.activeSlave.hStyle = "buzzcut";
+					V.activeSlave.hLength = 0;
+					V.activeSlave.intelligence = jsRandom(-40, 60);
+					V.activeSlave.health = jsRandom(-40, 0); break;
+				case "attempted murder":
+					V.activeSlave.origin = "You purchased her life at a prison sale. She was locked away for attempted murder of a prominent individual.";
+					V.prisonCrime = "is incarcerated for an attempted murder.";
+					V.activeSlave.career = "a criminal";
+					V.activeSlave.devotion = jsRandom(-20, 50);
+					V.activeSlave.trust = jsRandom(0, 20);
+					V.activeSlave.hStyle = "buzzcut";
+					V.activeSlave.hLength = 0;
+					V.activeSlave.intelligence = jsRandom(-100, 0);
+					V.activeSlave.health = jsRandom(-40, 0);
+			} break;
+		case "military prison":
+			if (V.pedo_mode === 1) {
+				V.activeSlaveOneTimeMinAge = 12;
+				V.activeSlaveOneTimeMaxAge = 18;
+				V.one_time_age_overrides_pedo_mode = 1;
+			} else {
+				V.activeSlaveOneTimeMinAge = 18;
+				if (V.retirementAge > 56) {
+					V.activeSlaveOneTimeMaxAge = 55;
+				} else {
+					V.activeSlaveOneTimeMaxAge = V.retirementAge-2;
+				}
+			}	V.oneTimeDisableDisability = 1;
+			V.activeSlave = GenerateNewSlave();
+
+			/*
+	if (V.activeSlave.dick > 0) {
+		V.activeSlave.chastityPenis = 1
+	}
+if (V.activeSlave.vagina > -1) {
+		V.activeSlave.chastityVagina = 1
+	}	*/
+
+			criminal = setup.militaryCriminalPool.random();
+
+			switch (criminal) {
+				case "spy":
+					V.activeSlave.origin = "You purchased her life at a prison sale. She was a spy captured while infiltrating the Free City.";
+					V.prisonCrime = "is incarcerated for spying.";
+					V.activeSlave.career = "a spy";
+					V.activeSlave.devotion = jsRandom(-20, 20);
+					V.activeSlave.trust = -100;
+					V.activeSlave.hStyle = "buzzcut";
+					V.activeSlave.hLength = 0;
+					V.activeSlave.intelligence = jsRandom(20, 100);
+					V.activeSlave.intelligenceImplant = 30;
+					V.activeSlave.health = jsRandom(-40, 20);
+					V.activeSlave.weight = jsRandom(-30, 10);
+					V.activeSlave.waist = jsRandom(-10, 10);
+					V.activeSlave.muscles = jsRandom(20, 40);
+					V.activeSlave.skill.combat = 1; break;
+				case "terrorist":
+					V.activeSlave.origin = "You purchased her life at a prison sale. She was a terrorist captured when her attempt to destroy a public building and the people within was foiled.";
+					V.prisonCrime = "is incarcerated for terrorism.";
+					V.activeSlave.career = "a terrorist";
+					V.activeSlave.devotion = jsRandom(-80, -20);
+					V.activeSlave.trust = -100;
+					V.activeSlave.hStyle = "buzzcut";
+					V.activeSlave.hLength = 0;
+					V.activeSlave.intelligence = jsRandom(-100, 0);
+					V.activeSlave.health = jsRandom(-60, 20);
+					V.activeSlave.weight = jsRandom(-100, 10);
+					V.activeSlave.waist = jsRandom(-10, 10); break;
+				case "war criminal":
+					V.activeSlave.origin = "You purchased her life at a prison sale. She was a soldier imprisoned for committing unspeakable atrocities, even by the standards of an apocalyptic slave trading society.";
+					V.prisonCrime = "is incarcerated for a series of war crimes.";
+					V.activeSlave.career = "a soldier";
+					V.activeSlave.devotion = jsRandom(-100, -80);
+					V.activeSlave.trust = jsRandom(20, 100);
+					V.activeSlave.hStyle = "buzzcut";
+					V.activeSlave.hLength = 0;
+					V.activeSlave.intelligence = jsRandom(-20, 100);
+					V.activeSlave.intelligenceImplant = 30;
+					V.activeSlave.health = jsRandom(-40, 60);
+					V.activeSlave.weight = jsRandom(-10, 10);
+					V.activeSlave.waist = jsRandom(-10, 10);
+					V.activeSlave.muscles = jsRandom(20, 60);
+					V.activeSlave.skill.combat = 1;
+					V.activeSlave.behavioralFlaw = "arrogant"; break;
+				case "deserter":
+					V.activeSlave.origin = "You purchased her life at a prison sale. She was a soldier that abandoned her post.";
+					V.prisonCrime = "is incarcerated for going A.W.O.L.";
+					V.activeSlave.career = "a soldier";
+					V.activeSlave.devotion = jsRandom(-100, -80);
+					V.activeSlave.trust = jsRandom(-100, -80);
+					V.activeSlave.hStyle = "buzzcut";
+					V.activeSlave.hLength = 0;
+					V.activeSlave.intelligence = jsRandom(-60, 40);
+					V.activeSlave.health = jsRandom(-40, 60);
+					V.activeSlave.weight = jsRandom(-50, 10);
+					V.activeSlave.waist = jsRandom(-10, 10);
+					V.activeSlave.skill.combat = 1; break;
+				case "officer":
+					V.activeSlave.origin = "You purchased her life at a prison sale. She was an officer that over-extended her forces and was overwhelmed.";
+					V.prisonCrime = "is a captured enemy officer.";
+					V.activeSlave.career = "a military officer";
+					V.activeSlave.devotion = jsRandom(-40, 20);
+					V.activeSlave.trust = jsRandom(-50, 0);
+					V.activeSlave.hStyle = "buzzcut";
+					V.activeSlave.hLength = 0;
+					V.activeSlave.intelligence = jsRandom(0, 100);
+					V.activeSlave.intelligenceImplant = 15;
+					V.activeSlave.health = jsRandom(0, 60);
+					V.activeSlave.weight = jsRandom(-10, 10);
+					V.activeSlave.waist = jsRandom(-10, 10);
+					V.activeSlave.muscles = jsRandom(20, 40);
+					V.activeSlave.skill.combat = 1; break;
+				case "specOps":
+					V.activeSlave.origin = "You purchased her life at a prison sale. She was a special operations officer that acted on bad intel and ended up captured.";
+					V.prisonCrime = "is a captured enemy special operations officer.";
+					V.activeSlave.career = "spec ops";
+					V.activeSlave.devotion = jsRandom(-80, -50);
+					V.activeSlave.trust = jsRandom(-100, 100);
+					V.activeSlave.hStyle = "buzzcut";
+					V.activeSlave.hLength = 0;
+					V.activeSlave.intelligence = jsEither(60, 80, 100);
+					V.activeSlave.intelligenceImplant = 30;
+					V.activeSlave.health = jsRandom(0, 60);
+					V.activeSlave.weight = jsRandom(-10, 10);
+					V.activeSlave.waist = jsRandom(-10, 10);
+					V.activeSlave.muscles = jsRandom(30, 60);
+					V.activeSlave.skill.combat = 1; break;
+				case "sniper":
+					V.activeSlave.origin = "You purchased her life at a prison sale. She was an enemy sniper that was captured after her company lost to your military might.";
+					V.prisonCrime = "is a captured enemy sniper.";
+					V.activeSlave.career = "a sniper";
+					V.activeSlave.devotion = jsRandom(-50, -20);
+					V.activeSlave.trust = jsRandom(-100, -80);
+					V.activeSlave.hStyle = "buzzcut";
+					V.activeSlave.hLength = 0;
+					V.activeSlave.intelligence = jsEither(60, 80, 100);
+					V.activeSlave.intelligenceImplant = 20;
+					V.activeSlave.health = jsRandom(0, 20);
+					V.activeSlave.weight = jsRandom(-10, 10);
+					V.activeSlave.waist = jsRandom(-10, 10);
+					V.activeSlave.muscles = jsRandom(30, 60);
+					V.activeSlave.skill.combat = 1;
+					if (V.activeSlave.boobs > 400) {
+						V.activeSlave.boobs = 400;
+					}
+					break;
+				case "gunner":
+					V.activeSlave.origin = "You purchased her life at a prison sale. She was an enemy machine gunner that was captured after her company lost to your military might.";
+					V.prisonCrime = "is a captured enemy gunner.";
+					V.activeSlave.career = "a soldier";
+					V.activeSlave.devotion = jsRandom(-50, -20);
+					V.activeSlave.trust = jsRandom(-50, -20);
+					V.activeSlave.hStyle = "buzzcut";
+					V.activeSlave.hLength = 0;
+					V.activeSlave.intelligence = jsRandom(0, 90);
+					V.activeSlave.intelligenceImplant = 15;
+					V.activeSlave.health = jsRandom(0, 20);
+					V.activeSlave.weight = jsRandom(-10, 10);
+					V.activeSlave.waist = jsRandom(-10, 10);
+					V.activeSlave.muscles = jsRandom(50, 60);
+					V.activeSlave.skill.combat = 1; break;
+				case "soldier":
+					V.activeSlave.origin = "You purchased her life at a prison sale. She was an enemy soldier that was captured after her company lost to your military might.";
+					V.prisonCrime = "is a captured enemy soldier.";
+					V.activeSlave.career = "a soldier";
+					V.activeSlave.devotion = jsRandom(-100, -20);
+					V.activeSlave.trust = jsRandom(-50, 20);
+					V.activeSlave.hStyle = "buzzcut";
+					V.activeSlave.hLength = 0;
+					V.activeSlave.intelligence = jsRandom(0, 60);
+					V.activeSlave.intelligenceImplant = 15;
+					V.activeSlave.health = jsRandom(0, 40);
+					V.activeSlave.weight = jsRandom(-10, 10);
+					V.activeSlave.waist = jsRandom(-10, 10);
+					V.activeSlave.muscles = jsRandom(30, 60);
+					V.activeSlave.skill.combat = 1; break;
+				case "private":
+					V.activeSlave.origin = "You purchased her life at a prison sale. She was an enemy grunt that was captured after her company lost to your military might.";
+					V.prisonCrime = "is a captured enemy private.";
+					V.activeSlave.career = "a private";
+					V.activeSlave.devotion = jsRandom(-40, -20);
+					V.activeSlave.trust = jsRandom(-100, -80);
+					V.activeSlave.hStyle = "buzzcut";
+					V.activeSlave.hLength = 0;
+					V.activeSlave.intelligence = jsRandom(-90, 70);
+					V.activeSlave.intelligenceImplant = 15;
+					V.activeSlave.health = jsRandom(0, 20);
+					V.activeSlave.weight = jsRandom(-10, 10);
+					V.activeSlave.waist = jsRandom(-10, 10);
+					V.activeSlave.muscles = jsRandom(10, 40);
+					V.activeSlave.skill.combat = 1;
+			} break;
+		case "white collar":
+			if (V.pedo_mode === 1) {
+				V.activeSlaveOneTimeMinAge = 16;
+				V.activeSlaveOneTimeMaxAge = 45;
+				V.one_time_age_overrides_pedo_mode = 1;
+			} else {
+				V.activeSlaveOneTimeMinAge = 25;
+				if (V.retirementAge > 66) {
+					V.activeSlaveOneTimeMaxAge = 65;
+				} else {
+					V.activeSlaveOneTimeMaxAge = V.retirementAge-2;
+				}
+			}	V.oneTimeDisableDisability = 1;
+			V.activeSlave = GenerateNewSlave();
+
+			criminal = setup.whiteCollarCriminalPool.random();
+
+			switch (criminal) {
+				case "racketeering":
+					V.activeSlave.career = jsEither("a businessman", "a lawyer", "a stockbroker");
+					V.activeSlave.origin = `You purchased her life at a prison sale. She was ${ V.activeSlave.career } convicted of racketeering. `;
+					V.prisonCrime = "is incarcerated for racketeering.";
+					V.activeSlave.devotion = jsRandom(-20, 20);
+					V.activeSlave.trust = jsRandom(-20, 20);
+					V.activeSlave.intelligence = jsRandom(0, 99);
+					V.activeSlave.intelligenceImplant = 15;
+					V.activeSlave.health = jsRandom(20, 60); break;
+				case "bribery":
+					V.activeSlave.career = jsEither("a businessman", "a lawyer", "a stockbroker");
+					V.activeSlave.origin = `You purchased her life at a prison sale. She was ${ V.activeSlave.career } arrested and sentenced for bribing government officials. `;
+					V.prisonCrime = "is incarcerated for bribery.";
+					V.activeSlave.devotion = jsRandom(-50, -20);
+					V.activeSlave.trust = jsRandom(20, 50);
+					V.activeSlave.intelligence = jsRandom(0, 99);
+					V.activeSlave.intelligenceImplant = 15;
+					V.activeSlave.health = jsRandom(20, 60);
+					V.activeSlave.behavioralFlaw = "arrogant"; break;
+				case "blackmail":
+					V.activeSlave.career = jsEither("a businessman", "a lawyer", "a stockbroker");
+					V.activeSlave.origin = `You purchased her life at a prison sale. She was ${ V.activeSlave.career } convicted of blackmail against a sorority of university students, forcing them to do sexual favors. `;
+					V.prisonCrime = "is incarcerated for blackmail.";
+					V.activeSlave.devotion = jsRandom(-20, 20);
+					V.activeSlave.trust = jsRandom(20, 50);
+					V.activeSlave.intelligence = jsRandom(0, 99);
+					V.activeSlave.intelligenceImplant = 15;
+					V.activeSlave.health = jsRandom(20, 60);
+					V.activeSlave.behavioralFlaw = "arrogant";
+					V.activeSlave.fetish = "sadist";
+					V.activeSlave.fetishStrength = 100; break;
+				case "embezzlement":
+					V.activeSlave.career = jsEither("a businessman", "a lawyer", "a stockbroker");
+					V.activeSlave.origin = `You purchased her life at a prison sale. She was ${ V.activeSlave.career } involved in a scandal and convicted of embezzlement. `;
+					V.prisonCrime = "is incarcerated for embezzlement.";
+					V.activeSlave.devotion = jsRandom(0, 20);
+					V.activeSlave.trust = jsRandom(-10, 10);
+					V.activeSlave.intelligence = jsRandom(0, 99);
+					V.activeSlave.intelligenceImplant = 15;
+					V.activeSlave.health = jsRandom(20, 60); break;
+				case "fraud":
+					V.activeSlave.career = jsEither("a businessman", "a lawyer", "a stockbroker");
+					V.activeSlave.origin = `You purchased her life at a prison sale. She was ${ V.activeSlave.career } convicted of fraud. `;
+					V.prisonCrime = "is incarcerated for fraud.";
+					V.activeSlave.devotion = jsRandom(20, 40);
+					V.activeSlave.trust = jsRandom(20, 50);
+					V.activeSlave.intelligence = jsRandom(0, 99);
+					V.activeSlave.intelligenceImplant = 15;
+					V.activeSlave.health = jsRandom(20, 60); break;
+				case "tax evasion":
+					V.activeSlave.career = jsEither("a businessman", "a lawyer", "a stockbroker");
+					V.activeSlave.origin = `You purchased her life at a prison sale. She was ${ V.activeSlave.career } convicted of tax evasion. `;
+					V.prisonCrime = "is incarcerated for tax evasion.";
+					V.activeSlave.devotion = jsRandom(-20, 0);
+					V.activeSlave.trust = jsRandom(20, 50);
+					V.activeSlave.intelligence = jsRandom(0, 99);
+					V.activeSlave.intelligenceImplant = 15;
+					V.activeSlave.health = jsRandom(20, 60); break;
+				case "malpractice":
+					V.activeSlave.career = jsEither("a doctor", "a nurse", "a physician");
+					V.activeSlave.origin = `You purchased her life at a prison sale. She was ${ V.activeSlave.career } that took advantage of her position to molest and modify her patients. `;
+					V.prisonCrime = "is incarcerated for malpractice.";
+					V.activeSlave.devotion = jsRandom(-50, 0);
+					V.activeSlave.trust = jsRandom(-100, -50);
+					V.activeSlave.intelligence = jsRandom(55, 99);
+					V.activeSlave.intelligenceImplant = 30;
+					V.activeSlave.health = jsRandom(-40, 20); break;
+				case "abuse of power":
+					V.activeSlave.career = jsEither("a judge", "a lawyer", "a police officer");
+					V.activeSlave.origin = `You purchased her life at a prison sale. She was ${ V.activeSlave.career } that took advantage of her position for her own benefit. `;
+					V.prisonCrime = "is incarcerated for abuse of power.";
+					V.activeSlave.devotion = jsRandom(-100, 0);
+					V.activeSlave.trust = jsRandom(-50, 50);
+					V.activeSlave.intelligence = jsRandom(60, 99);
+					V.activeSlave.intelligenceImplant = 30;
+					V.activeSlave.health = jsRandom(20, 60);
+					V.activeSlave.behavioralFlaw = "arrogant";
+			} break;
+		case "low tier criminals":
+			if (V.pedo_mode === 1) {
+				V.activeSlaveOneTimeMinAge = 6;
+				V.activeSlaveOneTimeMaxAge = 18;
+				V.one_time_age_overrides_pedo_mode = 1;
+			} else {
+				V.activeSlaveOneTimeMinAge = 16;
+				if (V.retirementAge > 56) {
+					V.activeSlaveOneTimeMaxAge = 55;
+				} else {
+					V.activeSlaveOneTimeMaxAge = V.retirementAge-2;
+				}
+			}	V.oneTimeDisableDisability = 1;
+			V.activeSlave = GenerateNewSlave();
+
+			/*
+	if (V.activeSlave.dick > 0) {
+		V.activeSlave.chastityPenis = 1
+	}
+if (V.activeSlave.vagina > -1) {
+		V.activeSlave.chastityVagina = 1
+	}	*/
+
+			criminal = setup.pettyCriminalPool.random();
+
+			switch (criminal) {
+				case "robbery":
+					V.activeSlave.origin = "You purchased her life at a prison sale. She was locked away for robbery.";
+					V.prisonCrime = "is incarcerated for robbery.";
+					V.activeSlave.devotion = jsRandom(-20, 20);
+					V.activeSlave.trust = jsRandom(-60, 60);
+					V.activeSlave.hStyle = "buzzcut";
+					V.activeSlave.hLength = 0;
+					V.activeSlave.intelligence = jsEither(-100, -100, -80, -60, -40, -30, -20, -5, 0, 5, 20);
+					V.activeSlave.health = jsRandom(-20, 20); break;
+				case "armed robbery":
+					V.activeSlave.origin = "You purchased her life at a prison sale. She was locked away for armed robbery.";
+					V.prisonCrime = "is incarcerated for armed robbery.";
+					V.activeSlave.devotion = jsRandom(-50, -20);
+					V.activeSlave.trust = jsRandom(-20, 60);
+					V.activeSlave.hStyle = "buzzcut";
+					V.activeSlave.hLength = 0;
+					V.activeSlave.intelligence = jsRandom(-80, 60);
+					V.activeSlave.health = jsRandom(-10, 20);
+					V.activeSlave.weight = jsRandom(-10, 10);
+					V.activeSlave.waist = jsRandom(-10, 10);
+					V.activeSlave.muscles = jsRandom(10, 40);
+					V.activeSlave.skill.combat = 1; break;
+				case "murder":
+					if (jsRandom(1, 100) > 70) {
+						V.activeSlave.origin = "You purchased her life at a prison sale. She was locked away for murder. Her actions weigh heavily on her conscience.";
+						V.activeSlave.devotion = 0;
+						V.activeSlave.trust = 0;
+						V.activeSlave.health = jsRandom(-60, -20);
+						V.activeSlave.fetish = "mindbroken";
+					} else {
+						V.activeSlave.origin = "You purchased her life at a prison sale. She was locked away for murder.";
+						V.activeSlave.devotion = jsRandom(-50, -20);
+						V.activeSlave.trust = jsRandom(-20, 60);
+						V.activeSlave.health = jsRandom(-10, 20);
+					}		V.prisonCrime = "is incarcerated for murder.";
+					V.activeSlave.hStyle = "buzzcut";
+					V.activeSlave.hLength = 0;
+					V.activeSlave.intelligence = jsRandom(-80, 70); break;
+				case "arson":
+					if (jsRandom(1, 100) > 50) {
+						V.activeSlave.origin = "You purchased her life at a prison sale. She was locked away for arson. Her actions, and those she inadvertently killed, weigh heavily on her conscience.";
+						V.activeSlave.devotion = 0;
+						V.activeSlave.trust = 0;
+						V.activeSlave.health = jsRandom(-80, -20);
+						V.activeSlave.fetish = "mindbroken";
+					} else {
+						V.activeSlave.origin = "You purchased her life at a prison sale. She was locked away for arson.";
+						V.activeSlave.devotion = jsRandom(-70, -50);
+						V.activeSlave.trust = jsRandom(0, 60);
+						V.activeSlave.health = jsRandom(-10, 20);
+					}		V.prisonCrime = "is incarcerated for arson.";
+					V.activeSlave.hStyle = "buzzcut";
+					V.activeSlave.hLength = 0;
+					V.activeSlave.intelligence = jsRandom(-80, 70); break;
+				case "burglary":
+					V.activeSlave.origin = "You purchased her life at a prison sale. She was locked away for burglary.";
+					V.prisonCrime = "is incarcerated for burglary.";
+					V.activeSlave.devotion = jsRandom(-20, 20);
+					V.activeSlave.trust = jsRandom(-60, 60);
+					V.activeSlave.hStyle = "buzzcut";
+					V.activeSlave.hLength = 0;
+					V.activeSlave.intelligence = jsRandom(-100, 20);
+					V.activeSlave.health = jsRandom(-20, 20); break;
+				case "cat burglar":
+					V.activeSlave.origin = "You purchased her life at a prison sale. She was locked away for repeat burglary.";
+					V.prisonCrime = "is incarcerated for career burglary.";
+					V.activeSlave.career = "a cat burglar";
+					V.activeSlave.devotion = jsRandom(-20, 20);
+					V.activeSlave.trust = jsRandom(-60, 60);
+					V.activeSlave.hStyle = "buzzcut";
+					V.activeSlave.hLength = 0;
+					V.activeSlave.intelligence = jsEither(60, 80, 100);
+					V.activeSlave.health = jsRandom(0, 60);
+					V.activeSlave.weight = jsRandom(-10, 10);
+					V.activeSlave.waist = jsRandom(-10, 10);
+					V.activeSlave.muscles = jsRandom(10, 40); break;
+				case "petty theft":
+					V.activeSlave.origin = "You purchased her life at a prison sale. She was locked away for petty theft.";
+					V.prisonCrime = "is incarcerated for petty theft.";
+					V.activeSlave.career = "a thief";
+					V.activeSlave.devotion = jsRandom(-20, 20);
+					V.activeSlave.trust = jsRandom(-100, -60);
+					V.activeSlave.hStyle = "buzzcut";
+					V.activeSlave.hLength = 0;
+					V.activeSlave.intelligence = jsEither(-100, -100, -80, -60, -40, -30, -20, -5, 0, 5, 20);
+					V.activeSlave.health = jsRandom(-20, 20); break;
+				case "theft":
+					V.activeSlave.origin = "You purchased her life at a prison sale. She was locked away for theft.";
+					V.prisonCrime = "is incarcerated for theft.";
+					V.activeSlave.career = "a thief";
+					V.activeSlave.devotion = jsRandom(-50, 0);
+					V.activeSlave.trust = jsRandom(-100, -60);
+					V.activeSlave.hStyle = "buzzcut";
+					V.activeSlave.hLength = 0;
+					V.activeSlave.intelligence = jsRandom(-80, 70);
+					V.activeSlave.health = jsRandom(-20, 20); break;
+				case "pickpocketing":
+					V.activeSlave.origin = "You purchased her life at a prison sale. She was locked away for repeat pick-pocketing.";
+					V.prisonCrime = "is incarcerated for pick-pocketing.";
+					V.activeSlave.career = "a pick-pocket";
+					V.activeSlave.devotion = jsRandom(-20, 0);
+					V.activeSlave.trust = jsRandom(-100, -60);
+					V.activeSlave.hStyle = "buzzcut";
+					V.activeSlave.hLength = 0;
+					V.activeSlave.intelligence = jsRandom(-80, 70);
+					V.activeSlave.health = jsRandom(-60, 0); break;
+				case "manslaughter":
+					if (jsRandom(1, 100) > 60) {
+						V.activeSlave.origin = "You purchased her life at a prison sale. She was locked away for manslaughter. Her actions weigh heavily on her conscience.";
+						V.activeSlave.devotion = 0;
+						V.activeSlave.trust = 0;
+						V.activeSlave.health = jsRandom(-80, -20);
+						V.activeSlave.fetish = "mindbroken";
+					} else {
+						V.activeSlave.origin = "You purchased her life at a prison sale. She was locked away for manslaughter.";
+						V.activeSlave.devotion = jsRandom(-70, -50);
+						V.activeSlave.trust = jsRandom(0, 60);
+						V.activeSlave.health = jsRandom(-10, 20);
+					}		V.prisonCrime = "is incarcerated for manslaughter.";
+					V.activeSlave.hStyle = "buzzcut";
+					V.activeSlave.hLength = 0;
+					V.activeSlave.intelligence = jsRandom(-80, 70); break;
+				case "blackmail":
+					V.activeSlave.origin = "You purchased her life at a prison sale. She was locked away for blackmail.";
+					V.prisonCrime = "is incarcerated for blackmail.";
+					V.activeSlave.devotion = jsRandom(-100, -50);
+					V.activeSlave.trust = jsRandom(-100, -60);
+					V.activeSlave.hStyle = "buzzcut";
+					V.activeSlave.hLength = 0;
+					V.activeSlave.intelligence = jsEither(60, 80, 100);
+					V.activeSlave.health = jsRandom(0, 60); break;
+				case "assault":
+					V.activeSlave.origin = "You purchased her life at a prison sale. She was locked away for assault.";
+					V.prisonCrime = "is incarcerated for assault.";
+					V.activeSlave.devotion = jsRandom(-70, -50);
+					V.activeSlave.trust = jsRandom(-20, 60);
+					V.activeSlave.hStyle = "buzzcut";
+					V.activeSlave.hLength = 0;
+					V.activeSlave.health = jsRandom(-10, 40);
+					V.activeSlave.weight = jsRandom(-10, 10);
+					V.activeSlave.waist = jsRandom(-10, 10);
+					V.activeSlave.muscles = jsRandom(30, 60);
+					V.activeSlave.skill.combat = 1; break;
+				case "battery":
+					V.activeSlave.origin = "You purchased her life at a prison sale. She was locked away for battery.";
+					V.prisonCrime = "is incarcerated for battery.";
+					V.activeSlave.devotion = jsRandom(-100, -70);
+					V.activeSlave.trust = jsRandom(20, 60);
+					V.activeSlave.hStyle = "buzzcut";
+					V.activeSlave.hLength = 0;
+					V.activeSlave.health = jsRandom(-10, 40);
+					V.activeSlave.weight = jsRandom(-10, 10);
+					V.activeSlave.waist = jsRandom(-10, 10);
+					V.activeSlave.muscles = jsRandom(40, 60);
+					V.activeSlave.skill.combat = 1; break;
+				case "tax evasion":
+					V.activeSlave.origin = "You purchased her life at a prison sale. She was locked away for tax evasion.";
+					V.prisonCrime = "is incarcerated for tax evasion.";
+					V.activeSlave.devotion = jsRandom(-20, 20);
+					V.activeSlave.trust = jsRandom(0, 60);
+					V.activeSlave.hStyle = "buzzcut";
+					V.activeSlave.hLength = 0;
+					V.activeSlave.intelligence = Intelligence.random({limitIntelligence: [0, 100]});
+					V.activeSlave.health = jsRandom(0, 60); break;
+				case "rape":
+					V.activeSlave.origin = "You purchased her life at a prison sale. She was locked away for rape.";
+					V.prisonCrime = "is incarcerated for rape.";
+					V.activeSlave.devotion = jsRandom(-100, -50);
+					V.activeSlave.trust = jsRandom(-20, 80);
+					V.activeSlave.hStyle = "buzzcut";
+					V.activeSlave.hLength = 0;
+					V.activeSlave.health = jsRandom(-10, 40);
+					V.activeSlave.weight = jsRandom(-10, 10);
+					V.activeSlave.waist = jsRandom(-10, 10);
+					V.activeSlave.muscles = jsRandom(30, 60);
+					V.activeSlave.fetish = "sadist";
+					V.activeSlave.fetishStrength = 80; break;
+				case "child molestation":
+					V.activeSlave.origin = "You purchased her life at a prison sale. She was locked away for child molestation.";
+					V.prisonCrime = "is incarcerated for child molestation.";
+					if (V.minimumSlaveAge < 13) {
+						V.activeSlave.devotion = jsRandom(-20, 0);
+						V.activeSlave.trust = jsRandom(-20, 0);
+					} else {
+						V.activeSlave.devotion = jsRandom(-50, -20);
+						V.activeSlave.trust = jsRandom(-100, 0);
+					}		V.activeSlave.hStyle = "buzzcut";
+					V.activeSlave.hLength = 0;
+					V.activeSlave.health = jsRandom(-10, 40);
+					V.activeSlave.muscles = jsRandom(10, 40);
+					V.activeSlave.fetish = "sadist";
+					V.activeSlave.fetishStrength = 80; break;
+				case "child abuse":
+					V.activeSlave.origin = "You purchased her life at a prison sale. She was locked away for child abuse.";
+					V.prisonCrime = "is incarcerated for child abuse.";
+					if (V.minimumSlaveAge < 13) {
+						V.activeSlave.devotion = jsRandom(-20, 0);
+						V.activeSlave.trust = jsRandom(-20, 50);
+					} else {
+						V.activeSlave.devotion = jsRandom(-50, -20);
+						V.activeSlave.trust = jsRandom(-50, 50);
+					}		V.activeSlave.hStyle = "buzzcut";
+					V.activeSlave.hLength = 0;
+					V.activeSlave.health = jsRandom(-10, 40);
+					V.activeSlave.muscles = jsRandom(10, 40);
+					V.activeSlave.fetish = "sadist";
+					V.activeSlave.fetishStrength = 100;
+					V.activeSlave.sexualFlaw = "malicious"; break;
+				case "domestic abuse":
+					V.activeSlave.origin = "You purchased her life at a prison sale. She was locked away for domestic abuse.";
+					V.prisonCrime = "is incarcerated for domestic abuse.";
+					V.activeSlave.devotion = jsRandom(-50, -20);
+					V.activeSlave.trust = jsRandom(-100, 50);
+					V.activeSlave.hStyle = "buzzcut";
+					V.activeSlave.hLength = 0;
+					V.activeSlave.health = jsRandom(-10, 40);
+					V.activeSlave.muscles = jsRandom(10, 40);
+					V.activeSlave.fetish = "sadist";
+					V.activeSlave.fetishStrength = 50; break;
+				case "illegal immigrant":
+					V.activeSlave.origin = "You purchased her life at a prison sale. She was locked away for illegal immigration.";
+					V.prisonCrime = "is incarcerated for illegally entering the Free City.";
+					V.activeSlave.career = "a refugee";
+					V.activeSlave.devotion = jsRandom(0, 20);
+					V.activeSlave.trust = jsRandom(-100, -50);
+					V.activeSlave.hStyle = "buzzcut";
+					V.activeSlave.hLength = 0;
+					V.activeSlave.health = jsRandom(-90, -40); break;
+				case "mule":
+					V.activeSlave.origin = "You purchased her life at a prison sale. She was locked away for smuggling illegal contraband inside her body.";
+					V.prisonCrime = "is incarcerated for smuggling drugs in her body.";
+					V.activeSlave.career = "a drug mule";
+					V.activeSlave.devotion = jsRandom(-20, 20);
+					V.activeSlave.trust = jsRandom(0, 25);
+					V.activeSlave.hStyle = "buzzcut";
+					V.activeSlave.hLength = 0;
+					V.activeSlave.health = jsRandom(-80, 20);
+					if (V.activeSlave.ovaries === 1 && V.activeSlave.vagina > 0) {
+						V.activeSlave.vagina = 4;
+						V.activeSlave.bellySag += 5;
+					}		V.activeSlave.anus = 4;
+					V.activeSlave.bellySag += 5;
+					V.activeSlave.chem = 10 * jsRandom(1, 3);
+					V.activeSlave.addict = 100;
+			}
+			break;
+		default:
+			r += "Someone messed up. market is not known.";
+			break;
+	}
+	generatePronouns(V.activeSlave);
+	return r;
+};
diff --git a/src/js/slaveGenerationJS.js b/src/js/slaveGenerationJS.js
index 4bed7f0d77090ad0574725420b3a2a95abb3240c..02d54368600bed8e951be2dc238065f0eb67f906 100644
--- a/src/js/slaveGenerationJS.js
+++ b/src/js/slaveGenerationJS.js
@@ -1523,3 +1523,17 @@ window.generatePuberty = function(slave) {
 		slave.pubertyXY = 0;
 	}
 };
+
+window.ageImplantAdjustment = function(slave) {
+	if (slave.visualAge > 80) {
+		slave.visualAge -= 40;
+	} else if (slave.visualAge >= 70) {
+		slave.visualAge -= 30;
+	} else if (slave.visualAge > 50) {
+		slave.visualAge -= 20;
+	} else if (slave.visualAge > 36) {
+		slave.visualAge -= 10;
+	} else {
+		slave.visualAge -= 5;
+	}
+};
diff --git a/src/neighbor/arcologyOpinion.js b/src/neighbor/arcologyOpinion.js
new file mode 100644
index 0000000000000000000000000000000000000000..7984ae34aa4a54911c93b3d6ad91fa70611bd814
--- /dev/null
+++ b/src/neighbor/arcologyOpinion.js
@@ -0,0 +1,338 @@
+window.arcologyOpinion = function() {
+	const V = State.variables;
+
+	if (typeof V.activeArcology.FSNull === "undefined") {V.activeArcology.FSNull = "unset";}
+	if (typeof V.targetArcology.FSNull === "undefined") {V.targetArcology.FSNull = "unset";}
+
+	let opinion = 0;
+
+	if (V.activeArcology.FSSubjugationist !== "unset") {
+		if (V.targetArcology.FSSubjugationist !== "unset") {
+			if (V.targetArcology.FSSubjugationistRace === V.activeArcology.FSSubjugationistRace) {
+				opinion += V.activeArcology.FSSubjugationist;
+				opinion += V.targetArcology.FSSubjugationist;
+			} else {
+				opinion -= V.activeArcology.FSSubjugationist;
+				opinion -= V.targetArcology.FSSubjugationist;
+			}
+		} else if (V.targetArcology.FSSupremacist !== "unset") {
+			if (V.targetArcology.FSSupremacistRace === V.activeArcology.FSSubjugationistRace) {
+				opinion -= V.activeArcology.FSSubjugationist;
+				opinion -= V.targetArcology.FSSupremacist;
+			}
+		}
+	}
+	if (V.activeArcology.FSSupremacist !== "unset") {
+		if (V.targetArcology.FSSupremacist !== "unset") {
+			if (V.targetArcology.FSSupremacistRace === V.activeArcology.FSSupremacistRace) {
+				opinion += V.activeArcology.FSSupremacist;
+				opinion += V.targetArcology.FSSupremacist;
+			} else {
+				opinion -= V.activeArcology.FSSupremacist;
+				opinion -= V.targetArcology.FSSupremacist;
+			}
+		} else if (V.targetArcology.FSSubjugationist !== "unset") {
+			if (V.targetArcology.FSSubjugationistRace === V.activeArcology.FSSupremacistRace) {
+				opinion -= V.activeArcology.FSSupremacist;
+				opinion -= V.targetArcology.FSSubjugationist;
+			}
+		}
+	}
+	if (V.activeArcology.FSRepopulationFocus !== "unset") {
+		if (V.targetArcology.FSRepopulationFocus !== "unset") {
+			opinion += V.activeArcology.FSRepopulationFocus;
+			opinion += V.targetArcology.FSRepopulationFocus;
+		} else if (V.targetArcology.FSRestart !== "unset") {
+			opinion -= V.activeArcology.FSRepopulationFocus;
+			opinion -= V.targetArcology.FSRestart;
+		}
+	} else if (V.activeArcology.FSRestart !== "unset") {
+		if (V.targetArcology.FSRestart !== "unset") {
+			opinion += V.activeArcology.FSRestart;
+			opinion += V.targetArcology.FSRestart;
+		} else if (V.targetArcology.FSRepopulationFocus !== "unset") {
+			opinion -= V.activeArcology.FSRestart;
+			opinion -= V.targetArcology.FSRepopulationFocus;
+		}
+	}
+	if (V.activeArcology.FSGenderRadicalist !== "unset") {
+		if (V.targetArcology.FSGenderRadicalist !== "unset") {
+			opinion += V.activeArcology.FSGenderRadicalist;
+			opinion += V.targetArcology.FSGenderRadicalist;
+		} else if (V.targetArcology.FSGenderFundamentalist !== "unset") {
+			opinion -= V.activeArcology.FSGenderRadicalist;
+			opinion -= V.targetArcology.FSGenderFundamentalist;
+		}
+	} else if (V.activeArcology.FSGenderFundamentalist !== "unset") {
+		if (V.targetArcology.FSGenderFundamentalist !== "unset") {
+			opinion += V.activeArcology.FSGenderFundamentalist;
+			opinion += V.targetArcology.FSGenderFundamentalist;
+		} else if (V.targetArcology.FSGenderRadicalist !== "unset") {
+			opinion -= V.activeArcology.FSGenderFundamentalist;
+			opinion -= V.targetArcology.FSGenderRadicalist;
+		}
+	}
+	if (V.activeArcology.FSPaternalist !== "unset") {
+		if (V.targetArcology.FSPaternalist !== "unset") {
+			opinion += V.activeArcology.FSPaternalist;
+			opinion += V.targetArcology.FSPaternalist;
+		} else if (V.targetArcology.FSDegradationist !== "unset") {
+			opinion -= V.activeArcology.FSPaternalist;
+			opinion -= V.targetArcology.FSDegradationist;
+		}
+	} else if (V.activeArcology.FSDegradationist !== "unset") {
+		if (V.targetArcology.FSDegradationist !== "unset") {
+			opinion += V.activeArcology.FSDegradationist;
+			opinion += V.targetArcology.FSDegradationist;
+		} else if (V.targetArcology.FSPaternalist !== "unset") {
+			opinion -= V.activeArcology.FSDegradationist;
+			opinion -= V.targetArcology.FSPaternalist;
+		}
+	}
+	if (V.activeArcology.FSBodyPurist !== "unset") {
+		if (V.targetArcology.FSBodyPurist !== "unset") {
+			opinion += V.activeArcology.FSBodyPurist;
+			opinion += V.targetArcology.FSBodyPurist;
+		} else if (V.targetArcology.FSTransformationFetishist !== "unset") {
+			opinion -= V.activeArcology.FSBodyPurist;
+			opinion -= V.targetArcology.FSTransformationFetishist;
+		}
+	} else if (V.activeArcology.FSTransformationFetishist !== "unset") {
+		if (V.targetArcology.FSTransformationFetishist !== "unset") {
+			opinion += V.activeArcology.FSTransformationFetishist;
+			opinion += V.targetArcology.FSTransformationFetishist;
+		} else if (V.targetArcology.FSBodyPurist !== "unset") {
+			opinion -= V.activeArcology.FSTransformationFetishist;
+			opinion -= V.targetArcology.FSBodyPurist;
+		}
+	}
+	if (V.activeArcology.FSYouthPreferentialist !== "unset") {
+		if (V.targetArcology.FSYouthPreferentialist !== "unset") {
+			opinion += V.activeArcology.FSYouthPreferentialist;
+			opinion += V.targetArcology.FSYouthPreferentialist;
+		} else if (V.targetArcology.FSMaturityPreferentialist !== "unset") {
+			opinion -= V.activeArcology.FSYouthPreferentialist;
+			opinion -= V.targetArcology.FSMaturityPreferentialist;
+		}
+	} else if (V.activeArcology.FSMaturityPreferentialist !== "unset") {
+		if (V.targetArcology.FSMaturityPreferentialist !== "unset") {
+			opinion += V.activeArcology.FSMaturityPreferentialist;
+			opinion += V.targetArcology.FSMaturityPreferentialist;
+		} else if (V.targetArcology.FSYouthPreferentialist !== "unset") {
+			opinion -= V.activeArcology.FSMaturityPreferentialist;
+			opinion -= V.targetArcology.FSYouthPreferentialist;
+		}
+	}
+	if (V.activeArcology.FSSlimnessEnthusiast !== "unset") {
+		if (V.targetArcology.FSSlimnessEnthusiast !== "unset") {
+			opinion += V.activeArcology.FSSlimnessEnthusiast;
+			opinion += V.targetArcology.FSSlimnessEnthusiast;
+		} else if (V.targetArcology.FSAssetExpansionist !== "unset") {
+			opinion -= V.activeArcology.FSSlimnessEnthusiast;
+			opinion -= V.targetArcology.FSAssetExpansionist;
+		}
+	} else if (V.activeArcology.FSAssetExpansionist !== "unset") {
+		if (V.targetArcology.FSAssetExpansionist !== "unset") {
+			opinion += V.activeArcology.FSAssetExpansionist;
+			opinion += V.targetArcology.FSAssetExpansionist;
+		} else if (V.targetArcology.FSSlimnessEnthusiast !== "unset") {
+			opinion -= V.activeArcology.FSAssetExpansionist;
+			opinion -= V.targetArcology.FSSlimnessEnthusiast;
+		}
+	}
+	if (V.activeArcology.FSPastoralist !== "unset") {
+		if (V.targetArcology.FSPastoralist !== "unset") {
+			opinion += V.activeArcology.FSPastoralist;
+			opinion += V.targetArcology.FSPastoralist;
+		} else if (V.targetArcology.FSCummunism !== "unset") {
+			opinion -= V.activeArcology.FSPastoralist;
+			opinion -= V.targetArcology.FSCummunism;
+		}
+	} else if (V.activeArcology.FSCummunism !== "unset") {
+		if (V.targetArcology.FSCummunism !== "unset") {
+			opinion += V.activeArcology.FSCummunism;
+			opinion += V.targetArcology.FSCummunism;
+		} else if (V.targetArcology.FSPastoralist !== "unset") {
+			opinion -= V.activeArcology.FSCummunism;
+			opinion -= V.targetArcology.FSPastoralist;
+		}
+	}
+	if (V.activeArcology.FSPhysicalIdealist !== "unset") {
+		if (V.targetArcology.FSPhysicalIdealist !== "unset") {
+			opinion += V.activeArcology.FSPhysicalIdealist;
+			opinion += V.targetArcology.FSPhysicalIdealist;
+		} else if (V.targetArcology.FSHedonisticDecadence !== "unset") {
+			opinion -= V.activeArcology.FSPhysicalIdealist;
+			opinion -= V.targetArcology.FSHedonisticDecadence;
+		}
+	} else if (V.activeArcology.FSHedonisticDecadence !== "unset") {
+		if (V.targetArcology.FSHedonisticDecadence !== "unset") {
+			opinion += V.activeArcology.FSHedonisticDecadence;
+			opinion += V.targetArcology.FSHedonisticDecadence;
+		} else if (V.targetArcology.FSPhysicalIdealist !== "unset") {
+			opinion -= V.activeArcology.FSHedonisticDecadence;
+			opinion -= V.targetArcology.FSPhysicalIdealist;
+		}
+	}
+	if (V.activeArcology.FSChattelReligionist !== "unset") {
+		if (V.targetArcology.FSChattelReligionist !== "unset") {
+			opinion += V.activeArcology.FSChattelReligionist;
+			opinion += V.targetArcology.FSChattelReligionist;
+		} else if (V.targetArcology.FSNull !== "unset") {
+			opinion -= V.activeArcology.FSChattelReligionist;
+			opinion -= V.targetArcology.FSNull;
+		}
+	} else if (V.activeArcology.FSNull !== "unset") {
+		if (V.targetArcology.FSNull !== "unset") {
+			opinion += V.activeArcology.FSNull;
+			opinion += V.targetArcology.FSNull;
+		} else if (V.targetArcology.FSChattelReligionist !== "unset") {
+			opinion -= V.activeArcology.FSNull;
+			opinion -= V.targetArcology.FSChattelReligionist;
+		} else {
+			opinion += V.activeArcology.FSNull;
+		}
+	} else if (V.targetArcology.FSNull !== "unset") {
+		opinion += V.targetArcology.FSNull;
+	}
+	if (V.activeArcology.FSRomanRevivalist !== "unset") {
+		if (V.targetArcology.FSRomanRevivalist !== "unset") {
+			opinion += V.activeArcology.FSRomanRevivalist;
+			opinion += V.targetArcology.FSRomanRevivalist;
+		} else if (V.targetArcology.FSAztecRevivalist !== "unset") {
+			opinion -= V.activeArcology.FSRomanRevivalist;
+			opinion -= V.targetArcology.FSAztecRevivalist;
+		} else if (V.targetArcology.FSEgyptianRevivalist !== "unset") {
+			opinion -= V.activeArcology.FSRomanRevivalist;
+			opinion -= V.targetArcology.FSEgyptianRevivalist;
+		} else if (V.targetArcology.FSEdoRevivalist !== "unset") {
+			opinion -= V.activeArcology.FSRomanRevivalist;
+			opinion -= V.targetArcology.FSEdoRevivalist;
+		} else if (V.targetArcology.FSArabianRevivalist !== "unset") {
+			opinion -= V.activeArcology.FSRomanRevivalist;
+			opinion -= V.targetArcology.FSArabianRevivalist;
+		} else if (V.targetArcology.FSChineseRevivalist !== "unset") {
+			opinion -= V.activeArcology.FSRomanRevivalist;
+			opinion -= V.targetArcology.FSChineseRevivalist;
+		}
+	} else if (V.activeArcology.FSAztecRevivalist !== "unset") {
+		if (V.targetArcology.FSAztecRevivalist !== "unset") {
+			opinion += V.activeArcology.FSAztecRevivalist;
+			opinion += V.targetArcology.FSAztecRevivalist;
+		} else if (V.targetArcology.FSRomanRevivalist !== "unset") {
+			opinion -= V.activeArcology.FSAztecRevivalist;
+			opinion -= V.targetArcology.FSRomanRevivalist;
+		} else if (V.targetArcology.FSEgyptianRevivalist !== "unset") {
+			opinion -= V.activeArcology.FSAztecRevivalist;
+			opinion -= V.targetArcology.FSEgyptianRevivalist;
+		} else if (V.targetArcology.FSEdoRevivalist !== "unset") {
+			opinion -= V.activeArcology.FSAztecRevivalist;
+			opinion -= V.targetArcology.FSEdoRevivalist;
+		} else if (V.targetArcology.FSArabianRevivalist !== "unset") {
+			opinion -= V.activeArcology.FSAztecRevivalist;
+			opinion -= V.targetArcology.FSArabianRevivalist;
+		} else if (V.targetArcology.FSChineseRevivalist !== "unset") {
+			opinion -= V.activeArcology.FSAztecRevivalist;
+			opinion -= V.targetArcology.FSChineseRevivalist;
+		}
+	} else if (V.activeArcology.FSEgyptianRevivalist !== "unset") {
+		if (V.targetArcology.FSEgyptianRevivalist !== "unset") {
+			opinion += V.activeArcology.FSEgyptianRevivalist;
+			opinion += V.targetArcology.FSEgyptianRevivalist;
+		} else if (V.targetArcology.FSRomanRevivalist !== "unset") {
+			opinion -= V.activeArcology.FSEgyptianRevivalist;
+			opinion -= V.targetArcology.FSRomanRevivalist;
+		} else if (V.targetArcology.FSAztecRevivalist !== "unset") {
+			opinion -= V.activeArcology.FSEgyptianRevivalist;
+			opinion -= V.targetArcology.FSAztecRevivalist;
+		} else if (V.targetArcology.FSEdoRevivalist !== "unset") {
+			opinion -= V.activeArcology.FSEgyptianRevivalist;
+			opinion -= V.targetArcology.FSEdoRevivalist;
+		} else if (V.targetArcology.FSArabianRevivalist !== "unset") {
+			opinion -= V.activeArcology.FSEgyptianRevivalist;
+			opinion -= V.targetArcology.FSArabianRevivalist;
+		} else if (V.targetArcology.FSChineseRevivalist !== "unset") {
+			opinion -= V.activeArcology.FSEgyptianRevivalist;
+			opinion -= V.targetArcology.FSChineseRevivalist;
+		}
+		if (V.targetArcology.FSIncestFetishist !== "unset") {
+			opinion += V.activeArcology.FSEgyptianRevivalist;
+			opinion += V.targetArcology.FSIncestFetishist;
+		}
+	} else if (V.activeArcology.FSEdoRevivalist !== "unset") {
+		if (V.targetArcology.FSEdoRevivalist !== "unset") {
+			opinion += V.activeArcology.FSEdoRevivalist;
+			opinion += V.targetArcology.FSEdoRevivalist;
+		} else if (V.targetArcology.FSEgyptianRevivalist !== "unset") {
+			opinion -= V.activeArcology.FSEdoRevivalist;
+			opinion -= V.targetArcology.FSEgyptianRevivalist;
+		} else if (V.targetArcology.FSRomanRevivalist !== "unset") {
+			opinion -= V.activeArcology.FSEdoRevivalist;
+			opinion -= V.targetArcology.FSRomanRevivalist;
+		} else if (V.targetArcology.FSAztecRevivalist !== "unset") {
+			opinion -= V.activeArcology.FSEdoRevivalist;
+			opinion -= V.targetArcology.FSAztecRevivalist;
+		} else if (V.targetArcology.FSArabianRevivalist !== "unset") {
+			opinion -= V.activeArcology.FSEdoRevivalist;
+			opinion -= V.targetArcology.FSArabianRevivalist;
+		} else if (V.targetArcology.FSChineseRevivalist !== "unset") {
+			opinion -= V.activeArcology.FSEdoRevivalist;
+			opinion -= V.targetArcology.FSChineseRevivalist;
+		}
+	} else if (V.activeArcology.FSArabianRevivalist !== "unset") {
+		if (V.targetArcology.FSArabianRevivalist !== "unset") {
+			opinion += V.activeArcology.FSArabianRevivalist;
+			opinion += V.targetArcology.FSArabianRevivalist;
+		} else if (V.targetArcology.FSEgyptianRevivalist !== "unset") {
+			opinion -= V.activeArcology.FSArabianRevivalist;
+			opinion -= V.targetArcology.FSEgyptianRevivalist;
+		} else if (V.targetArcology.FSEdoRevivalist !== "unset") {
+			opinion -= V.activeArcology.FSArabianRevivalist;
+			opinion -= V.targetArcology.FSEdoRevivalist;
+		} else if (V.targetArcology.FSRomanRevivalist !== "unset") {
+			opinion -= V.activeArcology.FSArabianRevivalist;
+			opinion -= V.targetArcology.FSRomanRevivalist;
+		} else if (V.targetArcology.FSAztecRevivalist !== "unset") {
+			opinion -= V.activeArcology.FSArabianRevivalist;
+			opinion -= V.targetArcology.FSAztecRevivalist;
+		} else if (V.targetArcology.FSChineseRevivalist !== "unset") {
+			opinion -= V.activeArcology.FSArabianRevivalist;
+			opinion -= V.targetArcology.FSChineseRevivalist;
+		}
+	} else if (V.activeArcology.FSChineseRevivalist !== "unset") {
+		if (V.targetArcology.FSChineseRevivalist !== "unset") {
+			opinion += V.activeArcology.FSChineseRevivalist;
+			opinion += V.targetArcology.FSChineseRevivalist;
+		} else if (V.targetArcology.FSEgyptianRevivalist !== "unset") {
+			opinion -= V.activeArcology.FSChineseRevivalist;
+			opinion -= V.targetArcology.FSEgyptianRevivalist;
+		} else if (V.targetArcology.FSEdoRevivalist !== "unset") {
+			opinion -= V.activeArcology.FSChineseRevivalist;
+			opinion -= V.targetArcology.FSEdoRevivalist;
+		} else if (V.targetArcology.FSArabianRevivalist !== "unset") {
+			opinion -= V.activeArcology.FSChineseRevivalist;
+			opinion -= V.targetArcology.FSArabianRevivalist;
+		} else if (V.targetArcology.FSRomanRevivalist !== "unset") {
+			opinion -= V.activeArcology.FSChineseRevivalist;
+			opinion -= V.targetArcology.FSRomanRevivalist;
+		} else if (V.targetArcology.FSAztecRevivalist !== "unset") {
+			opinion -= V.activeArcology.FSChineseRevivalist;
+			opinion -= V.targetArcology.FSAztecRevivalist;
+		}
+	}
+	if (V.activeArcology.FSIncestFetishist !== "unset") {
+		if (V.targetArcology.FSIncestFetishist !== "unset") {
+			opinion += V.activeArcology.FSIncestFetishist;
+			opinion += V.targetArcology.FSIncestFetishist;
+		}
+		if (V.targetArcology.FSEgyptianRevivalist !== "unset") {
+			opinion += V.activeArcology.FSIncestFetishist;
+			opinion += V.targetArcology.FSEgyptianRevivalist;
+		}
+	}
+
+	V.opinion = Number(opinion) || 0;
+
+	V.activeArcology = 0;
+	V.targetArcology = 0;
+};
diff --git a/src/pregmod/criminalMarkets.tw b/src/pregmod/criminalMarkets.tw
index 5018f20b27bc1f7329d44c6e906d2e3fe1747739..08691a989213acc88ec8616b63148a7ba090bbc7 100644
--- a/src/pregmod/criminalMarkets.tw
+++ b/src/pregmod/criminalMarkets.tw
@@ -41,7 +41,7 @@ You board the transport to
 
 <</switch>>
 
-<<GenerateMarketSlave $weeklyMarket>>
+<<= generateMarketSlave($weeklyMarket)>>
 
 <br><br>
 
diff --git a/src/pregmod/theCattleRanch.tw b/src/pregmod/theCattleRanch.tw
index 5c7668bcd18402eba44d2248d7a758912f9d1472..a79a23789586134ee53b5deac90ae7f9de875265 100644
--- a/src/pregmod/theCattleRanch.tw
+++ b/src/pregmod/theCattleRanch.tw
@@ -11,7 +11,7 @@
 
 <br><br>The Cattle Ranch parades a choice selection of cows for your viewing pleasure. You're free to do as you please to the slaves, as long as you don't cause lasting harm to them.<<if isPlayerFertile($PC)>> You can't help but notice the number of bulls lining up along the fence sniffing at you.<</if>>
 
-<<GenerateMarketSlave "TCR">>
+<<= generateMarketSlave("TCR")>>
 <<set $slaveCost = slaveCost($activeSlave)>>
 <<if $TCR.schoolSale != 0>>
 	<<set $slaveCost = Math.trunc($slaveCost*0.5)>>
diff --git a/src/pregmod/theHippolytaAcademy.tw b/src/pregmod/theHippolytaAcademy.tw
index 7d000ba679538fc594103a8046b2a5f4c7a49af5..63d2b45c30ad5834e4b647c0417c48cc40862a10 100644
--- a/src/pregmod/theHippolytaAcademy.tw
+++ b/src/pregmod/theHippolytaAcademy.tw
@@ -20,7 +20,7 @@ The Hippolyta Academy is one of the most famous slave bodyguarding schools in al
 
 <br><br>The Hippolyta Academy offers a fresh graduate for inspection. The interview takes place in one of the many training areas of the school, where the physical prowess of the candidate can be easily showcased.
 
-<<GenerateMarketSlave "HA">>
+<<= generateMarketSlave("HA")>>
 <<set $slaveCost = slaveCost($activeSlave)>>
 <<if $HA.schoolSale != 0>>
 	<<set $slaveCost = Math.trunc($slaveCost*0.6)>>
diff --git a/src/pregmod/wetwareCPUs.tw b/src/pregmod/wetwareCPUs.tw
index a96d0affbc6ac0cd8f405964e4a1482e23279080..ba84230706a5026b80d2f31cdcd0859c99d4f469 100644
--- a/src/pregmod/wetwareCPUs.tw
+++ b/src/pregmod/wetwareCPUs.tw
@@ -11,7 +11,7 @@
 
 <br><br>
 
-<<GenerateMarketSlave "wetware">>
+<<= generateMarketSlave("wetware")>>
 <<set $slaveCost = slaveCost($activeSlave)>>
 <<if $slavesSeen > $slaveMarketLimit>><<set $slaveCost += Math.trunc($slaveCost*(($slavesSeen-$slaveMarketLimit)*0.1))>><</if>>
 
diff --git a/src/pregmod/widgets/pregmodWidgets.tw b/src/pregmod/widgets/pregmodWidgets.tw
index 70895ea1ffebbea4afe9b3eac1416e7b42df91a4..f6c890e62d3ac0f89b8e86ed76ba76f404c0805f 100644
--- a/src/pregmod/widgets/pregmodWidgets.tw
+++ b/src/pregmod/widgets/pregmodWidgets.tw
@@ -419,20 +419,6 @@
 	<<set _HisPLisp = lispReplace(_HisP)>>
 <</widget>>
 
-<<widget "AgeImplantAdjustment">>
-	<<if $args[0].visualAge > 80>>
-		<<set $args[0].visualAge -= 40>>
-	<<elseif $args[0].visualAge >= 70>>
-		<<set $args[0].visualAge -= 30>>
-	<<elseif $args[0].visualAge > 50>>
-		<<set $args[0].visualAge -= 20>>
-	<<elseif $args[0].visualAge > 36>>
-		<<set $args[0].visualAge -= 10>>
-	<<else>>
-		<<set $args[0].visualAge -= 5>>
-	<</if>>
-<</widget>>
-
 <<widget "PCAgeImplantAdjustmentUp">>
 	<<if $PC.visualAge < 35>>
 		<<set $PC.visualAge += 15>>
diff --git a/src/uncategorized/PESS.tw b/src/uncategorized/PESS.tw
index d5679bb41bc7db040b824dafba7b9c166703d51b..c1335ee746ccaf5aa5a0b02d6e7794f42ba2515d 100644
--- a/src/uncategorized/PESS.tw
+++ b/src/uncategorized/PESS.tw
@@ -284,7 +284,7 @@ $He sees you examining at $him, and looks back at you submissively, too tired to
 				<<set $slaves[$i].waist -= 20>>
 				<<run cashX(forceNeg(Math.trunc(200*$upgradeMultiplierMedicine)), "slaveSurgery", $activeSlave)>>
 			<<elseif $slaves[$i].visualAge > 35 && $slaves[$i].ageImplant == 0 && $slaves[$i].faceImplant <= 10>>
-				<<set $slaves[$i].ageImplant = 1>><<AgeImplantAdjustment $slaves[$i]>>
+				<<set $slaves[$i].ageImplant = 1>><<run ageImplantAdjustment($slaves[$i])>>
 				<<set $slaves[$i].faceImplant += 25-5*Math.trunc($PC.medicine/100)-5*$surgeryUpgrade>>
 				<<run cashX(forceNeg(Math.trunc(200*$upgradeMultiplierMedicine)), "slaveSurgery", $activeSlave)>>
 			<<elseif $slaves[$i].lips <= 40>>
diff --git a/src/uncategorized/arcmgmt.tw b/src/uncategorized/arcmgmt.tw
index d6269a1ae8484a00db19ddab205ad77a71bf7cf4..c8b3b3f03d7187ebe08fbf0f50d7cabba3243e51 100644
--- a/src/uncategorized/arcmgmt.tw
+++ b/src/uncategorized/arcmgmt.tw
@@ -1384,7 +1384,7 @@ You own
 	<<for $i = 1; $i < $arcologies.length; $i++>>
 		<<set $activeArcology = $arcologies[0]>>
 		<<set $targetArcology = $arcologies[$i]>>
-		<<include "Arcology Opinion">>
+		<<= arcologyOpinion()>>
 		<<if $opinion >= 100>>
 			<<set $desc.push($arcologies[$i].name)>>
 		<<elseif $opinion <= -100>>
diff --git a/src/uncategorized/arcologyOpinion.tw b/src/uncategorized/arcologyOpinion.tw
deleted file mode 100644
index e10421c7df15abe7a16f55e4b2b96cc8397cccda..0000000000000000000000000000000000000000
--- a/src/uncategorized/arcologyOpinion.tw
+++ /dev/null
@@ -1,336 +0,0 @@
-:: Arcology Opinion [nobr]
-
-<<if ndef $activeArcology.FSNull>><<set $activeArcology.FSNull = "unset">><</if>>
-<<if ndef $targetArcology.FSNull>><<set $targetArcology.FSNull = "unset">><</if>>
-
-<<set $opinion = 0>>
-
-<<if $activeArcology.FSSubjugationist != "unset">>
-	<<if $targetArcology.FSSubjugationist != "unset">>
-		<<if $targetArcology.FSSubjugationistRace == $activeArcology.FSSubjugationistRace>>
-			<<set $opinion += $activeArcology.FSSubjugationist>>
-			<<set $opinion += $targetArcology.FSSubjugationist>>
-		<<else>>
-			<<set $opinion -= $activeArcology.FSSubjugationist>>
-			<<set $opinion -= $targetArcology.FSSubjugationist>>
-		<</if>>
-	<<elseif $targetArcology.FSSupremacist != "unset">>
-		<<if $targetArcology.FSSupremacistRace == $activeArcology.FSSubjugationistRace>>
-			<<set $opinion -= $activeArcology.FSSubjugationist>>
-			<<set $opinion -= $targetArcology.FSSupremacist>>
-		<</if>>
-	<</if>>
-<</if>>
-<<if $activeArcology.FSSupremacist != "unset">>
-	<<if $targetArcology.FSSupremacist != "unset">>
-		<<if $targetArcology.FSSupremacistRace == $activeArcology.FSSupremacistRace>>
-			<<set $opinion += $activeArcology.FSSupremacist>>
-			<<set $opinion += $targetArcology.FSSupremacist>>
-		<<else>>
-			<<set $opinion -= $activeArcology.FSSupremacist>>
-			<<set $opinion -= $targetArcology.FSSupremacist>>
-		<</if>>
-	<<elseif $targetArcology.FSSubjugationist != "unset">>
-		<<if $targetArcology.FSSubjugationistRace == $activeArcology.FSSupremacistRace>>
-			<<set $opinion -= $activeArcology.FSSupremacist>>
-			<<set $opinion -= $targetArcology.FSSubjugationist>>
-		<</if>>
-	<</if>>
-<</if>>
-<<if $activeArcology.FSRepopulationFocus != "unset">>
-	<<if $targetArcology.FSRepopulationFocus != "unset">>
-		<<set $opinion += $activeArcology.FSRepopulationFocus>>
-		<<set $opinion += $targetArcology.FSRepopulationFocus>>
-	<<elseif $targetArcology.FSRestart != "unset">>
-		<<set $opinion -= $activeArcology.FSRepopulationFocus>>
-		<<set $opinion -= $targetArcology.FSRestart>>
-	<</if>>
-<<elseif $activeArcology.FSRestart != "unset">>
-	<<if $targetArcology.FSRestart != "unset">>
-		<<set $opinion += $activeArcology.FSRestart>>
-		<<set $opinion += $targetArcology.FSRestart>>
-	<<elseif $targetArcology.FSRepopulationFocus != "unset">>
-		<<set $opinion -= $activeArcology.FSRestart>>
-		<<set $opinion -= $targetArcology.FSRepopulationFocus>>
-	<</if>>
-<</if>>
-<<if $activeArcology.FSGenderRadicalist != "unset">>
-	<<if $targetArcology.FSGenderRadicalist != "unset">>
-		<<set $opinion += $activeArcology.FSGenderRadicalist>>
-		<<set $opinion += $targetArcology.FSGenderRadicalist>>
-	<<elseif $targetArcology.FSGenderFundamentalist != "unset">>
-		<<set $opinion -= $activeArcology.FSGenderRadicalist>>
-		<<set $opinion -= $targetArcology.FSGenderFundamentalist>>
-	<</if>>
-<<elseif $activeArcology.FSGenderFundamentalist != "unset">>
-	<<if $targetArcology.FSGenderFundamentalist != "unset">>
-		<<set $opinion += $activeArcology.FSGenderFundamentalist>>
-		<<set $opinion += $targetArcology.FSGenderFundamentalist>>
-	<<elseif $targetArcology.FSGenderRadicalist != "unset">>
-		<<set $opinion -= $activeArcology.FSGenderFundamentalist>>
-		<<set $opinion -= $targetArcology.FSGenderRadicalist>>
-	<</if>>
-<</if>>
-<<if $activeArcology.FSPaternalist != "unset">>
-	<<if $targetArcology.FSPaternalist != "unset">>
-		<<set $opinion += $activeArcology.FSPaternalist>>
-		<<set $opinion += $targetArcology.FSPaternalist>>
-	<<elseif $targetArcology.FSDegradationist != "unset">>
-		<<set $opinion -= $activeArcology.FSPaternalist>>
-		<<set $opinion -= $targetArcology.FSDegradationist>>
-	<</if>>
-<<elseif $activeArcology.FSDegradationist != "unset">>
-	<<if $targetArcology.FSDegradationist != "unset">>
-		<<set $opinion += $activeArcology.FSDegradationist>>
-		<<set $opinion += $targetArcology.FSDegradationist>>
-	<<elseif $targetArcology.FSPaternalist != "unset">>
-		<<set $opinion -= $activeArcology.FSDegradationist>>
-		<<set $opinion -= $targetArcology.FSPaternalist>>
-	<</if>>
-<</if>>
-<<if $activeArcology.FSBodyPurist != "unset">>
-	<<if $targetArcology.FSBodyPurist != "unset">>
-		<<set $opinion += $activeArcology.FSBodyPurist>>
-		<<set $opinion += $targetArcology.FSBodyPurist>>
-	<<elseif $targetArcology.FSTransformationFetishist != "unset">>
-		<<set $opinion -= $activeArcology.FSBodyPurist>>
-		<<set $opinion -= $targetArcology.FSTransformationFetishist>>
-	<</if>>
-<<elseif $activeArcology.FSTransformationFetishist != "unset">>
-	<<if $targetArcology.FSTransformationFetishist != "unset">>
-		<<set $opinion += $activeArcology.FSTransformationFetishist>>
-		<<set $opinion += $targetArcology.FSTransformationFetishist>>
-	<<elseif $targetArcology.FSBodyPurist != "unset">>
-		<<set $opinion -= $activeArcology.FSTransformationFetishist>>
-		<<set $opinion -= $targetArcology.FSBodyPurist>>
-	<</if>>
-<</if>>
-<<if $activeArcology.FSYouthPreferentialist != "unset">>
-	<<if $targetArcology.FSYouthPreferentialist != "unset">>
-		<<set $opinion += $activeArcology.FSYouthPreferentialist>>
-		<<set $opinion += $targetArcology.FSYouthPreferentialist>>
-	<<elseif $targetArcology.FSMaturityPreferentialist != "unset">>
-		<<set $opinion -= $activeArcology.FSYouthPreferentialist>>
-		<<set $opinion -= $targetArcology.FSMaturityPreferentialist>>
-	<</if>>
-<<elseif $activeArcology.FSMaturityPreferentialist != "unset">>
-	<<if $targetArcology.FSMaturityPreferentialist != "unset">>
-		<<set $opinion += $activeArcology.FSMaturityPreferentialist>>
-		<<set $opinion += $targetArcology.FSMaturityPreferentialist>>
-	<<elseif $targetArcology.FSYouthPreferentialist != "unset">>
-		<<set $opinion -= $activeArcology.FSMaturityPreferentialist>>
-		<<set $opinion -= $targetArcology.FSYouthPreferentialist>>
-	<</if>>
-<</if>>
-<<if $activeArcology.FSSlimnessEnthusiast != "unset">>
-	<<if $targetArcology.FSSlimnessEnthusiast != "unset">>
-		<<set $opinion += $activeArcology.FSSlimnessEnthusiast>>
-		<<set $opinion += $targetArcology.FSSlimnessEnthusiast>>
-	<<elseif $targetArcology.FSAssetExpansionist != "unset">>
-		<<set $opinion -= $activeArcology.FSSlimnessEnthusiast>>
-		<<set $opinion -= $targetArcology.FSAssetExpansionist>>
-	<</if>>
-<<elseif $activeArcology.FSAssetExpansionist != "unset">>
-	<<if $targetArcology.FSAssetExpansionist != "unset">>
-		<<set $opinion += $activeArcology.FSAssetExpansionist>>
-		<<set $opinion += $targetArcology.FSAssetExpansionist>>
-	<<elseif $targetArcology.FSSlimnessEnthusiast != "unset">>
-		<<set $opinion -= $activeArcology.FSAssetExpansionist>>
-		<<set $opinion -= $targetArcology.FSSlimnessEnthusiast>>
-	<</if>>
-<</if>>
-<<if $activeArcology.FSPastoralist != "unset">>
-	<<if $targetArcology.FSPastoralist != "unset">>
-		<<set $opinion += $activeArcology.FSPastoralist>>
-		<<set $opinion += $targetArcology.FSPastoralist>>
-	<<elseif $targetArcology.FSCummunism != "unset">>
-		<<set $opinion -= $activeArcology.FSPastoralist>>
-		<<set $opinion -= $targetArcology.FSCummunism>>
-	<</if>>
-<<elseif $activeArcology.FSCummunism != "unset">>
-	<<if $targetArcology.FSCummunism != "unset">>
-		<<set $opinion += $activeArcology.FSCummunism>>
-		<<set $opinion += $targetArcology.FSCummunism>>
-	<<elseif $targetArcology.FSPastoralist != "unset">>
-		<<set $opinion -= $activeArcology.FSCummunism>>
-		<<set $opinion -= $targetArcology.FSPastoralist>>
-	<</if>>
-<</if>>
-<<if $activeArcology.FSPhysicalIdealist != "unset">>
-	<<if $targetArcology.FSPhysicalIdealist != "unset">>
-		<<set $opinion += $activeArcology.FSPhysicalIdealist>>
-		<<set $opinion += $targetArcology.FSPhysicalIdealist>>
-	<<elseif $targetArcology.FSHedonisticDecadence != "unset">>
-		<<set $opinion -= $activeArcology.FSPhysicalIdealist>>
-		<<set $opinion -= $targetArcology.FSHedonisticDecadence>>
-	<</if>>
-<<elseif $activeArcology.FSHedonisticDecadence != "unset">>
-	<<if $targetArcology.FSHedonisticDecadence != "unset">>
-		<<set $opinion += $activeArcology.FSHedonisticDecadence>>
-		<<set $opinion += $targetArcology.FSHedonisticDecadence>>
-	<<elseif $targetArcology.FSPhysicalIdealist != "unset">>
-		<<set $opinion -= $activeArcology.FSHedonisticDecadence>>
-		<<set $opinion -= $targetArcology.FSPhysicalIdealist>>
-	<</if>>
-<</if>>
-<<if $activeArcology.FSChattelReligionist != "unset">>
-	<<if $targetArcology.FSChattelReligionist != "unset">>
-		<<set $opinion += $activeArcology.FSChattelReligionist>>
-		<<set $opinion += $targetArcology.FSChattelReligionist>>
-	<<elseif $targetArcology.FSNull != "unset">>
-		<<set $opinion -= $activeArcology.FSChattelReligionist>>
-		<<set $opinion -= $targetArcology.FSNull>>
-	<</if>>
-<<elseif $activeArcology.FSNull != "unset">>
-	<<if $targetArcology.FSNull != "unset">>
-		<<set $opinion += $activeArcology.FSNull>>
-		<<set $opinion += $targetArcology.FSNull>>
-	<<elseif $targetArcology.FSChattelReligionist != "unset">>
-		<<set $opinion -= $activeArcology.FSNull>>
-		<<set $opinion -= $targetArcology.FSChattelReligionist>>
-	<<else>>
-		<<set $opinion += $activeArcology.FSNull>>
-	<</if>>
-<<elseif $targetArcology.FSNull != "unset">>
-	<<set $opinion += $targetArcology.FSNull>>
-<</if>>
-<<if $activeArcology.FSRomanRevivalist != "unset">>
-	<<if $targetArcology.FSRomanRevivalist != "unset">>
-		<<set $opinion += $activeArcology.FSRomanRevivalist>>
-		<<set $opinion += $targetArcology.FSRomanRevivalist>>
-	<<elseif $targetArcology.FSAztecRevivalist != "unset">>
-		<<set $opinion -= $activeArcology.FSRomanRevivalist>>
-		<<set $opinion -= $targetArcology.FSAztecRevivalist>>
-	<<elseif $targetArcology.FSEgyptianRevivalist != "unset">>
-		<<set $opinion -= $activeArcology.FSRomanRevivalist>>
-		<<set $opinion -= $targetArcology.FSEgyptianRevivalist>>
-	<<elseif $targetArcology.FSEdoRevivalist != "unset">>
-		<<set $opinion -= $activeArcology.FSRomanRevivalist>>
-		<<set $opinion -= $targetArcology.FSEdoRevivalist>>
-	<<elseif $targetArcology.FSArabianRevivalist != "unset">>
-		<<set $opinion -= $activeArcology.FSRomanRevivalist>>
-		<<set $opinion -= $targetArcology.FSArabianRevivalist>>
-	<<elseif $targetArcology.FSChineseRevivalist != "unset">>
-		<<set $opinion -= $activeArcology.FSRomanRevivalist>>
-		<<set $opinion -= $targetArcology.FSChineseRevivalist>>
-	<</if>>
-<<elseif $activeArcology.FSAztecRevivalist != "unset">>
-	<<if $targetArcology.FSAztecRevivalist != "unset">>
-		<<set $opinion += $activeArcology.FSAztecRevivalist>>
-		<<set $opinion += $targetArcology.FSAztecRevivalist>>
-	<<elseif $targetArcology.FSRomanRevivalist != "unset">>
-		<<set $opinion -= $activeArcology.FSAztecRevivalist>>
-		<<set $opinion -= $targetArcology.FSRomanRevivalist>>
-	<<elseif $targetArcology.FSEgyptianRevivalist != "unset">>
-		<<set $opinion -= $activeArcology.FSAztecRevivalist>>
-		<<set $opinion -= $targetArcology.FSEgyptianRevivalist>>
-	<<elseif $targetArcology.FSEdoRevivalist != "unset">>
-		<<set $opinion -= $activeArcology.FSAztecRevivalist>>
-		<<set $opinion -= $targetArcology.FSEdoRevivalist>>
-	<<elseif $targetArcology.FSArabianRevivalist != "unset">>
-		<<set $opinion -= $activeArcology.FSAztecRevivalist>>
-		<<set $opinion -= $targetArcology.FSArabianRevivalist>>
-	<<elseif $targetArcology.FSChineseRevivalist != "unset">>
-		<<set $opinion -= $activeArcology.FSAztecRevivalist>>
-		<<set $opinion -= $targetArcology.FSChineseRevivalist>>
-	<</if>>
-<<elseif $activeArcology.FSEgyptianRevivalist != "unset">>
-	<<if $targetArcology.FSEgyptianRevivalist != "unset">>
-		<<set $opinion += $activeArcology.FSEgyptianRevivalist>>
-		<<set $opinion += $targetArcology.FSEgyptianRevivalist>>
-	<<elseif $targetArcology.FSRomanRevivalist != "unset">>
-		<<set $opinion -= $activeArcology.FSEgyptianRevivalist>>
-		<<set $opinion -= $targetArcology.FSRomanRevivalist>>
-	<<elseif $targetArcology.FSAztecRevivalist != "unset">>
-		<<set $opinion -= $activeArcology.FSEgyptianRevivalist>>
-		<<set $opinion -= $targetArcology.FSAztecRevivalist>>
-	<<elseif $targetArcology.FSEdoRevivalist != "unset">>
-		<<set $opinion -= $activeArcology.FSEgyptianRevivalist>>
-		<<set $opinion -= $targetArcology.FSEdoRevivalist>>
-	<<elseif $targetArcology.FSArabianRevivalist != "unset">>
-		<<set $opinion -= $activeArcology.FSEgyptianRevivalist>>
-		<<set $opinion -= $targetArcology.FSArabianRevivalist>>
-	<<elseif $targetArcology.FSChineseRevivalist != "unset">>
-		<<set $opinion -= $activeArcology.FSEgyptianRevivalist>>
-		<<set $opinion -= $targetArcology.FSChineseRevivalist>>
-	<</if>>
-	<<if $targetArcology.FSIncestFetishist != "unset">>
-		<<set $opinion += $activeArcology.FSEgyptianRevivalist>>
-		<<set $opinion += $targetArcology.FSIncestFetishist>>
-	<</if>>
-<<elseif $activeArcology.FSEdoRevivalist != "unset">>
-	<<if $targetArcology.FSEdoRevivalist != "unset">>
-		<<set $opinion += $activeArcology.FSEdoRevivalist>>
-		<<set $opinion += $targetArcology.FSEdoRevivalist>>
-	<<elseif $targetArcology.FSEgyptianRevivalist != "unset">>
-		<<set $opinion -= $activeArcology.FSEdoRevivalist>>
-		<<set $opinion -= $targetArcology.FSEgyptianRevivalist>>
-	<<elseif $targetArcology.FSRomanRevivalist != "unset">>
-		<<set $opinion -= $activeArcology.FSEdoRevivalist>>
-		<<set $opinion -= $targetArcology.FSRomanRevivalist>>
-	<<elseif $targetArcology.FSAztecRevivalist != "unset">>
-		<<set $opinion -= $activeArcology.FSEdoRevivalist>>
-		<<set $opinion -= $targetArcology.FSAztecRevivalist>>
-	<<elseif $targetArcology.FSArabianRevivalist != "unset">>
-		<<set $opinion -= $activeArcology.FSEdoRevivalist>>
-		<<set $opinion -= $targetArcology.FSArabianRevivalist>>
-	<<elseif $targetArcology.FSChineseRevivalist != "unset">>
-		<<set $opinion -= $activeArcology.FSEdoRevivalist>>
-		<<set $opinion -= $targetArcology.FSChineseRevivalist>>
-	<</if>>
-<<elseif $activeArcology.FSArabianRevivalist != "unset">>
-	<<if $targetArcology.FSArabianRevivalist != "unset">>
-		<<set $opinion += $activeArcology.FSArabianRevivalist>>
-		<<set $opinion += $targetArcology.FSArabianRevivalist>>
-	<<elseif $targetArcology.FSEgyptianRevivalist != "unset">>
-		<<set $opinion -= $activeArcology.FSArabianRevivalist>>
-		<<set $opinion -= $targetArcology.FSEgyptianRevivalist>>
-	<<elseif $targetArcology.FSEdoRevivalist != "unset">>
-		<<set $opinion -= $activeArcology.FSArabianRevivalist>>
-		<<set $opinion -= $targetArcology.FSEdoRevivalist>>
-	<<elseif $targetArcology.FSRomanRevivalist != "unset">>
-		<<set $opinion -= $activeArcology.FSArabianRevivalist>>
-		<<set $opinion -= $targetArcology.FSRomanRevivalist>>
-	<<elseif $targetArcology.FSAztecRevivalist != "unset">>
-		<<set $opinion -= $activeArcology.FSArabianRevivalist>>
-		<<set $opinion -= $targetArcology.FSAztecRevivalist>>
-	<<elseif $targetArcology.FSChineseRevivalist != "unset">>
-		<<set $opinion -= $activeArcology.FSArabianRevivalist>>
-		<<set $opinion -= $targetArcology.FSChineseRevivalist>>
-	<</if>>
-<<elseif $activeArcology.FSChineseRevivalist != "unset">>
-	<<if $targetArcology.FSChineseRevivalist != "unset">>
-		<<set $opinion += $activeArcology.FSChineseRevivalist>>
-		<<set $opinion += $targetArcology.FSChineseRevivalist>>
-	<<elseif $targetArcology.FSEgyptianRevivalist != "unset">>
-		<<set $opinion -= $activeArcology.FSChineseRevivalist>>
-		<<set $opinion -= $targetArcology.FSEgyptianRevivalist>>
-	<<elseif $targetArcology.FSEdoRevivalist != "unset">>
-		<<set $opinion -= $activeArcology.FSChineseRevivalist>>
-		<<set $opinion -= $targetArcology.FSEdoRevivalist>>
-	<<elseif $targetArcology.FSArabianRevivalist != "unset">>
-		<<set $opinion -= $activeArcology.FSChineseRevivalist>>
-		<<set $opinion -= $targetArcology.FSArabianRevivalist>>
-	<<elseif $targetArcology.FSRomanRevivalist != "unset">>
-		<<set $opinion -= $activeArcology.FSChineseRevivalist>>
-		<<set $opinion -= $targetArcology.FSRomanRevivalist>>
-	<<elseif $targetArcology.FSAztecRevivalist != "unset">>
-		<<set $opinion -= $activeArcology.FSChineseRevivalist>>
-		<<set $opinion -= $targetArcology.FSAztecRevivalist>>
-	<</if>>
-<</if>>
-<<if $activeArcology.FSIncestFetishist != "unset">>
-	<<if $targetArcology.FSIncestFetishist != "unset">>
-		<<set $opinion += $activeArcology.FSIncestFetishist>>
-		<<set $opinion += $targetArcology.FSIncestFetishist>>
-	<</if>>
-	<<if $targetArcology.FSEgyptianRevivalist != "unset">>
-		<<set $opinion += $activeArcology.FSIncestFetishist>>
-		<<set $opinion += $targetArcology.FSEgyptianRevivalist>>
-	<</if>>
-<</if>>
-
-<<set $opinion = Number($opinion) || 0>>
-
-<<set $activeArcology = 0>>
-<<set $targetArcology = 0>>
diff --git a/src/uncategorized/bulkSlaveGenerate.tw b/src/uncategorized/bulkSlaveGenerate.tw
index 2af697cdd4d87f50e951803d511d0980ade27029..f972a7ee25f916c22943756c5ea3e5a54a0eef1a 100644
--- a/src/uncategorized/bulkSlaveGenerate.tw
+++ b/src/uncategorized/bulkSlaveGenerate.tw
@@ -65,7 +65,7 @@
 		<<set $numArcology = 1>>
 	<</if>>
 	<<set $targetArcology = $arcologies[$numArcology]>>
-	<<include "Arcology Opinion">>
+	<<= arcologyOpinion()>>
 	<<set $opinion = Math.trunc($opinion/20)>>
 	<<set $opinion = Math.clamp($opinion, -10, 10)>>
 	<<set $discount -= ($opinion * 25)>>
@@ -81,9 +81,7 @@
 <</switch>>
 
 <<for _i = 0; _i < $numSlaves; _i++>>
-	<<silently>>
-		<<GenerateMarketSlave $slaveMarket $numArcology>>
-	<</silently>>
+	<<run generateMarketSlave($slaveMarket, $numArcology)>>
 	<<set $slavesSeen += 1>>
 	<<if $applyLaw == 0>>
 		<<set $slaveCost = slaveCost($activeSlave)>>
diff --git a/src/uncategorized/corporateMarket.tw b/src/uncategorized/corporateMarket.tw
index 244ca432b6767fc5f7f375acfe445a6197f6e0a4..dfdb33f4f13706f6efdbf13ac9dae90b6aa4bc9c 100644
--- a/src/uncategorized/corporateMarket.tw
+++ b/src/uncategorized/corporateMarket.tw
@@ -61,7 +61,7 @@ Of course, you know all about the corporation, but sales<<if $corpSpecAge == 3>>
 
 _HeU explains that the corporation captures many people, so it only retains and trains those that fit its product lines.
 
-<<GenerateMarketSlave "corporate">>
+<<= generateMarketSlave("corporate")>>
 <br><br>
 
 _HisU presentation done, the
diff --git a/src/uncategorized/growthResearchInstitute.tw b/src/uncategorized/growthResearchInstitute.tw
index 0ba3a696ee7a867db6215cbdb4aa2d1b6af1ffe7..cc341c04c9e147645405130df2ece06b7551ff7a 100644
--- a/src/uncategorized/growthResearchInstitute.tw
+++ b/src/uncategorized/growthResearchInstitute.tw
@@ -11,7 +11,7 @@
 
 <br><br>GRI offers a fresh graduate for inspection via video call. The interview takes place in the graduate's bare-metal holding cell. Disturbingly, it is strongly reminiscent of an enclosure for a lab animal, only scaled up to contain a lab animal of human dimensions.
 
-<<GenerateMarketSlave "GRI">>
+<<= generateMarketSlave("GRI")>>
 <<set $slaveCost = slaveCost($activeSlave)>>
 <<setLocalPronouns $activeSlave>>
 <<if $GRI.schoolSale != 0>>
diff --git a/src/uncategorized/lecoleDesEnculees.tw b/src/uncategorized/lecoleDesEnculees.tw
index 7b03482f82156c7332650978dbcef3d95d463119..b7ebf9ce09d484753df0fb59e6a35e40aa6664a9 100644
--- a/src/uncategorized/lecoleDesEnculees.tw
+++ b/src/uncategorized/lecoleDesEnculees.tw
@@ -11,7 +11,7 @@
 
 <br><br>L'École des Enculées offers a fresh graduate for inspection via video call. The interview takes place in the dormitory for the oldest class of girls. Absurdly sexual squeals repeatedly interrupt the call, making it very clear that someone close by the interviewee is experiencing a strong combination of anal pain and anal pleasure.
 
-<<GenerateMarketSlave "LDE">>
+<<= generateMarketSlave("LDE")>>
 <<set $slaveCost = slaveCost($activeSlave)>>
 <<if $LDE.schoolSale != 0>>
 	<<set $slaveCost = Math.trunc($slaveCost*0.5)>>
diff --git a/src/uncategorized/neighborInteract.tw b/src/uncategorized/neighborInteract.tw
index 0482bfa2847381ae9ed7e8c4c88d0d94d4c853b2..b4d2799c29f9cee3e60b4288350327acc4465c70 100644
--- a/src/uncategorized/neighborInteract.tw
+++ b/src/uncategorized/neighborInteract.tw
@@ -349,7 +349,7 @@ If $activeArcology.name has developed enough to begin exporting worthwhile goods
 <<elseif $activeArcology.direction == $arcologies[0].embargoTarget>>
 	Due to your active embargo, trade with $activeArcology.name is not possible.
 <<else>>
-	<<set $targetArcology = $arcologies[0], _tempArc = $activeArcology>><<include "Arcology Opinion">><<set _prices = $opinion*10, $activeArcology = _tempArc>>
+	<<set $targetArcology = $arcologies[0], _tempArc = $activeArcology>><<= arcologyOpinion()>><<set _prices = $opinion*10, $activeArcology = _tempArc>>
 <</if>>
 <<if $activeArcology.FSRomanRevivalist > 95>>
 	<<if !isItemAccessible("a toga")>>
diff --git a/src/uncategorized/neighborsFSAdoption.tw b/src/uncategorized/neighborsFSAdoption.tw
index 67aaf8314b7bab1bdfb2a2835d5bab2c86f1c0a5..2eaa6da68c08e37c4ec4a9eb5068d6c51df99545 100644
--- a/src/uncategorized/neighborsFSAdoption.tw
+++ b/src/uncategorized/neighborsFSAdoption.tw
@@ -773,7 +773,7 @@ societal development.
 		<<set $activeArcology = $arcologies[$i]>>
 		<<set $targetArcology = $arcologies[$j]>>
 
-		<<include "Arcology Opinion">>
+		<<= arcologyOpinion()>>
 		<<if $opinion >= 50>>
 			$arcologies[$i].name is aligned with $arcologies[$j].name socially, encouraging it to consider adopting all its cultural values.
 			<<set $influenceBonus += $opinion-50>>
diff --git a/src/uncategorized/pRivalryCapture.tw b/src/uncategorized/pRivalryCapture.tw
index 8fd102042c293bcb329ed7f275b689b95893c07a..2d03aeeb45c3a07f8e6709ecb2fb1a69a79047c5 100644
--- a/src/uncategorized/pRivalryCapture.tw
+++ b/src/uncategorized/pRivalryCapture.tw
@@ -423,7 +423,7 @@
 <<set $activeSlave.prestige = 3>>
 <<set $activeSlave.prestigeDesc = "You bankrupted and enslaved her in revenge for her part in the attack on your arcology by the Daughters of Liberty.">>
 <<set $activeSlave.health = 100>>
-<<if $activeSlave.physicalAge > 35>><<set $activeSlave.ageImplant = 1>><<AgeImplantAdjustment $activeSlave>><</if>>
+<<if $activeSlave.physicalAge > 35>><<set $activeSlave.ageImplant = 1>><<run ageImplantAdjustment($activeSlave)>><</if>>
 <<set $activeSlave.pubicHStyle = "waxed">>
 <<set $activeSlave.underArmHStyle = "waxed">>
 
diff --git a/src/uncategorized/resSale.tw b/src/uncategorized/resSale.tw
index e6519ed509e2e4cbf5d0e49dd9db6400cb7512c7..2b0110241cf478ba370339ec351198a8e6703cfe 100644
--- a/src/uncategorized/resSale.tw
+++ b/src/uncategorized/resSale.tw
@@ -6,46 +6,46 @@
 <<if $RESSale == "TSS">>
 	<<set $TSS.schoolSale = 1>>
 	<<if $seeImages == 1>>
-		<<GenerateMarketSlave "TSS">>
+		<<= generateMarketSlave("TSS")>>
 		<<set $activeSlave.clothes = "a schoolgirl outfit">>
 	<</if>>
 <<elseif $RESSale == "GRI">>
 	<<set $GRI.schoolSale = 1>>
 	<<if $seeImages == 1>>
-		<<GenerateMarketSlave "GRI">>
+		<<= generateMarketSlave("GRI")>>
 		<<set $activeSlave.clothes = "a slave gown">>
 	<</if>>
 <<elseif $RESSale == "SCP">>
 	<<set $SCP.schoolSale = 1>>
 	<<if $seeImages == 1>>
-		<<GenerateMarketSlave "SCP">>
+		<<= generateMarketSlave("SCP")>>
 		<<set $activeSlave.clothes = "a string bikini">>
 	<</if>>
 <<elseif $RESSale == "LDE">>
 	<<set $LDE.schoolSale = 1>>
 	<<if $seeImages == 1>>
-		<<GenerateMarketSlave "LDE">>
+		<<= generateMarketSlave("LDE")>>
 	<</if>>
 <<elseif $RESSale == "TGA">>
 	<<set $TGA.schoolSale = 1>>
 	<<if $seeImages == 1>>
-		<<GenerateMarketSlave "TGA">>
+		<<= generateMarketSlave("TGA")>>
 	<</if>>
 <<elseif $RESSale == "TCR">>
 	<<set $TCR.schoolSale = 1>>
 	<<if $seeImages == 1>>
-		<<GenerateMarketSlave "TCR">>
+		<<= generateMarketSlave("TCR")>>
 	<</if>>
 <<elseif $RESSale == "HA">>
 	<<set $HA.schoolSale = 1>>
 	<<if $seeImages == 1>>
-		<<GenerateMarketSlave "HA">>
+		<<= generateMarketSlave("HA")>>
 		<<set $activeSlave.clothes = "a nice maid outfit">>
 	<</if>>
 <<else>>
 	<<set $TFS.schoolSale = 1>>
 	<<if $seeImages == 1>>
-		<<GenerateMarketSlave "TFS">>
+		<<= generateMarketSlave("TFS")>>
 	<</if>>
 <</if>>
 
diff --git a/src/uncategorized/slaveMarkets.tw b/src/uncategorized/slaveMarkets.tw
index 2f1f1f1bd0222b3354fa42bb78c4994795e2356a..b095d969e61eaa9b2e5ba1a04f214d7436c2f505 100644
--- a/src/uncategorized/slaveMarkets.tw
+++ b/src/uncategorized/slaveMarkets.tw
@@ -24,7 +24,7 @@ You visit the slave markets off the arcology plaza. It's always preferable to ex
 	<<else>>
 		"If you are looking for a body to do unmentionable things to, you came to the right place! Though these in particular just barely fall under slave laws."
 	<</if>>
-	<<GenerateMarketSlave "heap">>
+	<<= generateMarketSlave("heap")>>
 
 <<case "wetware">>
 
@@ -40,7 +40,7 @@ You visit the slave markets off the arcology plaza. It's always preferable to ex
 	<<else>>
 		Curious, you ask a technician why it's necessary for the merchandise to be so badly treated. He replies "Forcing stimulus on the hardware takes an enormous toll on their nervous and circulatory system. The nonfunctional components are disabled and removed as necessary to ensure optimal response to the imprinting process."
 	<</if>>
-	<<GenerateMarketSlave "wetware">>
+	<<= generateMarketSlave("wetware")>>
 
 <<case "kidnappers">>
 	You're in the area of the slave market populated by slave kidnappers, though of course they prefer more polite titles. The slaves here are cheap, and they look it. They're almost all recent catches from bad parts of the old world, and most of them have seen considerable abuse between the moment of their capture and entering your arcology.
@@ -60,7 +60,7 @@ You visit the slave markets off the arcology plaza. It's always preferable to ex
 		<</if>>
 		at least one of the slavers is amusing himself<<if $arcologies[0].FSGenderFundamentalist == "unset">> (or herself)<</if>> back there.
 	<</if>>
-	<<GenerateMarketSlave "kidnappers">>
+	<<= generateMarketSlave("kidnappers")>>
 
 
 <<case "indentures">>
@@ -81,7 +81,7 @@ You visit the slave markets off the arcology plaza. It's always preferable to ex
 		<</if>>
 		one of them is learning exactly what her indenture allows.
 	<</if>>
-	<<GenerateMarketSlave "indentures">>
+	<<= generateMarketSlave("indentures")>>
 
 
 <<case "hunters">>
@@ -102,7 +102,7 @@ You visit the slave markets off the arcology plaza. It's always preferable to ex
 		<</if>>
 		at least one of the runaway hunters is amusing himself<<if $arcologies[0].FSGenderFundamentalist == "unset">> (or herself)<</if>> back there.
 	<</if>>
-	<<GenerateMarketSlave "hunters">>
+	<<= generateMarketSlave("hunters")>>
 
 
 <<case "underage raiders">>
@@ -123,7 +123,7 @@ You visit the slave markets off the arcology plaza. It's always preferable to ex
 		<</if>>
 		at least one of the raiders is amusing himself<<if $arcologies[0].FSGenderFundamentalist == "unset">> (or herself)<</if>> back there.
 	<</if>>
-	<<GenerateMarketSlave "underage raiders">>
+	<<= generateMarketSlave("underage raiders")>>
 
 
 <<case "raiders">>
@@ -144,12 +144,12 @@ You visit the slave markets off the arcology plaza. It's always preferable to ex
 		<</if>>
 		at least one of the raiders is amusing himself<<if $arcologies[0].FSGenderFundamentalist == "unset">> (or herself)<</if>> back there.
 	<</if>>
-	<<GenerateMarketSlave "raiders">>
+	<<= generateMarketSlave("raiders")>>
 
 
 <<case "neighbor">>
 	You're in the area of the slave market that specializes in slaves from within the Free City, viewing slaves from ''<<print "$arcologies["+$numArcology+"].name">>''. Some were trained there, specifically for sale, while others are simply being sold.
-	<<GenerateMarketSlave "neighbor">>
+	<<= generateMarketSlave("neighbor")>>
 
 
 <<case "trainers">>
@@ -170,7 +170,7 @@ You visit the slave markets off the arcology plaza. It's always preferable to ex
 		<</if>>
 		at least one of them is applying some last-minute training to a slave in the holding pens nearby.
 	<</if>>
-	<<GenerateMarketSlave "trainers">>
+	<<= generateMarketSlave("trainers")>>
 
 
 <</switch>>
diff --git a/src/uncategorized/slaveStats.tw b/src/uncategorized/slaveStats.tw
index 899edfba6716ad3c17aa14c35ef7fce8520717de..38b87be0742ce96977a9fd5cfbd687b918ff1a81 100644
--- a/src/uncategorized/slaveStats.tw
+++ b/src/uncategorized/slaveStats.tw
@@ -225,7 +225,7 @@ slaveName: $activeSlave.slaveName	   /* TODO: figure out why this is being inden
 <br>skill.vaginal: $activeSlave.skill.vaginal
 <br>skill.oral: $activeSlave.skill.oral
 <br>skill.anal: $activeSlave.skill.anal
-<br>akill.whore: $activeSlave.skill.whore
+<br>skill.whore: $activeSlave.skill.whore
 <br>skill.entertainment: $activeSlave.skill.entertainment
 <br>skill.combat: $activeSlave.skill.combat
 <br>livingRules: $activeSlave.livingRules
diff --git a/src/uncategorized/stClaverPreparatory.tw b/src/uncategorized/stClaverPreparatory.tw
index 4d6c857b15a6fc5ac1b6370d4be2a81b3bda4120..9259e49a45babce85372637b5eb64d0e6434cca4 100644
--- a/src/uncategorized/stClaverPreparatory.tw
+++ b/src/uncategorized/stClaverPreparatory.tw
@@ -11,7 +11,7 @@
 
 <br><br>St. Claver Preparatory offers a fresh graduate for inspection via video call. The interview takes place in a very obviously medical office, with medical supply robots wheeling past its glass walls and nurses hurrying to and fro.
 
-<<GenerateMarketSlave "SCP">>
+<<= generateMarketSlave("SCP")>>
 <<set $slaveCost = slaveCost($activeSlave)>>
 <<if $SCP.schoolSale != 0>>
 	<<set $slaveCost = Math.trunc($slaveCost*0.5)>>
diff --git a/src/uncategorized/theFutanariSisters.tw b/src/uncategorized/theFutanariSisters.tw
index bc124a845257b5f26a3f8762ebe519db5ed0b176..8f26374c491aa7c2e046fbb3770d00dab3371092 100644
--- a/src/uncategorized/theFutanariSisters.tw
+++ b/src/uncategorized/theFutanariSisters.tw
@@ -126,7 +126,7 @@ The Sisters offer a member selected for sale into slavery for inspection via vid
 
 <br><br>
 
-<<GenerateMarketSlave "TFS">>
+<<= generateMarketSlave("TFS")>>
 <<set $slaveCost = slaveCost($activeSlave)>>
 <<set $slaveCost = Math.trunc($slaveCost*0.8)>>
 <<if $TFS.schoolSale != 0>>
diff --git a/src/uncategorized/theGymnasiumAcademy.tw b/src/uncategorized/theGymnasiumAcademy.tw
index 75ef108e035438ab4c2e30d964e34e7421092e8e..090d818552353ced328d0a4a63a50bb7a44b0360 100644
--- a/src/uncategorized/theGymnasiumAcademy.tw
+++ b/src/uncategorized/theGymnasiumAcademy.tw
@@ -11,7 +11,7 @@
 
 <br><br>The Gymnasium-Academy offers a fresh graduate for inspection via video call. The interview takes place in an office overlooking an expansive workout room, in which a large number of naked, fit young bodies are performing punishing workout routines.
 
-<<GenerateMarketSlave "TGA">>
+<<= generateMarketSlave("TGA")>>
 <<set $slaveCost = slaveCost($activeSlave)>>
 <<if $TGA.schoolSale != 0>>
 	<<set $slaveCost = Math.trunc($slaveCost*0.5)>>
diff --git a/src/uncategorized/theSlavegirlSchool.tw b/src/uncategorized/theSlavegirlSchool.tw
index 009ad94eeac45182df3577b01e9870f07ecd1079..942c5d2b52b0812429fba85123c55353adf56860 100644
--- a/src/uncategorized/theSlavegirlSchool.tw
+++ b/src/uncategorized/theSlavegirlSchool.tw
@@ -11,7 +11,7 @@
 
 <br><br>The Slavegirl School offers a fresh graduate for inspection via video call. The interview takes place in a faculty member's office. Absurdly, it's barely distinguishable from an office at any traditional institution of higher education. The only giveaway is the profusion of sex toys on the desk and the pornography on the walls.
 
-<<GenerateMarketSlave "TSS">>
+<<= generateMarketSlave("TSS")>>
 <<set $slaveCost = slaveCost($activeSlave)>>
 <<if $TSS.schoolSale != 0>>
 	<<set $slaveCost = Math.trunc($slaveCost*0.5)>>
diff --git a/src/utility/slaveCreationWidgets.tw b/src/utility/slaveCreationWidgets.tw
index 5dbf617ac10fc4d457e95ece399e5bd5f6021861..c3e8ff2a70e5382129a1579f0f314b2d4ad7a7ff 100644
--- a/src/utility/slaveCreationWidgets.tw
+++ b/src/utility/slaveCreationWidgets.tw
@@ -656,2769 +656,6 @@
 	<</replace>>
 <</widget>>
 
-/%
- Call as <<GenerateMarketSlave 'market' ['arcology']>>
-	If $args[0] is undefined, will generate a kidnapper's market slave.
-	If $args[0] is "neighbor", $numArcology is used as the index of which neighbor to use.
-
-%/
-<<widget GenerateMarketSlave>>
-<<if $args[0]>>
-	<<set _market = $args[0]>>
-<<else>>
-	<<set _market = "kidnappers">>
-<</if>>
-
-<<switch _market>>
-<<case "corporate">>
-	<<if $corpSpecAge == 1>>
-		<<set $activeSlaveOneTimeMinAge = $minimumSlaveAge>>
-		<<set $activeSlaveOneTimeMaxAge = 19>>
-	<<elseif $corpSpecAge == 3>>
-		<<if $pedo_mode == 1>>
-			<<set $activeSlaveOneTimeMinAge = 24>>
-			<<set $activeSlaveOneTimeMaxAge = $retirementAge>>
-		<<else>>
-			<<set $activeSlaveOneTimeMinAge = 36>>
-			<<set $activeSlaveOneTimeMaxAge = $retirementAge>>
-		<</if>>
-	<</if>>
-	<<set $one_time_age_overrides_pedo_mode = 1>>
-	<<if $corpSpecRaces.length > 0>>
-		<<set $fixedRace = $corpSpecRaces.random()>>
-	<</if>>
-	<<if $corpSpecGender == 1>>
-		Slaves without pussies are not trained.
-		<<set $activeSlave = GenerateNewSlave("XX")>>
-	<<elseif $corpSpecGender == 2>>
-		Slaves without dicks are not trained.
-		<<set $activeSlave = GenerateNewSlave("XY")>>
-	<<else>>
-		Slaves are passed to training regardless of whether they have dicks or pussies.
-		<<set $activeSlave = GenerateNewSlave()>>
-	<</if>>
-	<<set $activeSlave.origin = "She was enslaved and trained by your corporation.">>
-	<<set $activeSlave.devotion = random(-30,0)>>
-	<<set $activeSlave.trust = random(-45,-25)>>
-	<<set $activeSlave.health = random(25,50)>>
-
-	<<if $corpSpecDevotion > 0>>
-		<<set $activeSlave.devotion = random(-120,-90) + $corpSpecDevotion * 30>>
-		<<if $corpSpecDevotion == 1>>
-			It does everything it can to make trainees furious.
-		<<elseif $corpSpecDevotion == 2>>
-			It makes no effort to tame trainees.
-		<<elseif $corpSpecDevotion == 4>>
-			It focuses on selecting trainees predisposed towards obedience.
-		<<elseif $corpSpecDevotion == 5>>
-			It focuses on selecting trainees predisposed towards devotion to their owner.
-		<</if>>
-	<<else>>
-		It does not select trainees based on their initial feelings about slavery.
-	<</if>>
-	<<if $corpSpecIntelligence == 3>>
-		Intelligent slaves have a high priority for training.
-		<<set $activeSlave.intelligence = Intelligence.random({limitIntelligence: [30,100]})>>
-	<<elseif $corpSpecIntelligence == 1>>
-		Stupid slaves have a high priority for training.
-		<<set $activeSlave.intelligence = Intelligence.random({limitIntelligence: [-100,-30]})>>
-	<<else>>
-		Slaves' intelligence is not given special consideration.
-	<</if>>
-	<<if $corpSpecAge == 1>>
-		Teenage slaves are strongly favored for training.
-		/*<<set $activeSlave.age = random(18,19)>>*/
-	<<elseif $corpSpecAge == 3>>
-		Newly enslaved MILFs are strongly favored for training.
-		/*<<set $activeSlave.age = random(36,$retirementAge)>>*/
-	<<else>>
-		Promising slaves are trained without special sorting based on age.
-	<</if>>
-	<<if $corpSpecRaces.length == 12>>
-		There is no racial element to trainee selection.
-	<<elseif $corpSpecRaces.length == 1>>
-		<<set _corpSpecRace = $corpSpecRaces.random()>>
-		The corporation specializes in <<print _corpSpecRace>> slaves.
-	<<else>>
-		The corporation selects slaves based on race. /*getting into the specifics of which races exactly is a hellhole I'd rather not jump into*/
-	<</if>>
-	<<if $corpSpecTrust > 0>>
-		<<set $activeSlave.trust = random(-105,-85) + $corpSpecTrust * 20>>
-		<<if $corpSpecTrust == 1>>
-			The corporation applies extremely brutal slave breaking techniques, uncontrollable sobbing and bloodcurdling screams are heard around the clock.
-		<<elseif $corpSpecTrust == 2>>
-			The corporation applies brutal slave breaking techniques.
-		<<elseif $corpSpecTrust == 4>>
-			The corporation applies caring slave breaking techniques.
-		<<else>>
-			The corporation applies surprisingly caring slave breaking techniques that sometimes convince refugees and similar downtrodden people that slavery is a step up for them.
-		<</if>>
-	<<else>>
-		The corporation applies standard slave breaking techniques.
-	<</if>>
-	<<if $corpSpecHeight > 0>>
-		<<set $activeSlave.height = Math.trunc(Height.random($activeSlave, {limitMult: [$corpSpecHeight - 4, $corpSpecHeight - 2]}))>>
-		<<if $corpSpecHeight == 1>>
-			The corporation specifically targets very short slaves.
-		<<elseif $corpSpecHeight == 2>>
-			The corporation targets short slaves.
-		<<elseif $corpSpecHeight == 4>>
-			The corporation targets tall slaves.
-		<<elseif $corpSpecHeight == 5>>
-			The corporation specifically targets incredibly tall slaves.
-		<</if>>
-	<</if>>
-	<<if $corpSpecVirgin == 1>>
-		The corporation ensures its slaves are virgins.
-		<<set $activeSlave.anus = 0>>
-		<<if $activeSlave.vagina > 0>>
-			<<set $activeSlave.vagina = 0>>
-		<</if>>
-	<</if>>
-	<<if $corpSpecWeight > 0>>
-		<<set $activeSlave.weight = random(-85 + $corpSpecWeight * 20, -65 + $corpSpecWeight * 30)>>
-		<<if $corpSpecWeight == 1>>
-			Trainees are practically starved through a rigorous diet.
-		<<elseif $corpSpecWeight == 2>>
-			Trainees are put on a diet to get them nice and thin.
-		<<elseif $corpSpecWeight == 3>>
-			Thin trainees are fattened up; fat trainees are slimmed down.
-		<<elseif $corpSpecWeight == 5>>
-			Trainees are fattened until they're nice and curvy.
-		<<else>>
-			Trainees are fed as much as they can stomach.
-		<</if>>
-	<<else>>
-		Only the unhealthiest trainees are fed special diets.
-	<</if>>
-	<<if $corpSpecMuscle > 0>>
-		<<set $activeSlave.muscles = random(-85,-65) + $corpSpecMuscle * 25>>
-		<<if $corpSpecMuscle == 1>>
-			Trainees are kept physically inactive and frail.
-		<<elseif $corpSpecMuscle == 2>>
-			Trainees are kept physically weak.
-		<<elseif $corpSpecMuscle == 3>>
-			Trainees' muscles are kept soft.
-		<<elseif $corpSpecMuscle == 4>>
-			Trainees are brought up to a good state of physical fitness.
-		<<elseif $corpSpecMuscle == 5>>
-			Trainees are subjected to punishing workout routines and only sold when ripped.
-		<</if>>
-	<<else>>
-		Trainees are not subjected to any special workout routine.
-	<</if>>
-	<<if $corpSpecAccent == 1>>
-		The corporation teaches its trainees the lingua franca but allows them to retain distinctive accents.
-		<<set $activeSlave.accent = Math.clamp($activeSlave.accent, 0, 1)>>
-	<<elseif $corpSpecAccent == 2>>
-		The corporation teaches its trainees to speak the lingua franca without accent.
-		<<set $activeSlave.accent = 0>>
-	<<else>>
-		The corporation does not expend any special effort teaching language.
-	<</if>>
-	<<if $corpSpecEducation > 0>>
-		<<set $activeSlave.intelligenceImplant = 15 * $corpSpecEducation,
-		$activeSlave.skill.whoring = Math.clamp($activeSlave.skill.whoring, 15 * $corpSpecEducation, 100),
-		$activeSlave.skill.entertainment = Math.clamp($activeSlave.skill.entertainment, 15 * $corpSpecEducation, 100)>>
-		<<if $corpSpecEducation == 1>>
-			Its slave students receive basic slave educations.
-		<<elseif $corpSpecEducation == 2>>
-			Its slave students receive advanced slave educations.
-		<</if>>
-	<<else>>
-		Its slaves are not given special educational attention.
-	<</if>>
-	<<if $corpSpecSexEd > 0>>
-		<<set $activeSlave.skill.oral = Math.clamp($activeSlave.skill.oral, 15 * $corpSpecSexEd, 100)>>
-		<<if $activeSlave.anus > 0>>
-			<<set $activeSlave.skill.anal = Math.clamp($activeSlave.skill.anal, 15 * $corpSpecSexEd, 100)>>
-		<<elseif $activeSlave.anus == 0>>
-			<<set $activeSlave.skill.anal = Math.clamp($activeSlave.skill.anal, 15, 100)>>
-		<</if>>
-		<<if $activeSlave.vagina > 0>>
-			<<set $activeSlave.skill.vaginal = Math.clamp($activeSlave.skill.vaginal, 15 * $corpSpecSexEd, 100)>>
-		<<elseif $activeSlave.vagina == 0>>
-			<<set $activeSlave.skill.vaginal = Math.clamp($activeSlave.skill.vaginal, 15, 100)>>
-		<</if>>
-		<<if $corpSpecSexEd == 1>>
-			Trainees spend many hours learning sexual competence.
-		<<elseif $corpSpecSexEd == 2>>
-			Trainees spend days learning sexual skills.
-		<</if>>
-	<<else>>
-		No special sexual training is applied.
-	<</if>>
-
-	<<if $corpSpecCosmetics == 1>>
-		The corporation uses subtle cosmetic surgery to improve its slaves for sale.
-		<<if ($activeSlave.anus > 3)>>
-			<<set $activeSlave.anus = 3>>
-			<<if $activeSlave.skill.anal > 10>><<set $activeSlave.skill.anal -= 10>><</if>>
-		<</if>>
-		<<if ($activeSlave.vagina > 3)>>
-			<<set $activeSlave.vagina = 3>>
-			<<if $activeSlave.skill.vaginal > 10>><<set $activeSlave.skill.vaginal -= 10>><</if>>
-		<</if>>
-		<<if $activeSlave.faceImplant <= 30 && $activeSlave.face <= 95>>
-			<<if $activeSlave.faceShape == "masculine">><<set $activeSlave.faceShape = "androgynous">><</if>>
-			<<set $activeSlave.faceImplant = 20>>
-			<<set $activeSlave.face = Math.clamp($activeSlave.face+20,-100,100)>>
-		<</if>>
-		<<if ($activeSlave.ageImplant != 1) && ($activeSlave.visualAge >= 25)>>
-			<<set $activeSlave.ageImplant = 1>>
-			<<AgeImplantAdjustment $activeSlave>>
-		<</if>>
-		<<if ($activeSlave.voice == 1) && ($activeSlave.voiceImplant == 0)>>
-			<<set $activeSlave.voice += 1>>
-			<<set $activeSlave.voiceImplant += 1>>
-		<</if>>
-		<<set $activeSlave.waist = Math.trunc($activeSlave.waist,-100,-15)>>
-		<<if (($activeSlave.boobShape == "saggy") || ($activeSlave.boobShape == "downward-facing"))>>
-			<<set $activeSlave.boobShape = "normal">>
-		<</if>>
-		<<if (($activeSlave.boobShape == "normal") || ($activeSlave.boobShape == "wide-set"))>>
-			<<if $activeSlave.boobs > 800>><<set $activeSlave.boobShape = "torpedo-shaped">><<else>><<set $activeSlave.boobShape = "perky">><</if>>
-		<</if>>
-	<<else>>
-		The corporation does not use cosmetic surgery to improve its slaves for sale.
-	<</if>>
-	<<if $corpSpecPussy == 1>>
-		The corporation adds pussies where needed.
-		<<set $activeSlave.vagina = 0,
-		$activeSlave.ovaries = 1>>
-	<<elseif $corpSpecPussy == -1>>
-		The corporation removes pussies where possible.
-		<<set $activeSlave.vagina = -1,
-		$activeSlave.ovaries = 0>>
-	<</if>>
-	<<if $corpSpecDick == 1>>
-		The corporation adds dicks where needed.
-		<<set $activeSlave.dick = 2,
-		$activeSlave.prostate = 1>>
-	<<elseif $corpSpecDick == -1>>
-		The corporation removes dicks where possible.
-		<<set $activeSlave.dick = 0,
-		$activeSlave.prostate = 0>>
-	<</if>>
-	<<if $corpSpecBalls == 1 && $activeSlave.dick > 0>>
-		The corporation adds balls where needed.
-		<<set $activeSlave.balls = 2>>
-	<<elseif $corpSpecBalls == -1>>
-		The corporation removes balls where possible.
-		<<set $activeSlave.balls = 0,
-		$activeSlave.scrotum = 0>>
-	<</if>>
-	<<if ndef $corpSpecPussy && ndef $corpSpecDick && ndef $corpSpecBalls>>
-		The corporation does not reconfigure slave genitalia.
-	<</if>>
-	<<if $corpSpecHormones == 1>>
-		It applies almost universal female hormone therapy.
-		<<if ($activeSlave.dick > 0)>>
-			<<set $activeSlave.dick = Math.clamp($activeSlave.dick-1, 1, 6)>>
-		<</if>>
-		<<if ($activeSlave.balls > 0)>>
-			<<set $activeSlave.balls = Math.clamp($activeSlave.balls-1, 1, 6)>>
-		<</if>>
-		<<if ($activeSlave.clit > 0)>>
-			<<set $activeSlave.clit = Math.clamp($activeSlave.clit-1, 0, 3)>>
-		<</if>>
-		<<if ($activeSlave.voice < 3) && ($activeSlave.voice > 0)>>
-			<<set $activeSlave.voice = Math.clamp($activeSlave.voice+1, 1, 3)>>
-		<</if>>
-		<<if ($activeSlave.vagina > -1) && ($activeSlave.ovaries != 0) && ($activeSlave.vaginaLube < 2)>>
-			<<set $activeSlave.vaginaLube = Math.clamp($activeSlave.vaginaLube+1, 0, 2)>>
-		<</if>>
-		<<if (($activeSlave.butt-$activeSlave.buttImplant) < 2)>>
-			<<set $activeSlave.butt = Math.clamp($activeSlave.butt+1, 0, 10)>>
-		<</if>>
-		<<if (($activeSlave.boobs-$activeSlave.boobsImplant) < 500)>>
-			<<set $activeSlave.boobs = Math.clamp($activeSlave.boobs+400, 0, 10000)>>
-		<</if>>
-		<<if $activeSlave.face <= 95>>
-			<<set $activeSlave.face = Math.clamp($activeSlave.face+20,-100,100)>>
-		<</if>>
-		<<if ($activeSlave.faceShape == "masculine")>>
-			<<set $activeSlave.faceShape = "androgynous">>
-		<<elseif ($activeSlave.faceShape == "androgynous")>>
-			<<set $activeSlave.faceShape = "normal">>
-		<</if>>
-		<<if ($activeSlave.physicalAge < 25)>>
-			<<set $activeSlave.shoulders = Math.clamp($activeSlave.shoulders-1, -2, 2)>>
-			<<set $activeSlave.hips = Math.clamp($activeSlave.hips+1, -2, 2)>>
-		<</if>>
-		<<if ($activeSlave.muscles > 30) && ($activeSlave.diet != "muscle building") && ($generalUpgradeMuscle != "toned") && ($generalUpgradeMuscle != "ripped")>>
-			<<set $activeSlave.muscles = Math.clamp($activeSlave.muscles-10, 0, 30)>>
-		<</if>>
-		<<if ($activeSlave.nipples == "tiny")>>
-			<<set $activeSlave.nipples = "cute">>
-		<</if>>
-		<<if ($activeSlave.height > 180)>>
-			<<set $activeSlave.height -= random(3,6)>>
-		<</if>>
-		<<set $activeSlave.devotion += random(5,10)>>
-		<<set $activeSlave.trust += random(5,10)>>
-		<<set $activeSlave.attrXY = Math.clamp($activeSlave.attrXY+random(5,10), 0, 100)>>
-	<<elseif $corpSpecHormones == 2>>
-		It applies almost universal male hormone therapy.
-		<<if ($activeSlave.dick > 0)>>
-			<<set $activeSlave.dick = Math.clamp($activeSlave.dick+1, 1, 6)>>
-		<</if>>
-		<<if ($activeSlave.balls > 0)>>
-			<<set $activeSlave.balls = Math.clamp($activeSlave.balls+1, 1, 6)>>
-		<</if>>
-		<<if ($activeSlave.clit > 0) && ($activeSlave.dick == 0)>>
-			<<set $activeSlave.clit = Math.clamp($activeSlave.clit+1, 0, 3)>>
-		<</if>>
-		<<if ($activeSlave.voice > 1)>>
-			<<set $activeSlave.voice = Math.clamp($activeSlave.voice-1, 1, 3)>>
-		<</if>>
-		<<if ($activeSlave.vagina > -1) && ($activeSlave.vaginaLube > 0)>>
-			<<set $activeSlave.vaginaLube = Math.clamp($activeSlave.vaginaLube-1, 0, 2)>>
-		<</if>>
-		<<set $activeSlave.butt = Math.clamp($activeSlave.butt-1, 0, 10)>>
-		<<set $activeSlave.boobs = Math.clamp($activeSlave.boobs-400, 0, 10000)>>
-		<<if $activeSlave.face > 10>>
-			<<set $activeSlave.face = Math.clamp($activeSlave.face-20,-100,100)>>
-		<</if>>
-		<<if ($activeSlave.faceShape == "androgynous")>>
-			<<set $activeSlave.faceShape = "masculine">>
-		<<else>>
-			<<set $activeSlave.faceShape = "androgynous">>
-		<</if>>
-		<<if ($activeSlave.physicalAge < 25)>>
-			<<set $activeSlave.shoulders = Math.clamp($activeSlave.shoulders+1, -2, 2)>>
-			<<set $activeSlave.hips = Math.clamp($activeSlave.hips-1, -2, 2)>>
-		<</if>>
-		<<if ($activeSlave.muscles <= 95) && ($activeSlave.diet != "slimming")>>
-			<<set $activeSlave.muscles = Math.clamp($activeSlave.muscles+20, 0, 3)>>
-		<</if>>
-		<<if ($activeSlave.nipples == "huge")>>
-			<<set $activeSlave.nipples = "cute">>
-		<</if>>
-		<<if ($activeSlave.height < 155)>>
-			<<set $activeSlave.height += random(3,6)>>
-		<</if>>
-		<<set $activeSlave.devotion -= random(5,10)>>
-		<<set $activeSlave.trust -= random(5,10)>>
-		<<set $activeSlave.attrXX = Math.clamp($activeSlave.attrXX+random(5,10), 0, 100)>>
-	<<else>>
-		It does not use hormones on a systematic level.
-	<</if>>
-	<<if $corpSpecInjection > 0>>
-		<<if $corpSpecInjection == 1>>
-			If anything, hormones are used to reduce asset sizes.
-			<<set $activeSlave.lips = random(0, 20),
-			$activeSlave.butt = random(1, 2),
-			$activeSlave.boobs = 10 * random(30, 60),
-			$activeSlave.nipples = either("cute", "tiny")>>
-			<<if $activeSlave.dick > 0>>
-				<<set $activeSlave.dick = random(1, 2)>>
-			<</if>>
-			<<if $activeSlave.balls > 0>>
-				<<set $activeSlave.balls = random(1, 2)>>
-			<</if>>
-		<<elseif $corpSpecInjection == 2>>
-			Growth hormones are used to correct flat chests and butts.
-			<<set $activeSlave.lips = random(25, 45),
-			$activeSlave.butt = random(3, 4),
-			$activeSlave.boobs = 10 * random(70, 100),
-			$activeSlave.nipples = either("cute", "partially inverted")>>
-			<<if $activeSlave.dick > 0>>
-				<<set $activeSlave.dick = random(3, 4)>>
-			<</if>>
-			<<if $activeSlave.balls > 0>>
-				<<set $activeSlave.balls = random(3, 4)>>
-			<</if>>
-		<<elseif $corpSpecInjection == 3>>
-			Growth hormones are used throughout slave training to ensure expansion.
-			<<set $activeSlave.lips = random(35, 55),
-			$activeSlave.butt = random(4, 5),
-			$activeSlave.boobs = 10 * random(120, 180),
-			$activeSlave.nipples = either("cute", "partially inverted")>>
-			<<if $activeSlave.dick > 0>>
-				<<set $activeSlave.dick = random(4, 5)>>
-			<</if>>
-			<<if $activeSlave.balls > 0>>
-				<<set $activeSlave.balls = random(4, 5)>>
-			<</if>>
-		<<elseif $corpSpecInjection == 4>>
-			Advanced growth hormones are applied on a grand scale.
-			<<set $activeSlave.lips = random(55, 85),
-			$activeSlave.butt = random(6, 8),
-			$activeSlave.boobs = 100 * random(40, 60),
-			$activeSlave.nipples = either("huge", "inverted")>>
-			<<if $activeSlave.dick > 0>>
-				<<set $activeSlave.dick = random(5, 6)>>
-			<</if>>
-			<<if $activeSlave.balls > 0>>
-				<<set $activeSlave.balls = random(5, 6)>>
-			<</if>>
-		<<elseif $corpSpecInjection == 5>>
-			Advanced growth hormones are applied with total focus on increasing slaves' productiveness.
-			<<set $activeSlave.lips = random(35, 65),
-			$activeSlave.butt = random(4, 6),
-			$activeSlave.boobs = 100 * random(60, 80),
-			$activeSlave.nipples = either("huge", "inverted")>>
-			<<if $activeSlave.dick > 0>>
-				<<set $activeSlave.dick = random(6, 8)>>
-			<</if>>
-			<<if $activeSlave.balls > 0>>
-				<<set $activeSlave.balls = random(5, 7)>>
-			<</if>>
-		<</if>>
-	<<else>>
-		Growth hormones are not applied.
-	<</if>>
-	<<if $corpSpecImplants == 1>>
-		Slaves are given tasteful breast, butt, and lip implants.
-		<<set $activeSlave.buttImplant = 1>>
-		<<set $activeSlave.butt = Math.clamp($activeSlave.butt+$activeSlave.buttImplant, 0, 10)>>
-		<<set $activeSlave.boobsImplant = 600>>
-		<<set $activeSlave.boobs = Math.clamp($activeSlave.boobs+$activeSlave.boobsImplant, 0, 10000)>>
-		<<set $activeSlave.lipsImplant = 20>>
-		<<set $activeSlave.lips = Math.clamp($activeSlave.lips+$activeSlave.lipsImplant, 0, 55)>>
-	<<elseif $corpSpecImplants == 2>>
-		Slaves are given absurd breast, butt, and lip implants.
-		<<set $activeSlave.buttImplant = 4>>
-		<<set $activeSlave.butt = Math.clamp($activeSlave.butt+$activeSlave.buttImplant, 0, 10, $activeSlave.butt+$activeSlave.buttImplant)>>
-		<<set $activeSlave.boobsImplant = 2400>>
-		<<set $activeSlave.boobs = Math.clamp($activeSlave.boobs+$activeSlave.boobsImplant, 0, 10000)>>
-		<<set $activeSlave.lipsImplant = 60>>
-		<<set $activeSlave.lips = Math.clamp($activeSlave.lipsImplant+$activeSlave.buttImplant, 0, 100)>>
-	<<else>>
-		Slaves are not given breast, butt, or lip implants.
-	<</if>>
-	<<if $corpSpecAmputee == 1>>
-		The corporation removes all limbs from its slaves.
-		<<set $activeSlave.amp = 1>>
-	<</if>>
-	<<if $corpSpecMilk == 1>>
-		The corporation provides naturally lactating slaves
-		<<set $activeSlave.lactation = 1,
-		$activeSlave.lactationDuration = 2,
-		$activeSlave.lactationAdaptation = 15>>
-	<<elseif $corpSpecMilk == 2>>
-		The corporation provides slaves with chemically induced lactation.
-		<<set $activeSlave.lactation = 2,
-		$activeSlave.lactationDuration = 2>>
-	<</if>>
-
-
-<<case "neighbor">>
-	<<if ($numArcology < $arcologies.length) && ($numArcology > 0)>>
-		<<set _market = $numArcology>>
-	<<else>>
-		<<set _market = 1>>
-	<</if>>
-
-	<<set $activeArcology = $arcologies[0]>>
-	<<set $targetArcology = $arcologies[_market]>>
-	<<include "Arcology Opinion">>
-	<<set $opinion = Math.trunc($opinion/20)>>
-	<<set $opinion = Math.clamp($opinion, -10, 10)>>
-
-	<<if $arcologies[_market].FSSubjugationist > 20>>
-		<<set $fixedRace = $arcologies[_market].FSSubjugationistRace>>
-	<</if>>
-	<<set $activeSlave = GenerateNewSlave()>>
-	<<set $activeSlave.origin = "You bought her from ">>
-	<<set $activeSlave.origin += $arcologies[_market].name>>
-	<<set $activeSlave.origin += ".">>
-	<<set $activeSlave.devotion = -20 + Math.trunc($arcologies[_market].prosperity/10) + random(0,10)>>
-	<<set $activeSlave.trust = -20 + Math.trunc($arcologies[_market].prosperity/10) + random(0,10)>>
-	<<set $activeSlave.health = -50 + Math.trunc($arcologies[_market].prosperity/25) + random(0,5)>>
-	<<if $activeSlave.vagina > 0>>
-		<<set $activeSlave.skill.vaginal += Math.clamp($arcologies[_market].prosperity/2, 15, 100)>>
-	<</if>>
-	<<if $activeSlave.anus > 0>>
-		<<set $activeSlave.skill.anal += Math.clamp($arcologies[_market].prosperity/2, 15, 100)>>
-	<</if>>
-	<<set $activeSlave.skill.oral += Math.clamp($arcologies[_market].prosperity/2, 15, 100)>>
-	<<set $activeSlave.attrKnown = 1>>
-	<<set $activeSlave.fetishKnown = 1>>
-	<<if $activeSlave.accent >= 3>>
-		<<if $arcologies[_market].prosperity > random(0,200)>>
-			<<set $activeSlave.accent -= 1>>
-		<</if>>
-	<</if>>
-	<<if $arcologies[_market].prosperity > random(0,200)>>
-		<<set $activeSlave.sexualFlaw = "none">>
-	<</if>>
-	<<if $arcologies[_market].prosperity > random(0,200)>>
-		<<set $activeSlave.behavioralFlaw = "none">>
-	<</if>>
-	<<if $arcologies[_market].FSSubjugationist > 20>>
-		They're universally $arcologies[_market].FSSubjugationistRace.
-	<</if>>
-
-	<<if $arcologies[_market].FSRepopulationFocus > 50>>
-		They are exclusively female and all extremely pregnant.
-		<<set $activeSlave.ovaries = 1>>
-		<<set $activeSlave.vagina = random(0,1,1,1,1,2,2,3,3,3,3)>>
-		<<set $activeSlave.dick = 0>>
-		<<set $activeSlave.balls = 0>>
-		<<set $activeSlave.scrotum = 0>>
-		<<set $activeSlave.preg = 0>> /*removing contraception of default slave generation so isFertile can work right*/
-		<<if isFertile($activeSlave)>>
-			<<set $activeSlave.vagina = random(1,4)>>
-			<<set $activeSlave.preg = random(21,39)>>
-			<<if random(1,2) == 1 && $seeHyperPreg == 1>>
-				<<set $activeSlave.pregType = random(3,29)>>
-				<<set $activeSlave.pregAdaptation = 250>>
-			<<else>>
-				<<set $activeSlave.pregType = random(3,8)>>
-				<<set $activeSlave.pregAdaptation = 100>>
-			<</if>>
-			<<run SetBellySize($activeSlave)>>
-		<</if>>
-		<<set $activeSlave.lactation = random(0,1)>>
-		<<if $activeSlave.lactation > 0>>
-			<<set $activeSlave.lactationDuration = 2>>
-		<</if>>
-	<<elseif $arcologies[_market].FSRestart > 50>>
-		They have all been rendered unable to reproduce.
-		<<if $activeSlave.ovaries == 1>>
-			<<set $activeSlave.preg = -2, $activeSlave.belly = 0, $activeSlave.bellyPreg = 0>>
-		<</if>>
-		<<if $activeSlave.balls > 0>>
-			<<set $activeSlave.balls = 0>>
-		<</if>>
-		<<if $arcologies[_market].FSRestartResearch == 1>>
-			Smart and attractive slaves are beginning to be a rarity lately.
-			<<if $activeSlave.face >= 0>>
-				<<set $activeSlave.face -= 100>>
-			<</if>>
-			<<if $activeSlave.intelligence >= 0>>
-				<<set $activeSlave.intelligence -= 100>>
-			<</if>>
-			<<set $activeSlave.chem = random(40,100)>>
-			<<set $activeSlave.addict = either(0,0,0,0,0,0,0,0,5,20,20,50,100)>>
-		<</if>>
-	<</if>>
-
-	<<if $arcologies[_market].FSGenderRadicalist > 50>>
-		They all show signs of intensive hormone therapy.
-		<<set $activeSlave.chem += random(10,100)>>
-		<<if $activeSlave.dick > 0>>
-			<<set $activeSlave.boobs += 100*random(0,4)>>
-			<<set $activeSlave.butt += random(0,2)>>
-			<<if $activeSlave.hips < 2>>
-				<<set $activeSlave.hips += random(0,1)>>
-			<</if>>
-			<<if $activeSlave.shoulders > -2>>
-				<<set $activeSlave.shoulders -= random(0,1)>>
-			<</if>>
-			<<if $activeSlave.face < 80>>
-				<<set $activeSlave.face += random(0,20)>>
-			<</if>>
-			<<if $activeSlave.faceShape == "masculine">>
-				<<if random(0,1) == 0>>
-					<<set $activeSlave.faceShape = "androgynous">>
-				<</if>>
-			<</if>>
-			<<if $activeSlave.dick > 2>>
-				<<set $activeSlave.dick -= random(0,2)>>
-			<</if>>
-			<<if $activeSlave.balls > 2>>
-				<<set $activeSlave.balls -= random(0,2)>>
-			<</if>>
-			<<if $arcologies[_market].FSGenderRadicalistResearch == 1 && random(1,100) <= 20>>
-				This one has a notably rounded belly for a slave with no vagina.
-				<<set $activeSlave.ovaries = 0>>
-				<<set $activeSlave.vagina = -1>>
-				<<set $activeSlave.mpreg = 1>>
-				<<if isFertile($activeSlave)>>
-					<<set $activeSlave.preg = random(1,39)>>
-					<<set $activeSlave.pregType = setPregType($activeSlave)>>
-					<<run SetBellySize($activeSlave)>>
-				<</if>>
-			<</if>>
-		<<else>>
-			<<set $activeSlave.boobs -= 100*random(0,2)>>
-			<<set $activeSlave.butt -= random(0,1)>>
-			<<if $activeSlave.hips > -2>>
-				<<set $activeSlave.hips -= random(0,1)>>
-			<</if>>
-			<<if $activeSlave.shoulders < 2>>
-				<<set $activeSlave.shoulders += random(0,1)>>
-			<</if>>
-			<<if $activeSlave.face >= -80>>
-				<<set $activeSlave.face -= random(0,20)>>
-			<</if>>
-			<<if $activeSlave.faceShape != "androgynous">>
-				<<if random(0,1) == 0>>
-					<<set $activeSlave.faceShape = "androgynous">>
-				<</if>>
-			<</if>>
-			<<set $activeSlave.clit += random(0,2)>>
-			<<set $activeSlave.labia += random(0,1)>>
-			<<if $activeSlave.muscles <= 95>>
-				<<set $activeSlave.muscles += random(0,20)>>
-			<</if>>
-		<</if>>
-	<<elseif $arcologies[_market].FSGenderFundamentalist > 50>>
-		Fertile slaves from there almost never appear without swollen bellies and sensitive nipples.
-		<<set $activeSlave.preg = 0>> /*removing contraception of default slave generation so isFertile can work right*/
-		<<if isFertile($activeSlave)>>
-			<<set $activeSlave.preg = random(1,40)>>
-			<<set $activeSlave.pregType = setPregType($activeSlave)>>
-			<<run SetBellySize($activeSlave)>>
-			<<set $activeSlave.lactation = random(0,1)>>
-			<<if $activeSlave.lactation > 0>>
-				<<set $activeSlave.lactationDuration = 2>>
-			<</if>>
-		<</if>>
-	<</if>>
-
-	<<if $arcologies[_market].FSPaternalist > 20>>
-		They're often gratifyingly devoted and trusting.
-		<<if $activeSlave.devotion < 10>>
-			<<set $activeSlave.devotion += random(0,8)>>
-		<</if>>
-		<<if $activeSlave.trust < 50>>
-			<<set $activeSlave.trust += random(0,8)>>
-		<</if>>
-	<<elseif $arcologies[_market].FSDegradationist > 20>>
-		They can be depended upon to be terrified into abject submission.
-		<<run DegradingName($activeSlave)>>
-		<<if $activeSlave.trust > -10>>
-			<<set $activeSlave.trust -= random(0,10)>>
-		<</if>>
-		<<if random (1,100) > 90>>
-			<<set $activeSlave.eyes = -2>>
-		<</if>>
-		<<if random (1,100) > 90>>
-			<<set $activeSlave.hears = -2>>
-		<</if>>
-		<<if $arcologies[_market].FSRepopulationFocus == "unset" && $arcologies[_market].FSBodyPurist == "unset">>
-			<<if isFertile($activeSlave) && random(1,10) == 9>>
-				<<set $activeSlave.abortionTat = random(1, (Math.min($activeSlave.physicalAge-$fertilityAge, $activeSlave.physicalAge-$minimumSlaveAge))*2)>>
-			<</if>>
-		<</if>>
-	<</if>>
-
-	<<if $arcologies[_market].FSBodyPurist > 80>>
-		They're quite pristine, free of any genomic damage or addictions regardless of any transformations they've had.
-		<<set $activeSlave.chem = 0>>
-		<<set $activeSlave.addict = 0>>
-	<<elseif $arcologies[_market].FSTransformationFetishist > 80>>
-		They vary in terms of what size their implants are, not whether they have them.
-		<<set $activeSlave.chem += random(10,100)>>
-		<<set $activeSlave.boobsImplant = 200*random(2,20)>>
-		<<set $activeSlave.boobs += $activeSlave.boobsImplant>>
-		<<set $activeSlave.buttImplant = random(2,5)>>
-		<<set $activeSlave.butt += $activeSlave.buttImplant>>
-		<<set $activeSlave.lipsImplant = either(10,20)>>
-		<<set $activeSlave.lips += $activeSlave.lipsImplant>>
-		<<if $arcologies[_market].FSTransformationFetishistResearch == 1 && random(1,100) <= 20>>
-			This one's implants are unusually large; a showcase of what $his home arcology is capable of.
-			<<set $activeSlave.boobsImplant += 200*random(100,200)>>
-			<<set $activeSlave.boobs += $activeSlave.boobsImplant>>
-			<<set $activeSlave.buttImplant += random(7,12)>>
-			<<set $activeSlave.butt += $activeSlave.buttImplant>>
-		<</if>>
-	<</if>>
-
-	<<if $arcologies[_market].FSYouthPreferentialist > 20>>
-		They're usually on the younger side.
-		<<if $activeSlave.actualAge > 30>>
-			<<if random(0,1) == 0>>
-				<<set $activeSlave.actualAge = random(18,25)>>
-				<<set $activeSlave.visualAge = $activeSlave.actualAge>>
-				<<set $activeSlave.physicalAge = $activeSlave.actualAge>>
-				<<set $activeSlave.ovaryAge = $activeSlave.actualAge>>
-				<<if $activeSlave.boobs > 400>>
-					<<set $activeSlave.boobs -= 100*random(0,2)>>
-				<</if>>
-				<<if $activeSlave.butt > 3>>
-					<<set $activeSlave.butt -= random(0,2)>>
-				<</if>>
-			<<elseif $arcologies[_market].FSYouthPreferentialistResearch == 1>>
-				<<if $activeSlave.actualAge > 30>>
-					Well, all of them certainly look it. Always best to check their ages before buying.
-					<<set $activeSlave.visualAge = random(18,25)>>
-					<<set $activeSlave.chem += random(10,40)>>
-				<</if>>
-			<<else>>
-				And if they aren't, they sure don't look their age.
-				<<set $activeSlave.ageImplant = 1, $activeSlave.faceImplant += random(10,30)>>
-				<<AgeImplantAdjustment $activeSlave>>
-			<</if>>
-		<</if>>
-	<<elseif $arcologies[_market].FSMaturityPreferentialist > 20>>
-		They're usually on the more mature side.
-		<<if $activeSlave.actualAge < 30>>
-			<<if random(0,1) == 0>>
-				<<set $activeSlave.actualAge = random(36,$retirementAge)>>
-				<<set $activeSlave.visualAge = $activeSlave.actualAge>>
-				<<set $activeSlave.physicalAge = $activeSlave.actualAge>>
-				<<set $activeSlave.ovaryAge = $activeSlave.actualAge>>
-				<<if $activeSlave.boobs < 400>>
-					<<set $activeSlave.boobs += 100*random(0,2)>>
-				<</if>>
-				<<if $activeSlave.butt < 3>>
-					<<set $activeSlave.butt += random(0,2)>>
-				<</if>>
-			<</if>>
-		<</if>>
-	<</if>>
-
-	<<if $arcologies[_market].FSSlimnessEnthusiast > 20>>
-		They're never overweight, and are often quite lithe.
-		<<if $activeSlave.boobs > 400>>
-			<<set $activeSlave.boobs -= 100*random(0,2)>>
-		<</if>>
-		<<if $activeSlave.butt > 3>>
-			<<set $activeSlave.butt -= random(0,2)>>
-		<</if>>
-		<<if $activeSlave.weight > 10>>
-			<<set $activeSlave.weight = random(-30,0)>>
-		<</if>>
-		<<if $arcologies[_market].FSSlimnessEnthusiastResearch == 1 && random(1,100) <= 50>>
-			This one is perfectly flat; an ideal showcase of $his home arcology's tastes.
-			<<set $activeSlave.boobs = 100>>
-			<<set $activeSlave.butt = 0>>
-			<<set $activeSlave.weight = random(-30,0)>>
-		<</if>>
-	<<elseif $arcologies[_market].FSAssetExpansionist > 20>>
-		Their butts are usually imposing, but their tits are what's often most impressive.
-		<<set $activeSlave.chem += random(10,100)>>
-		<<if $activeSlave.boobs < 5000>>
-			<<set $activeSlave.boobs += 100*random(5,50)>>
-		<</if>>
-		<<if $activeSlave.butt < 6>>
-			<<set $activeSlave.butt += random(2,4)>>
-		<</if>>
-		<<if $activeSlave.weight < -10>>
-			<<set $activeSlave.weight += random(0,20)>>
-		<</if>>
-		<<if $arcologies[_market].FSAssetExpansionistResearch == 1 && random(1,100) <= 20>>
-			This one is unusually large; a showcase of what $his home arcology is capable of.
-			<<set $activeSlave.boobs = 200*random(100,200)>>
-			<<set $activeSlave.butt = random(10,20)>>
-			<<if $activeSlave.dick > 0 && $seeDicks != 0>>
-				<<set $activeSlave.dick = random(20,30)>>
-				<<set $activeSlave.balls = random(20,125)>>
-			<</if>>
-		<</if>>
-	<</if>>
-
-	<<if $arcologies[_market].FSPhysicalIdealist > 20>>
-		They're usually quite muscular, some to a truly imposing degree, and they're almost never unhealthy.
-		<<set $activeSlave.muscles = random(10,100)>>
-		<<if $activeSlave.health < 20>>
-			<<set $activeSlave.health += random(0,8)>>
-		<</if>>
-	<<elseif $arcologies[_market].FSHedonisticDecadence > 20>>
-		<<if $arcologies[_market].FSSlimnessEnthusiast > 20>>
-			They're quite soft, usually sporting a cute muffin top, and rather laid back.
-			<<set $activeSlave.weight = random(10,25)>>
-		<<else>>
-			They're usually very soft and rather laid back.
-			<<set $activeSlave.weight = random(30,180)>>
-		<</if>>
-		Though they often come with intense fetishes.
-		<<set $activeSlave.muscles = random(-50,0)>>
-		<<set $activeSlave.trust += random(5,15)>>
-		<<set $activeSlave.energy += random(0,10)>>
-		<<if $arcologies[_market].FSHedonisticDecadenceResearch == 1>>
-			They appear to have greatly enjoyed their stay at $arcologies[_market].name.
-			<<set $activeSlave.energy += random(0,10), $activeSlave.trust += random(10,20), $activeSlave.devotion += random(10,20)>>
-		<</if>>
-		<<if random(0,3) == 0>>
-			<<set $activeSlave.behavioralFlaw = "gluttonous">>
-		<</if>>
-		<<if $activeSlave.fetish == "none">>
-			<<set $activeSlave.fetish = either("boobs", "buttslut", "cumslut", "dom", "humiliation", "masochist", "pregnancy", "sadist", "submissive")>>
-		<</if>>
-		<<set $activeSlave.fetishStrength = random(60,90)>>
-		<<if random(1,100) <= 5 && $activeSlave.fetish != "mindbroken">>
-			<<switch $activeSlave.fetish>>
-			<<case "submissive">>
-				<<set $activeSlave.sexualFlaw = "neglectful">>
-			<<case "cumslut">>
-				<<set $activeSlave.sexualFlaw = "cum addict">>
-			<<case "humiliation">>
-				<<set $activeSlave.sexualFlaw = "attention whore">>
-			<<case "buttslut">>
-				<<set $activeSlave.sexualFlaw = "anal addict">>
-			<<case "boobs">>
-				<<set $activeSlave.sexualFlaw = "breast growth">>
-			<<case "pregnancy">>
-				<<set $activeSlave.sexualFlaw = "breeder">>
-			<<case "dom">>
-				<<set $activeSlave.sexualFlaw = "abusive">>
-			<<case "sadist">>
-				<<set $activeSlave.sexualFlaw = "malicious">>
-			<<case "masochist">>
-				<<set $activeSlave.sexualFlaw = "self hating">>
-			<</switch>>
-			<<set $activeSlave.fetishStrength = 100>>
-		<</if>>
-	<</if>>
-
-	<<if $arcologies[_market].FSPastoralist > 20>>
-		Lactation is nearly universal among them, sometimes in ludicrous quantities. They tend to have huge udders, as well.
-		<<set $activeSlave.chem += random(10,100)>>
-		<<if $activeSlave.boobs < 5000>>
-			<<set $activeSlave.boobs += 100*random(5,50)>>
-		<</if>>
-		<<if $activeSlave.lactation == 0>>
-			<<set $activeSlave.lactation = either(0,1,1,1,1,2)>>
-		<</if>>
-		<<if $activeSlave.lactation > 0>>
-			<<set $activeSlave.lactationDuration = 2>>
-		<</if>>
-		<<if $activeSlave.weight < -10>>
-			<<set $activeSlave.weight += random(0,20)>>
-		<</if>>
-	<<elseif $arcologies[_market].FSCummunism > 20>>
-		Big balls and huge loads are commonplace among them, even if they sometimes lack dicks. They tend to be hard workers, as well.
-		<<set $activeSlave.chem += random(10,100)>>
-		<<if $arcologies[_market].FSRestart > 50>>
-			<<set $activeSlave.dick = 0, $activeSlave.vagina = -1>>
-		<</if>>
-		<<if $activeSlave.balls < 20>>
-			<<set $activeSlave.balls += random(5,20)>>
-		<</if>>
-		<<set $activeSlave.scrotum = $activeSlave.balls-5>>
-		<<set $activeSlave.prostate = either(1,1,1,2,2,3)>>
-		<<if $activeSlave.muscles < 30>>
-			<<set $activeSlave.muscles += random(0,20)>>
-		<</if>>
-	<</if>>
-
-	<<if $arcologies[_market].FSChattelReligionist > 20>>
-		They're rarely anything but devoted, and sometimes present interesting peccadilloes.
-		<<set $activeSlave.slaveName = setup.chattelReligionistSlaveNames.random()>>
-		<<if $activeSlave.devotion < 10>>
-			<<set $activeSlave.devotion += random(0,10)>>
-		<</if>>
-		<<if $activeSlave.devotion < 10>>
-			<<set $activeSlave.devotion += random(0,10)>>
-		<</if>>
-		<<if random(0,1) == 0>>
-			<<set $activeSlave.behavioralQuirk = "sinful">>
-		<</if>>
-	<</if>>
-
-	<<if $arcologies[_market].FSRomanRevivalist > 20>>
-		They've often seen things that drive any squeamishness out of them.
-		<<set $activeSlave.slaveName = setup.romanSlaveNames.random()>>
-		<<if random(0,1) == 0>>
-			<<set $activeSlave.sexualQuirk = "unflinching">>
-		<</if>>
-	<<elseif $arcologies[_market].FSAztecRevivalist > 20>>
-		They've seen sights that will traumatize almost anyone<<if !canSee($activeSlave)>>, so to speak<</if>>.
-		<<set $activeSlave.slaveName = setup.aztecSlaveNames.random()>>
-		<<if random(0,1) == 0>>
-			<<set $activeSlave.trust = -30>>
-		<</if>>
-	<<elseif $arcologies[_market].FSEgyptianRevivalist > 20>>
-		They've often done things that give them a distinct appetite for perversion.
-		<<set $activeSlave.slaveName = setup.ancientEgyptianSlaveNames.random()>>
-		<<if random(0,1) == 0>>
-			<<set $activeSlave.sexualQuirk = "perverted">>
-		<</if>>
-	<<elseif $arcologies[_market].FSEdoRevivalist > 20>>
-		They have frequently absorbed much culture there.
-		<<set $activeSlave.slaveName = setup.edoSlaveNames.random()>>
-		<<set $activeSlave.skill.entertainment = Math.clamp($activeSlave.skill.entertainment, 35, 100)>>
-	<<elseif $arcologies[_market].FSArabianRevivalist > 20>>
-		They've often been part of large harems in which selflessness is prized.
-		<<if random(0,1) == 0>>
-			<<set $activeSlave.sexualQuirk = "caring">>
-		<</if>>
-	<<elseif $arcologies[_market].FSChineseRevivalist > 20>>
-		They've all passed through a thorough and uncompromising educational system for slaves.
-		<<set $activeSlave.intelligenceImplant = 10>>
-		<<if $activeSlave.intelligence < 60>>
-			<<set $activeSlave.intelligence += random(0,20)>>
-		<</if>>
-	<</if>>
-
-	<<if $arcologies[_market].FSIncestFetishist > 20>>
-		Incest is acceptable, if not preferable to them.
-		<<if $activeSlave.sexualQuirk == "none" && $activeSlave.behavioralQuirk == "none">>
-			<<if random(0,1) == 0>>
-				<<set $activeSlave.sexualQuirk = "perverted">>
-			<<else>>
-				<<set $activeSlave.behavioralQuirk = "sinful">>
-			<</if>>
-		<<elseif $activeSlave.sexualQuirk == "none" || $activeSlave.sexualQuirk == "perverted">>
-			<<set $activeSlave.sexualQuirk = "perverted">>
-		<<else>>
-			<<set $activeSlave.behavioralQuirk = "sinful">>
-		<</if>>
-	<</if>>
-
-	<<if ($arcologies[0].FSDegradationist != "unset") && ($arcologies[_market].FSPaternalist != "unset")>>
-		<<set $activeSlave.devotion = random(-90,-60)>>
-		<<set $activeSlave.trust = -20>>
-		'' $arcologies[_market].name'' is Paternalist, and your arcology is Degradationist. To its slaves, other niceties of social alignment are trivial. They view your arcology as a literal Hell on Earth.
-	<<elseif ($arcologies[0].FSDegradationist != "unset") && ($arcologies[_market].FSPaternalist != "unset")>>
-		<<set $activeSlave.devotion = random(60,90)>>
-		<<set $activeSlave.trust = 20>>
-		'' $arcologies[_market].name'' is Degradationist, and your arcology is Paternalist. To its slaves, other niceties of social alignment are trivial. They view your arcology as a promised land.
-	<<elseif $opinion != 0>>
-		<<set $activeSlave.devotion += $opinion>>
-		<<set $activeSlave.trust += $opinion>>
-		<<set $activeSlave.devotion = Math.clamp($activeSlave.devotion, -100, 75)>>
-		<<set $activeSlave.trust = Math.clamp($activeSlave.trust, -100, 75)>>
-		<<if $opinion > 2>>
-			Your arcology's close social alignment with '' $arcologies[_market].name'' makes its slaves more accepting of the prospect of life in your arcology, and willing to trust that they'll know how to survive there.
-		<<elseif $opinion < -2>>
-			Your arcology's very different culture from '' $arcologies[_market].name'''s makes its slaves unhappy with the prospect of life in your arcology, and afraid of what will happen to them there.
-		<</if>>
-	<</if>>
-
-<<case "heap">>
-	<<set $activeSlave = GenerateNewSlave()>>
-	<<set $activeSlave.origin = "You bought her from a body dump, completely broken.">>
-	<<set $activeSlave.devotion = 0>>
-	<<set $activeSlave.trust = 0>>
-	<<set $activeSlave.career = "a slave">>
-	<<set $activeSlave.intelligence = Intelligence.random({limitIntelligence: [-100,0]})>>
-	<<set $activeSlave.intelligenceImplant = 0>>
-	<<set $activeSlave.health = random(-99,0)>>
-	<<set $activeSlave.weight = random(-100,0)>>
-	<<set $activeSlave.eyes = either(-2, -1, -1, -1, -1, 1, 1, 1)>>
-	<<set $activeSlave.hears = either(-2, -1, -1, -1, -1, 0, 0, 0)>>
-	<<if $seeExtreme == 1>>
-		<<set $activeSlave.amp = either(0, 0, 0, 0, 0, 0, 1, 1, 1)>>
-	<</if>>
-	<<if $activeSlave.amp != 1>>
-		<<set $activeSlave.heels = either(0, 0, 0, 0, 0, 1, 1)>>
-	<</if>>
-	<<set $activeSlave.voice = random(0,2)>>
-	<<set $activeSlave.face = random(-100,20)>>
-	<<if $activeSlave.vagina > -1>>
-		<<set $activeSlave.vagina = either(1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 10)>>
-		<<set $activeSlave.preg = random(-3,-1)>>
-		<<set $activeSlave.belly = 0, $activeSlave.bellyPreg = 0>>
-		<<set $activeSlave.counter.vaginal += random(0,300)>>
-	<</if>>
-	<<set $activeSlave.anus = either(1, 2, 2, 3, 3, 3, 3, 4, 4, 4)>>
-	<<if $activeSlave.balls > 1>>
-		<<if random(1,100) > 50>>
-			<<set $activeSlave.balls = 0>>
-		<</if>>
-	<</if>>
-	<<set $activeSlave.counter.oral += random(0,300)>>
-	<<set $activeSlave.counter.anal += random(0,300)>>
-	<<if $activeSlave.boobs > 500>>
-		<<set $activeSlave.counter.mammary += random(0,300)>>
-	<</if>>
-	<<set $activeSlave.skill.vaginal = 0>>
-	<<set $activeSlave.skill.oral = 0>>
-	<<set $activeSlave.skill.anal = 0>>
-	<<set $activeSlave.skill.whoring = 0>>
-	<<set $activeSlave.skill.entertainment = 0>>
-	<<set $activeSlave.skill.combat = 0>>
-	<<set $activeSlave.addict = either(0, 0, 0, 10, 10, 20, 30)>>
-	<<set $activeSlave.chem = random(0,1000)>>
-	<<set $activeSlave.behavioralFlaw = "none">>
-	<<set $activeSlave.behavioralQuirk = "none">>
-	<<set $activeSlave.sexualFlaw = "none">>
-	<<set $activeSlave.sexualQuirk = "none">>
-	<<set $activeSlave.fetish = "mindbroken">>
-	<<set $activeSlave.fetishStrength = 0>>
-
-<<case "wetware">>
-	<<set $fixedNationality = "Stateless">>
-	<<set $activeSlave = GenerateNewSlave()>>
-	<<set $activeSlave.origin = "You bought her from a wetware CPU farm, her body ruined but her mind subjected to a simulated career.">>
-	<<set $activeSlave.devotion = 40>>
-	<<set $activeSlave.trust = -100>>
-	<<set $activeSlave.career = either("a business owner", "a college scout", "a counselor", "a dairy worker", "a doctor", "a house DJ", "a politician", "a prison guard", "a secretary", "a soldier", "a teacher")>>
-	<<set $activeSlave.intelligence = Intelligence.random({limitIntelligence: [20,100]})>>
-	<<set $activeSlave.intelligenceImplant = 30>>
-	<<set $activeSlave.health = random(-99,-50)>>
-	<<set $activeSlave.weight = random(-100,-50)>>
-	<<set $activeSlave.muscles = random(-100,-50)>>
-	<<set $activeSlave.eyes = -2>>
-	<<set $activeSlave.hears = -2>>
-	<<if $seeExtreme == 1>>
-		<<set $activeSlave.amp = 1>>
-	<</if>>
-	<<if $activeSlave.amp != 1>>
-		<<set $activeSlave.heels = 1>>
-	<</if>>
-	<<set $activeSlave.voice = 0>>
-	<<set $activeSlave.face = random(-100,-50)>>
-	<<set $activeSlave.butt = 0>>
-	<<if $activeSlave.vagina > -1>>
-		<<set $activeSlave.vagina = either(1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 10)>>
-		<<set $activeSlave.preg = random(-3,-1)>>
-		<<set $activeSlave.counter.vaginal += random(0,300)>>
-	<</if>>
-	<<set $activeSlave.anus = either(1, 2, 2, 3, 3, 3, 3, 4, 4, 4)>>
-	<<if $activeSlave.balls > 1 && random(1,100) > 50>>
-		<<set $activeSlave.balls = 0>>
-	<</if>>
-	<<set $activeSlave.counter.oral += random(0,300)>>
-	<<set $activeSlave.counter.anal += random(0,300)>>
-	<<if $activeSlave.boobs > 500>>
-		<<set $activeSlave.counter.mammary += random(0,300)>>
-	<</if>>
-	<<set $activeSlave.skill.vaginal = random(50,100)>>
-	<<set $activeSlave.skill.oral = random(50,100)>>
-	<<set $activeSlave.skill.anal = random(50,100)>>
-	<<set $activeSlave.skill.whoring = random(50,100)>>
-	<<set $activeSlave.skill.entertainment = random(50,100)>>
-	<<switch $activeSlave.career>>
-		<<case "a lawyer">>
-			<<set $activeSlave.slaveName = "WCPU-HG">>
-		<<case "a college scout">>
-			<<set $activeSlave.slaveName = "WCPU-RC">>
-		<<case "a business owner">>
-			<<set $activeSlave.slaveName = "WCPU-MD">>
-		<<case "a house DJ">>
-			<<set $activeSlave.slaveName = "WCPU-DJ">>
-		<<case "a soldier">>
-			<<set $activeSlave.slaveName = "WCPU-BG">>
-		<<case "a prison guard">>
-			<<set $activeSlave.slaveName = "WCPU-WD">>
-		<<case "a doctor">>
-			<<set $activeSlave.slaveName = "WCPU-NS">>
-		<<case "a counselor">>
-			<<set $activeSlave.slaveName = "WCPU-AT">>
-		<<case "a dairy worker">>
-			<<set $activeSlave.slaveName = "WCPU-MK">>
-		<<case "a secretary">>
-			<<set $activeSlave.slaveName = "WCPU-ST">>
-		<<case "a teacher">>
-			<<set $activeSlave.slaveName = "WCPU-TE">>
-	<</switch>>
-	<<set $activeSlave.slaveSurname = "#"+$activeSlave.skill.vaginal+$activeSlave.skill.oral+$activeSlave.skill.anal+$activeSlave.skill.whoring+$activeSlave.skill.entertainment+"-"+$activeSlave.intelligence>>
-	<<set $activeSlave.birthName = "", $activeSlave.birthSurname = "">>
-	<<if $activeSlave.career == "a soldier">>
-		<<set $activeSlave.skill.combat = 1>>
-	<<else>>
-		<<set $activeSlave.skill.combat = 0>>
-	<</if>>
-	<<set $activeSlave.addict = either(0, 0, 0, 10, 10, 20, 30)>>
-	<<set $activeSlave.chem = random(500,1000)>>
-	<<set $activeSlave.behavioralFlaw = "none">>
-	<<set $activeSlave.behavioralQuirk = "none">>
-	<<set $activeSlave.sexualFlaw = "none">>
-	<<set $activeSlave.sexualQuirk = "none">>
-	<<set $activeSlave.fetish = "none">>
-	<<set $activeSlave.fetishStrength = 0>>
-
-<<case "kidnappers">>
-	<<set $activeSlave = GenerateNewSlave()>>
-	<<set $activeSlave.origin = "You bought her from the kidnappers' slave market, so she was probably forced into slavery.">>
-	<<set $activeSlave.devotion -= 5>>
-	<<set $activeSlave.trust = random(-45,-25)>>
-	<<set $activeSlave.intelligence = Intelligence.random({limitIntelligence: [-90,45]})>>
-	<<set $activeSlave.health = random(-80,20)>>
-	<<if $activeSlave.vagina > 1 && isFertile($activeSlave)>>
-		<<set $activeSlave.preg = either(-2, -1, -1, -1, -1, -1, -1, -1, 1, 20, 40)>>
-		<<if $activeSlave.preg > 0>>
-			<<set $activeSlave.pregType = setPregType($activeSlave)>>
-		<</if>>
-		<<run SetBellySize($activeSlave)>>
-	<</if>>
-
-
-<<case "indentures">>
-	<<set $oneTimeDisableDisability = 1>>
-	<<if $arcologies[0].FSSupremacistLawME == 1>>
-		<<set $fixedRace = $arcologies[0].FSSupremacistRace>>
-	<<elseif $arcologies[0].FSSubjugationistLawME == 1>>
-		<<set _races = setup.filterRacesLowercase.filter(race => race !== $arcologies[0].FSSubjugationistRace)>>
-		<<set $fixedRace = _races.random()>>
-	<</if>>
-	<<set $activeSlave = GenerateNewSlave()>>
-	<<set $activeSlave.origin = "You purchased her indenture contract, making her yours for as long as it lasts.">>
-	<<set $activeSlave.indentureRestrictions = either(0,1,1,2,2,2,2)>>
-	<<if $activeSlave.indentureRestrictions >= 2>>
-		<<set $activeSlave.devotion = random(25,45)>>
-		<<set $activeSlave.trust = random(-20,20)>>
-	<<elseif $activeSlave.indentureRestrictions == 1>>
-		<<set $activeSlave.devotion = random(-20,20)>>
-		<<set $activeSlave.trust = random(-45,-25)>>
-	<<else>>
-		<<set $activeSlave.devotion = random(-45,-25)>>
-		<<set $activeSlave.trust = random(-75,-60)>>
-	<</if>>
-	<<set $activeSlave.indenture = either(26, 52, 104, 156, 208)>>
-
-
-<<case "hunters">>
-	<<set $activeSlave = GenerateNewSlave()>>
-	<<set $activeSlave.origin = "You bought her from the runaway hunters' slave market after they recaptured her and her original owner did not pay their fee.">>
-	<<set $activeSlave.devotion = -20>>
-	<<set $activeSlave.trust = random(-15,15)>>
-	<<set $activeSlave.intelligence = Intelligence.random({limitIntelligence: [0,100]})>>
-	<<set $activeSlave.intelligenceImplant = 15>>
-	<<if $activeSlave.physicalAge >= 12>>
-		<<set $activeSlave.teeth = "normal">>
-	<</if>>
-	<<set $activeSlave.health = random(-10,70)>>
-	<<if $activeSlave.vagina > -1>>
-		<<set $activeSlave.preg = either(-2, -1, -1, -1, -1, -1, -1, -1, 1, 1)>>
-		<<if $activeSlave.physicalAge < $activeSlave.pubertyAgeXX>><<set $activeSlave.preg = -1>><</if>>
-		<<if $activeSlave.preg > 0>>
-			<<set $activeSlave.pregType = setPregType($activeSlave)>>
-		<</if>>
-		<<run SetBellySize($activeSlave)>>
-		<<set $activeSlave.skill.vaginal = random(15,100)>>
-		<<set $activeSlave.vagina = random(1,3)>>
-	<</if>>
-	<<if $activeSlave.balls > 0>>
-	<<if random(1,3) == 1>>
-		<<set $activeSlave.balls = 0>>
-	<</if>>
-	<</if>>
-	<<set $activeSlave.skill.combat = either(0, 0, 0, 0, 0, 1)>>
-	<<set $activeSlave.skill.entertainment = random(15,100)>>
-	<<set $activeSlave.skill.whoring = random(15,100)>>
-	<<set $activeSlave.skill.oral = random(15,100)>>
-	<<set $activeSlave.skill.anal = random(15,100)>>
-	<<set $activeSlave.anus = random(1,3)>>
-	<<set $activeSlave.weight = Math.clamp(-25, 25, $activeSlave.weight)>>
-	<<set $activeSlave.behavioralFlaw = either("anorexic", "arrogant", "bitchy", "devout", "gluttonous", "hates men", "hates women", "hates women", "liberated", "odd")>>
-	<<set $activeSlave.sexualFlaw = either("apathetic", "crude", "hates anal", "hates oral", "hates penetration", "idealistic", "judgemental", "repressed", "shamefast")>>
-	<<if random(1,2) == 1>>
-		<<set _slaveGen = random(2,8)*200>>
-		<<set $activeSlave.boobs += _slaveGen>>
-		<<set $activeSlave.boobsImplant += _slaveGen>>
-		<<set _slaveGen = random(1,3)>>
-		<<set $activeSlave.butt += _slaveGen>>
-		<<set $activeSlave.buttImplant += _slaveGen>>
-		<<set _slaveGen = either(10,20)>>
-		<<set $activeSlave.lips += _slaveGen>>
-		<<set $activeSlave.lipsImplant += _slaveGen>>
-		<<set $activeSlave.waist = Math.trunc($activeSlave.waist,-100,15)>>
-		<<if $activeSlave.face < 40>>
-			<<set $activeSlave.faceImplant = 20*random(0,1)>>
-			<<set $activeSlave.face = Math.clamp($activeSlave.face+$activeSlave.faceImplant,-100,100)>>
-		<</if>>
-		<<if $activeSlave.physicalAge >= 30>>
-			<<set $activeSlave.ageImplant += random(0,1)>>
-			<<if $activeSlave.ageImplant == 1>>
-				<<AgeImplantAdjustment $activeSlave>>
-			<</if>>
-		<</if>>
-	<</if>>
-	<<if $arcologies[0].FSPaternalistSMR == 0>>
-		<<set $activeSlave.heels = 1>>
-	<</if>>
-
-
-<<case "underage raiders">>
-	<<set $activeSlaveOneTimeMinAge = $minimumSlaveAge>>
-	<<set $activeSlaveOneTimeMaxAge = $fertilityAge>>
-	<<set $one_time_age_overrides_pedo_mode = 1>> /% Must not have had their first period. %/
-	<<set $activeSlave = GenerateNewSlave()>>
-	<<set $activeSlave.origin = "You bought her from the underage raiders' slave market.">>
-	<<set $activeSlave.trust -= 25>>
-	<<set $activeSlave.health += 20>>
-	<<set $activeSlave.career = setup.veryYoungCareers.random()>>
-	<<set $activeSlave.birthWeek = 0>>
-	<<if $activeSlave.vagina != -1>>
-		<<set $activeSlave.skill.vaginal = 0>>
-		<<set $activeSlave.vagina = 0>>
-		<<set $activeSlave.trueVirgin = 1>>
-		<<set $activeSlave.preg = 0>>
-		<<run SetBellySize($activeSlave)>>
-	<</if>>
-	<<set $activeSlave.skill.anal = 0>>
-	<<set $activeSlave.anus = 0>>
-	<<set $activeSlave.skill.oral = 0>>
-	<<set $activeSlave.skill.whoring = 0>>
-
-
-<<case "raiders">>
-	<<set $activeSlaveOneTimeMinAge = 18>>
-	<<set $activeSlaveOneTimeMaxAge = 18>>
-	<<set $one_time_age_overrides_pedo_mode = 1>> /% Supposed to have just reached the age of majority. %/
-	<<set $activeSlave = GenerateNewSlave()>>
-	<<set $activeSlave.origin = "You bought her from the girl raiders' slave market the week she reached her majority.">>
-	<<set $activeSlave.trust -= 25>>
-	<<set $activeSlave.health += 20>>
-	<<set $activeSlave.career = either("a cheerleader", "a farm laborer", "a party girl", "a student", "a student", "a student", "a student", "a student")>>
-	<<set $activeSlave.birthWeek = 0>>
-	<<if $activeSlave.vagina != -1>>
-		<<if random(1,2) == 1>>
-		<<set $activeSlave.skill.vaginal = 0>>
-		<<set $activeSlave.vagina = 0>>
-		<<set $activeSlave.trueVirgin = 1>>
-		<<set $activeSlave.preg = 0>>
-		<<run SetBellySize($activeSlave)>>
-		<</if>>
-	<</if>>
-	<<if random(1,2) == 1>>
-		<<set $activeSlave.skill.anal = 0>>
-		<<set $activeSlave.anus = 0>>
-	<</if>>
-	<<if random(1,2) == 1>>
-		<<set $activeSlave.skill.oral = 0>>
-	<</if>>
-	<<set $activeSlave.skill.whoring = 0>>
-
-
-<<case "trainers">>
-	<<set $activeSlaveOneTimeMaxAge = 42>>
-	<<set $activeSlave = GenerateNewSlave()>>
-	<<set $activeSlave.origin = "You bought her from the trainers' slave market after they put her through basic training.">>
-	<<set $activeSlave.devotion += 40>>
-	<<set $activeSlave.trust += 40>>
-	<<set $activeSlave.health += 30>>
-	<<if $activeSlave.vagina != -1>>
-		<<set $activeSlave.skill.vaginal += 15>>
-	<<else>>
-		<<set $activeSlave.skill.vaginal = 0>>
-		<<set $activeSlave.clit = 0>>
-	<</if>>
-	<<if $activeSlave.vagina == 0>>
-		<<set $activeSlave.vagina += 1>>
-	<</if>>
-	<<if $activeSlave.anus == 0>>
-		<<set $activeSlave.anus += 1>>
-	<</if>>
-	<<set $activeSlave.skill.oral += 15>>
-	<<set $activeSlave.skill.anal += 15>>
-	<<set $activeSlave.fetishKnown = 1>>
-	<<if $activeSlave.accent >= 3>>
-		<<set $activeSlave.accent -= 1>>
-	<</if>>
-	<<if random(1,100) > 50>>
-		<<set $activeSlave.sexualFlaw = "none">>
-	<</if>>
-	<<if random(1,100) > 50>>
-		<<set $activeSlave.behavioralFlaw = "none">>
-	<</if>>
-
-
-<<case "TSS">>
-	<<if $TSS.schoolUpgrade == 1>>
-		<<set $activeSlaveOneTimeMinAge = 36>>
-	<<else>>
-		<<set $activeSlaveOneTimeMaxAge = 18>>
-	<</if>>
-	<<set $oneTimeDisableDisability = 1>>
-	<<set $activeSlave = GenerateNewSlave("XX")>>
-	<<set $activeSlave.career = "a slave">>
-	<<set $activeSlave.butt = either(1, 2, 2, 3)>>
-	<<set $activeSlave.boobs = either(200, 300, 300, 400)>>
-	<<if $TSS.schoolUpgrade == 1>>
-		<<set $activeSlave.origin = "You bought her fresh from the new Slavegirl School after she was retrained as a slave girl.">>
-		<<set $activeSlave.butt += 1>>
-		<<set $activeSlave.boobs += 200>>
-		<<set $activeSlave.anus = 1>>
-		<<set $activeSlave.vagina = 1>>
-	<<else>>
-		<<set $activeSlave.origin = "You bought her fresh from the Slavegirl School right after her majority.">>
-		<<set $activeSlave.anus = 0>>
-		<<set $activeSlave.vagina = 0>>
-		<<set $activeSlave.trueVirgin = 1>>
-		<<set $activeSlave.birthWeek = 0>>
-	<</if>>
-	<<set $activeSlave.intelligenceImplant = 30>>
-	<<if $activeSlave.physicalAge >= 12>>
-		<<set $activeSlave.teeth = "normal">>
-	<</if>>
-	<<set $activeSlave.intelligence = Intelligence.random({limitIntelligence: [-20,70]})>>
-	<<set $activeSlave.devotion = random(25,45)>>
-	<<set $activeSlave.trust = random(25,45)>>
-	<<set $activeSlave.health = random(50,60)>>
-	<<set $activeSlave.preg = 0>>
-	<<run SetBellySize($activeSlave)>>
-	<<set $activeSlave.weight = 0>>
-	<<set $activeSlave.waist = random(-30,10)>>
-	<<set $activeSlave.chem = 20>>
-	<<if $TSS.schoolUpgrade == 0>>
-		<<set $activeSlave.skill.vaginal = 0>>
-		<<set $activeSlave.skill.oral = 0>>
-		<<set $activeSlave.skill.anal = 0>>
-		<<set $activeSlave.skill.whoring = 0>>
-		<<set $activeSlave.skill.entertainment = 15>>
-	<<else>>
-		<<set $activeSlave.skill.vaginal = 15>>
-		<<set $activeSlave.skill.oral = 15>>
-		<<set $activeSlave.skill.anal = 15>>
-		<<set $activeSlave.skill.whoring = 15>>
-		<<set $activeSlave.skill.entertainment = 15>>
-	<</if>>
-	<<set $activeSlave.skill.combat = 0>>
-	<<set $activeSlave.pubicHStyle = "waxed">>
-	<<set $activeSlave.underArmHStyle = "waxed">>
-	<<set $activeSlave.sexualFlaw = either("none")>>
-	<<set $activeSlave.behavioralFlaw = either("none")>>
-	<<set $activeSlave.hStyle = "tails">>
-	<<set $activeSlave.custom.tattoo = "$He has the simple logo of the corporation that operates The Slavegirl School tattooed on $his left cheek.">>
-
-
-<<case "GRI">>
-	<<set $activeSlaveOneTimeMinAge = 16>>
-	<<set $activeSlaveOneTimeMaxAge = 19>>
-	<<set $oneTimeDisableDisability = 1>>
-	<<set $activeSlave = GenerateNewSlave("XX")>>
-	<<set $activeSlave.origin = "You bought her from the Growth Research Institute right after her use as a test subject ended.">>
-	<<set $activeSlave.career = "a slave">>
-	<<set $activeSlave.intelligenceImplant = 0>>
-	<<set $activeSlave.devotion = random(-15,-5)>>
-	<<set $activeSlave.trust = random(-25,-45)>>
-	<<set $activeSlave.chem = 100>>
-	<<if $GRI.schoolUpgrade == 1>>
-		<<set $activeSlave.health = 200>>
-	<<else>>
-		<<set $activeSlave.health = random(-80,100)>>
-	<</if>>
-	<<set $activeSlave.height = random(160,210)>>
-	<<set $activeSlave.butt = random(4,10)>>
-	<<if $GRI.schoolUpgrade == 2>>
-		<<set $activeSlave.boobs = 200*random(15,30)>>
-		<<set $activeSlave.lactation = 2, $activeSlave.lactationDuration = 2>>
-	<<else>>
-		<<set $activeSlave.boobs = 200*random(4,20)>>
-	<</if>>
-	<<set $activeSlave.nipples = either("huge", "inverted")>>
-	<<set $activeSlave.areolae = either(0, 1, 2, 3, 4)>>
-	<<set $activeSlave.clit = either(0, 1, 2, 3)>>
-	<<set $activeSlave.lips = random(5,85)>>
-	<<set $activeSlave.anus = 0>>
-	<<set $activeSlave.vagina = 0>>
-	<<set $activeSlave.preg = 0>>
-	<<run SetBellySize($activeSlave)>>
-	<<set $activeSlave.weight = 0>>
-	<<set $activeSlave.waist = random(-20,30)>>
-	<<set $activeSlave.skill.vaginal = 0>>
-	<<set $activeSlave.skill.oral = 0>>
-	<<set $activeSlave.skill.anal = 0>>
-	<<set $activeSlave.skill.whoring = 0>>
-	<<set $activeSlave.skill.entertainment = 0>>
-	<<set $activeSlave.skill.combat = 0>>
-	<<set $activeSlave.pubicHStyle = "waxed">>
-	<<set $activeSlave.birthWeek = 0>>
-	<<set $activeSlave.behavioralFlaw = either("odd")>>
-	<<set $activeSlave.hStyle = "shaved">>
-	<<set $activeSlave.hLength = 0>>
-	<<set $activeSlave.custom.tattoo = "$He has a barcode that identified $his when she was a test subject at the Growth Research Institute tattooed on $his left cheek.">>
-
-
-<<case "SCP">>
-	<<set $activeSlaveOneTimeMinAge = 16>>
-	<<set $activeSlaveOneTimeMaxAge = 19>>
-	<<set $oneTimeDisableDisability = 1>>
-	<<set $activeSlave = GenerateNewSlave("XX")>>
-	<<set $activeSlave.origin = "You bought her from St. Claver Preparatory after she served as a plastic surgeon's passing final exam.">>
-	<<set $activeSlave.chem = 20>>
-	<<set $activeSlave.career = "a slave">>
-	<<if $SCP.schoolUpgrade == 1>>
-		<<set $activeSlave.intelligenceImplant = 0>>
-		<<set $activeSlave.intelligence = -60>>
-		<<set $activeSlave.devotion = 100>>
-		<<set $activeSlave.trust = 100>>
-	<<else>>
-		<<set $activeSlave.intelligenceImplant = 15>>
-		<<set $activeSlave.teeth = "normal">>
-		<<set $activeSlave.intelligence = Intelligence.random({limitIntelligence: [-30,60]})>>
-		<<set $activeSlave.devotion = random(25,45)>>
-		<<set $activeSlave.trust = random(25,45)>>
-	<</if>>
-	<<set $activeSlave.health = 100>>
-	<<set $activeSlave.heightImplant = 1>>
-	<<set $activeSlave.height += 10>>
-	<<set $activeSlave.buttImplant = (4-$activeSlave.butt)>>
-	<<set $activeSlave.butt += $activeSlave.buttImplant>>
-	<<set $activeSlave.boobsImplant = (2000-$activeSlave.boobs)>>
-	<<set $activeSlave.boobs += $activeSlave.boobsImplant>>
-	<<set $activeSlave.nipples = "tiny">>
-	<<set $activeSlave.areolae = 0>>
-	<<set $activeSlave.clit = 0>>
-	<<set $activeSlave.lipsImplant = (20-$activeSlave.lips)>>
-	<<set $activeSlave.lips += $activeSlave.lipsImplant>>
-	<<set $activeSlave.faceImplant = 40>>
-	<<set $activeSlave.face = Math.clamp($activeSlave.face+$activeSlave.faceImplant,-100,100)>>
-	<<set $activeSlave.faceShape = "normal">>
-	<<set $activeSlave.anus = 0>>
-	<<set $activeSlave.vagina = 0>>
-	<<set $activeSlave.preg = 0>>
-	<<run SetBellySize($activeSlave)>>
-	<<set $activeSlave.weight = -20>>
-	<<set $activeSlave.waist = -50>>
-	<<if $SCP.schoolUpgrade == 2>>
-		<<set $activeSlave.skill.vaginal = 15>>
-		<<set $activeSlave.skill.oral = 15>>
-		<<set $activeSlave.skill.anal = 15>>
-		<<set $activeSlave.skill.whoring = 15>>
-		<<set $activeSlave.skill.entertainment = 15>>
-	<<else>>
-		<<set $activeSlave.skill.vaginal = 0>>
-		<<set $activeSlave.skill.oral = 0>>
-		<<set $activeSlave.skill.anal = 0>>
-		<<set $activeSlave.skill.whoring = 0>>
-		<<set $activeSlave.skill.entertainment = 0>>
-	<</if>>
-	<<set $activeSlave.skill.combat = 0>>
-	<<set $activeSlave.pubicHStyle = "waxed">>
-	<<set $activeSlave.underArmHStyle = "waxed">>
-	<<set $activeSlave.birthWeek = 0>>
-	<<set $activeSlave.sexualFlaw = either("none")>>
-	<<set $activeSlave.behavioralFlaw = either("none")>>
-	<<set $activeSlave.hStyle = "tails">>
-	<<set $activeSlave.pubicHColor = "blonde">>
-	<<set $activeSlave.underArmHColor = "blonde">>
-	<<set $activeSlave.eyebrowHColor = "blonde">>
-	<<set $activeSlave.race = "white">>
-	<<set $activeSlave.skin = "sun tanned">>
-	<<set $activeSlave.override_H_Color = 1>>
-	<<set $activeSlave.override_Arm_H_Color = 1>>
-	<<set $activeSlave.override_Pubic_H_Color = 1>>
-	<<set $activeSlave.override_Brow_H_Color = 1>>
-	<<set $activeSlave.override_Race = 1>>
-	<<set $activeSlave.override_Skin = 1>>
-	<<set $activeSlave.custom.tattoo = "$He has the coat of arms of St. Claver Preparatory tattooed on $his left cheek.">>
-
-
-<<case "LDE">>
-	<<set $activeSlaveOneTimeMinAge = 16>>
-	<<set $activeSlaveOneTimeMaxAge = 19>>
-	<<set $oneTimeDisableDisability = 1>>
-	<<set $activeSlave = GenerateNewSlave("XY")>>
-	<<set $activeSlave.origin = "You bought her from the innovative École des Enculées right after her graduation.">>
-	<<set $activeSlave.career = "a slave">>
-	<<set $activeSlave.intelligenceImplant = 0>>
-	<<set $activeSlave.chem = 100>>
-	<<if $LDE.schoolUpgrade == 1>>
-		<<set $activeSlave.devotion = 100>>
-		<<set $activeSlave.trust = 100>>
-	<<else>>
-		<<set $activeSlave.devotion = random(60,75)>>
-		<<set $activeSlave.trust = random(55,60)>>
-	<</if>>
-	<<set $activeSlave.health = random(60,80)>>
-	<<set $activeSlave.muscles = 0>>
-	<<set $activeSlave.butt = either(4,5)>>
-	<<set $activeSlave.face = random(15,55)>>
-	<<set $activeSlave.faceShape = "androgynous">>
-	<<set $activeSlave.boobs = either(500,650,800)>>
-	<<set $activeSlave.waist = -15>>
-	<<set $activeSlave.lips = 35>>
-	<<if $LDE.schoolUpgrade == 2>>
-		<<set $activeSlave.dick = either(3,4)>>
-		<<set $activeSlave.balls = either(3,4)>>
-		<<if $activeSlave.foreskin > 0>><<set $activeSlave.foreskin = $activeSlave.dick>><</if>>
-		<<if $activeSlave.balls > 0>><<set $activeSlave.scrotum = $activeSlave.balls>><</if>>
-	<<else>>
-		<<set $activeSlave.dick = either(1,1,1,2)>>
-		<<set $activeSlave.balls = either(1,1,1,2)>>
-		<<if $activeSlave.foreskin > 0>><<set $activeSlave.foreskin = $activeSlave.dick>><</if>>
-		<<if $activeSlave.balls > 0>><<set $activeSlave.scrotum = $activeSlave.balls>><</if>>
-		<<set $activeSlave.pubertyXY = 0>>
-		<<set $activeSlave.pubertyAgeXY = random(24,50)>>
-	<</if>>
-	<<set $activeSlave.anus = 2>>
-	<<set $activeSlave.vagina = -1>>
-	<<set $activeSlave.preg = 0>>
-	<<run SetBellySize($activeSlave)>>
-	<<set $activeSlave.weight = random(0,20)>>
-	<<set $activeSlave.skill.vaginal = 0>>
-	<<set $activeSlave.skill.oral = 15>>
-	<<set $activeSlave.skill.anal = 100>>
-	<<set $activeSlave.skill.whoring = 15>>
-	<<set $activeSlave.skill.entertainment = 15>>
-	<<set $activeSlave.skill.combat = 0>>
-	<<set $activeSlave.pubicHStyle = "waxed">>
-	<<set $activeSlave.birthWeek = 0>>
-	<<set $activeSlave.sexualFlaw = "none">>
-	<<set $activeSlave.behavioralFlaw = either("none", "odd")>>
-	<<set $activeSlave.fetishStrength = either(1, 2)>>
-	<<set $activeSlave.fetish = "buttslut">>
-	<<set $activeSlave.fetishKnown = 1>><<set $activeSlave.attrKnown = 1>>
-	<<set $activeSlave.hStyle = "tails">>
-	<<set $activeSlave.hLength = 100>>
-	<<set $activeSlave.custom.tattoo = "$He has the buttock-shaped symbol of the École des Enculées that created $his tattooed on $his left cheek.">>
-
-
-<<case "TGA">>
-	<<set $activeSlaveOneTimeMinAge = 16>>
-	<<set $activeSlaveOneTimeMaxAge = 19>>
-	<<set $oneTimeDisableDisability = 1>>
-	<<set $activeSlave = GenerateNewSlave("XY")>>
-	<<set $activeSlave.origin = "You bought her fresh from the intense Gymnasium-Academy right after her majority.">>
-	<<set $activeSlave.career = "a slave">>
-	<<set $activeSlave.intelligenceImplant = 30>>
-	<<set $activeSlave.teeth = "normal">>
-	<<set $activeSlave.intelligence = Intelligence.random({limitIntelligence: [-20,60]})>>
-	<<set $activeSlave.chem = 20>>
-	<<if $TGA.schoolUpgrade == 1>>
-		<<set $activeSlave.devotion = 100>>
-		<<set $activeSlave.trust = 100>>
-	<<else>>
-		<<set $activeSlave.devotion = random(25,45)>>
-		<<set $activeSlave.trust = random(25,45)>>
-	<</if>>
-	<<set $activeSlave.health = 100>>
-	<<set $activeSlave.muscles = either(20, 50, 50)>>
-	<<set $activeSlave.butt = either(2, 2, 3)>>
-	<<set $activeSlave.boobs = either(100, 200)>>
-	<<set $activeSlave.dick = random(3,5)>>
-	<<set $activeSlave.balls = random(3,5)>>
-	<<set $activeSlave.anus = 0>>
-	<<set $activeSlave.vagina = -1>>
-	<<set $activeSlave.preg = 0>>
-	<<run SetBellySize($activeSlave)>>
-	<<set $activeSlave.weight = 0>>
-	<<set $activeSlave.waist = random(-10,30)>>
-	<<set $activeSlave.skill.vaginal = 0>>
-	<<set $activeSlave.skill.oral = 0>>
-	<<set $activeSlave.skill.anal = 0>>
-	<<set $activeSlave.skill.whoring = 0>>
-	<<set $activeSlave.skill.entertainment = 0>>
-	<<if $TGA.schoolUpgrade == 2>>
-		<<set $activeSlave.skill.combat = 1>>
-	<<else>>
-		<<set $activeSlave.skill.combat = 0>>
-	<</if>>
-	<<set $activeSlave.pubicHStyle = "waxed">>
-	<<set $activeSlave.underArmHStyle = "waxed">>
-	<<set $activeSlave.birthWeek = 0>>
-	<<set $activeSlave.sexualFlaw = either("apathetic", "none")>>
-	<<set $activeSlave.behavioralFlaw = either("arrogant", "none", "odd")>>
-	<<set $activeSlave.hStyle = "short">>
-	<<set $activeSlave.hLength = 2>>
-	<<set $activeSlave.custom.tattoo = "$He has the baroque crest of the Gymnasium-Academy that trained $his branded into $his left cheek.">>
-
-<<case "TCR">>
-	<<if $TCR.schoolUpgrade == 2 && random(1,100) <= 20>>
-		<<set $activeSlaveOneTimeMinAge = $fertilityAge>>
-		<<set $activeSlaveOneTimeMaxAge = 18>>
-		<<set $one_time_age_overrides_pedo_mode = 1>>
-		<<set $oneTimeDisableDisability = 1>>
-		<<set $activeSlave = GenerateNewSlave("XX")>>
-		<<set $activeSlave.origin = "You bought her from The Cattle Ranch.">>
-		<<set $activeSlave.career = "a dairy slave">>
-		<<set $activeSlave.slaveName = setup.cowSlaveNames.random()>>
-		<<set $activeSlave.slaveSurname = 0>>
-		<<set $activeSlave.butt = either(2, 2, 3, 3, 3, 4, 4)>>
-		<<set $activeSlave.boobs = (($activeSlave.physicalAge*100)*2)+either(-100, -100, 0, 0, 100, 100, 200, 200, 300, 500)>>
-		<<set $activeSlave.lactation = 0>>
-		<<set $activeSlave.lactationAdaptation = 0>>
-		<<set $activeSlave.lactationDuration = 0>>
-		<<set $activeSlave.anus = 0>>
-		<<set $activeSlave.vagina = 0>>
-		<<set $activeSlave.trueVirgin = 1>>
-		<<set $activeSlave.vaginaLube = either(1, 1, 2)>>
-		<<set $activeSlave.intelligenceImplant = 0>>
-		<<set $activeSlave.devotion = -20>>
-		<<set $activeSlave.trust = -20>>
-		<<set $activeSlave.health = random(20,30)>>
-		<<set $activeSlave.preg = 0>>
-		<<run SetBellySize($activeSlave)>>
-		<<set $activeSlave.hips = either(0, 0, 1, 1, 1, 2)>>
-		<<set $activeSlave.weight = random(-20,10)>>
-		<<set $activeSlave.waist = random(-30,10)>>
-		<<set $activeSlave.muscles = 0>>
-		<<set $activeSlave.skill.vaginal = 0>>
-		<<set $activeSlave.skill.oral = 0>>
-		<<set $activeSlave.skill.anal = 0>>
-		<<set $activeSlave.skill.whoring = 0>>
-		<<set $activeSlave.skill.entertainment = 0>>
-		<<set $activeSlave.skill.combat = 0>>
-		<<set $activeSlave.pubicHStyle = "waxed">>
-		<<set $activeSlave.underArmHStyle = "waxed">>
-		<<set $activeSlave.heels = 1>>
-		<<set $activeSlave.hStyle = "neat">>
-		<<set $activeSlave.collar = "leather with cowbell">>
-		<<set $activeSlave.custom.tattoo = "$He has the logo of the Cattle Ranch branded on $his thigh.">>
-	<<elseif $TCR.schoolUpgrade == 1 && random(1,100) <= 20>>
-		<<set $activeSlaveOneTimeMinAge = $potencyAge+1>>
-		<<set $activeSlaveOneTimeMaxAge = 24>>
-		<<set $one_time_age_overrides_pedo_mode = 1>>
-		<<set $oneTimeDisableDisability = 1>>
-		<<set $activeSlave = GenerateNewSlave("XY")>>
-		<<set $activeSlave.slaveName = setup.cowSlaveNames.random()>>
-		<<set $activeSlave.slaveSurname = 0>>
-		<<set $activeSlave.origin = "You bought her from The Cattle Ranch.">>
-		<<set $activeSlave.career = "a breeding bull">>
-		<<set $activeSlave.butt = either(3, 3, 4, 4, 4, 5, 6)>>
-		<<set $activeSlave.boobs = 100>>
-		<<set $activeSlave.anus = 0>>
-		<<set $activeSlave.intelligence = -100>>
-		<<set $activeSlave.intelligenceImplant = 0>>
-		<<set $activeSlave.devotion = 100>>
-		<<set $activeSlave.trust = 100>>
-		<<set $activeSlave.health = random(20,30)>>
-		<<set $activeSlave.hips = either(1, 1, 1, 2, 2)>>
-		<<set $activeSlave.dick = 6>>
-		<<set $activeSlave.foreskin = 0>>
-		<<set $activeSlave.balls = random(19,30)>>
-		<<set $activeSlave.scrotum = 10>>
-		<<set $activeSlave.prostate = 2>>
-		<<set $activeSlave.weight = random(10,30)>>
-		<<set $activeSlave.waist = random(0,100)>>
-		<<set $activeSlave.muscles = random(80,100)>>
-		<<set $activeSlave.skill.vaginal = 0>>
-		<<set $activeSlave.skill.oral = 0>>
-		<<set $activeSlave.skill.anal = 0>>
-		<<set $activeSlave.skill.whoring = 0>>
-		<<set $activeSlave.skill.entertainment = 0>>
-		<<set $activeSlave.skill.combat = 0>>
-		<<set $activeSlave.pubicHStyle = "waxed">>
-		<<set $activeSlave.underArmHStyle = "waxed">>
-		<<set $activeSlave.heels = 1>>
-		<<set $activeSlave.energy = 100>>
-		<<set $activeSlave.fetish = "mindbroken">>
-		<<set $activeSlave.fetishStrength = 10>>
-		<<set $activeSlave.fetishKnown = 1>>
-		<<set $activeSlave.sexualFlaw = either("none")>>
-		<<set $activeSlave.behavioralFlaw = either("none")>>
-		<<set $activeSlave.sexualQuirk = either("none")>>
-		<<set $activeSlave.behavioralQuirk = either("none")>>
-		<<set $activeSlave.hStyle = "neat">>
-		<<set $activeSlave.custom.tattoo = "$He has the logo of the Cattle Ranch branded on $his thigh.">>
-	<<else>>
-		<<set $activeSlaveOneTimeMinAge = 19>>
-		<<set $activeSlaveOneTimeMaxAge = 24>>
-		<<set $one_time_age_overrides_pedo_mode = 1>>
-		<<set $oneTimeDisableDisability = 1>>
-		<<set $activeSlave = GenerateNewSlave("XX")>>
-		<<set $activeSlave.slaveName = setup.cowSlaveNames.random()>>
-		<<set $activeSlave.slaveSurname = 0>>
-		<<set $activeSlave.origin = "You bought her from The Cattle Ranch.">>
-		<<set $activeSlave.career = "a dairy cow">>
-		<<set $activeSlave.butt = either(3, 3, 4, 4, 4, 5, 6)>>
-		<<set $activeSlave.boobs = (($activeSlave.physicalAge*100)*2)+either(-100, -100, 0, 0, 100, 100, 200, 200, 300, 500)>>
-		<<set $activeSlave.lactation = 1, $activeSlave.lactationDuration = 2>>
-		<<set $activeSlave.lactationAdaptation = 100>>
-		<<set $activeSlave.anus = 1>>
-		<<set $activeSlave.vagina = 3>>
-		<<set $activeSlave.vaginaLube = 2>>
-		<<set $activeSlave.intelligence = either(-100, -100, -100, -100, -60, -60, -30)>>
-		<<set $activeSlave.intelligenceImplant = 0>>
-		<<set $activeSlave.devotion = 100>>
-		<<set $activeSlave.trust = 100>>
-		<<set $activeSlave.health = random(20,30)>>
-		<<set $activeSlave.preg = random(10,40)>>
-		<<set $activeSlave.pregType = random(1,5)>>
-		<<set $activeSlave.pregKnown = 1>>
-		<<run SetBellySize($activeSlave)>>
-		<<set $activeSlave.bellySag = 2>>
-		<<set $activeSlave.bellySagPreg = 2>>
-		<<set $activeSlave.hips = either(1, 1, 1, 2, 2)>>
-		<<set $activeSlave.counter.birthsTotal = random(1,7)>>
-		<<set $activeSlave.pregAdaptation = 120>>
-		<<set $activeSlave.weight = random(20,90)>>
-		<<set $activeSlave.waist = random(-10,50)>>
-		<<set $activeSlave.muscles = random(60,80)>>
-		<<set $activeSlave.chem = 0>>
-		<<set $activeSlave.skill.vaginal = 0>>
-		<<set $activeSlave.skill.oral = 0>>
-		<<set $activeSlave.skill.anal = 0>>
-		<<set $activeSlave.skill.whoring = 0>>
-		<<set $activeSlave.skill.entertainment = 0>>
-		<<set $activeSlave.skill.combat = 0>>
-		<<set $activeSlave.pubicHStyle = "waxed">>
-		<<set $activeSlave.underArmHStyle = "waxed">>
-		<<set $activeSlave.heels = 1>>
-		<<set $activeSlave.fetish = "mindbroken">>
-		<<set $activeSlave.fetishStrength = 10>>
-		<<set $activeSlave.fetishKnown = 1>>
-		<<set $activeSlave.sexualFlaw = either("none")>>
-		<<set $activeSlave.behavioralFlaw = either("none")>>
-		<<set $activeSlave.sexualQuirk = either("none")>>
-		<<set $activeSlave.behavioralQuirk = either("none")>>
-		<<set $activeSlave.hStyle = "neat">>
-		<<set $activeSlave.collar = "leather with cowbell">>
-		<<set $activeSlave.custom.tattoo = "$He has the logo of the Cattle Ranch branded on $his thigh.">>
-	<</if>>
-
-<<case "TFS">>
-	<<set $activeSlaveOneTimeMinAge = 25>>
-	<<set $activeSlaveOneTimeMaxAge = 29>>
-	<<set $one_time_age_overrides_pedo_mode = 1>>
-	<<set $oneTimeDisableDisability = 1>>
-	<<if $TFS.schoolUpgrade == 3 && $TFS.compromiseWeek+15 <= $week>>
-		<<set $activeSlave = GenerateNewSlave()>>
-	<<else>>
-		<<set $activeSlave = GenerateNewSlave("XY")>>
-	<</if>>
-	<<set $activeSlave.origin = "You bought her from the enigmatic Futanari Sisters after they sold her into slavery.">>
-	<<set $activeSlave.career = "a Futanari Sister">>
-	<<set $activeSlave.faceShape = either("exotic", "sensual")>>
-	<<set $activeSlave.pubertyXY = 1>>
-	<<set _sisterAge = random(1,5)>>
-	<<if _sisterAge == 1>>
-		<<set $activeSlave.intelligence = -60>>
-		<<set $activeSlave.hips = 0>>
-		<<set $activeSlave.face = either(35,35,35,75,100)>>
-		<<if $TFS.schoolUpgrade == 3 && $TFS.compromiseWeek+15 <= $week>>
-			<<if $activeSlave.genes == "XY">>
-				<<set $activeSlave.balls = 6>>
-				<<set $activeSlave.scrotum = $activeSlave.balls>>
-			<<else>>
-				<<set $activeSlave.balls = 1>>
-				<<set $activeSlave.scrotum = 0>>
-			<</if>>
-		<<elseif $TFS.schoolUpgrade == 1>>
-			<<set $activeSlave.balls = 1>>
-			<<set $activeSlave.scrotum = 0>>
-		<<elseif $TFS.schoolUpgrade == 2>>
-			<<set $activeSlave.balls = 6>>
-			<<set $activeSlave.scrotum = $activeSlave.balls>>
-		<<else>>
-			<<set $activeSlave.balls = random(2,3)>>
-			<<set $activeSlave.scrotum = $activeSlave.balls>>
-		<</if>>
-		<<set $activeSlave.lips = 10>>
-		<<set $activeSlave.weight = 0>>
-		<<set $activeSlave.waist = random(-30,10)>>
-		<<set $activeSlave.actualAge = random(19,24)>>
-		<<set $activeSlave.physicalAge = $activeSlave.actualAge>>
-		<<set $activeSlave.visualAge = $activeSlave.actualAge>>
-		<<set $activeSlave.ovaryAge = $activeSlave.actualAge>>
-		<<set $activeSlave.vagina = 2>>
-		<<set $activeSlave.anus = 2>>
-		<<set $activeSlave.fetish = "submissive">>
-	<<elseif _sisterAge == 2>>
-		<<set $activeSlave.intelligence = -30>>
-		<<set $activeSlave.hips = 1>>
-		<<set $activeSlave.face = either(35,35,35,75,100)>>
-		<<if $TFS.schoolUpgrade == 3 && $TFS.compromiseWeek+15 <= $week>>
-			<<if $activeSlave.genes == "XY">>
-				<<set $activeSlave.balls = 7>>
-				<<set $activeSlave.scrotum = $activeSlave.balls>>
-			<<else>>
-				<<set $activeSlave.balls = 1>>
-				<<set $activeSlave.scrotum = 0>>
-			<</if>>
-		<<elseif $TFS.schoolUpgrade == 1>>
-			<<set $activeSlave.balls = 1>>
-			<<set $activeSlave.scrotum = 0>>
-		<<elseif $TFS.schoolUpgrade == 2>>
-			<<set $activeSlave.balls = 6>>
-			<<set $activeSlave.scrotum = $activeSlave.balls>>
-		<<else>>
-			<<set $activeSlave.balls = random(2,3)>>
-			<<set $activeSlave.scrotum = $activeSlave.balls>>
-		<</if>>
-		<<set $activeSlave.lips = 0>>
-		<<set $activeSlave.weight = 0>>
-		<<set $activeSlave.waist = random(-30,10)>>
-		<<set $activeSlave.vagina = 2>>
-		<<set $activeSlave.anus = 2>>
-		<<set $activeSlave.fetish = either("buttslut", "cumslut", "submissive")>>
-	<<elseif _sisterAge == 3>>
-		<<set $activeSlave.intelligence = 0>>
-		<<set $activeSlave.hips = 2>>
-		<<set $activeSlave.face = either(35,35,75,75,100)>>
-		<<if $TFS.schoolUpgrade == 3 && $TFS.compromiseWeek+15 <= $week>>
-			<<if $activeSlave.genes == "XY">>
-				<<set $activeSlave.balls = 8>>
-				<<set $activeSlave.scrotum = $activeSlave.balls>>
-			<<else>>
-				<<set $activeSlave.balls = 1>>
-				<<set $activeSlave.scrotum = 0>>
-			<</if>>
-		<<elseif $TFS.schoolUpgrade == 1>>
-			<<set $activeSlave.balls = 1>>
-			<<set $activeSlave.scrotum = 0>>
-		<<elseif $TFS.schoolUpgrade == 2>>
-			<<set $activeSlave.balls = 6>>
-			<<set $activeSlave.scrotum = $activeSlave.balls>>
-		<<else>>
-			<<set $activeSlave.balls = random(3,4)>>
-			<<set $activeSlave.scrotum = $activeSlave.balls>>
-		<</if>>
-		<<set $activeSlave.lips = random(15,25)>>
-		<<set $activeSlave.weight = 20>>
-		<<set $activeSlave.waist = random(-30,20)>>
-		<<set $activeSlave.actualAge = random(30,34)>>
-		<<set $activeSlave.physicalAge = $activeSlave.actualAge>>
-		<<set $activeSlave.visualAge = $activeSlave.actualAge>>
-		<<set $activeSlave.ovaryAge = $activeSlave.actualAge>>
-		<<set $activeSlave.vagina = 2>>
-		<<set $activeSlave.anus = 2>>
-		<<set $activeSlave.fetish = either("buttslut", "cumslut")>>
-	<<elseif _sisterAge == 4>>
-		<<set $activeSlave.intelligence = 30>>
-		<<set $activeSlave.hips = 2>>
-		<<set $activeSlave.face = either(35,75,75,100,100)>>
-		<<if $TFS.schoolUpgrade == 3 && $TFS.compromiseWeek+15 <= $week>>
-			<<if $activeSlave.genes == "XY">>
-				<<set $activeSlave.balls = 9>>
-				<<set $activeSlave.scrotum = $activeSlave.balls>>
-			<<else>>
-				<<set $activeSlave.balls = 1>>
-				<<set $activeSlave.scrotum = 0>>
-			<</if>>
-		<<elseif $TFS.schoolUpgrade == 1>>
-			<<set $activeSlave.balls = 1>>
-			<<set $activeSlave.scrotum = 0>>
-		<<elseif $TFS.schoolUpgrade == 2>>
-			<<set $activeSlave.balls = 6>>
-			<<set $activeSlave.scrotum = $activeSlave.balls>>
-		<<else>>
-			<<set $activeSlave.balls = random(4,5)>>
-			<<set $activeSlave.scrotum = $activeSlave.balls>>
-		<</if>>
-		<<set $activeSlave.lips = random(25,55)>>
-		<<set $activeSlave.weight = 20>>
-		<<set $activeSlave.waist = random(-30,20)>>
-		<<set $activeSlave.actualAge = random(35,39)>>
-		<<set $activeSlave.physicalAge = $activeSlave.actualAge>>
-		<<set $activeSlave.visualAge = $activeSlave.actualAge>>
-		<<set $activeSlave.ovaryAge = $activeSlave.actualAge>>
-		<<set $activeSlave.vagina = 3>>
-		<<set $activeSlave.anus = 3>>
-		<<set $activeSlave.fetish = either("buttslut", "cumslut", "dom")>>
-	<<else>>
-		<<set $activeSlave.intelligence = 60>>
-		<<set $activeSlave.hips = 2>>
-		<<set $activeSlave.face = either(35,75,100,100,100)>>
-		<<if $TFS.schoolUpgrade == 3 && $TFS.compromiseWeek+15 <= $week>>
-			<<if $activeSlave.genes == "XY">>
-				<<set $activeSlave.balls = 10>>
-				<<set $activeSlave.scrotum = $activeSlave.balls>>
-			<<else>>
-				<<set $activeSlave.balls = 1>>
-				<<set $activeSlave.scrotum = 0>>
-			<</if>>
-		<<elseif $TFS.schoolUpgrade == 1>>
-			<<set $activeSlave.balls = 1>>
-			<<set $activeSlave.scrotum = 0>>
-		<<elseif $TFS.schoolUpgrade == 2>>
-			<<set $activeSlave.balls = 6>>
-			<<set $activeSlave.scrotum = $activeSlave.balls>>
-		<<else>>
-			<<set $activeSlave.balls = random(5,6)>>
-			<<set $activeSlave.scrotum = $activeSlave.balls>>
-		<</if>>
-		<<set $activeSlave.lips = random(25,55)>>
-		<<set $activeSlave.weight = 50>>
-		<<set $activeSlave.waist = random(-50,20)>>
-		<<set $activeSlave.actualAge = random(40,42)>>
-		<<set $activeSlave.physicalAge = $activeSlave.actualAge>>
-		<<set $activeSlave.visualAge = $activeSlave.actualAge>>
-		<<set $activeSlave.ovaryAge = $activeSlave.actualAge>>
-		<<set $activeSlave.vagina = 3>>
-		<<set $activeSlave.anus = 3>>
-		<<set $activeSlave.fetish = "dom">>
-	<</if>>
-	<<set $activeSlave.chem = 100+(_sisterAge*50)>>
-	<<set $activeSlave.butt = _sisterAge+random(2,4)>>
-	<<set $activeSlave.boobs = 50*((10*_sisterAge)+random(10,20))>>
-	<<set $activeSlave.dick = _sisterAge+random(1,2)>>
-	<<if $activeSlave.foreskin > 0>><<set $activeSlave.foreskin = $activeSlave.dick>><</if>>
-	<<set $activeSlave.preg = -3>>
-	<<if $TFS.farmUpgrade > 0>>
-		<<set $activeSlave.ovaries = 1>>
-		<<set $activeSlave.preg = -1>>
-		<<set $activeSlave.pubertyXX = 1>>
-		<<if $TFS.farmUpgrade >= 2>>
-			<<if $week - $TFS.farmUpgradeAsked < 35>>
-				<<set $activeSlave.preg = random(1,($week - $TFS.farmUpgradeAsked))>>
-			<<else>>
-				<<set $activeSlave.preg = random(1,40)>>
-			<</if>>
-			<<if $TFS.farmUpgrade == 3>>
-				<<set $activeSlave.pregType = random(20,40)>>
-				<<set $activeSlave.pregAdaptation = 500>>
-			<<else>>
-				<<set $activeSlave.pregType = 1>>
-			<</if>>
-			<<set $activeSlave.pregWeek = $activeSlave.preg>>
-			<<set $activeSlave.pregSource = -9>>
-		<</if>>
-	<</if>>
-	<<run SetBellySize($activeSlave)>>
-	<<set $activeSlave.intelligenceImplant = 30>>
-	<<set $activeSlave.teeth = "normal">>
-	<<if $TFS.schoolUpgrade == 2>>
-		<<set $activeSlave.energy = 100>>
-	<<else>>
-		<<set $activeSlave.energy = $activeSlave.physicalAge+random(20,30)>>
-	<</if>>
-	<<set $activeSlave.devotion = random(30,40)>>
-	<<set $activeSlave.trust = random(60,75)>>
-	<<set $activeSlave.health = random(60,80)>>
-	<<set $activeSlave.muscles = 20>>
-	<<if $activeSlave.genes == "XY">>
-		<<set $activeSlave.shoulders = 1>>
-	<</if>>
-	<<set $activeSlave.skill.vaginal = 100>>
-	<<set $activeSlave.skill.oral = 100>>
-	<<set $activeSlave.skill.anal = 100>>
-	<<set $activeSlave.skill.whoring = 15>>
-	<<set $activeSlave.skill.entertainment = 100>>
-	<<set $activeSlave.skill.combat = 0>>
-	<<set $activeSlave.pubicHStyle = "waxed">>
-	<<set $activeSlave.underArmHStyle = "waxed">>
-	<<if $TFS.schoolUpgrade == 1>>
-		<<set $activeSlave.sexualQuirk = "caring">>
-	<</if>>
-	<<set $activeSlave.sexualFlaw = either("hates women", "none")>>
-	<<set $activeSlave.behavioralFlaw = either("arrogant", "none")>>
-	<<set $activeSlave.fetishStrength = 100>>
-	<<set $activeSlave.fetishKnown = 0>>
-	<<set $activeSlave.attrKnown = 0>>
-	<<set $activeSlave.hStyle = "neat">>
-	<<set $activeSlave.hLength = 150>>
-	<<set $activeSlave.custom.tattoo = "$He has a simple pink heart tattooed on $his right temple.">>
-	<<set $activeSlave.trueVirgin = 1>>
-
-<<case "HA">>
-	<<set $activeSlaveOneTimeMinAge = 22>>
-	<<set $activeSlaveOneTimeMaxAge = 26>>
-	<<set $one_time_age_overrides_pedo_mode = 1>>
-	<<set $oneTimeDisableDisability = 1>>
-	<<set $activeSlave = GenerateNewSlave("XX")>>
-	<<set $activeSlave.origin = "You bought her from the prestigious Hippolyta Academy.">>
-	<<set $activeSlave.career = "a bodyguard">>
-	<<set $activeSlave.intelligenceImplant = 30>>
-	<<set $activeSlave.faceShape = either("cute", "normal")>>
-	<<set $activeSlave.face = either(35,35,35,50,75,100)>>
-	<<set $activeSlave.lips = random(0,25)>>
-	<<set $activeSlave.actualAge = random(20,25)>>
-	<<set $activeSlave.physicalAge = $activeSlave.actualAge>>
-	<<set $activeSlave.visualAge = $activeSlave.actualAge>>
-	<<set $activeSlave.ovaryAge = $activeSlave.actualAge>>
-	<<set $activeSlave.hips = 0>>
-	<<set $activeSlave.vagina = random(0,1)>>
-	<<set $activeSlave.anus = random(0,1)>>
-	<<set $activeSlave.fetish = "none">>
-	<<set $activeSlave.chem = 10 * random(1,3)>>
-	<<set $activeSlave.butt = random(2,4)>>
-	<<set $activeSlave.boobs = random(3,6) * 100>>
-	<<set $activeSlave.preg = 0>>
-	<<run SetBellySize($activeSlave)>>
-	<<set $activeSlave.teeth = "normal">>
-	<<set $activeSlave.devotion = random(60,75)>>
-	<<set $activeSlave.trust = random(60,75)>>
-	<<set $activeSlave.health = random(60,80)>>
-	<<set _minHeight = random(170,180)>>
-	<<if $HA.schoolUpgrade == 2>>
-		<<set $activeSlave.height = Math.trunc(Math.clamp(Height.random($activeSlave, {limitMult: [2, 15], spread: .1}),_minHeight, 274))>>
-		<<set $activeSlave.muscles = random(40,80)>>
-	<<else>>
-		<<set $activeSlave.height = Math.trunc(Math.clamp(Height.random($activeSlave, {limitMult: [1, 4]}),_minHeight, 274))>>
-		<<set $activeSlave.muscles = random(20,40)>>
-	<</if>>
-	<<if $HA.schoolUpgrade == 3>>
-		<<set $activeSlave.weight = either(10,20,20,30,30,40,40,50)>>
-		<<set $activeSlave.waist = random(-10,40)>>
-	<<else>>
-		<<set $activeSlave.weight = -10>>
-		<<set $activeSlave.waist = random(-20,10)>>
-	<</if>>
-	<<set $activeSlave.shoulders = 0>>
-	<<if $HA.schoolUpgrade == 1>>
-		<<set $activeSlave.intelligence = Intelligence.random({limitIntelligence: [20,70]})>>
-		<<set $activeSlave.skill.vaginal = either(20,20,40)>>
-		<<set $activeSlave.skill.oral = either(20,20,40)>>
-		<<set $activeSlave.skill.anal = either(20,20,40)>>
-		<<set $activeSlave.skill.whoring = either(20,20,40)>>
-		<<set $activeSlave.skill.entertainment = either(60,80,80,100)>>
-	<<else>>
-		<<set $activeSlave.intelligence = random(0,20)>>
-		<<set $activeSlave.skill.vaginal = 10>>
-		<<set $activeSlave.skill.oral = 10>>
-		<<set $activeSlave.skill.anal = 10>>
-		<<set $activeSlave.skill.whoring = 10>>
-		<<set $activeSlave.skill.entertainment = either(20,40,40,60)>>
-	<</if>>
-	<<set $activeSlave.skill.combat = 1>>
-	<<set $activeSlave.pubicHStyle = "waxed">>
-	<<set $activeSlave.underArmHStyle = "waxed">>
-	<<set $activeSlave.sexualQuirk = either("caring", "none", "none", "unflinching")>>
-	<<set $activeSlave.sexualFlaw = either("apathetic", "judgemental", "none", "none")>>
-	<<set $activeSlave.behavioralFlaw = either("arrogant", "none")>>
-	<<set $activeSlave.behavioralQuirk = either("confident", "fitness", "none", "none")>>
-	<<set $activeSlave.fetishStrength = 0>>
-	<<set $activeSlave.fetishKnown = 0>>
-	<<set $activeSlave.attrKnown = 0>>
-	<<set $activeSlave.hStyle = either("braided", "bun", "neat", "ponytail", "tails")>>
-	<<set $activeSlave.hLength = random(5,50)>>
-	<<set $activeSlave.clothes = "a nice maid outfit">>
-	<<set $activeSlave.custom.tattoo = "$He has the sword and eagle symbol of the Hippolyta Academy tattooed on $his left shoulder.">>
-
-<<case "gangs and smugglers">>
-	<<if $pedo_mode == 1>>
-		<<set $activeSlaveOneTimeMinAge = 6>>
-		<<set $activeSlaveOneTimeMaxAge = 18>>
-		<<set $one_time_age_overrides_pedo_mode = 1>>
-	<<else>>
-		<<set $activeSlaveOneTimeMinAge = 16>>
-		<<if $retirementAge > 56>>
-			<<set $activeSlaveOneTimeMaxAge = 55>>
-		<<else>>
-			<<set $activeSlaveOneTimeMaxAge = $retirementAge-2>>
-		<</if>>
-	<</if>>
-	<<set $oneTimeDisableDisability = 1>>
-	<<set $activeSlave = GenerateNewSlave("XY")>>
-
-	<<set _criminal = setup.gangCriminalPool.random()>>
-
-	<<switch _criminal>>
-	<<case "mule">>
-		<<set $activeSlave.origin = "You purchased her life at a prison sale. She was locked away for smuggling illegal contraband inside her body.">>
-		<<set $prisonCrime = "is incarcerated for being a willing drug mule.">>
-		<<set $activeSlave.career = "a drug mule">>
-		<<set $activeSlave.devotion = random(-20,20)>>
-		<<set $activeSlave.trust = random(-100,-25)>>
-		<<set $activeSlave.hStyle = "buzzcut">>
-		<<set $activeSlave.hLength = 0>>
-		<<set $activeSlave.intelligence = either(-100, -100, -60, -60, -60, -30, -30)>>
-		<<set $activeSlave.health = random(-80,20)>>
-		<<set $activeSlave.anus = 4>>
-		<<set $activeSlave.chem = 10 * random(1,3)>>
-		<<set $activeSlave.addict = 100>>
-	<<case "arms smuggler">>
-		<<set $activeSlave.origin = "You purchased her life at a prison sale. She was locked away for smuggling arms to forces antagonistic to the Free Cities.">>
-		<<set $prisonCrime = "is incarcerated for being an arms dealer.">>
-		<<set $activeSlave.career = "an arms dealer">>
-		<<set $activeSlave.devotion = random(-100,-50)>>
-		<<set $activeSlave.trust = random(-60,25)>>
-		<<set $activeSlave.hStyle = "buzzcut">>
-		<<set $activeSlave.hLength = 0>>
-		<<set $activeSlave.intelligence = random(0,60)>>
-		<<set $activeSlave.health = random(-20,20)>>
-		<<set $activeSlave.weight = random(-30,10)>>
-		<<set $activeSlave.waist = random(-10,50)>>
-		<<set $activeSlave.muscles = random(10,40)>>
-	<<case "drug smuggler">>
-		<<set $activeSlave.origin = "You purchased her life at a prison sale. She was locked away for smuggling drugs into the Free City.">>
-		<<set $prisonCrime = "is incarcerated for smuggling drugs.">>
-		<<set $activeSlave.career = "a drug smuggler">>
-		<<set $activeSlave.devotion = random(-60,-20)>>
-		<<set $activeSlave.trust = random(-60,40)>>
-		<<set $activeSlave.hStyle = "buzzcut">>
-		<<set $activeSlave.hLength = 0>>
-		<<set $activeSlave.intelligence = random(-60,60)>>
-		<<set $activeSlave.health = random(-20,20)>>
-	<<case "smuggler">>
-		<<set $activeSlave.origin = "You purchased her life at a prison sale. She was locked away for smuggling goods into the Free City.">>
-		<<set $prisonCrime = "is incarcerated for smuggling goods.">>
-		<<set $activeSlave.career = "a smuggler">>
-		<<set $activeSlave.devotion = random(-80,-20)>>
-		<<set $activeSlave.trust = random(-100,40)>>
-		<<set $activeSlave.hStyle = "buzzcut">>
-		<<set $activeSlave.hLength = 0>>
-		<<set $activeSlave.intelligence = random(0,60)>>
-		<<set $activeSlave.health = random(-20,40)>>
-		<<set $activeSlave.muscles = random(10,40)>>
-	<<case "fence">>
-		<<set $activeSlave.origin = "You purchased her life at a prison sale. She was locked away for dealing in stolen goods.">>
-		<<set $prisonCrime = "is incarcerated for buying and selling stolen goods.">>
-		<<set $activeSlave.career = "a fence">>
-		<<set $activeSlave.devotion = random(-100,-20)>>
-		<<set $activeSlave.trust = random(-20,40)>>
-		<<set $activeSlave.hStyle = "buzzcut">>
-		<<set $activeSlave.hLength = 0>>
-		<<set $activeSlave.intelligence = random(-60,30)>>
-		<<set $activeSlave.health = random(-20,60)>>
-	<<case "gang murderer">>
-		<<set $activeSlave.origin = "You purchased her life at a prison sale. She was locked away for gang related murder.">>
-		<<set $prisonCrime = "is incarcerated for gang related murders.">>
-		<<set $activeSlave.career = "a gang member">>
-		<<set $activeSlave.devotion = random(-100,-50)>>
-		<<set $activeSlave.trust = random(0,100)>>
-		<<set $activeSlave.hStyle = "buzzcut">>
-		<<set $activeSlave.hLength = 0>>
-		<<set $activeSlave.intelligence = either(-30, -20, 0, 0, 20, 40, 60)>>
-		<<set $activeSlave.behavioralFlaw = "arrogant">>
-		<<set $activeSlave.health = random(-20,20)>>
-		<<set $activeSlave.muscles = random(20,80)>>
-		<<set $activeSlave.chem = 10 * random(1,3)>>
-		<<set $activeSlave.custom.tattoo = "The prominent emblem of a local gang spans the length of his shoulders.">>
-		<<set $activeSlave.skill.combat = 1>>
-	<<case "gang assaulter">>
-		<<set $activeSlave.origin = "You purchased her life at a prison sale. She was locked away for gang related extortion of local businesses.">>
-		<<set $prisonCrime = "is incarcerated for gang related activities.">>
-		<<set $activeSlave.career = "a gang member">>
-		<<set $activeSlave.devotion = random(-100,-50)>>
-		<<set $activeSlave.trust = random(0,100)>>
-		<<set $activeSlave.hStyle = "buzzcut">>
-		<<set $activeSlave.hLength = 0>>
-		<<set $activeSlave.intelligence = random(-100,0)>>
-		<<set $activeSlave.behavioralFlaw = "arrogant">>
-		<<set $activeSlave.health = random(-20,20)>>
-		<<set $activeSlave.muscles = random(40,80)>>
-		<<set $activeSlave.weight = random(-30,10)>>
-		<<set $activeSlave.waist = random(10,50)>>
-		<<set $activeSlave.chem = 10 * random(1,3)>>
-		<<set $activeSlave.custom.tattoo = "The prominent emblem of a local gang spans the length of his shoulders.">>
-		<<set $activeSlave.skill.combat = 1>>
-	<<case "gang bruiser">>
-		<<set $activeSlave.origin = "You purchased her life at a prison sale. She was locked away for a gang related beating of a local businessman.">>
-		<<set $prisonCrime = "is incarcerated for gang related activities.">>
-		<<set $activeSlave.career = "a gang member">>
-		<<set $activeSlave.devotion = random(-100,-50)>>
-		<<set $activeSlave.trust = random(0,100)>>
-		<<set $activeSlave.hStyle = "buzzcut">>
-		<<set $activeSlave.hLength = 0>>
-		<<set $activeSlave.intelligence = random(-100,0)>>
-		<<set $activeSlave.behavioralFlaw = "arrogant">>
-		<<set $activeSlave.health = random(-20,20)>>
-		<<set $activeSlave.muscles = random(60,80)>>
-		<<set $activeSlave.weight = random(-30,10)>>
-		<<set $activeSlave.waist = random(10,70)>>
-		<<set $activeSlave.chem = 10 * random(1,3)>>
-		<<set $activeSlave.custom.tattoo = "The prominent emblem of a local gang spans the length of his shoulders.">>
-		<<set $activeSlave.skill.combat = 1>>
-	<<case "gang thief">>
-		<<set $activeSlave.origin = "You purchased her life at a prison sale. She was locked away for gang related raiding of several local warehouses.">>
-		<<set $prisonCrime = "is incarcerated for gang related activities.">>
-		<<set $activeSlave.career = "a gang member">>
-		<<set $activeSlave.devotion = random(-100,-50)>>
-		<<set $activeSlave.trust = random(0,100)>>
-		<<set $activeSlave.hStyle = "buzzcut">>
-		<<set $activeSlave.hLength = 0>>
-		<<set $activeSlave.intelligence = random(-40,60)>>
-		<<set $activeSlave.behavioralFlaw = "arrogant">>
-		<<set $activeSlave.health = random(-20,20)>>
-		<<set $activeSlave.muscles = random(20,80)>>
-		<<set $activeSlave.weight = random(-30,30)>>
-		<<set $activeSlave.waist = random(10,70)>>
-		<<set $activeSlave.chem = 10 * random(1,3)>>
-		<<set $activeSlave.custom.tattoo = "The prominent emblem of a local gang spans the length of his shoulders.">>
-		<<set $activeSlave.skill.combat = 1>>
-	<<case "drug peddler">>
-		<<set $activeSlave.origin = "You purchased her life at a prison sale. She was locked away for gang related drug distribution.">>
-		<<set $prisonCrime = "is incarcerated for gang related activities.">>
-		<<set $activeSlave.career = "a drug pusher">>
-		<<set $activeSlave.devotion = random(-100,-50)>>
-		<<set $activeSlave.trust = random(0,100)>>
-		<<set $activeSlave.hStyle = "buzzcut">>
-		<<set $activeSlave.hLength = 0>>
-		<<set $activeSlave.intelligence = random(-40,60)>>
-		<<set $activeSlave.health = random(-20,20)>>
-		<<set $activeSlave.muscles = random(20,40)>>
-		<<set $activeSlave.chem = 10 * random(3,5)>>
-		<<set $activeSlave.custom.tattoo = "The prominent emblem of a local gang spans the length of his shoulders.">>
-		<<set $activeSlave.skill.combat = 1>>
-	<<case "hitman">>
-		<<set $activeSlave.origin = "You purchased her life at a prison sale. She was locked away for a series of high profile murders.">>
-		<<set $prisonCrime = "is incarcerated for a series of murders-for-hire.">>
-		<<set $activeSlave.career = "a hitman">>
-		<<set $activeSlave.devotion = random(-75,-50)>>
-		<<set $activeSlave.trust = random(-60,25)>>
-		<<set $activeSlave.hStyle = "buzzcut">>
-		<<set $activeSlave.hLength = 0>>
-		<<set $activeSlave.intelligence = random(0,100)>>
-		<<set $activeSlave.health = random(-20,60)>>
-		<<set $activeSlave.weight = random(-30,10)>>
-		<<set $activeSlave.waist = random(-10,50)>>
-		<<set $activeSlave.muscles = random(20,40)>>
-		<<set $activeSlave.skill.combat = 1>>
-	<<case "assassin">>
-		<<set $activeSlave.origin = "You purchased her life at a prison sale. She was locked away for a high profile assassination.">>
-		<<set $prisonCrime = "is incarcerated for an assassination.">>
-		<<set $activeSlave.career = "an assassin">>
-		<<set $activeSlave.devotion = -100>>
-		<<set $activeSlave.trust = 100>>
-		<<set $activeSlave.hStyle = "buzzcut">>
-		<<set $activeSlave.hLength = 0>>
-		<<set $activeSlave.intelligence = 100>>
-		<<set $activeSlave.health = random(-20,60)>>
-		<<set $activeSlave.weight = random(-30,10)>>
-		<<set $activeSlave.waist = random(-10,10)>>
-		<<set $activeSlave.muscles = random(20,40)>>
-		<<set $activeSlave.skill.combat = 1>>
-	<<case "murder">>
-		<<set $activeSlave.origin = "You purchased her life at a prison sale. She was locked away for repeat murder.">>
-		<<set $prisonCrime = "is incarcerated for murder.">>
-		<<set $activeSlave.career = "a murderer">>
-		<<set $activeSlave.devotion = random(-100,-50)>>
-		<<set $activeSlave.trust = random(0,100)>>
-		<<set $activeSlave.hStyle = "buzzcut">>
-		<<set $activeSlave.hLength = 0>>
-		<<set $activeSlave.intelligence = random(-40,60)>>
-		<<set $activeSlave.health = random(-20,20)>>
-		<<set $activeSlave.muscles = random(20,80)>>
-		<<set $activeSlave.skill.combat = 1>>
-	<<case "manslaughter">>
-		<<set $activeSlave.origin = "You purchased her life at a prison sale. She was locked away for manslaughter.">>
-		<<set $prisonCrime = "is incarcerated for manslaughter.">>
-		<<set $activeSlave.career = "a criminal">>
-		<<set $activeSlave.devotion = random(-20,50)>>
-		<<set $activeSlave.trust = random(0,20)>>
-		<<set $activeSlave.hStyle = "buzzcut">>
-		<<set $activeSlave.hLength = 0>>
-		<<set $activeSlave.intelligence = random(-40,60)>>
-		<<set $activeSlave.health = random(-40,0)>>
-	<<case "attempted murder">>
-		<<set $activeSlave.origin = "You purchased her life at a prison sale. She was locked away for attempted murder of a prominent individual.">>
-		<<set $prisonCrime = "is incarcerated for an attempted murder.">>
-		<<set $activeSlave.career = "a criminal">>
-		<<set $activeSlave.devotion = random(-20,50)>>
-		<<set $activeSlave.trust = random(0,20)>>
-		<<set $activeSlave.hStyle = "buzzcut">>
-		<<set $activeSlave.hLength = 0>>
-		<<set $activeSlave.intelligence = random(-100,0)>>
-		<<set $activeSlave.health = random(-40,0)>>
-	<</switch>>
-
-<<case "military prison">>
-	<<if $pedo_mode == 1>>
-		<<set $activeSlaveOneTimeMinAge = 12>>
-		<<set $activeSlaveOneTimeMaxAge = 18>>
-		<<set $one_time_age_overrides_pedo_mode = 1>>
-	<<else>>
-		<<set $activeSlaveOneTimeMinAge = 18>>
-		<<if $retirementAge > 56>>
-			<<set $activeSlaveOneTimeMaxAge = 55>>
-		<<else>>
-			<<set $activeSlaveOneTimeMaxAge = $retirementAge-2>>
-		<</if>>
-	<</if>>
-	<<set $oneTimeDisableDisability = 1>>
-	<<set $activeSlave = GenerateNewSlave()>>
-
-	/*
-	<<if $activeSlave.dick > 0>>
-		<<set $activeSlave.chastityPenis = 1>>
-	<</if>>
-	<<if $activeSlave.vagina > -1>>
-		<<set $activeSlave.chastityVagina = 1>>
-	<</if>>
-	*/
-
-	<<set _criminal = setup.militaryCriminalPool.random()>>
-
-	<<switch _criminal>>
-	<<case "spy">>
-		<<set $activeSlave.origin = "You purchased her life at a prison sale. She was a spy captured while infiltrating the Free City.">>
-		<<set $prisonCrime = "is incarcerated for spying.">>
-		<<set $activeSlave.career = "a spy">>
-		<<set $activeSlave.devotion = random(-20,20)>>
-		<<set $activeSlave.trust = -100>>
-		<<set $activeSlave.hStyle = "buzzcut">>
-		<<set $activeSlave.hLength = 0>>
-		<<set $activeSlave.intelligence = random(20,100)>>
-		<<set $activeSlave.intelligenceImplant = 30>>
-		<<set $activeSlave.health = random(-40,20)>>
-		<<set $activeSlave.weight = random(-30,10)>>
-		<<set $activeSlave.waist = random(-10,10)>>
-		<<set $activeSlave.muscles = random(20,40)>>
-		<<set $activeSlave.skill.combat = 1>>
-	<<case "terrorist">>
-		<<set $activeSlave.origin = "You purchased her life at a prison sale. She was a terrorist captured when her attempt to destroy a public building and the people within was foiled.">>
-		<<set $prisonCrime = "is incarcerated for terrorism.">>
-		<<set $activeSlave.career = "a terrorist">>
-		<<set $activeSlave.devotion = random(-80,-20)>>
-		<<set $activeSlave.trust = -100>>
-		<<set $activeSlave.hStyle = "buzzcut">>
-		<<set $activeSlave.hLength = 0>>
-		<<set $activeSlave.intelligence = random(-100,0)>>
-		<<set $activeSlave.health = random(-60,20)>>
-		<<set $activeSlave.weight = random(-100,10)>>
-		<<set $activeSlave.waist = random(-10,10)>>
-	<<case "war criminal">>
-		<<set $activeSlave.origin = "You purchased her life at a prison sale. She was a soldier imprisoned for committing unspeakable atrocities, even by the standards of an apocalyptic slave trading society.">>
-		<<set $prisonCrime = "is incarcerated for a series of war crimes.">>
-		<<set $activeSlave.career = "a soldier">>
-		<<set $activeSlave.devotion = random(-100,-80)>>
-		<<set $activeSlave.trust = random(20,100)>>
-		<<set $activeSlave.hStyle = "buzzcut">>
-		<<set $activeSlave.hLength = 0>>
-		<<set $activeSlave.intelligence = random(-20,100)>>
-		<<set $activeSlave.intelligenceImplant = 30>>
-		<<set $activeSlave.health = random(-40,60)>>
-		<<set $activeSlave.weight = random(-10,10)>>
-		<<set $activeSlave.waist = random(-10,10)>>
-		<<set $activeSlave.muscles = random(20,60)>>
-		<<set $activeSlave.skill.combat = 1>>
-		<<set $activeSlave.behavioralFlaw = "arrogant">>
-	<<case "deserter">>
-		<<set $activeSlave.origin = "You purchased her life at a prison sale. She was a soldier that abandoned her post.">>
-		<<set $prisonCrime = "is incarcerated for going A.W.O.L.">>
-		<<set $activeSlave.career = "a soldier">>
-		<<set $activeSlave.devotion = random(-100,-80)>>
-		<<set $activeSlave.trust = random(-100,-80)>>
-		<<set $activeSlave.hStyle = "buzzcut">>
-		<<set $activeSlave.hLength = 0>>
-		<<set $activeSlave.intelligence = random(-60,40)>>
-		<<set $activeSlave.health = random(-40,60)>>
-		<<set $activeSlave.weight = random(-50,10)>>
-		<<set $activeSlave.waist = random(-10,10)>>
-		<<set $activeSlave.skill.combat = 1>>
-	<<case "officer">>
-		<<set $activeSlave.origin = "You purchased her life at a prison sale. She was an officer that over-extended her forces and was overwhelmed.">>
-		<<set $prisonCrime = "is a captured enemy officer.">>
-		<<set $activeSlave.career = "a military officer">>
-		<<set $activeSlave.devotion = random(-40,20)>>
-		<<set $activeSlave.trust = random(-50,0)>>
-		<<set $activeSlave.hStyle = "buzzcut">>
-		<<set $activeSlave.hLength = 0>>
-		<<set $activeSlave.intelligence = random(0,100)>>
-		<<set $activeSlave.intelligenceImplant = 15>>
-		<<set $activeSlave.health = random(0,60)>>
-		<<set $activeSlave.weight = random(-10,10)>>
-		<<set $activeSlave.waist = random(-10,10)>>
-		<<set $activeSlave.muscles = random(20,40)>>
-		<<set $activeSlave.skill.combat = 1>>
-	<<case "specOps">>
-		<<set $activeSlave.origin = "You purchased her life at a prison sale. She was a special operations officer that acted on bad intel and ended up captured.">>
-		<<set $prisonCrime = "is a captured enemy special operations officer.">>
-		<<set $activeSlave.career = "spec ops">>
-		<<set $activeSlave.devotion = random(-80,-50)>>
-		<<set $activeSlave.trust = random(-100,100)>>
-		<<set $activeSlave.hStyle = "buzzcut">>
-		<<set $activeSlave.hLength = 0>>
-		<<set $activeSlave.intelligence = either(60, 80, 100)>>
-		<<set $activeSlave.intelligenceImplant = 30>>
-		<<set $activeSlave.health = random(0,60)>>
-		<<set $activeSlave.weight = random(-10,10)>>
-		<<set $activeSlave.waist = random(-10,10)>>
-		<<set $activeSlave.muscles = random(30,60)>>
-		<<set $activeSlave.skill.combat = 1>>
-	<<case "sniper">>
-		<<set $activeSlave.origin = "You purchased her life at a prison sale. She was an enemy sniper that was captured after her company lost to your military might.">>
-		<<set $prisonCrime = "is a captured enemy sniper.">>
-		<<set $activeSlave.career = "a sniper">>
-		<<set $activeSlave.devotion = random(-50,-20)>>
-		<<set $activeSlave.trust = random(-100,-80)>>
-		<<set $activeSlave.hStyle = "buzzcut">>
-		<<set $activeSlave.hLength = 0>>
-		<<set $activeSlave.intelligence = either(60, 80, 100)>>
-		<<set $activeSlave.intelligenceImplant = 20>>
-		<<set $activeSlave.health = random(0,20)>>
-		<<set $activeSlave.weight = random(-10,10)>>
-		<<set $activeSlave.waist = random(-10,10)>>
-		<<set $activeSlave.muscles = random(30,60)>>
-		<<set $activeSlave.skill.combat = 1>>
-		<<if $activeSlave.boobs > 400>>
-			<<set $activeSlave.boobs = 400>>
-		<</if>>
-	<<case "gunner">>
-		<<set $activeSlave.origin = "You purchased her life at a prison sale. She was an enemy machine gunner that was captured after her company lost to your military might.">>
-		<<set $prisonCrime = "is a captured enemy gunner.">>
-		<<set $activeSlave.career = "a soldier">>
-		<<set $activeSlave.devotion = random(-50,-20)>>
-		<<set $activeSlave.trust = random(-50,-20)>>
-		<<set $activeSlave.hStyle = "buzzcut">>
-		<<set $activeSlave.hLength = 0>>
-		<<set $activeSlave.intelligence = random(0,90)>>
-		<<set $activeSlave.intelligenceImplant = 15>>
-		<<set $activeSlave.health = random(0,20)>>
-		<<set $activeSlave.weight = random(-10,10)>>
-		<<set $activeSlave.waist = random(-10,10)>>
-		<<set $activeSlave.muscles = random(50,60)>>
-		<<set $activeSlave.skill.combat = 1>>
-	<<case "soldier">>
-		<<set $activeSlave.origin = "You purchased her life at a prison sale. She was an enemy soldier that was captured after her company lost to your military might.">>
-		<<set $prisonCrime = "is a captured enemy soldier.">>
-		<<set $activeSlave.career = "a soldier">>
-		<<set $activeSlave.devotion = random(-100,-20)>>
-		<<set $activeSlave.trust = random(-50,20)>>
-		<<set $activeSlave.hStyle = "buzzcut">>
-		<<set $activeSlave.hLength = 0>>
-		<<set $activeSlave.intelligence = random(0,60)>>
-		<<set $activeSlave.intelligenceImplant = 15>>
-		<<set $activeSlave.health = random(0,40)>>
-		<<set $activeSlave.weight = random(-10,10)>>
-		<<set $activeSlave.waist = random(-10,10)>>
-		<<set $activeSlave.muscles = random(30,60)>>
-		<<set $activeSlave.skill.combat = 1>>
-	<<case "private">>
-		<<set $activeSlave.origin = "You purchased her life at a prison sale. She was an enemy grunt that was captured after her company lost to your military might.">>
-		<<set $prisonCrime = "is a captured enemy private.">>
-		<<set $activeSlave.career = "a private">>
-		<<set $activeSlave.devotion = random(-40,-20)>>
-		<<set $activeSlave.trust = random(-100,-80)>>
-		<<set $activeSlave.hStyle = "buzzcut">>
-		<<set $activeSlave.hLength = 0>>
-		<<set $activeSlave.intelligence = random(-90,70)>>
-		<<set $activeSlave.intelligenceImplant = 15>>
-		<<set $activeSlave.health = random(0,20)>>
-		<<set $activeSlave.weight = random(-10,10)>>
-		<<set $activeSlave.waist = random(-10,10)>>
-		<<set $activeSlave.muscles = random(10,40)>>
-		<<set $activeSlave.skill.combat = 1>>
-	<</switch>>
-
-<<case "white collar">>
-	<<if $pedo_mode == 1>>
-		<<set $activeSlaveOneTimeMinAge = 16>>
-		<<set $activeSlaveOneTimeMaxAge = 45>>
-		<<set $one_time_age_overrides_pedo_mode = 1>>
-	<<else>>
-		<<set $activeSlaveOneTimeMinAge = 25>>
-		<<if $retirementAge > 66>>
-			<<set $activeSlaveOneTimeMaxAge = 65>>
-		<<else>>
-			<<set $activeSlaveOneTimeMaxAge = $retirementAge-2>>
-		<</if>>
-	<</if>>
-	<<set $oneTimeDisableDisability = 1>>
-	<<set $activeSlave = GenerateNewSlave()>>
-
-	<<set _criminal = setup.whiteCollarCriminalPool.random()>>
-
-	<<switch _criminal>>
-	<<case "racketeering">>
-		<<set $activeSlave.career = either("a businessman", "a lawyer", "a stockbroker")>>
-		<<set $activeSlave.origin = "You purchased her life at a prison sale. She was " + $activeSlave.career + " convicted of racketeering.">>
-		<<set $prisonCrime = "is incarcerated for racketeering.">>
-		<<set $activeSlave.devotion = random(-20,20)>>
-		<<set $activeSlave.trust = random(-20,20)>>
-		<<set $activeSlave.intelligence = random(0,99)>>
-		<<set $activeSlave.intelligenceImplant = 15>>
-		<<set $activeSlave.health = random(20,60)>>
-	<<case "bribery">>
-		<<set $activeSlave.career = either("a businessman", "a lawyer", "a stockbroker")>>
-		<<set $activeSlave.origin = "You purchased her life at a prison sale. She was " + $activeSlave.career + " arrested and sentenced for bribing government officials.">>
-		<<set $prisonCrime = "is incarcerated for bribery.">>
-		<<set $activeSlave.devotion = random(-50,-20)>>
-		<<set $activeSlave.trust = random(20,50)>>
-		<<set $activeSlave.intelligence = random(0,99)>>
-		<<set $activeSlave.intelligenceImplant = 15>>
-		<<set $activeSlave.health = random(20,60)>>
-		<<set $activeSlave.behavioralFlaw = "arrogant">>
-	<<case "blackmail">>
-		<<set $activeSlave.career = either("a businessman", "a lawyer", "a stockbroker")>>
-		<<set $activeSlave.origin = "You purchased her life at a prison sale. She was " + $activeSlave.career + " convicted of blackmail against a sorority of university students, forcing them to do sexual favors.">>
-		<<set $prisonCrime = "is incarcerated for blackmail.">>
-		<<set $activeSlave.devotion = random(-20,20)>>
-		<<set $activeSlave.trust = random(20,50)>>
-		<<set $activeSlave.intelligence = random(0,99)>>
-		<<set $activeSlave.intelligenceImplant = 15>>
-		<<set $activeSlave.health = random(20,60)>>
-		<<set $activeSlave.behavioralFlaw = "arrogant">>
-		<<set $activeSlave.fetish = "sadist">>
-		<<set $activeSlave.fetishStrength = 100>>
-	<<case "embezzlement">>
-		<<set $activeSlave.career = either("a businessman", "a lawyer", "a stockbroker")>>
-		<<set $activeSlave.origin = "You purchased her life at a prison sale. She was " + $activeSlave.career + " involved in a scandal and convicted of embezzlement.">>
-		<<set $prisonCrime = "is incarcerated for embezzlement.">>
-		<<set $activeSlave.devotion = random(0,20)>>
-		<<set $activeSlave.trust = random(-10,10)>>
-		<<set $activeSlave.intelligence = random(0,99)>>
-		<<set $activeSlave.intelligenceImplant = 15>>
-		<<set $activeSlave.health = random(20,60)>>
-	<<case "fraud">>
-		<<set $activeSlave.career = either("a businessman", "a lawyer", "a stockbroker")>>
-		<<set $activeSlave.origin = "You purchased her life at a prison sale. She was " + $activeSlave.career + " convicted of fraud.">>
-		<<set $prisonCrime = "is incarcerated for fraud.">>
-		<<set $activeSlave.devotion = random(20,40)>>
-		<<set $activeSlave.trust = random(20,50)>>
-		<<set $activeSlave.intelligence = random(0,99)>>
-		<<set $activeSlave.intelligenceImplant = 15>>
-		<<set $activeSlave.health = random(20,60)>>
-	<<case "tax evasion">>
-		<<set $activeSlave.career = either("a businessman", "a lawyer", "a stockbroker")>>
-		<<set $activeSlave.origin = "You purchased her life at a prison sale. She was " + $activeSlave.career + " convicted of tax evasion.">>
-		<<set $prisonCrime = "is incarcerated for tax evasion.">>
-		<<set $activeSlave.devotion = random(-20,0)>>
-		<<set $activeSlave.trust = random(20,50)>>
-		<<set $activeSlave.intelligence = random(0,99)>>
-		<<set $activeSlave.intelligenceImplant = 15>>
-		<<set $activeSlave.health = random(20,60)>>
-	<<case "malpractice">>
-		<<set $activeSlave.career = either("a doctor", "a nurse", "a physician")>>
-		<<set $activeSlave.origin = "You purchased her life at a prison sale. She was " + $activeSlave.career + " that took advantage of her position to molest and modify her patients.">>
-		<<set $prisonCrime = "is incarcerated for malpractice.">>
-		<<set $activeSlave.devotion = random(-50,0)>>
-		<<set $activeSlave.trust = random(-100,-50)>>
-		<<set $activeSlave.intelligence = random(55,99)>>
-		<<set $activeSlave.intelligenceImplant = 30>>
-		<<set $activeSlave.health = random(-40,20)>>
-	<<case "abuse of power">>
-		<<set $activeSlave.career = either("a judge", "a lawyer", "a police officer")>>
-		<<set $activeSlave.origin = "You purchased her life at a prison sale. She was " + $activeSlave.career + " that took advantage of her position for her own benefit.">>
-		<<set $prisonCrime = "is incarcerated for abuse of power.">>
-		<<set $activeSlave.devotion = random(-100,0)>>
-		<<set $activeSlave.trust = random(-50,50)>>
-		<<set $activeSlave.intelligence = random(60,99)>>
-		<<set $activeSlave.intelligenceImplant = 30>>
-		<<set $activeSlave.health = random(20,60)>>
-		<<set $activeSlave.behavioralFlaw = "arrogant">>
-	<</switch>>
-
-<<case "low tier criminals">>
-	<<if $pedo_mode == 1>>
-		<<set $activeSlaveOneTimeMinAge = 6>>
-		<<set $activeSlaveOneTimeMaxAge = 18>>
-		<<set $one_time_age_overrides_pedo_mode = 1>>
-	<<else>>
-		<<set $activeSlaveOneTimeMinAge = 16>>
-		<<if $retirementAge > 56>>
-			<<set $activeSlaveOneTimeMaxAge = 55>>
-		<<else>>
-			<<set $activeSlaveOneTimeMaxAge = $retirementAge-2>>
-		<</if>>
-	<</if>>
-	<<set $oneTimeDisableDisability = 1>>
-	<<set $activeSlave = GenerateNewSlave()>>
-
-	/*
-	<<if $activeSlave.dick > 0>>
-		<<set $activeSlave.chastityPenis = 1>>
-	<</if>>
-	<<if $activeSlave.vagina > -1>>
-		<<set $activeSlave.chastityVagina = 1>>
-	<</if>>
-	*/
-
-	<<set _criminal = setup.pettyCriminalPool.random()>>
-
-	<<switch _criminal>>
-	<<case "robbery">>
-		<<set $activeSlave.origin = "You purchased her life at a prison sale. She was locked away for robbery.">>
-		<<set $prisonCrime = "is incarcerated for robbery.">>
-		<<set $activeSlave.devotion = random(-20,20)>>
-		<<set $activeSlave.trust = random(-60,60)>>
-		<<set $activeSlave.hStyle = "buzzcut">>
-		<<set $activeSlave.hLength = 0>>
-		<<set $activeSlave.intelligence = either(-100, -100, -80, -60, -40, -30, -20, -5, 0, 5, 20)>>
-		<<set $activeSlave.health = random(-20,20)>>
-	<<case "armed robbery">>
-		<<set $activeSlave.origin = "You purchased her life at a prison sale. She was locked away for armed robbery.">>
-		<<set $prisonCrime = "is incarcerated for armed robbery.">>
-		<<set $activeSlave.devotion = random(-50,-20)>>
-		<<set $activeSlave.trust = random(-20,60)>>
-		<<set $activeSlave.hStyle = "buzzcut">>
-		<<set $activeSlave.hLength = 0>>
-		<<set $activeSlave.intelligence = random(-80,60)>>
-		<<set $activeSlave.health = random(-10,20)>>
-		<<set $activeSlave.weight = random(-10,10)>>
-		<<set $activeSlave.waist = random(-10,10)>>
-		<<set $activeSlave.muscles = random(10,40)>>
-		<<set $activeSlave.skill.combat = 1>>
-	<<case "murder">>
-		<<if random(1,100) > 70>>
-			<<set $activeSlave.origin = "You purchased her life at a prison sale. She was locked away for murder. Her actions weigh heavily on her conscience.">>
-			<<set $activeSlave.devotion = 0>>
-			<<set $activeSlave.trust = 0>>
-			<<set $activeSlave.health = random(-60,-20)>>
-			<<set $activeSlave.fetish = "mindbroken">>
-		<<else>>
-			<<set $activeSlave.origin = "You purchased her life at a prison sale. She was locked away for murder.">>
-			<<set $activeSlave.devotion = random(-50,-20)>>
-			<<set $activeSlave.trust = random(-20,60)>>
-			<<set $activeSlave.health = random(-10,20)>>
-		<</if>>
-		<<set $prisonCrime = "is incarcerated for murder.">>
-		<<set $activeSlave.hStyle = "buzzcut">>
-		<<set $activeSlave.hLength = 0>>
-		<<set $activeSlave.intelligence = random(-80,70)>>
-	<<case "arson">>
-		<<if random(1,100) > 50>>
-			<<set $activeSlave.origin = "You purchased her life at a prison sale. She was locked away for arson. Her actions, and those she inadvertently killed, weigh heavily on her conscience.">>
-			<<set $activeSlave.devotion = 0>>
-			<<set $activeSlave.trust = 0>>
-			<<set $activeSlave.health = random(-80,-20)>>
-			<<set $activeSlave.fetish = "mindbroken">>
-		<<else>>
-			<<set $activeSlave.origin = "You purchased her life at a prison sale. She was locked away for arson.">>
-			<<set $activeSlave.devotion = random(-70,-50)>>
-			<<set $activeSlave.trust = random(0,60)>>
-			<<set $activeSlave.health = random(-10,20)>>
-		<</if>>
-		<<set $prisonCrime = "is incarcerated for arson.">>
-		<<set $activeSlave.hStyle = "buzzcut">>
-		<<set $activeSlave.hLength = 0>>
-		<<set $activeSlave.intelligence = random(-80,70)>>
-	<<case "burglary">>
-		<<set $activeSlave.origin = "You purchased her life at a prison sale. She was locked away for burglary.">>
-		<<set $prisonCrime = "is incarcerated for burglary.">>
-		<<set $activeSlave.devotion = random(-20,20)>>
-		<<set $activeSlave.trust = random(-60,60)>>
-		<<set $activeSlave.hStyle = "buzzcut">>
-		<<set $activeSlave.hLength = 0>>
-		<<set $activeSlave.intelligence = random(-100,20)>>
-		<<set $activeSlave.health = random(-20,20)>>
-	<<case "cat burglar">>
-		<<set $activeSlave.origin = "You purchased her life at a prison sale. She was locked away for repeat burglary.">>
-		<<set $prisonCrime = "is incarcerated for career burglary.">>
-		<<set $activeSlave.career = "a cat burglar">>
-		<<set $activeSlave.devotion = random(-20,20)>>
-		<<set $activeSlave.trust = random(-60,60)>>
-		<<set $activeSlave.hStyle = "buzzcut">>
-		<<set $activeSlave.hLength = 0>>
-		<<set $activeSlave.intelligence = either(60, 80, 100)>>
-		<<set $activeSlave.health = random(0,60)>>
-		<<set $activeSlave.weight = random(-10,10)>>
-		<<set $activeSlave.waist = random(-10,10)>>
-		<<set $activeSlave.muscles = random(10,40)>>
-	<<case "petty theft">>
-		<<set $activeSlave.origin = "You purchased her life at a prison sale. She was locked away for petty theft.">>
-		<<set $prisonCrime = "is incarcerated for petty theft.">>
-		<<set $activeSlave.career = "a thief">>
-		<<set $activeSlave.devotion = random(-20,20)>>
-		<<set $activeSlave.trust = random(-100,-60)>>
-		<<set $activeSlave.hStyle = "buzzcut">>
-		<<set $activeSlave.hLength = 0>>
-		<<set $activeSlave.intelligence = either(-100, -100, -80, -60, -40, -30, -20, -5, 0, 5, 20)>>
-		<<set $activeSlave.health = random(-20,20)>>
-	<<case "theft">>
-		<<set $activeSlave.origin = "You purchased her life at a prison sale. She was locked away for theft.">>
-		<<set $prisonCrime = "is incarcerated for theft.">>
-		<<set $activeSlave.career = "a thief">>
-		<<set $activeSlave.devotion = random(-50,0)>>
-		<<set $activeSlave.trust = random(-100,-60)>>
-		<<set $activeSlave.hStyle = "buzzcut">>
-		<<set $activeSlave.hLength = 0>>
-		<<set $activeSlave.intelligence = random(-80,70)>>
-		<<set $activeSlave.health = random(-20,20)>>
-	<<case "pickpocketing">>
-		<<set $activeSlave.origin = "You purchased her life at a prison sale. She was locked away for repeat pick-pocketing.">>
-		<<set $prisonCrime = "is incarcerated for pick-pocketing.">>
-		<<set $activeSlave.career = "a pick-pocket">>
-		<<set $activeSlave.devotion = random(-20,0)>>
-		<<set $activeSlave.trust = random(-100,-60)>>
-		<<set $activeSlave.hStyle = "buzzcut">>
-		<<set $activeSlave.hLength = 0>>
-		<<set $activeSlave.intelligence = random(-80,70)>>
-		<<set $activeSlave.health = random(-60,0)>>
-	<<case "manslaughter">>
-		<<if random(1,100) > 60>>
-			<<set $activeSlave.origin = "You purchased her life at a prison sale. She was locked away for manslaughter. Her actions weigh heavily on her conscience.">>
-			<<set $activeSlave.devotion = 0>>
-			<<set $activeSlave.trust = 0>>
-			<<set $activeSlave.health = random(-80,-20)>>
-			<<set $activeSlave.fetish = "mindbroken">>
-		<<else>>
-			<<set $activeSlave.origin = "You purchased her life at a prison sale. She was locked away for manslaughter.">>
-			<<set $activeSlave.devotion = random(-70,-50)>>
-			<<set $activeSlave.trust = random(0,60)>>
-			<<set $activeSlave.health = random(-10,20)>>
-		<</if>>
-		<<set $prisonCrime = "is incarcerated for manslaughter.">>
-		<<set $activeSlave.hStyle = "buzzcut">>
-		<<set $activeSlave.hLength = 0>>
-		<<set $activeSlave.intelligence = random(-80,70)>>
-	<<case "blackmail">>
-		<<set $activeSlave.origin = "You purchased her life at a prison sale. She was locked away for blackmail.">>
-		<<set $prisonCrime = "is incarcerated for blackmail.">>
-		<<set $activeSlave.devotion = random(-100,-50)>>
-		<<set $activeSlave.trust = random(-100,-60)>>
-		<<set $activeSlave.hStyle = "buzzcut">>
-		<<set $activeSlave.hLength = 0>>
-		<<set $activeSlave.intelligence = either(60, 80, 100)>>
-		<<set $activeSlave.health = random(0,60)>>
-	<<case "assault">>
-		<<set $activeSlave.origin = "You purchased her life at a prison sale. She was locked away for assault.">>
-		<<set $prisonCrime = "is incarcerated for assault.">>
-		<<set $activeSlave.devotion = random(-70,-50)>>
-		<<set $activeSlave.trust = random(-20,60)>>
-		<<set $activeSlave.hStyle = "buzzcut">>
-		<<set $activeSlave.hLength = 0>>
-		<<set $activeSlave.health = random(-10,40)>>
-		<<set $activeSlave.weight = random(-10,10)>>
-		<<set $activeSlave.waist = random(-10,10)>>
-		<<set $activeSlave.muscles = random(30,60)>>
-		<<set $activeSlave.skill.combat = 1>>
-	<<case "battery">>
-		<<set $activeSlave.origin = "You purchased her life at a prison sale. She was locked away for battery.">>
-		<<set $prisonCrime = "is incarcerated for battery.">>
-		<<set $activeSlave.devotion = random(-100,-70)>>
-		<<set $activeSlave.trust = random(20,60)>>
-		<<set $activeSlave.hStyle = "buzzcut">>
-		<<set $activeSlave.hLength = 0>>
-		<<set $activeSlave.health = random(-10,40)>>
-		<<set $activeSlave.weight = random(-10,10)>>
-		<<set $activeSlave.waist = random(-10,10)>>
-		<<set $activeSlave.muscles = random(40,60)>>
-		<<set $activeSlave.skill.combat = 1>>
-	<<case "tax evasion">>
-		<<set $activeSlave.origin = "You purchased her life at a prison sale. She was locked away for tax evasion.">>
-		<<set $prisonCrime = "is incarcerated for tax evasion.">>
-		<<set $activeSlave.devotion = random(-20,20)>>
-		<<set $activeSlave.trust = random(0,60)>>
-		<<set $activeSlave.hStyle = "buzzcut">>
-		<<set $activeSlave.hLength = 0>>
-		<<set $activeSlave.intelligence = Intelligence.random({limitIntelligence: [0,100]})>>
-		<<set $activeSlave.health = random(0,60)>>
-	<<case "rape">>
-		<<set $activeSlave.origin = "You purchased her life at a prison sale. She was locked away for rape.">>
-		<<set $prisonCrime = "is incarcerated for rape.">>
-		<<set $activeSlave.devotion = random(-100,-50)>>
-		<<set $activeSlave.trust = random(-20,80)>>
-		<<set $activeSlave.hStyle = "buzzcut">>
-		<<set $activeSlave.hLength = 0>>
-		<<set $activeSlave.health = random(-10,40)>>
-		<<set $activeSlave.weight = random(-10,10)>>
-		<<set $activeSlave.waist = random(-10,10)>>
-		<<set $activeSlave.muscles = random(30,60)>>
-		<<set $activeSlave.fetish = "sadist">>
-		<<set $activeSlave.fetishStrength = 80>>
-	<<case "child molestation">>
-		<<set $activeSlave.origin = "You purchased her life at a prison sale. She was locked away for child molestation.">>
-		<<set $prisonCrime = "is incarcerated for child molestation.">>
-		<<if $minimumSlaveAge < 13>>
-			<<set $activeSlave.devotion = random(-20,0)>>
-			<<set $activeSlave.trust = random(-20,0)>>
-		<<else>>
-			<<set $activeSlave.devotion = random(-50,-20)>>
-			<<set $activeSlave.trust = random(-100,0)>>
-		<</if>>
-		<<set $activeSlave.hStyle = "buzzcut">>
-		<<set $activeSlave.hLength = 0>>
-		<<set $activeSlave.health = random(-10,40)>>
-		<<set $activeSlave.muscles = random(10,40)>>
-		<<set $activeSlave.fetish = "sadist">>
-		<<set $activeSlave.fetishStrength = 80>>
-	<<case "child abuse">>
-		<<set $activeSlave.origin = "You purchased her life at a prison sale. She was locked away for child abuse.">>
-		<<set $prisonCrime = "is incarcerated for child abuse.">>
-		<<if $minimumSlaveAge < 13>>
-			<<set $activeSlave.devotion = random(-20,0)>>
-			<<set $activeSlave.trust = random(-20,50)>>
-		<<else>>
-			<<set $activeSlave.devotion = random(-50,-20)>>
-			<<set $activeSlave.trust = random(-50,50)>>
-		<</if>>
-		<<set $activeSlave.hStyle = "buzzcut">>
-		<<set $activeSlave.hLength = 0>>
-		<<set $activeSlave.health = random(-10,40)>>
-		<<set $activeSlave.muscles = random(10,40)>>
-		<<set $activeSlave.fetish = "sadist">>
-		<<set $activeSlave.fetishStrength = 100>>
-		<<set $activeSlave.sexualFlaw = "malicious">>
-	<<case "domestic abuse">>
-		<<set $activeSlave.origin = "You purchased her life at a prison sale. She was locked away for domestic abuse.">>
-		<<set $prisonCrime = "is incarcerated for domestic abuse.">>
-		<<set $activeSlave.devotion = random(-50,-20)>>
-		<<set $activeSlave.trust = random(-100,50)>>
-		<<set $activeSlave.hStyle = "buzzcut">>
-		<<set $activeSlave.hLength = 0>>
-		<<set $activeSlave.health = random(-10,40)>>
-		<<set $activeSlave.muscles = random(10,40)>>
-		<<set $activeSlave.fetish = "sadist">>
-		<<set $activeSlave.fetishStrength = 50>>
-	<<case "illegal immigrant">>
-		<<set $activeSlave.origin = "You purchased her life at a prison sale. She was locked away for illegal immigration.">>
-		<<set $prisonCrime = "is incarcerated for illegally entering the Free City.">>
-		<<set $activeSlave.career = "a refugee">>
-		<<set $activeSlave.devotion = random(0,20)>>
-		<<set $activeSlave.trust = random(-100,-50)>>
-		<<set $activeSlave.hStyle = "buzzcut">>
-		<<set $activeSlave.hLength = 0>>
-		<<set $activeSlave.health = random(-90,-40)>>
-	<<case "mule">>
-		<<set $activeSlave.origin = "You purchased her life at a prison sale. She was locked away for smuggling illegal contraband inside her body.">>
-		<<set $prisonCrime = "is incarcerated for smuggling drugs in her body.">>
-		<<set $activeSlave.career = "a drug mule">>
-		<<set $activeSlave.devotion = random(-20,20)>>
-		<<set $activeSlave.trust = random(0,25)>>
-		<<set $activeSlave.hStyle = "buzzcut">>
-		<<set $activeSlave.hLength = 0>>
-		<<set $activeSlave.health = random(-80,20)>>
-		<<if $activeSlave.ovaries == 1 && $activeSlave.vagina > 0>>
-			<<set $activeSlave.vagina = 4>>
-			<<set $activeSlave.bellySag += 5>>
-		<</if>>
-		<<set $activeSlave.anus = 4>>
-		<<set $activeSlave.bellySag += 5>>
-		<<set $activeSlave.chem = 10 * random(1,3)>>
-		<<set $activeSlave.addict = 100>>
-	<</switch>>
-
-<<default>>
-	Someone messed up. _market is not known.
-
-<</switch>>
-<<run generatePronouns($activeSlave)>>
-<</widget>>
-
 /%
 	Call as <<MarketName 'market' ['arcology']>>
 	If $args[0] is undefined, will generate a kidnapper's market slave.