code:
:: Acquisition [nobr]

<<set $encyclopedia = "How to Play">>
<<unset $showSGNationalities>>

<<if $saveImported == 1>><<set _valueOwed = 5000>><<else>><<set _valueOwed = 50000>><</if>>
<<if $freshPC == 1 || $saveImported == 0>>
	<<set $PC.birthName = $PC.slaveName>>
	<<if $PC.slaveSurname>><<set $PC.birthSurname = $PC.slaveSurname>><</if>>
	<<if $PC.title == 1>>
		<<set $PC.muscles = 50>>
	<<else>>
		<<set $PC.hLength = 15>>
		<<set $PC.waist = -20>>
		<<set $PC.voice = 2>>
		<<set $PC.shoulders = -1>>
		<<set $PC.hips = 1>>
		<<set $PC.muscles = 30>>
	<</if>>
	<<if $PC.career == "escort">>
		<<set $PC.anus = 1>>
		<<set $PC.clothes = "a slutty outfit">>
		<<set $PC.intelligenceImplant = 15>>
	<<elseif $PC.career == "servant">>
		<<set $PC.geneticQuirks.fertility = 1>>
		<<set $PC.clothes = "a nice maid outfit">>
		<<set $PC.intelligenceImplant = 0>>
	<</if>>
	<<if $PC.vagina == -1>>
		<<set $PC.ovaries = 0>>
	<<elseif $PC.vagina > 0>>
		<<set $PC.vaginaLube = 1>>
		<<set $PC.counter.birthsTotal = 0>>
		<<if $PC.career == "servant">>
			<<if $PC.pregType != 8>>
				<<if $PC.actualAge >= 50>>
					<<set $PC.counter.birthsTotal = 9>>
					<<set $PC.counter.birthMaster = 9>>
				<<elseif $PC.actualAge >= 35>>
					<<set $PC.counter.birthsTotal = 6>>
					<<set $PC.counter.birthMaster = 6>>
				<<else>>
					<<set $PC.counter.birthsTotal = 3>>
					<<set $PC.counter.birthMaster = 3>>
				<</if>>
			<<else>> /* Master kept you pregged up */
				<<if $PC.actualAge >= 50>>
					<<set $PC.counter.birthsTotal = 70>>
					<<set $PC.counter.birthMaster = 70>>
				<<elseif $PC.actualAge >= 35>>
					<<set $PC.counter.birthsTotal = 40>>
					<<set $PC.counter.birthMaster = 40>>
				<<else>>
					<<set $PC.counter.birthsTotal = 16>>
					<<set $PC.counter.birthMaster = 16>>
				<</if>>
			<</if>>
			<<set $PC.geneticQuirks.fertility = 2>>
			<<for $i = 0; $i < $slaves.length; $i++>>
				<<if $slaves[$i].mother == -1>>
					<<set $PC.counter.birthsTotal += 1>>
					<<if $slaves[$i].father == -1>>
						<<set $PC.counter.birthSelf += 1>>
					<<else>>
						<<set $slaves[$i].father = -3>>
						<<set $PC.counter.birthMaster += 1>>
					<</if>>
				<</if>>
			<</for>>
		<<elseif $PC.career == "escort">>
			<<for $i = 0; $i < $slaves.length; $i++>>
				<<if $slaves[$i].mother == -1>>
					<<set $PC.counter.birthsTotal += 1>>
					<<if $slaves[$i].father == -1>>
						<<set $PC.counter.birthSelf += 1>>
					<<else>>
						<<set $slaves[$i].father = -5>>
						<<set $PC.counter.birthClient += 1>>
					<</if>>
				<<elseif $slaves[$i].father == -1>>
					<<set $slaves[$i].mother = -5>>
				<</if>>
			<</for>>
		<<else>>
			<<for $i = 0; $i < $slaves.length; $i++>>
				<<if $slaves[$i].mother == -1>>
					<<set $PC.counter.birthsTotal += 1>>
					<<if $slaves[$i].father == -1>>
						<<set $PC.counter.birthSelf += 1>>
					<<else>>
						<<set $PC.counter.birthOther += 1>>
					<</if>>
				<</if>>
			<</for>>
		<</if>>
		<<if $PC.preg > 0>>
			<<set $PC.pregWeek = $PC.preg>>
			<<if $PC.pregType != 8>>
				<<set $PC.pregType = 1>>
			<<else>>
				<<set $PC.geneticQuirks.hyperFertility = 2>>
			<</if>>
			<<if $PC.career == "servant">>
				<<set $PC.pregSource = -3>>
				<<if $PC.pregType != 8>>
					<<set $PC.pregType += random(0,0,1)>>
				<</if>>
			<<elseif $PC.career == "escort">>
				<<set $PC.pregSource = -5>>
			<</if>>
			<<set $PC.pregKnown = 1>>
			<<set $PC.belly = getPregBellySize($PC)>>
			<<set WombImpregnate($PC, $PC.pregType, $PC.pregSource, $PC.preg)>>
		<</if>>
	<</if>>
	<<if $PC.dick != 0>>
		<<set $PC.geneticQuirks.wellHung = 2>>
	<<else>>
		<<set $PC.balls = 0>>
		<<set $PC.scrotum = 0>>
		<<set $PC.prostate = 0>>
	<</if>>
	<<set $PC.ovaryAge = $PC.physicalAge>>
<</if>>
<<set _pcMomFound = 0, _pcDadFound = 0>>
<<if def $slaveIndices[$PC.mother]>>
	<<set _pcMomFound = 1>>
<</if>>
<<if def $slaveIndices[$PC.father]>>
	<<set _pcDadFound = 1>>
<</if>>
<<if _pcMomFound == 0 && $PC.mother > 0>>
	<<set _lostMom = $PC.mother>>
	<<set $PC.mother = $missingParentId>>
	<<for _i = 0; _i < $slaves.length; _i++>>
		<<if $slaves[_i].mother == _lostMom>>
			<<set $slaves[_i].mother = $missingParentId>>
		<</if>>
	<</for>>
	<<set $missingParentId-->>
<</if>>
<<if _pcDadFound == 0 && $PC.father > 0>>
	<<set _lostDad = $PC.father>>
	<<set $PC.father = $missingParentId>>
	<<for _i = 0; _i < $slaves.length; _i++>>
		<<if $slaves[_i].father == _lostDad>>
			<<set $slaves[_i].father = $missingParentId>>
		<</if>>
	<</for>>
	<<set $missingParentId-->>
<</if>>
<<for _i = 0; _i < $slaves.length; _i++>>
	<<set _slaveMomFound = 0, _slaveDadFound = 0>>
	<<if def $slaveIndices[$slaves[_i].mother]>>
		<<set _slaveMomFound = 1>>
	<</if>>
	<<if def $slaveIndices[$slaves[_i].father]>>
		<<set _slaveDadFound = 1>>
	<</if>>
	<<if _pcMomFound == 0 && $PC.mother > 0>>
		<<set _lostMom = $PC.mother>>
		<<set $PC.mother = $missingParentID>>
		<<for _i = 0; _i < $slaves.length; _i++>>
			<<if $slaves[_i].mother == _lostMom>>
				<<set $slaves[_i].mother = $missingParentID>>
			<</if>>
		<</for>>
		<<set $missingParentID-->>
	<</if>>
	<<if _pcDadFound == 0 && $PC.father > 0>>
		<<set _lostDad = $PC.father>>
		<<set $PC.father = $missingParentID>>
		<<for _i = 0; _i < $slaves.length; _i++>>
			<<if $slaves[_i].father == _lostDad>>
				<<set $slaves[_i].father = $missingParentID>>
			<</if>>
		<</for>>
		<<set $missingParentID-->>
	<</if>>
<</for>>
<<if $plot == 1 && $neighboringArcologies > 0>>
	<<set _bestProsperity = 0, _bestProsperityIndex = 1>>
	<<for _acq = 1; _acq < $arcologies.length; _acq++>>
		<<if $arcologies[_acq].prosperity > _bestProsperity>>
			<<set _bestProsperity = $arcologies[_acq].prosperity>>
			<<set _bestProsperityIndex = _acq>>
		<</if>>
	<</for>>
	<<set $rivalSet = 1>>
	<<set $arcologies[_bestProsperityIndex].rival = 1>>
<</if>>
<<set $targetAge = $minimumSlaveAge>>
<<set $targetAgeNursery = $minimumSlaveAge>>
<<run resetFamilyCounters()>>

You've done it.

You arrive at your new arcology, $arcologies[0].name, and head straight to the penthouse to enter the access codes that will tell the $arcologies[0].name systems to recognize you as their owner. The penthouse office is ready to receive the codes, and they authenticate. A voice activates in your earpiece.

//Congratulations. I am a personal assistant program, and it is my pleasure to assist you,
<<= PlayerName()>>
the new owner of $arcologies[0].name. I will offer useful information whenever possible in italics. Your new arcology has some unusual equipment. The previous owner kept a small stable of sex slaves. The penthouse therefore has a body modification studio for tattooing, bleaching and piercing, and an auto salon for more prosaic things like hair care. It also has a remote surgery, a small surgical theater that can be operated remotely by a qualified surgeon if you can pay the fee. Finally, it has a slave nutrition system connected to the arcology's hydroponics bays. This system produces a tasty protein-rich drink that provides the physically active female body all its necessary nutrients while leaving the lower digestive tract extremely clean. It even causes a mild increase in sex drive.

The previous owner seems to have left in something of a hurry.
<<set _valueGiven = 0>>
<<set _heroSlaves = App.Utils.buildHeroArray().shuffle()>>
<<if $cheatMode == 1>>
	Since you've elected to take over an arcology with special advantages, you've acquired a very special group of slaves.
	<<include [[Cheatmode Database]]>>
<<elseif $saveImported == 1>>
	Since it took some time for you to ensure that your existing stable of slaves were safely moved to $arcologies[0].name, the previous owner had the time to get most of their things away.
<<elseif ($targetArcology.fs != "New") && ($targetArcology.fs != "Multiculturalist")>>
	<<for $j = 0; $j < 5; $j++>>
		<<if _valueOwed - _valueGiven <= 5000>>
			<<break>>
		<</if>>
		<<switch $targetArcology.fs>>
		<<case "Supremacist">>
			<<set $oneTimeDisableDisability = 1>>
			<<set $fixedRace = $arcologies[0].FSSupremacistRace>><<set $activeSlave = GenerateNewSlave()>>
			<<set $activeSlave.devotion = random(25,45), $activeSlave.trust = random(-25,-45)>>
			<<run setHealth($activeSlave, jsRandom(0, 20))>>
			<<set $activeSlave.face = random(15,100)>>
			<<set $activeSlave.skill.oral = random(15,35), $activeSlave.skill.anal = random(15,35)>>
			<<if $activeSlave.vagina > -1>>
				<<if $activeSlave.vagina == 0>><<set $activeSlave.vagina++>><</if>>
				<<set $activeSlave.skill.vaginal = random(15,35)>>
			<</if>>
			<<set $activeSlave.skill.entertainment = random(15,35)>>
			<<set $activeSlave.clothes = "uncomfortable straps", $activeSlave.collar = "uncomfortable leather", $activeSlave.shoes = "flats">>
			<<set $activeSlave.assignment = "please you">>
		<<case "Subjugationist">>
			<<set $oneTimeDisableDisability = 1>>
			<<set $fixedRace = $arcologies[0].FSSubjugationistRace>><<set $activeSlave = GenerateNewSlave()>>
			<<set $activeSlave.devotion = random(25,45), $activeSlave.trust = random(-25,-45)>>
			<<run setHealth($activeSlave, jsRandom(0, 20))>>
			<<set $activeSlave.face = random(15,100)>>
			<<set $activeSlave.skill.oral = random(15,35), $activeSlave.skill.anal = random(15,35)>>
			<<if $activeSlave.vagina > -1>>
				<<if $activeSlave.vagina == 0>><<set $activeSlave.vagina++>><</if>>
				<<set $activeSlave.skill.vaginal = random(15,35)>>
			<</if>>
			<<set $activeSlave.skill.whoring = random(15,35)>>
			<<set $activeSlave.clothes = "uncomfortable straps", $activeSlave.collar = "uncomfortable leather", $activeSlave.shoes = "flats">>
			<<set $activeSlave.assignment = "whore">>
		<<case "GenderRadicalist">>
			<<set $activeSlaveOneTimeMaxAge = 25>>
			<<set $oneTimeDisableDisability = 1>>
			<<set $activeSlave = GenerateNewSlave("XY")>>
			<<set $activeSlave.devotion = random(25,45), $activeSlave.trust = random(15,-15)>>
			<<run setHealth($activeSlave, 100, 0, 0, 0, jsRandom(0, 20))>>
			<<set $activeSlave.face = random(0,55)>>
			<<set $activeSlave.boobs += 100*random(2,4)>>
			<<set $activeSlave.butt += random(1,2)>>
			<<set $activeSlave.attrXY = random(70,90), $activeSlave.attrXX = 0>>
			<<set $activeSlave.skill.oral = random(35,65), $activeSlave.skill.anal = random(35,65), $activeSlave.skill.whoring = random(35,65)>>
			<<run SoftenSexualFlaw($activeSlave)>>
			<<set $activeSlave.clothes = "uncomfortable straps", $activeSlave.collar = "stylish leather", $activeSlave.shoes = "heels">>
			<<set $activeSlave.assignment = "whore">>
		<<case "GenderFundamentalist">>
			<<set $activeSlaveOneTimeMinAge = $fertilityAge>>
			<<set $activeSlaveOneTimeMaxAge = 25>>
			<<set $oneTimeDisableDisability = 1>>
			<<set $activeSlave = GenerateNewSlave("XX")>>
			<<set $activeSlave.devotion = random(25,45), $activeSlave.trust = random(-25,-45)>>
			<<run setHealth($activeSlave, jsRandom(55, 65), 0, 0, 0)>>
			<<set $activeSlave.face = random(15,100)>>
			<<set $activeSlave.preg = random(1,40), $activeSlave.lactation = 1, $activeSlave.lactationDuration = 2>>
			<<run SetBellySize($activeSlave)>>
			<<if $activeSlave.vagina > -1>>
				<<if $activeSlave.vagina == 0>><<set $activeSlave.vagina++>><</if>>
				<<set $activeSlave.skill.vaginal = random(15,35)>>
			<</if>>
			<<set $activeSlave.clothes = "a nice maid outfit", $activeSlave.collar = "tight steel", $activeSlave.shoes = "flats">>
			<<set $activeSlave.assignment = "be a servant">>
		<<case "Paternalist">>
			<<set $oneTimeDisableDisability = 1>>
			<<set $activeSlave = GenerateNewSlave()>>
			<<set $activeSlave.devotion = random(25,45), $activeSlave.trust = random(55,65)>>
			<<run setHealth($activeSlave, jsRandom(55, 65), 0, 0, 0)>>
			<<set $activeSlave.face = random(15,100)>>
			<<set $activeSlave.intelligence = random(0,100), $activeSlave.intelligenceImplant = 30>>
			<<set $activeSlave.skill.entertainment = random(15,35)>>
			<<set $activeSlave.clothes = "conservative clothing", $activeSlave.collar = "none", $activeSlave.shoes = "flats">>
			<<set $activeSlave.assignment = "be a servant">>
		<<case "Degradationist">>
			<<set $activeSlave = GenerateNewSlave()>>
			<<set $activeSlave.devotion = 25, $activeSlave.trust = -25>>
			<<run setHealth($activeSlave, jsRandom(0, 15))>>
			<<set $activeSlave.fuckdoll = 100>>
			<<set $activeSlave.career = "a Fuckdoll">>
			<<set $activeSlave.fetish = "mindbroken">>
			<<set $activeSlave.boobs += 100*random(10,20)>>
			<<set $activeSlave.butt += random(2,3)>>
			<<set $activeSlave.lips = random(2,4)>>
			<<set $activeSlave.weight = random(-15,15)>>
			<<set $activeSlave.skill.oral = 0, $activeSlave.skill.anal = 0, $activeSlave.skill.vaginal = 0, $activeSlave.skill.entertainment = 0, $activeSlave.skill.whoring = 0>>
			<<set $activeSlave.behavioralFlaw = "none", $activeSlave.sexualFlaw = "none">>
			<<set $activeSlave.clothes = "a Fuckdoll suit">>
			<<set $activeSlave.assignment = "please you">>
		<<case "AssetExpansionist">>
			<<set $oneTimeDisableDisability = 1>>
			<<set $activeSlave = GenerateNewSlave()>>
			<<set $activeSlave.devotion = random(25,45), $activeSlave.trust = random(-15,15)>>
			<<run setHealth($activeSlave, jsRandom(25, 45))>>
			<<set $activeSlave.chem = 50>>
			<<set $activeSlave.face = random(15,100)>>
			<<set $activeSlave.boobs += 100*random(10,20)>>
			<<set $activeSlave.butt += random(2,3)>>
			<<set $activeSlave.lips += random(0,1)>>
			<<if $activeSlave.balls > 0>><<set $activeSlave.balls++>><</if>>
			<<if $activeSlave.dick > 0>><<set $activeSlave.dick++>><</if>>
			<<set $activeSlave.weight = random(15,90)>>
			<<set $activeSlave.skill.oral = random(15,35), $activeSlave.skill.anal = 0, $activeSlave.anus = 0>>
			<<if $activeSlave.vagina > -1>>
				<<if $activeSlave.vagina == 0>><<set $activeSlave.vagina++>><</if>>
				<<set $activeSlave.skill.vaginal = random(15,35)>>
			<</if>>
			<<set $activeSlave.skill.entertainment = random(15,35)>>
			<<set $activeSlave.clothes = "slutty jewelry", $activeSlave.collar = "pretty jewelry", $activeSlave.shoes = "heels">>
			<<set $activeSlave.assignment = "please you">>
		<<case "SlimnessEnthusiast">>
			<<set $oneTimeDisableDisability = 1>>
			<<set $activeSlave = GenerateNewSlave()>>
			<<set $activeSlave.devotion = random(25,45), $activeSlave.trust = random(55,65)>>
			<<run setHealth($activeSlave, jsRandom(55, 65), 0, 0, 0)>>
			<<set $activeSlave.face = random(15,100)>>
			<<set $activeSlave.boobs = 100*random(1,4)>>
			<<set $activeSlave.butt = random(1,2)>>
			<<set $activeSlave.weight = random(-25,-15)>>
			<<set $activeSlave.skill.oral = random(15,35), $activeSlave.skill.anal = 0, $activeSlave.anus = 0>>
			<<if $activeSlave.vagina > -1>>
				<<if $activeSlave.vagina == 0>><<set $activeSlave.vagina++>><</if>>
				<<set $activeSlave.skill.vaginal = random(15,35)>>
			<</if>>
			<<set $activeSlave.skill.entertainment = random(15,35)>>
			<<set $activeSlave.clothes = "a leotard", $activeSlave.collar = "pretty jewelry", $activeSlave.shoes = "flats">>
			<<set $activeSlave.assignment = "please you">>
		<<case "TransformationFetishist">>
			<<set $oneTimeDisableDisability = 1>>
			<<set $activeSlave = GenerateNewSlave()>>
			<<set $activeSlave.devotion = random(25,45), $activeSlave.trust = random(-15,15)>>
			<<run setHealth($activeSlave, jsRandom(-15, 0), Math.max(normalRandInt(5, 3), 0), Math.max(normalRandInt(5, 3), 0))>>
			<<set $activeSlave.faceImplant = random(40,70)>>
			<<set $activeSlave.face = Math.trunc($activeSlave.face+$activeSlave.faceImplant/2,-100,100)>>
			<<set $activeSlave.boobsImplant = 200*random(4,8)>>
			<<set $activeSlave.boobs += $activeSlave.boobsImplant>>
			<<set $activeSlave.boobsImplantType = "normal">>
			<<set $activeSlave.buttImplant = random(2,4)>>
			<<set $activeSlave.butt += $activeSlave.buttImplant>>
			<<set $activeSlave.buttImplant = "normal">>
			<<set $activeSlave.lipsImplant = random(1,2)>>
			<<set $activeSlave.lips = Math.trunc($activeSlave.lipsImplant+2,-3,3)>>
			<<set $activeSlave.weight = random(-25,-15)>>
			<<set $activeSlave.skill.oral = random(15,35), $activeSlave.skill.anal = random(15,35)>>
			<<if $activeSlave.vagina > -1>>
				<<if $activeSlave.vagina == 0>><<set $activeSlave.vagina++>><</if>>
				<<set $activeSlave.skill.vaginal = random(15,35)>>
			<</if>>
			<<set $activeSlave.clothes = "a string bikini", $activeSlave.collar = "shock punishment", $activeSlave.shoes = "extreme heels">>
			<<set $activeSlave.assignment = "whore">>
		<<case "BodyPurist">>
			<<set $oneTimeDisableDisability = 1>>
			<<set $activeSlave = GenerateNewSlave()>>
			<<set $activeSlave.devotion = random(55,65), $activeSlave.trust = random(25,45)>>
			<<run setHealth($activeSlave, 100, 0, 0, 0, jsRandom(10, 30))>>
			<<set $activeSlave.face = random(15,100)>>
			<<set $activeSlave.weight = random(-5,5)>>
			<<set $activeSlave.muscles = random(10,25)>>
			<<set $activeSlave.skill.oral = random(15,35), $activeSlave.skill.anal = random(15,35)>>
			<<if $activeSlave.vagina > -1>>
				<<if $activeSlave.vagina == 0>><<set $activeSlave.vagina++>><</if>>
				<<set $activeSlave.skill.vaginal = random(15,35)>>
			<</if>>
			<<set $activeSlave.clothes = "a nice maid outfit", $activeSlave.collar = "pretty jewelry", $activeSlave.shoes = "heels">>
			<<set $activeSlave.assignment = "be a servant">>
		<<case "MaturityPreferentialist">>
			<<set $activeSlaveOneTimeMinAge = 36>>
			<<set $activeSlaveOneTimeMaxAge = 39>>
			<<set $one_time_age_overrides_pedo_mode = 1>>
			<<set $oneTimeDisableDisability = 1>>
			<<set $activeSlave = GenerateNewSlave()>>
			<<set $activeSlave.devotion = random(55,65), $activeSlave.trust = random(-15,15)>>
			<<run setHealth($activeSlave, jsRandom(25, 45))>>
			<<set $activeSlave.face = random(15,100)>>
			<<set $activeSlave.boobs += 100*random(1,4)>>
			<<set $activeSlave.butt += random(1,2)>>
			<<set $activeSlave.weight = random(-5,90)>>
			<<set $activeSlave.skill.oral = random(15,35), $activeSlave.skill.anal = random(15,35)>>
			<<if $activeSlave.vagina > -1>>
				<<if $activeSlave.vagina == 0>><<set $activeSlave.vagina++>><</if>>
				<<set $activeSlave.skill.vaginal = random(15,35)>>
			<</if>>
			<<run SoftenBehavioralFlaw($activeSlave)>>
			<<set $activeSlave.clothes = "a slutty maid outfit", $activeSlave.collar = "pretty jewelry", $activeSlave.shoes = "heels">>
			<<set $activeSlave.assignment = "be a servant">>
		<<case "YouthPreferentialist">>
			<<set $activeSlaveOneTimeMaxAge = 19>>
			<<set $oneTimeDisableDisability = 1>>
			<<set $activeSlave = GenerateNewSlave()>>
			<<set $activeSlave.devotion = random(25,45), $activeSlave.trust = random(55,65)>>
			<<run setHealth($activeSlave, jsRandom(25, 45))>>
			<<set $activeSlave.face = random(15,100)>>
			<<set $activeSlave.boobs = 100*random(1,4)>>
			<<set $activeSlave.butt = random(1,3)>>
			<<set $activeSlave.weight = random(-25,25)>>
			<<set $activeSlave.skill.oral = random(15,35), $activeSlave.skill.anal = 0, $activeSlave.anus = 0>>
			<<if $activeSlave.vagina > -1>><<set $activeSlave.skill.vaginal = 0, $activeSlave.vagina = 0>><</if>>
			<<set $activeSlave.skill.entertainment = random(15,35)>>
			<<set $activeSlave.clothes = "a schoolgirl outfit", $activeSlave.collar = "pretty jewelry", $activeSlave.shoes = "heels">>
			<<set $activeSlave.assignment = "be a servant">>
		<<case "Pastoralist">>
			<<set $oneTimeDisableDisability = 1>>
			<<set $activeSlave = GenerateNewSlave()>>
			<<set $activeSlave.devotion = random(25,45), $activeSlave.trust = random(-25,-45)>>
			<<run setHealth($activeSlave, jsRandom(25, 45))>>
			<<set $activeSlave.boobs += 100*random(10,20)>>
			<<if $activeSlave.balls > 0>><<set $activeSlave.balls++>><</if>>
			<<set $activeSlave.lactation = 2, $activeSlave.lactationDuration = 2>>
			<<set $activeSlave.clothes = "Western clothing", $activeSlave.collar = "leather with cowbell", $activeSlave.shoes = "flats">>
			<<set $activeSlave.assignment = "get milked">>
		<<case "PhysicalIdealist">>
			<<set $oneTimeDisableDisability = 1>>
			<<set $activeSlave = GenerateNewSlave()>>
			<<set $activeSlave.devotion = random(25,45), $activeSlave.trust = random(25,45)>>
			<<run setHealth($activeSlave, 100, 0, 0, 0, jsRandom(0, 20))>>
			<<set $activeSlave.muscles = random(50,100)>>
			<<set $activeSlave.skill.oral = random(15,35), $activeSlave.skill.anal = random(15,35)>>
			<<if $activeSlave.vagina > -1>>
				<<if $activeSlave.vagina == 0>><<set $activeSlave.vagina++>><</if>>
				<<set $activeSlave.skill.vaginal = random(15,35)>>
			<</if>>
			<<set $activeSlave.skill.whoring = random(15,35)>>
			<<set $activeSlave.clothes = "body oil", $activeSlave.collar = "none", $activeSlave.shoes = "none">>
			<<set $activeSlave.assignment = "whore">>
		<<case "ChattelReligionist">>
			<<set $oneTimeDisableDisability = 1>>
			<<set $activeSlave = GenerateNewSlave()>>
			<<set $activeSlave.devotion = random(55,65), $activeSlave.trust = random(55,65)>>
			<<run setHealth($activeSlave, jsRandom(0, 15))>>
			<<if $activeSlave.vagina == 0>><<set $activeSlave.vagina++>><</if>>
			<<set $activeSlave.skill.whoring = random(10,20)>>
			<<set $activeSlave.behavioralFlaw = "none", $activeSlave.behavioralQuirk = "sinful">>
			<<set $activeSlave.clothes = "a chattel habit", $activeSlave.collar = "heavy gold", $activeSlave.shoes = "flats">>
			<<set $activeSlave.assignment = "whore">>
		<<case "RomanRevivalist">>
			<<set $activeSlaveOneTimeMaxAge = 19>>
			<<set $oneTimeDisableDisability = 1>>
			<<set $activeSlave = GenerateNewSlave()>>
			<<set $activeSlave.devotion = 100, $activeSlave.trust = random(55,65)>>
			<<run setHealth($activeSlave, 100, 0, 0, 0, jsRandom(10, 30))>>
			<<set $activeSlave.face = random(0,55)>>
			<<set $activeSlave.muscles = random(25,50)>>
			<<set $activeSlave.skill.combat = 1>>
			<<set $activeSlave.behavioralFlaw = "none", $activeSlave.behavioralQuirk = "fitness">>
			<<set $activeSlave.behavioralFlaw = "none">>
			<<set $activeSlave.clothes = "a toga", $activeSlave.collar = "pretty jewelry", $activeSlave.shoes = "flats">>
			<<set $activeSlave.assignment = "guard you", $Bodyguard = $activeSlave>>
		<<case "AztecRevivalist">>
			<<set $oneTimeDisableDisability = 1>>
			<<set $fixedRace = "latina">>
			<<set $fixedNationality = "Mexican">>
			<<set $activeSlave = GenerateNewSlave()>>
			<<set $activeSlave.accent = 0>>
			<<set $activeSlave.devotion = 75, $activeSlave.trust = 75>>
			<<run setHealth($activeSlave, jsRandom(-20, 20))>>
			<<set $activeSlave.muscles = random(50,75)>>
			<<set $activeSlave.skill.combat = 1>>
			<<set $activeSlave.behavioralFlaw = "malicious", $activeSlave.behavioralQuirk = "none">>
			<<set $activeSlave.clothes = "a huipil", $activeSlave.collar = "pretty jewelry", $activeSlave.shoes = "none">>
			<<set $activeSlave.assignment = "be your Head Girl", $HeadGirl = $activeSlave>>
		<<case "EgyptianRevivalist">>
			<<set $oneTimeDisableDisability = 1>>
			<<set $activeSlave = GenerateNewSlave()>>
			<<set $activeSlave.devotion = random(25,45), $activeSlave.trust = random(25,45)>>
			<<run setHealth($activeSlave, jsRandom(25, 45))>>
			<<set $activeSlave.face = random(15,100)>>
			<<set $activeSlave.skill.oral = random(15,35), $activeSlave.skill.anal = random(15,35)>>
			<<if $activeSlave.vagina > -1>>
				<<if $activeSlave.vagina == 0>><<set $activeSlave.vagina++>><</if>>
				<<set $activeSlave.skill.vaginal = random(15,35)>>
			<</if>>
			<<set $activeSlave.skill.entertainment = random(15,35)>>
			<<run SoftenSexualFlaw($activeSlave)>>
			<<set $activeSlave.clothes = "slutty jewelry", $activeSlave.collar = "ancient Egyptian", $activeSlave.shoes = "flats">>
			<<set $activeSlave.assignment = "please you">>
		<<case "EdoRevivalist">>
			<<set $oneTimeDisableDisability = 1>>
			<<set $fixedRace = "asian">>
			<<set $fixedNationality = "Japanese">>
			<<set $activeSlave = GenerateNewSlave()>>
			<<set $activeSlave.accent = 0>>
			<<set $activeSlave.devotion = random(25,45), $activeSlave.trust = random(25,45)>>
			<<run setHealth($activeSlave, jsRandom(25, 45))>>
			<<set $activeSlave.face = random(15,100)>>
			<<set $activeSlave.intelligence = random(0,100), $activeSlave.intelligenceImplant = 30>>
			<<set $activeSlave.skill.entertainment = 100>>
			<<set $activeSlave.clothes = "a kimono", $activeSlave.collar = "satin choker", $activeSlave.shoes = "heels">>
			<<set $activeSlave.assignment = "serve the public">>
		<<case "ArabianRevivalist">>
			<<set $oneTimeDisableDisability = 1>>
			<<set $activeSlave = GenerateNewSlave()>>
			<<set $activeSlave.devotion = random(25,45), $activeSlave.trust = random(-15,15)>>
			<<run setHealth($activeSlave, jsRandom(25, 45))>>
			<<set $activeSlave.face = random(15,100)>>
			<<set $activeSlave.intelligence = random(-15,80), $activeSlave.intelligenceImplant = 0>>
			<<set $activeSlave.clothes = "harem gauze", $activeSlave.collar = "uncomfortable leather", $activeSlave.shoes = "flats">>
			<<set $activeSlave.assignment = "take classes">>
		<<case "ChineseRevivalist">>
			<<set $activeSlaveOneTimeMinAge = 36>>
			<<set $activeSlaveOneTimeMaxAge = 38>>
			<<set $one_time_age_overrides_pedo_mode = 1>>
			<<set $oneTimeDisableDisability = 1>>
			<<set $fixedRace = "asian">>
			<<set $fixedNationality = "Chinese">>
			<<set $activeSlave = GenerateNewSlave()>>
			<<set $activeSlave.devotion = random(55,65), $activeSlave.trust = random(25,45)>>
			<<run setHealth($activeSlave, jsRandom(25, 45))>>
			<<set $activeSlave.face = random(0,55)>>
			<<set $activeSlave.accent = 0>>
			<<set $activeSlave.intelligence = 100, $activeSlave.intelligenceImplant = 30>>
			<<set $activeSlave.skill.oral = 100, $activeSlave.skill.anal = 100>>
			<<if $activeSlave.vagina > -1>>
				<<if $activeSlave.vagina == 0>><<set $activeSlave.vagina++>><</if>>
				<<set $activeSlave.skill.vaginal = 100>>
			<</if>>
			<<set $activeSlave.skill.entertainment = 100, $activeSlave.skill.whoring = 100>>
			<<run SoftenBehavioralFlaw($activeSlave)>>
			<<run SoftenSexualFlaw($activeSlave)>>
			<<set $activeSlave.clothes = "a slutty qipao", $activeSlave.collar = "pretty jewelry", $activeSlave.shoes = "heels">>
			<<set $activeSlave.assignment = "be your Head Girl", $HeadGirl = $activeSlave>>
		<<case "Eugenics">>
			<<set $oneTimeDisableDisability = 1>>
			<<set $activeSlave = GenerateNewSlave()>>
			<<set $activeSlave.devotion = -100, $activeSlave.trust = -100>>
			<<run setHealth($activeSlave, jsRandom(80, 90), 0, 0, 0, jsRandom(20, 40))>>
			<<set $activeSlave.intelligence = 100>>
			<<set $activeSlave.intelligenceImplant = 30>>
			<<set $activeSlave.face = 100>>
			<<set $activeSlave.faceShape = "sensual">>
			<<set $activeSlave.skill.oral = random(35,75), $activeSlave.skill.anal = random(35,75)>>
			<<if $activeSlave.vagina > -1>>
				<<if $activeSlave.vagina == 0>><<set $activeSlave.vagina++>><</if>>
				<<set $activeSlave.skill.vaginal = random(35,75)>>
			<</if>>
			<<set $activeSlave.skill.entertainment = random(15,35)>>
			<<set $activeSlave.skill.whoring = 0>>
			<<run SoftenSexualFlaw($activeSlave)>>
			<<set $activeSlave.clothes = "a ball gown", $activeSlave.shoes = "flats">>
			<<set $activeSlave.assignment = "rest">>
		<<case "Repopulationist">>
			<<set $activeSlaveOneTimeMinAge = $fertilityAge+3>>
			<<set $activeSlaveOneTimeMaxAge = 25>>
			<<set $one_time_age_overrides_pedo_mode = 1>>
			<<set $oneTimeDisableDisability = 1>>
			<<set $activeSlave = GenerateNewSlave("XX")>>
			<<set $activeSlave.devotion = random(25,45), $activeSlave.trust = random(-25,-45)>>
			<<run setHealth($activeSlave, jsRandom(55, 65))>>
			<<set $activeSlave.face = random(15,100)>>
			<<set $activeSlave.preg = random(10,40), $activeSlave.pregType = random(3,8), $activeSlave.lactation = 1, $activeSlave.lactationDuration = 2>>
			<<run SetBellySize($activeSlave)>>
			<<set $activeSlave.counter.birthsTotal = 5>>
			<<set $activeSlave.bellySag = 20, $activeSlave.bellySagPreg = 20>>
			<<if $activeSlave.vagina > -1>>
				<<set $activeSlave.vagina = 4>>
				<<set $activeSlave.skill.vaginal = random(15,35)>>
			<</if>>
			<<set $activeSlave.clothes = "a nice maid outfit", $activeSlave.shoes = "flats">>
			<<set $activeSlave.assignment = "please you">>
		<<case "HedonisticDecadence">>
			<<set $activeSlaveOneTimeMaxAge = 25>>
			<<set $oneTimeDisableDisability = 1>>
			<<set $activeSlave = GenerateNewSlave("XX")>>
			<<set $activeSlave.devotion = random(25,45), $activeSlave.trust = random(-25,-45)>>
			<<run setHealth($activeSlave, jsRandom(-20, 20))>>
			<<set $activeSlave.face = random(15,40)>>
			<<set $activeSlave.boobs += 100*random(3,6)>>
			<<set $activeSlave.butt += random(2,5)>>
			<<set $activeSlave.weight = random(100,200)>>
			<<set $activeSlave.skill.oral = random(15,35), $activeSlave.skill.anal = random(15,35), $activeSlave.anus = 2>>
			<<if $activeSlave.vagina > -1>><<set $activeSlave.skill.vaginal = random(15,35), $activeSlave.vagina = 3>><</if>>
			<<set $activeSlave.skill.entertainment = 0>>
			<<set $activeSlave.energy = random(60,80)>>
			<<set $activeSlave.behavioralFlaw = "gluttonous">>
			<<set $activeSlave.clothes = "attractive lingerie", $activeSlave.shoes = "flats">>
			<<set $activeSlave.diet = "fattening">>
			<<set $activeSlave.rules.living = "luxurious">>
			<<set $activeSlave.assignment = "rest">>
		<<case "IntellectualDependency">>
			<<set $activeSlaveOneTimeMinAge = 14>>
			<<set $activeSlaveOneTimeMaxAge = 18>>
			<<set $oneTimeDisableDisability = 1>>
			<<set $activeSlave = GenerateNewSlave()>>
			<<set $activeSlave.devotion = random(45,65), $activeSlave.trust = random(-15,45)>>
			<<set $activeSlave.face = random(30,100)>>
			<<set $activeSlave.energy = 100>>
			<<set $activeSlave.weight = random(-25,-15)>>
			<<set $activeSlave.skill.oral = 0, $activeSlave.skill.anal = 0, $activeSlave.skill.vaginal = 0, $activeSlave.skill.entertainment = 0, $activeSlave.skill.whoring = 0>>
			<<set $activeSlave.intelligence = -100>>
			<<set $activeSlave.intelligenceImplant = 0>>
			<<if $activeSlave.vagina == 0>><<set $activeSlave.vagina++>><</if>>
			<<set $activeSlave.anus++>>
		<<case "SlaveProfessionalism">>
			<<set $activeSlaveOneTimeMinAge = 18>>
			<<set $activeSlaveOneTimeMaxAge = 25>>
			<<set $oneTimeDisableDisability = 1>>
			<<set $activeSlave = GenerateNewSlave()>>
			<<set $activeSlave.devotion = 100, $activeSlave.trust = 20>>
			<<run setHealth($activeSlave, 80, 0, 0, 0, jsRandom(10, 30))>>
			<<set $activeSlave.face = random(30,100)>>
			<<set $activeSlave.energy = 10>>
			<<set $activeSlave.weight = random(-15,5)>>
			<<set $activeSlave.skill.oral = 100, $activeSlave.skill.anal = 100, $activeSlave.skill.vaginal = 100, $activeSlave.skill.entertainment = 100, $activeSlave.skill.whoring = 100>>
			<<set $activeSlave.intelligence = 100>>
			<<set $activeSlave.intelligenceImplant = 30>>
			<<set $activeSlave.accent = 0>>
			<<run SoftenBehavioralFlaw($activeSlave)>>
			<<run SoftenSexualFlaw($activeSlave)>>
			<<set $activeSlave.clothes = "a nice maid outfit", $activeSlave.collar = "pretty jewelry">>
			<<set $activeSlave.assignment = "be your Head Girl", $HeadGirl = $activeSlave>>
		<<case "PetiteAdmiration">>
			<<set $activeSlaveOneTimeMinAge = 14>>
			<<set $activeSlaveOneTimeMaxAge = 18>>
			<<set $oneTimeDisableDisability = 1>>
			<<set $activeSlave = GenerateNewSlave()>>
			<<set $activeSlave.devotion = random(55,65), $activeSlave.trust = random(-15,15)>>
			<<run setHealth($activeSlave, jsRandom(25, 45))>>
			<<set $activeSlave.face = random(15,100)>>
			<<if $activeSlave.height >= 150>>
				<<set $activeSlave.height = Math.trunc(Height.random($activeSlave, {limitMult: [-3, -1]}))>>
				<<if $activeSlave.height >= 150>>
					<<set $activeSlave.height = Math.trunc(Height.random($activeSlave, {limitMult: [-4, -2]}))>>
					<<if $activeSlave.height >= 150>>
						<<set $activeSlave.height = random(90,130)>>
						<<set $activeSlave.geneticQuirks.dwarfism = 2>>
					<</if>>
				<</if>>
			<</if>>
			<<set $activeSlave.skill.oral = random(35,65), $activeSlave.skill.anal = random(15,35)>>
			<<if $activeSlave.vagina > -1>>
				<<if $activeSlave.vagina == 0>><<set $activeSlave.vagina++>><</if>>
				<<set $activeSlave.skill.vaginal = random(15,35)>>
			<</if>>
			<<set $activeSlave.clothes = "a succubus outfit", $activeSlave.legAccessory = "long stockings">>
			<<set $activeSlave.assignment = "please you">>
		<<case "StatuesqueGlorification">>
			<<set $activeSlaveOneTimeMinAge = 18>>
			<<set $activeSlaveOneTimeMaxAge = 30>>
			<<set $one_time_age_overrides_pedo_mode = 1>>
			<<set $oneTimeDisableDisability = 1>>
			<<set $activeSlave = GenerateNewSlave()>>
			<<set $activeSlave.devotion = random(55,65), $activeSlave.trust = random(-15,15)>>
			<<run setHealth($activeSlave, jsRandom(25, 45))>>
			<<set $activeSlave.face = random(15,100)>>
			<<set $activeSlave.weight = random(-5,5)>>
			<<set $activeSlave.muscles = random(20,40)>>
			<<if $activeSlave.height < 185>>
				<<set $activeSlave.height = Math.trunc(Height.random($activeSlave, {limitMult: [1, 3]}))>>
				<<if $activeSlave.height < 185>>
					<<set $activeSlave.height = Math.trunc(Height.random($activeSlave, {limitMult: [2, 4]}))>>
					<<if $activeSlave.height < 185>>
						<<set $activeSlave.height = random(200,264)>>
						<<set $activeSlave.geneticQuirks.gigantism = 2>>
					<</if>>
				<</if>>
			<</if>>
			<<set $activeSlave.skill.oral = random(15,35), $activeSlave.skill.anal = random(15,35)>>
			<<if $activeSlave.vagina > -1>>
				<<if $activeSlave.vagina == 0>><<set $activeSlave.vagina++>><</if>>
				<<set $activeSlave.skill.vaginal = random(15,35)>>
			<</if>>
			<<set $activeSlave.clothes = "slutty business attire", $activeSlave.shoes = "heels">>
			<<set $activeSlave.assignment = "please you">>
		<<default>>
			ERROR: bad arcology type
		<</switch>>
		<<set $activeSlave.origin = "You acquired $him along with the arcology.", $activeSlave.career = "a slave">>
		<<set _slaveCost = slaveCost($activeSlave)>>
		<<if ["AztecRevivalist", "ChineseRevivalist", "Eugenics", "SlaveProfessionalism"].includes($targetArcology.fs)>>
			<<set _valueGiven += _slaveCost*4>>
		<<else>>
			<<set _valueGiven += _slaveCost>>
		<</if>>
		<<run newSlave($activeSlave)>>
	<</for>>
	<<setLocalPronouns $activeSlave>>
	<<switch $targetArcology.fs>>
	<<case "Supremacist">>
		They kept a personal stable of fearful $arcologies[0].FSSupremacistRace sex slaves, but their sexual training is incomplete. Several of them are still here.
	<<case "Subjugationist">>
		They made it a special goal to enslave and whore out as many $arcologies[0].FSSubjugationistRace people as possible. Several of them are still here.
	<<case "GenderRadicalist">>
		They were in the process of building a stable of pretty young shemale whores. Several of them are still here. They're are all very attracted to men, and skilled at pleasing them.
	<<case "GenderFundamentalist">>
		They kept a personal stable of slaves for breeding purposes. Several of them are still here. They've been kept pregnant, and work as servants when they aren't being bred.
	<<case "Paternalist">>
		Their slaves were all very well treated. Several of them are still here. They were allowed to work as maids, and weren't even forced to have sex.
	<<case "Degradationist">>
		Their personal slaves were all Fuckdolls, slaves who have been permanently encased in advanced latex suits and converted into living sex toys. Several of them are still here.
	<<case "AssetExpansionist">>
		They kept a collection of bejeweled boobs for company, but they focused on breast expansion to the exclusion the slaves' emotional training. Several of them are still here.
	<<case "SlimnessEnthusiast">>
		They kept a harem of slim, pretty girls, and treated them very well. Several of them are still here. They should be very trusting of a new owner.
	<<case "TransformationFetishist">>
		They were just putting the finishing touches on a planned brothel's worth of surgically enhanced whores. Several of them are still here. They are already used to prostitution.
	<<case "BodyPurist">>
		Their slaves were trained for sexual use, but their health, fitness, and natural appearance were the main priorities. Several of them are still here.
	<<case "MaturityPreferentialist">>
		They preferred to keep their MILFs as scantily clad servants. Several of them are still here. They aren't all happy to be sex objects, but they're used to it.
	<<case "YouthPreferentialist">>
		They treated their young slaves very well. Several of them are still here. Virgins have been carefully preserved, but have learned to use their mouths through experience.
	<<case "Pastoralist">>
		Their herd of cow girls was progressing nicely, though more progress had been made on milk production than on training. Several of them are still here.
	<<case "PhysicalIdealist">>
		Their slaves worked as prostitutes, but mostly to fund a program of muscle building for all of them, which was nearing completion. Several of them are still here.
	<<case "ChattelReligionist">>
		They were recruiting a stable of slave whores by targeting people with religious complexes that made them particularly vulnerable to recruitment. Several of them are still here.
	<<case "RomanRevivalist">>
		The only one of their slaves left is the bodyguard. $He should be very willing to transfer $his loyalty to you, as $his new owner.
	<<case "AztecRevivalist">>
		They maintained a combination of disobedient slaves, deemed incorrigible and blood priestesses. Since they offer themselves as slaves willingly, one has remained loyal to the owner of the arcology.
	<<case "EgyptianRevivalist">>
		They kept a harem of beautiful slave girls, who have been well-treated and well-trained. They should be very willing to serve you in turn.
	<<case "EdoRevivalist">>
		They put considerable effort into creating modern slave geisha, elegant Japanese slaves who were assigned to serve the public. Several of them are still here.
	<<case "ArabianRevivalist">>
		They trained slaves personally, and never kept slaves for very long. The slaves they left are all partway through being trained.
	<<case "ChineseRevivalist">>
		The only one of their slaves left is the Head Girl. $He should be willing to transfer $his loyalty to you, as $his proper superior.
	<<case "Eugenics">>
		The only one of their slaves left is an absolute beauty of a $girl. $He is too smart for $his own good and will likely not trust you.
	<<case "Repopulationist">>
		They kept a personal stable of slaves for breeding purposes. Several of them are still here. They've been kept heavily pregnant, and are used to being used whilst so.
	<<case "HedonisticDecadence">>
		Their slaves were heavily pampered; free to lie about, fuck, and eat as much as they wanted. Several of them are still here, too lazy and spoiled to leave. They eagerly paw at you upon your arrival, begging for their bellies to be filled with food and for a good, hard fucking.
	<<case "IntellectualDependency">>
		They kept several vapid sluts, who are now desperately begging you for sex. It seems they've drained the life out of every toy left behind and have no idea how to recharge them.
	<<case "SlaveProfessionalism">>
		The only one of their slaves left has made it $his mission to have the penthouse ready for whomever should come to own it. $He greets you cordially, hands you a detailed summary of $his skills and information on your new arcology, and calmly awaits further orders.
	<<case "PetiteAdmiration">>
		They had quite the impish little harem. Several of them are still here and immediately swarm you as a welcome, eager to see someone taller again.
	<<case "StatuesqueGlorification">>
		They had quite the collection of towering slaves. Several of them are still here. They gaze down on you, evaluating how best to serve their new owner.
	<<default>>
		ERROR: bad arcology type
	<</switch>>
<<else>>
	They could not get all of their personal effects away. Since they <<if $targetArcology.fs == "Multiculturalist">>tried to sample different kinds of sexual slavery<<else>>did not have the time in control of the arcology to develop a specific stable of sex slaves<</if>>, their slaves were quite varied.
	<<for $j = 0; $j < _heroSlaves.length; $j++>>
		<<if _valueOwed - _valueGiven <= 5000>>
			<<break>>
		<</if>>
		<<set $activeSlave = App.Utils.getHeroSlave(_heroSlaves[$j])>>
		<<run _heroSlaves.splice($j,1)>>
		<<set _slaveCost = slaveCost($activeSlave)>>
		<<if _valueGiven + _slaveCost < _valueOwed*2>>
			<<run nationalityToAccent($activeSlave)>>
			<<set $activeSlave.oldDevotion = $activeSlave.devotion>>
			<<set $activeSlave.oldTrust = $activeSlave.trust>>
			<<set _valueGiven += _slaveCost>>
			<<run newSlave($activeSlave)>>
			<<setLocalPronouns $activeSlave>>
			<<if $activeSlave.fetish == "mindbroken">>
				$activeSlave.slaveName is, sadly, not mentally competent, and is wandering through the penthouse at the moment.
			<<elseif isAmputee($activeSlave)>>
				$activeSlave.slaveName is a quadruple amputee and is quite helpless, so you can attend to $him at your leisure.
			<<elseif $activeSlave.devotion < -50>>
				$activeSlave.slaveName is quite rebellious and was attempting to escape, so I have locked $him in the slave quarters.
			<<elseif $activeSlave.devotion < -20>>
				$activeSlave.slaveName resists my orders and was considering escape, so I have locked $him in the slave quarters.
			<<elseif $activeSlave.devotion <= 20>>
				$activeSlave.slaveName is reasonably obedient, and is waiting for you in the dormitory, I believe in the hope of making a good impression.
			<<elseif $activeSlave.energy > 95>>
				$activeSlave.slaveName is a remarkable sexual addict, and I believe $he will be very happy to meet you.
			<<elseif $activeSlave.fetish == "pregnancy">>
				<<if $activeSlave.bellyPreg >= 500>>
					$activeSlave.slaveName is currently in the dormitory masturbating over $his growing pregnancy, and <<if $PC.belly >= 5000>>will certainly be eager to meet you<<else>>I believe $he will be happy to show it to you<</if>>.
				<<else>>
					$activeSlave.slaveName is currently in the dormitory examining $himself to try to discern $his fertility, and I believe $he will be <<if $PC.belly >= 5000>>eager to get acquainted with you<<else>>happy to meet you<</if>>.
				<</if>>
			<<elseif $activeSlave.belly >= 5000>> /*had to be placed after pregnancy or it would intercept*/
				$activeSlave.slaveName is currently in the dormitory massaging $his greatly distended belly.
			<<elseif $activeSlave.fetish == "buttslut">>
				$activeSlave.slaveName is currently in the dormitory masturbating anally, and I believe $he will be happy to meet you.
			<<elseif $activeSlave.fetish == "cumslut">>
				$activeSlave.slaveName is currently in the dormitory exhibiting oral fixation, and I believe $he will be happy to meet you.
			<<elseif $activeSlave.fetish == "boobs">>
				$activeSlave.slaveName is currently in the dormitory playing with $his nipples, and I believe $he will be happy to meet you.
			<<elseif $activeSlave.fetish == "humiliation">>
				$activeSlave.slaveName is currently in the entryway flashing passersby, and I believe $he will be happy to meet you.
			<<elseif $activeSlave.fetish == "submissive">>
				$activeSlave.slaveName is currently in the dormitory, experimenting with self-bondage using the sheets; I believe $he will be happy to meet you.
			<<elseif $activeSlave.fetish == "dom">>
				$activeSlave.slaveName is currently in the exercise area keeping fit; $he likes to take an active role sexually and is using this down time to work out.
			<<elseif $activeSlave.fetish == "sadist">>
				$activeSlave.slaveName is currently outside your office; $he enjoys being superior to other slaves and I believe $he means to ingratiate $himself to you.
			<<elseif $activeSlave.fetish == "masochist">>
				$activeSlave.slaveName is a sexual masochist; $he is currently in the bathroom, experimenting with auto-flagellation with a wet towel.
			<<else>>
				$activeSlave.slaveName is currently outside your office, and I believe $he is attempting to maintain sexual arousal to make a good first impression on you.
			<</if>>
		<</if>>
	<</for>>
<</if>>
<<if _valueOwed-_valueGiven > 0>>
	There are some valuables present, worth <<print cashFormat(_valueOwed-_valueGiven)>>.
	<<run cashX((_valueOwed-_valueGiven), "event", $activeSlave)>>
<</if>>
//

<<set $averageTrust = 0>>
<<set $averageDevotion = 0>>
<<set _slavesContributing = 0>>
<<for $i = 0; $i < $slaves.length; $i++>>
	<<set $slaves[$i].oldDevotion = $slaves[$i].devotion>>
	<<set $slaves[$i].oldTrust = $slaves[$i].trust>>
	/* AVERAGE VALUES UPDATE */
	<<if assignmentVisible($slaves[$i])>>
		<<set $averageTrust += $slaves[$i].trust, $averageDevotion += $slaves[$i].devotion, _slavesContributing += 1>>
	<<else>>
		<<if $slaves[$i].assignment != "be confined in the cellblock">>
			<<if $slaves[$i].assignment != "be confined in the arcade">>
				<<if ($slaves[$i].assignment != "work in the dairy") || ($dairyRestraintsSetting < 2)>>
					<<set $averageTrust += $slaves[$i].trust*0.5, $averageDevotion += $slaves[$i].devotion*0.5, _slavesContributing += 0.5>>
				<</if>>
			<</if>>
		<</if>>
	<</if>>
<</for>>
<<if _slavesContributing != 0>>
	<<set $averageTrust = $averageTrust/_slavesContributing>>
	<<set $averageDevotion = $averageDevotion/_slavesContributing>>
<</if>>
<<set $enduringTrust = $averageTrust>>
<<set $enduringDevotion = $averageDevotion>>
<<run App.UI.SlaveSummary.settingsChanged()>>

<<link "Continue">>
	<<set $ui = "main">>
	<<if $terrain == "urban">>
		<<set $slaveCostFactor = 0.85>>
		<<set $menialSupplyFactor = 30000>>
		<<set $menialDemandFactor = -30000>>
	<<elseif $terrain == "marine">>
		<<set $slaveCostFactor = 1>>
	<<else>>
		<<set $slaveCostFactor = 1.15>>
		<<set $menialDemandFactor = 30000>>
		<<set $menialSupplyFactor = -30000>>
	<</if>>
	<>
	<<goto "Main">>
<</link>>


code:
:: Agent Company [nobr]

<<set $nextButton = "Continue", $nextLink = "AS Dump", $returnTo = "Neighbor Interact", _ID = $activeSlave.ID>>

<<= assignJob($activeSlave, "live with your agent")>>

<<set $reservedChildren = FetusGlobalReserveCount("incubator")>>
<<set $reservedChildrenNursery = FetusGlobalReserveCount("nursery")>>

<<if $activeSlave.rivalry > 0>>
	<<set _i = $slaveIndices[$activeSlave.rivalryTarget]>>
	<<if def _i>>
		<<set $slaves[_i].rivalry = 0, $slaves[_i].rivalryTarget = 0>>
	<<else>>
		@@.red;Error, activeSlave rival not found.@@
	<</if>>
	<<set $activeSlave.rivalry = 0, $activeSlave.rivalryTarget = 0>>
<</if>>

<<set _neighborArcology = $arcologies.find(function(s) { return $subSlave.ID == s.leaderID; })>>

<<setLocalPronouns $subSlave 2>>

Working in _neighborArcology.name's penthouse office, $subSlave.slaveName gets a video call from you. Naturally, _his2 personal assistant program has been instructed to give these the highest priority, and your face appears in front of _him2 immediately. _He2 greets you properly, and asks you what _he2 can do to serve you. You tell _him2 you're planning to send one of your slaves over to _his2 arcology to assist _him2. Exchanges of this kind are neither unusual nor particularly interesting, so a slight look of perplexity clouds $subSlave.slaveName's face as _he2 wonders why this merits a personal call. Normally, <<if $HeadGirl != 0>>$HeadGirl.slaveName<<else>>$assistant.name<</if>> would handle it with _him2 directly.

_His2 question is answered when you bring <<= contextualIntro($subSlave, $activeSlave)>> in close, putting $him in $subSlave.slaveName's view. $subSlave.slaveName's <<= App.Desc.eyesColor($subSlave)>> fly open with pleased surprise, but before _he2 can speak, $activeSlave.slaveName goes first.
<<if !canTalk($activeSlave)>>
	Unable to speak $himself, $he simply makes a heart shape with $his hand<<if hasBothArms($activeSlave)>>s<</if>> in view of the video call, and blows $his <<if $activeSlave.relationship == 4>>lover<<else>>_wife2<</if>> a kiss.
<<else>>
	<<run Enunciate($activeSlave)>>
	"Hi <<if $activeSlave.relationship == 4>>lover<<else>><<s>>weetheart<</if>>," $he <<say>>s in a syrupy tone. "Mi<<ss>> me?"
<</if>>

$subSlave.slaveName smiles back at $him, glowing with pleasure, and responds with exaggerated arousal.

<<run Enunciate($subSlave)>>

<<switch $subSlave.fetish>>
<<case "submissive">>
	"Looking forward to <<s>>leeping in your arm<<s>>, babe," the submissive
<<case "cumslut">>
	"Can't wait to ki<<ss>> you, babe," the orally fixated
<<case "humiliation">>
	"Can't wait to take you right in the middle of the pla<<z>>a here," the exhibitionist
<<case "buttslut">>
	"I can't wait to fuck you in your hot little a<<ss>>," the anally fixated
<<case "boobs">>
	"Looking forward to feeling your brea<<s>>t<<s>> again," the boob-loving
<<case "pregnancy">>
	"Can't wait to <<sh>>are all the pregnant girl<<s>> here with you," the impregnation fetishist
<<case "dom">>
	"Looking forward to <<sh>>oving you fa<<c>>edown, bitch," the dominant
<<case "sadist">>
	"Looking forward to making you bite the pillow again, bitch," the sadistic
<<case "masochist">>
	"Can't wait to feel you hurt me again, babe," the masochistic
<<default>>
	"Babe, I can't wait to <<if hasAnyArms($subSlave)>>give you a hug and <</if>>tell you about _neighborArcology.name," the loving
<</switch>>
leader of an entire arcology <<say>>s.

repo_name: KnightBoulegard/fc

license: mit


code:
App.Data.Facilities.arcologyAgent = {
	baseName: "arcology",
	genericName: null,
	jobs: {
		agentsSlave: {
			position: "agent's toy",
			assignment: Job.AGENTPARTNER,
			publicSexUse: true,
			fuckdollAccepted: false
		}
	},
	defaultJob: "agentsSlave",
	manager: {
		position: "agent",
		assignment: Job.AGENT,
		careers: "an arcology owner",
		skill: "headGirl",
		publicSexUse: true,
		fuckdollAccepted: false,
		broodmotherAccepted: false,
		shouldWalk: true,
		shouldHold: true,
		shouldSee: true,
		shouldHear: true,
		shouldTalk: true,
		shouldThink: true,
		requiredDevotion: 21
	}
};

App.Entity.Facilities.AgentJob = class extends App.Entity.Facilities.ManagingJob {
	/**
	 * @param {App.Entity.SlaveState} slave
	 * @returns {string[]}
	 */
	checkRequirements(slave) {
		let r = super.checkRequirements(slave);
		if (slave.intelligence + slave.intelligenceImplant <= 15) {
			r.push(`${slave.slaveName} is not intelligent enough to be your agent.`);
		}
		return r;
	}
};

App.Entity.facilities.arcologyAgent = new App.Entity.Facilities.Facility(
	App.Data.Facilities.arcologyAgent,
	new App.Entity.Facilities.AgentJob()
);


code:
:: Agent Select [nobr jump-from-safe]

<<set $nextButton = "Back", $nextLink = "Neighbor Interact", $encyclopedia = "Agents">>
''Appoint an Agent from your devoted slaves:''

<<= App.UI.SlaveList.slaveSelectionList(
		s => (s.fuckdoll === 0 && s.devotion > 20 && s.intelligence + s.intelligenceImplant > 15 && s.intelligenceImplant >= 15 && canWalk(s) && canSee(s) && canHear(s) && canTalk(s) && s.broodmother < 2 && (s.breedingMark !== 1 || V.propOutcome === 0 || V.eugenicsFullControl === 1 || V.arcologies[0].FSRestart === "unset")),
		(slave) => App.UI.DOM.passageLink(SlaveFullName(slave), 'Agent Workaround',
			() => { V.i = V.slaves.findIndex((s) => s.ID === slave.ID); }),
		s => App.Entity.facilities.arcologyAgent.manager.slaveHasExperience(s)
	)>>


code:
:: Agent Workaround [nobr jump-from-safe]

<<set $nextButton = "Continue", $nextLink = "Neighbor Interact">>

<<= assignJob($slaves[$i], "be your agent")>>

<<set $reservedChildren = FetusGlobalReserveCount("incubator")>>
<<set $reservedChildrenNursery = FetusGlobalReserveCount("nursery")>>

<<if $slaves[$i].rivalry > 0>>
	<<set _i = $slaveIndices[$slaves[$i].rivalryTarget]>>
	<<if def _i>>
		<<set $slaves[_i].rivalry = 0, $slaves[_i].rivalryTarget = 0>>
	<<else>>
		@@.red;Error, rival not found.@@
	<</if>>
	<<set $slaves[$i].rivalry = 0, $slaves[$i].rivalryTarget = 0>>
<</if>>

<<if $slaves[$i].relationship > 0 && $slaves[$i].relationship < 4>>
	<<set _i = $slaveIndices[$slaves[$i].relationshipTarget]>>
	<<if def _i>>
		<<set $slaves[_i].relationship = 0, $slaves[_i].relationshipTarget = 0>>
	<<else>>
		@@.red;Error, relationshipTarget not found.@@
	<</if>>
	<<set $slaves[$i].relationship = 0, $slaves[$i].relationshipTarget = 0>>
<</if>>

<<set $desc = SlaveTitle($slaves[$i])>>
<<setLocalPronouns $slaves[$i]>>

You order $slaves[$i].slaveName to come into your office for orders. The devoted $desc has no prior warning that this is anything unusual, and from the <<if $slaves[$i].energy > 95>>horny glint<<else>>glow of sexual availability<</if>> in $his <<= App.Desc.eyesColor($slaves[$i])>> as $he <<if canWalk($slaves[$i])>>enters<<else>>is helped in<</if>>, $he <<if $slaves[$i].energy > 95>>seems to be hoping<<else>>wouldn't mind hearing<</if>> that you've called $him in for a quick fuck. In fact, the matter at hand is about as far as it could possibly be from that, on the spectrum of interactions between <<= properMaster()>> and slave.

You offer $him, without preamble, agency on your behalf in <<=App.activeArcology().name>>. As a $woman of intelligence, $he knows the basics of such an arrangement, but $he's stunned into silence by the offer, so you outline it briefly. Having a slave lead an arcology would be too much, even for the most open minded of Free Cities societies. So, $he would be freed, albeit subject to a set of private, restrictive contracts that would allow you to recall $him if you wish, and require $him to follow your directions, if you give $him any. But other than that, $he would be the effective leader of an entire arcology. It's an unusual arrangement, but one that's becoming more common as multiple arcologies come under united control.

$He's intelligent and confident of $his place within society as a valued slave, and knows that with your resources behind $him, this is likely something $he's capable of succeeding at. Nevertheless, $his feelings are obviously mixed. It will be a challenge,
<<switch $slaves[$i].fetish>>
<<case "submissive">>
	especially for a sexual submissive like $him.
<<case "cumslut">>
	and $he'll have to find dominant ways to sate $his oral appetites.
<<case "humiliation">>
	especially for a humiliation addict like $him.
<<case "buttslut">>
	though $he'll probably be able to live $his anal life vicariously by buttfucking others.
<<case "boobs">>
	but $he'll have a practically infinite procession of breasts to judge and fondle.
<<case "pregnancy">>
	but the potential for impregnation of hundreds of slaves excites $him.
<<case "dom">>
	but the prospect of having more slaves at $his whim than even $he could possibly use is incredibly exciting to $him.
<<case "sadist">>
	but the prospect of having more slaves at $his whim than even $he could possibly break is incredibly exciting to $him.
<<case "masochist">>
	especially for a masochist like $him.
<<default>>
	though one $he's willing to take on.
<</switch>>
It will mean that $he'll see much less of you, something such a devoted slave may struggle with. Oppressed by the confusion and strength of $his feelings, $he begins to cry.

"Thank you, <<Master $slaves[$i]>>," $he gasps out. "I'll do my be<<s>>t."


code:
:: AS Dump [no-history]

<<if (ndef $activeSlave) || ($activeSlave == 0)>>

	@@.red;ERROR:@@ AS Dump, activeSlave invalid, returnTo is '$returnTo', previous passage was '<<print previous()>>'. Please report this.

	<<link "Continue">><<goto $returnTo>><</link>> | [[Go Back|previous()]]

<<else>>

	<<silently>>

	<<set _SL = $slaves.length, _ID = $activeSlave.ID>>

	<<if $i >= 0 && $i < _SL && $slaves[$i].ID == _ID>> /* shortcut if $i is already pointing to this slave */
		<<set $slaves[$i] = $activeSlave>>
	<<else>>
		<<set $i = $slaveIndices[_ID]>> /* find $i if exists */
		<<if ndef $i>> /* not found, so new slave */
			<<run newSlave($activeSlave)>>
		<<else>>
			<<set $slaves[$i] = $activeSlave>>
		<</if>>
	<</if>>

	<</silently>>

	<<goto $returnTo>>

<</if>>


code:
/**
 * @param {App.Entity.SlaveState} slave
 * @returns {string}
 */
App.Desc.bodyguard = function(slave) {
	const r = [];
	const {
		his, He, he
	} = getPronouns(slave);
	if (slave.fuckdoll !== 0 || slave.ID !== V.Bodyguard.ID) {
		return;
	}
	r.push(`${He} is your bodyguard.`);
	r.push(bgWeapon(slave));

	if (slave.skill.combat > 0) {
		r.push(`${He} is <span class="aquamarine">skilled at combat:</span> ${he} is comfortable with the use of modern firearms and edged weapons, and ${his} hands`);
		if (!hasBothArms(slave)) {
			r.push(`would be deadly weapons if ${he} had`);
			if (!hasAnyArms(slave)) {
				r.push(`any.`);
			} else {
				r.push(`more than one.`);
			}
		} else {
			if ((getArmCount(slave, 5) + getArmCount(slave, 6) > 1)) {
				r.push(`would be deadly weapons even if they weren't full of deadly weapons already.`);
			} else {
				r.push(`are deadly weapons.`);
			}
		}
	}

	return r.join(" ");

	function bgWeapon() {
		const w = [];
		if ((slave.muscles + slave.height - 100) / 25 > 5) {
			w.push(`${He} has a long ceramic sword strapped to ${his} back,`);
			switch (slave.nationality) {
				case "American":
					w.push(`and, in keeping with ${his} heritage, a US Ordnance Mk43 Mod.1 GPMG`);
					break;
				case "Armenian":
				case "Belarusian":
				case "Cuban":
				case "Hungarian":
				case "Kazakh":
				case "Uzbek":
					w.push(`and, in keeping with ${his} heritage, a PKM GPMG`);
					break;
				case "Australian":
					w.push(`and, in keeping with ${his} heritage, a Lithgow F89 Maximi GPMG`);
					break;
				case "Austrian":
					w.push(`and, in keeping with ${his} heritage, a Steyr MG 74 GPMG`);
					break;
				case "Belgian":
					w.push(`and, in keeping with ${his} heritage, a FN Minimi M3 LMG`);
					break;
				case "British":
				case "Scottish":
					w.push(`and, in keeping with ${his} heritage, an L7A2 GPMG`);
					break;
				case "Canadian":
					w.push(`and, in keeping with ${his} heritage, a Colt Canada 5.56-LSW LMG`);
					break;
				case "Chilean":
				case "German":
					w.push(`and, in keeping with ${his} heritage, a Rheinmetall MG3 GPMG`);
					break;
				case "Chinese":
					w.push(`and, in keeping with ${his} heritage, a Norinco QJY-88 LMG`);
					break;
				case "Czech":
				case "Slovak":
					w.push(`and, in keeping with ${his} heritage, a ZVI Uk vz.59 Rachot GPMG`);
					break;
				case "Filipina":
					w.push(`and, in keeping with ${his} heritage, a Government Arsenal M60E4 GPMG`);
					break;
				case "Finnish":
					w.push(`and, in keeping with ${his} heritage, a Valmet KvKK 62 LMG`);
					break;
				case "French":
					w.push(`and, in keeping with ${his} heritage, a MAS AAT-F1 GPMG`);
					break;
				case "Indian":
					w.push(`and, in keeping with ${his} heritage, an OFB MG 2A1 GPMG`);
					break;
				case "Indonesian":
					w.push(`and, in keeping with ${his} heritage, a Pindad SM2 LMG`);
					break;
				case "Iranian":
					w.push(`and, in keeping with ${his} heritage, a DIO MGA3 GPMG`);
					break;
				case "Israeli":
					w.push(`and, in keeping with ${his} heritage, an IWI Negev NG7 GPMG`);
					break;
				case "Japanese":
					w.push(`and, in keeping with ${his} heritage, a Sumitomo Type 62 GPMG`);
					break;
				case "Korean":
					w.push(`and, in keeping with ${his} heritage, a S&T K12 GPMG`);
					break;
				case "Mexican":
					w.push(`and, in keeping with ${his} heritage, a SEDENA MG-21 GPMG`);
					break;
				case "Polish":
					w.push(`and, in keeping with ${his} heritage, a ZMT UKM-2000 GPMG`);
					break;
				case "Romanian":
					w.push(`and, in keeping with ${his} heritage, a FACSA PM md.93 LMG`);
					break;
				case "Russian":
					w.push(`and, in keeping with ${his} heritage, a PKP Pecheneg GPMG`);
					break;
				case "Serbian":
					w.push(`and, in keeping with ${his} heritage, a Zastava M09 LMG`);
					break;
				case "South African":
					w.push(`and, in keeping with ${his} heritage, a Vektor SS-77 GPMG`);
					break;
				case "Spanish":
					w.push(`and, in keeping with ${his} heritage, a CETME MG 82 Ameli LMG`);
					break;
				case "Swiss":
					w.push(`and, in keeping with ${his} heritage, a W+F-Bern MG51 GPMG`);
					break;
				case "Turkish":
					w.push(`and, in keeping with ${his} heritage, a MKEK MG3 GPMG`);
					break;
				case "Ukrainian":
					w.push(`and, in keeping with ${his} heritage, a Fort-401 LMG`);
					break;
				case "Vietnamese":
					w.push(`and, in keeping with ${his} heritage, a Z111 RPK LMG`);
					break;
				case "Zimbabwean":
					if (slave.race === "white") {
						w.push(`and, in keeping with ${his} heritage, a FN MAG-58 GPMG`);
					} else {
						w.push(`and a FN MAG 60.20 GPMG`);
					}
					break;
				default:
					w.push(`and a FN MAG 60.20 GPMG`);
			}
			w.push(`slung crosswise on ${his} chest.`);
		} else if ((slave.muscles + slave.height - 100) / 25 > 4) {
			w.push(`${He} has a ceramic sword strapped to ${his} back`);
			switch (slave.nationality) {
				case "American":
					w.push(`and, in keeping with ${his} heritage, a Colt M16A4 assault rifle`);
					break;
				case "Argentinian":
					w.push(`and, in keeping with ${his} heritage, a FMAP FARA-83 assault rifle`);
					break;
				case "Armenian":
				case "Belarusian":
				case "Kazakh":
				case "Uzbek":
					w.push(`and, in keeping with ${his} heritage, a Kalashnikov AK-74M assault rifle`);
					break;
				case "Australian":
					w.push(`and, in keeping with ${his} heritage, a Lithgow EF88 Austeyr bullpup assault rifle`);
					break;
				case "Austrian":
					w.push(`and, in keeping with ${his} heritage, a Steyr AUG A3 bullpup assault rifle`);
					break;
				case "Belgian":
					w.push(`and, in keeping with ${his} heritage, a FN FNC M2 assault rifle`);
					break;
				case "Brazilian":
					w.push(`and, in keeping with ${his} heritage, an IMBEL IA2 assault rifle`);
					break;
				case "British":
				case "Scottish":
					w.push(`and, in keeping with ${his} heritage, an L85A3 bullpup assault rifle`);
					break;
				case "Canadian":
					w.push(`and, in keeping with ${his} heritage, a Colt Canada MRR assault rifle`);
					break;
				case "Chilean":
					w.push(`and, in keeping with ${his} heritage, a FAMAE ACE 22NC assault rifle`);
					break;
				case "Chinese":
					w.push(`and, in keeping with ${his} heritage, a Norinco QBZ-95-1 bullpup assault rifle`);
					break;
				case "Colombian":
					w.push(`and, in keeping with ${his} heritage, an Indumil ACE 22 assault rifle`);
					break;
				case "Croatian":
					w.push(`and, in keeping with ${his} heritage, an HS Produkt VHS-2 bullpup assault rifle`);
					break;
				case "Cuban":
					w.push(`and, in keeping with ${his} heritage, an AKM assault rifle`);
					break;
				case "Czech":
				case "Slovak":
					w.push(`and, in keeping with ${his} heritage, a CZUB CZ-806 BREN-2 assault rifle`);
					break;
				case "Filipina":
					w.push(`and, in keeping with ${his} heritage, an Elitool M653P carbine`);
					break;
				case "Finnish":
					w.push(`and, in keeping with ${his} heritage, a SAKO Rk 95 TP assault rifle`);
					break;
				case "French":
					w.push(`and, in keeping with ${his} heritage, a Nexter FAMAS G2 bullpup assault rifle`);
					break;
				case "German":
					w.push(`and, in keeping with ${his} heritage, a H&K G36A2 assault rifle`);
					break;
				case "Hungarian":
					w.push(`and, in keeping with ${his} heritage, a FEG AMD-65M assault rifle`);
					break;
				case "Indian":
					w.push(`and, in keeping with ${his} heritage, an OFB MCIWS assault rifle`);
					break;
				case "Indonesian":
					w.push(`and, in keeping with ${his} heritage, a Pindad SS2 assault rifle`);
					break;
				case "Iranian":
					w.push(`and, in keeping with ${his} heritage, a DIO KH-2002 Khaybar bullpup assault rifle`);
					break;
				case "Israeli":
					w.push(`and, in keeping with ${his} heritage, an IWI MTAR-21 bullpup assault rifle`);
					break;
				case "Italian":
					w.push(`and, in keeping with ${his} heritage, a Beretta ARX-160 assault rifle`);
					break;
				case "Japanese":
					w.push(`and, in keeping with ${his} heritage, a Howa Type 89 assault rifle`);
					break;
				case "Korean":
					w.push(`and, in keeping with ${his} heritage, a Daewoo K2C1 assault rifle`);
					break;
				case "Mexican":
					w.push(`and, in keeping with ${his} heritage, a DGIM FX-05 Xiuhcoatl assault rifle`);
					break;
				case "Peruvian":
					w.push(`and, in keeping with ${his} heritage, a SIMA FAD bullpup assault rifle`);
					break;
				case "Polish":
					w.push(`and, in keeping with ${his} heritage, a FB MSBS assault rifle`);
					break;
				case "Romanian":
					w.push(`and, in keeping with ${his} heritage, a ROMARM PA md.86 assault rifle`);
					break;
				case "Russian":
					w.push(`and, in keeping with ${his} heritage, an Izhmash AN-94 Abakan assault rifle`);
					break;
				case "Serbian":
					w.push(`and, in keeping with ${his} heritage, a Zastava M21A assault rifle`);
					break;
				case "South African":
					w.push(`and, in keeping with ${his} heritage, a Vektor R4 assault rifle`);
					break;
				case "Spanish":
					w.push(`and, in keeping with ${his} heritage, a CETME Model C battle rifle`);
					break;
				case "Swedish":
					w.push(`and, in keeping with ${his} heritage, a Bofors Ak-5C assault rifle`);
					break;
				case "Swiss":
					w.push(`and, in keeping with ${his} heritage, a SIG SG 550 assault rifle`);
					break;
				case "Thai":
					w.push(`and, in keeping with ${his} heritage, a MND Type 11 assault rifle`);
					break;
				case "Turkish":
					w.push(`and, in keeping with ${his} heritage, a MKEK MPT-76 assault rifle`);
					break;
				case "Ukrainian":
					w.push(`and, in keeping with ${his} heritage, a Fort-227 assault rifle`);
					break;
				case "Vietnamese":
					w.push(`and, in keeping with ${his} heritage, a Z111 AKM assault rifle`);
					break;
				case "Zimbabwean":
					if (slave.race === "white") {
						w.push(`and, in keeping with ${his} heritage, a FN FAL battle rifle`);
					} else {
						w.push(`and a FN F2000 bullpup assault rifle`);
					}
					break;
				default:
					w.push(`and a FN F2000 bullpup assault rifle`);
			}
			w.push(`slung across ${his} chest.`);
		} else if ((slave.muscles + slave.height - 100) / 25 > 3) {
			w.push(`${He} has a straight ceramic sword strapped to ${his} back`);
			switch (slave.nationality) {
				case "American":
					w.push(`and, in keeping with ${his} heritage, a KRISS Vector SMG`);
					break;
				case "Argentinian":
					w.push(`and, in keeping with ${his} heritage, a Halcon ML-63 SMG`);
					break;
				case "Armenian":
				case "Belarusian":
				case "Kazakh":
				case "Uzbek":
					w.push(`and, in keeping with ${his} heritage, a Kalashnikov AKS-74U PDW`);
					break;
				case "Austrian":
					w.push(`and, in keeping with ${his} heritage, a Steyr AUG A3 Para XS bullpup SMG`);
					break;
				case "Belgian":
					w.push(`and, in keeping with ${his} heritage, a FN P90 bullpup PDW`);
					break;
				case "Brazilian":
					w.push(`and, in keeping with ${his} heritage, a Taurus MT40 G2 SMG`);
					break;
				case "British":
				case "Scottish":
					w.push(`and, in keeping with ${his} heritage, an L91A1 SMG`);
					break;
				case "Chilean":
					w.push(`and, in keeping with ${his} heritage, a FAMAE SAF-200 SMG`);
					break;
				case "Chinese":
					w.push(`and, in keeping with ${his} heritage, a Norinco QCQ-05 SMG`);
					break;
				case "Croatian":
					w.push(`and, in keeping with ${his} heritage, a PM Agram 2000 SMG`);
					break;
				case "Filipina":
					w.push(`and, in keeping with ${his} heritage, a Ferfrans SCW7 PDW`);
					break;
				case "German":
					w.push(`and, in keeping with ${his} heritage, an H&K MP7A1 PDW`);
					break;
				case "Indian":
					w.push(`and, in keeping with ${his} heritage, an OFB MSMC SMG`);
					break;
				case "Indonesian":
					w.push(`and, in keeping with ${his} heritage, a Pindad PM1A1 SMG`);
					break;
				case "Iranian":
					w.push(`and, in keeping with ${his} heritage, a DIO MPT-9 Tondar SMG`);
					break;
				case "Israeli":
					w.push(`and, in keeping with ${his} heritage, an IWI Uzi SMG`);
					break;
				case "Italian":
					w.push(`and, in keeping with ${his} heritage, a Beretta MX4 SMG`);
					break;
				case "Korean":
					w.push(`and, in keeping with ${his} heritage, a Daewoo K1A PDW`);
					break;
				case "Mexican":
					w.push(`and, in keeping with ${his} heritage, a Mendoza Cobra SMG`);
					break;
				case "Polish":
					w.push(`and, in keeping with ${his} heritage, a FB PM-06 Glauberyt SMG`);
					break;
				case "Romanian":
					w.push(`and, in keeping with ${his} heritage, a UM Cugir LP7 SMG`);
					break;
				case "Russian":
					w.push(`and, in keeping with ${his} heritage, a KBP PP-90M1 SMG`);
					break;
				case "Serbian":
					w.push(`and, in keeping with ${his} heritage, a Zastava Master FLG SMG`);
					break;
				case "South African":
					w.push(`and, in keeping with ${his} heritage, a Milkor BXP SMG`);
					break;
				case "Spanish":
					w.push(`and, in keeping with ${his} heritage, a Star Z84 SMG`);
					break;
				case "Swedish":
					w.push(`and, in keeping with ${his} heritage, a Carl Gustav m/45 SMG`);
					break;
				case "Swiss":
					w.push(`and, in keeping with ${his} heritage, a SIG MPX SMG`);
					break;
				case "Turkish":
					w.push(`and, in keeping with ${his} heritage, a Sarsilmaz SAR 109 SMG`);
					break;
				case "Ukrainian":
					w.push(`and, in keeping with ${his} heritage, a Fort-224 bullpup SMG`);
					break;
				case "Vietnamese":
					w.push(`and, in keeping with ${his} heritage, a Z111 K-50M LMG`);
					break;
				case "Zimbabwean":
					if (slave.race === "white") {
						w.push(`and, in keeping with ${his} heritage, a Sterling Mk.IV SMG`);
					} else {
						w.push(`and a H&K MP5 SMG`);
					}
					break;
				default:
					w.push(`and a H&K MP5 SMG`);
			}
			w.push(`slung across ${his} chest.`);
		} else {
			w.push(`${He} has a short ceramic sword strapped to ${his} back`);
			switch (slave.nationality) {
				case "American":
					w.push(`and, in keeping with ${his} heritage, a MAC-10 machine pistol`);
					break;
				case "Armenian":
				case "Belarusian":
				case "Cuban":
				case "Kazakh":
				case "Ukrainian":
				case "Uzbek":
					w.push(`and, in keeping with ${his} heritage, a Molot Ordnance Stechkin APS machine pistol`);
					break;
				case "Austrian":
					w.push(`and, in keeping with ${his} heritage, a Steyr TMP machine pistol`);
					break;
				case "Belgian":
					w.push(`and, in keeping with ${his} heritage, a VBR-Belgium PDW machine pistol`);
					break;
				case "Chinese":
					w.push(`and, in keeping with ${his} heritage, a Chongqing Changfeng CF-05 machine pistol`);
					break;
				case "Czech":
				case "Slovak":
					w.push(`and, in keeping with ${his} heritage, a CZUB CZ 75 Automatic machine pistol`);
					break;
				case "German":
					w.push(`and, in keeping with ${his} heritage, a H&K VP70 machine pistol`);
					break;
				case "Hungarian":
					w.push(`and, in keeping with ${his} heritage, a FEG KGP-9 machine pistol`);
					break;
				case "Israeli":
					w.push(`and, in keeping with ${his} heritage, an IWI Uzi Pro machine pistol`);
					break;
				case "Italian":
					w.push(`and, in keeping with ${his} heritage, a Beretta 93R machine pistol`);
					break;
				case "Japanese":
					w.push(`and, in keeping with ${his} heritage, a Minebea PM-9 machine pistol`);
					break;
				case "Mexican":
					w.push(`and, in keeping with ${his} heritage, a Trejo Modelo 2 Especial machine pistol`);
					break;
				case "Peruvian":
					w.push(`and, in keeping with ${his} heritage, a SIMA MGP-87 machine pistol`);
					break;
				case "Polish":
					w.push(`and, in keeping with ${his} heritage, a WITU PMM machine pistol`);
					break;
				case "Romanian":
					w.push(`and, in keeping with ${his} heritage, a UMS Pistolul md.98 Dracula machine pistol`);
					break;
				case "Russian":
					w.push(`and, in keeping with ${his} heritage, a KBP OTs-33 Pernach machine pistol`);
					break;
				case "Swedish":
					w.push(`and, in keeping with ${his} heritage, a Saab Bofors Dynamics CBJ-MS machine pistol`);
					break;
				case "Swiss":
					w.push(`and, in keeping with ${his} heritage, a B+T MP9 machine pistol`);
					break;
				case "Turkish":
					w.push(`and, in keeping with ${his} heritage, a TiSAS Zigana F machine pistol`);
					break;
				default:
					w.push(`and a Glock 18 machine pistol`);
			}
			w.push(`at ${his} side.`);
		}

		return w.join(" ");
	}
};


code:
:: custom Slaves Database

<<set $heroSlaves = []>>
<<set _i = 1000000>>
/*
<<set _HS = App.Entity.SlaveState.makeSkeleton()>>
<<set _HS.slaveName = "McChesterton", _HS.birthName = "Testy", _HS.origin = "$He is obsessed with testing new customizations of $his body.", _HS.ID = _i++, _HS.birthWeek = random(0,51), _HS.actualAge = 24, _HS.physicalAge = 24, _HS.visualAge = 24, _HS.ovaryAge = 24, setHealth(_HS, 20), _HS.devotion = 100, _HS.weight = 25, _HS.origHColor = "chestnut", _HS.pubicHColor = "chestnut", _HS.hLength = 30, _HS.hStyle = "shoulder-length and in a bun", _HS.boobs = 700, _HS.butt = 3, _HS.vagina = 1, _HS.vaginaLube = 1, _HS.anus = 1, _HS.ovaries = 1, _HS.skill.vaginal = 15, _HS.skill.oral = 15, _HS.skill.anal = 15, _HS.skill.entertainment = 1, _HS.clothes = "a nice maid outfit", _HS.intelligence = 20, _HS.intelligenceImplant = 30, _HS.attrXY = 40, _HS.fetish = "submissive", _HS.career = "a maid", _HS.eyewear = "corrective glasses">>
<<run eyeSurgery(_HS, "both", "blur")>>
<<set $heroSlaves.push(_HS)>>

/*To add custom slaves, try to use the format of the above example. Add new slaves below this line. If you wish to add more slaves later, always add them at the bottom of the file. IDs are assigned automatically and in order, and you want your new slave to have a unique ID instead of someone else's*/