code:
:: Random Nonindividual Event [nobr]

<<set $showEncyclopedia = 0>>
<<if $eventSlave == 0>>
  <<set $eventSlave = $slaves.random()>>
  <<if $cheatMode == 1>>
	<<set $nextButton = "Refresh", $nextLink = "Random Nonindividual Event", $returnTo = "Random Nonindividual Event">>
	''Any one of your slaves would have been selected for a random non-individual event:''

	<<for $i = 0; $i < $slaves.length; $i++>>
		<<if $slaves[$i].slaveSurname>>
			<<if $surnameOrder != 1>>
				<<switch $slaves[$i].nationality>>
					<<case "Cambodian" "Chinese" "Hungarian" "Japanese" "Korean" "Mongolian" "Taiwanese" "Vietnamese">>
						<<set _slaveName = $slaves[$i].slaveSurname + " " + $slaves[$i].slaveName>>
					<<default>>
						<<set _slaveName = $slaves[$i].slaveName + " " + $slaves[$i].slaveSurname>>
				<</switch>>
			<<else>>
				<<set _slaveName = $slaves[$i].slaveName + " " + $slaves[$i].slaveSurname>>
			<</if>>
		<<else>>
			<<set _slaveName = $slaves[$i].slaveName>>
		<</if>>

<<print "[[_slaveName|Random Nonindividual Event][$eventSlave = $slaves[" + $i + "]]]">>
	<</for>>

[[Switch to RIE Eligibility Check|RIE Eligibility Check][$activeSlave = 0, $eventSlave = 0]]
  <<else>>
	<<goto "Random Nonindividual Event">>
  <</if>>
<<else>>
<<silently>>
/* initialize event lists as arrays [], not objects {} */
<<set $events = [], $RecETSevent = [], $REFIevent = [], $PESSevent = [], $PETSevent = [], $REFSevent = [], $activeSlave = 0, $groomSlave = 0, $brideSlave = 0, $recruiterSlave = 0>>

<<set $seed = 0>>

<<if $eventSlave.fuckdoll == 0>>

<<if $nicknamesAllowed == 1>>
<<if $eventSlave.assignment != "be confined in the arcade">>
<<set $toSearch = $eventSlave.slaveName.toLowerCase()>>
<<if ($toSearch.indexOf("'") == -1)>>
	<<if ($week-$eventSlave.weekAcquired >= 4)>>
	<<if ($eventSlave.devotion >= -20)>>
	<<set $events.push("RE nickname")>>
	<<set $events.push("RE nickname")>>
	<<set $events.push("RE nickname")>>
	<<set $events.push("RE nickname")>>
	<<set $seed = 1>> /* tells RE nickname to set nextLink to RIE Eligibility Check */
	<<else>>
	<<set $events.push("RE nickname")>>
	<<set $events.push("RE nickname")>>
	<<set $seed = 1>> /* tells RE nickname to set nextLink to RIE Eligibility Check */
	<</if>>
	<</if>>
<</if>> /* closes nickname check */
<</if>>
<</if>> /* closes no nicknames option */

<</if>> /* CLOSES FUCKDOLL CHECK */

<<set $legendaryFacility = 1>>
<<if $legendaryWhoreID != 0>>
	<<set $events.push("RE legendary whore")>>
<</if>>
<<if $legendaryEntertainerID != 0>>
	<<set $events.push("RE legendary entertainer")>>
<</if>>
<<if $legendaryCowID != 0>>
	<<set $events.push("RE legendary cow")>>
<</if>>
<<if $legendaryBallsID != 0>>
	<<set $events.push("RE legendary balls")>>
<</if>>
<<if $legendaryWombID != 0>>
	<<set $events.push("RE legendary womb")>>
<</if>>
<<if $legendaryAbolitionistID != 0>>
<<set $events.push("RE former abolitionist")>>
<</if>>

<<if $shelterAbuse <= 5>>
<<if $shelterGirlsIDs.length > 0>>
<<set $events.push("RE shelter inspection")>>
<</if>>
<</if>>

/* Relationship Events */

<<if $familyTesting == 0>>

<<set _relatedSlaves = $slaves.filter(function(s) { return s.relation != 0; })>>

<<set _devMothers = _relatedSlaves.filter(function(s) { return s.relation == "mother" && s.devotion > 50 && s.anus != 0 && s.relationshipTarget != s.relationTarget && canWalk(s); })>>
<<for _devMothers.length > 0>>
	<<set $devMother = _devMothers.pluck()>>
	<<set $devDaughter = getSlave($devMother.relationTarget)>>
	<<if (def $devDaughter) && $devDaughter.devotion > 50 && $devDaughter.anus != 0 && canWalk($devDaughter)>>
		<<set $events.push("RE devoted mother daughter")>>
		<<set $devMother = $devMother.ID>>
		<<set $devDaughter = $devDaughter.ID>>
		<<break>>
	<</if>>
<</for>>

<<set _resMothers = _relatedSlaves.filter(function(s) { return s.relation == "mother" && s.devotion < 10 && s.anus != 0 && s.relationshipTarget != s.relationTarget && canWalk(s); })>>
<<for _resMothers.length > 0>>
	<<set $mother = _resMothers.pluck()>>
	<<set $daughter = getSlave($mother.relationTarget)>>
	<<if (def $daughter) && $daughter.devotion < 10 && $daughter.anus != 0 && canWalk($daughter)>>
		<<set $events.push("RE resistant mother daughter")>>
		<<set $mother = $mother.ID>>
		<<set $daughter = $daughter.ID>>
		<<break>>
	<</if>>
<</for>>

<<set _youngerSisters = _relatedSlaves.filter(function(s) { return s.relation == "sister" && canPenetrate(s); })>>
<<for _youngerSisters.length > 0>>
	<<set $youngerSister = _youngerSisters.pluck()>>
	<<set $olderSister = getSlave($youngerSister.relationTarget)>>
	<<if (def $olderSister) && $olderSister.anus == 0 && $youngerSister.devotion > ($olderSister.devotion+20)>>
		<<set $events.push("RE sibling revenge")>>
		<<set $youngerSister = $youngerSister.ID>>
		<<set $olderSister = $olderSister.ID>>
		<<break>>
	<</if>>
<</for>>

<<set _twins = _relatedSlaves.filter(function(s) { return s.relation == "twin" && s.anus > 0 && s.devotion > 50 && canWalk(s); })>>
<<for _twins.length > 0>>
	<<set $alphaTwin = _twins.pluck()>>
	<<set $betaTwin = getSlave($alphaTwin.relationTarget)>>
	<<if (def $betaTwin) && $betaTwin.anus > 0 && $betaTwin.devotion > 50 && canWalk($betaTwin)>>
		<<set $events.push("RE devoted twins")>>
		<<set $alphaTwin = $alphaTwin.ID>>
		<<set $betaTwin = $betaTwin.ID>>
		<<break>>
	<</if>>
<</for>>

<<else>> /* $familyTesting == 1 */

<<set _relatedSlaves = $slaves.filter(function(s) { return s.daughters > 0 || s.sisters > 0; })>>

<<set _devMothers = _relatedSlaves.filter(function(s) { return s.daughters > 0 && s.devotion > 50 && s.anus != 0 && canWalk(s); })>>
<<for _devMothers.length > 0>>
	<<set $devMother = _devMothers.pluck()>>
	<<set $devDaughter = randomDaughter($devMother)>>
	<<if (def $devDaughter) && ($devDaughter.devotion > 50) && ($devDaughter.anus != 0) && canWalk($devDaughter)>>
		<<set $events.push("RE devoted mother daughter")>>
		<<set $devMother = $devMother.ID>>
		<<set $devDaughter = $devDaughter.ID>>
		<<break>>
	<</if>>
<</for>>

<<set _resMothers = _relatedSlaves.filter(function(s) { return s.daughters > 0 && s.devotion < 10 && s.anus != 0 && canWalk(s); })>>
<<for _resMothers.length > 0>>
	<<set $mother = _resMothers.pluck()>>
	<<set $daughter = randomDaughter($mother)>>
	<<if (def $daughter) && ($daughter.devotion < 10) && ($daughter.anus != 0) && canWalk($daughter)>>
		<<set $events.push("RE resistant mother daughter")>>
		<<set $mother = $mother.ID>>
		<<set $daughter = $daughter.ID>>
		<<break>>
	<</if>>
<</for>>

<<set _youngerSisters = _relatedSlaves.filter(function(s) { return s.sisters > 0 && canPenetrate(s); })>>
<<for _youngerSisters.length > 0>>
	<<set $youngerSister = _youngerSisters.pluck()>>
	<<set $olderSister = randomSister($youngerSister)>>
	<<if (def $olderSister) && ($olderSister.anus == 0) && $youngerSister.devotion > ($olderSister.devotion+20)>>
		<<set $events.push("RE sibling revenge")>>
		<<set $youngerSister = $youngerSister.ID>>
		<<set $olderSister = $olderSister.ID>>
		<<break>>
	<</if>>
<</for>>

<<set _twins = _relatedSlaves.filter(function(s) { return s.sisters > 0 && s.anus > 0 && s.devotion > 50 && canWalk(s); })>>
<<for _twins.length > 0>>
	<<set $alphaTwin = _twins.pluck()>>
	<<set $betaTwin = randomTwinSister($alphaTwin)>>
	<<if (def $betaTwin) && ($betaTwin.anus > 0) && ($betaTwin.devotion > 50) && canWalk($betaTwin)>>
		<<set $events.push("RE devoted twins")>>
		<<set $alphaTwin = $alphaTwin.ID>>
		<<set $betaTwin = $betaTwin.ID>>
		<<break>>
	<</if>>
<</for>>

<</if>> /* closes extended family mode */

/* Fetish Interest Events */

<<set $buttslutID = 0, $cumslutID = 0, $humiliationID = 0, $subID = 0, $pregnancyID = 0, $masochistID = 0, $boobsID = 0>>

<<for $i = 0; $i < $slaves.length; $i++>>
	<<if ($slaves[$i].fetishKnown == 1) && ($slaves[$i].fetishStrength > 95) && isSlaveAvailable($slaves[$i])>>
		<<if ($slaves[$i].fetish == "buttslut")>>
			<<if $buttslutID == 0>>
				<<if $slaves[$i].anus > 0 && canDoAnal($slaves[$i])>>
					<<set $buttslutID = $slaves[$i].ID>>
				<</if>>
			<</if>>
		<<elseif ($slaves[$i].fetish == "cumslut")>>
			<<if ($cumslutID == 0)>>
				<<if !["dildo gag", "massive dildo gag", "ball gag", "bit gag"].includes($slaves[$i].collar)>>
					<<set $cumslutID = $slaves[$i].ID>>
				<</if>>
			<</if>>
		<<elseif ($slaves[$i].fetish == "submissive")>>
			<<if ($subID == 0)>>
				<<if (($slaves[$i].anus > 0 && canDoAnal($slaves[$i])) || ($slaves[$i].vagina > 0 && canDoVaginal($slaves[$i])) && $slaves[$i].belly < 30000)>>
					<<set $subID = $slaves[$i].ID>>
				<</if>>
			<</if>>
		<<elseif ($slaves[$i].fetish == "humiliation")>>
			<<if (($slaves[$i].anus > 0 && canDoAnal($slaves[$i])) || ($slaves[$i].vagina > 0 && canDoVaginal($slaves[$i])) && $slaves[$i].belly < 30000)>>
				<<if ($humiliationID == 0)>>
					<<set $humiliationID = $slaves[$i].ID>>
				<</if>>
			<</if>>
		<<elseif ($slaves[$i].fetish == "boobs")>>
			<<if ($slaves[$i].lactation > 0)>>
				<<if ($boobsID == 0)>>
					<<set $boobsID = $slaves[$i].ID>>
				<</if>>
			<</if>>
		<<elseif ($slaves[$i].fetish == "pregnancy")>>
			<<if ($pregnancyID == 0)>>
				<<if ($slaves[$i].bellyPreg >= 5000)>>
					<<set $pregnancyID = $slaves[$i].ID>>
				<</if>>
			<</if>>
		<<elseif ($slaves[$i].fetish == "masochist")>>
			<<if ($masochistID == 0)>>
				<<if ($slaves[$i].anus > 0 && canDoAnal($slaves[$i])) || ($slaves[$i].vagina > 0 && canDoVaginal($slaves[$i]))>>
					<<set $masochistID = $slaves[$i].ID>>
				<</if>>
			<</if>>
		<</if>>
	<</if>>
<</for>>

<<set $buttslutInterestTargetID = 0, $cumslutInterestTargetID = 0, $submissiveInterestTargetID = 0, $humiliationInterestTargetID = 0, $boobsInterestTargetID = 0, $pregnancyInterestTargetID = 0, $masochistInterestTargetID = 0>>

<<for $i = 0; $i < $slaves.length; $i++>>
<<if ($slaves[$i].speechRules != "restrictive")>>
	<<if isSlaveAvailable($slaves[$i])>>
		<<if ($slaves[$i].fetish == "none") || ($slaves[$i].fetishStrength <= 60)>>
			<<if ($buttslutID != 0) && ($buttslutInterestTargetID == 0)>>
				<<set $REFIevent.push("buttslut")>>
				<<set $buttslutInterestTargetID = $slaves[$i].ID>>
			<</if>>
			<<if ($cumslutID != 0) && ($cumslutInterestTargetID == 0)>>
				<<if $PC.dick == 1>>
					<<set $REFIevent.push("cumslut")>>
				<</if>>
				<<set $cumslutInterestTargetID = $slaves[$i].ID>>
			<</if>>
			<<if ($subID != 0) && ($submissiveInterestTargetID == 0)>>
				<<set $REFIevent.push("submissive")>>
				<<set $submissiveInterestTargetID = $slaves[$i].ID>>
			<</if>>
			<<if ($humiliationID != 0) && ($humiliationInterestTargetID == 0)>>
				<<set $REFIevent.push("humiliation")>>
				<<set $humiliationInterestTargetID = $slaves[$i].ID>>
			<</if>>
			<<if ($boobsID != 0) && ($boobsInterestTargetID == 0)>>
				<<set $REFIevent.push("boobs")>>
				<<set $boobsInterestTargetID = $slaves[$i].ID>>
			<</if>>
			<<if ($pregnancyID != 0) && ($pregnancyInterestTargetID == 0)>>
				<<set $REFIevent.push("pregnancy")>>
				<<set $pregnancyInterestTargetID = $slaves[$i].ID>>
			<</if>>
			<<if ($masochistID != 0) && ($masochistInterestTargetID == 0)>>
				<<set $REFIevent.push("masochist")>>
				<<set $masochistInterestTargetID = $slaves[$i].ID>>
			<</if>>
		<</if>>
	<</if>>
<</if>>
<</for>>

/* Multislave Events */

<<set $devotedSlaves = $slaves.filter(function(s) { return s.devotion > 50 && canWalk(s) && s.assignment != "be your agent" && s.assignment != "live with your agent"; })>>
<<if def $devotedSlaves[3]>>
	<<set $devotedSlaves = $devotedSlaves.shuffle()>>
	<<set $devotedSlaves.length = 4>>
	<<set $devotedSlaves[0] = $devotedSlaves[0].ID>>
	<<set $devotedSlaves[1] = $devotedSlaves[1].ID>>
	<<set $devotedSlaves[2] = $devotedSlaves[2].ID>>
	<<set $devotedSlaves[3] = $devotedSlaves[3].ID>>
	<<set $events.push("RE devotees")>>
<</if>>

<<if $fuckSlaves > 1>>
	<<set $bedSlaves = $slaves.filter(function(s) { return s.devotion > 50 && (s.assignment == "please you" || s.assignment == "serve in the master suite" || s.assignment == "be your Concubine") && s.amp != 1 && canDoAnal(s); })>>
	<<if def $bedSlaves[1]>>
		<<set $bedSlaves = $bedSlaves.shuffle()>>
		<<set $bedSlaves.length = 2>>
		<<set $bedSlaves[0] = $bedSlaves[0].ID>>
		<<set $bedSlaves[1] = $bedSlaves[1].ID>>
		<<set $events.push("RE full bed")>>
	<</if>>
<</if>>
<<if $fuckSlaves > 3>>
	<<set $events.push("RE staffed morning")>>
<</if>>

<<if $dairyRestraintsSetting >= 2>>
	<<set $rebelSlaves = $slaves.filter(function(s) { return s.devotion < -20 && s.assignment != "be confined in the arcade" && canWalk(s) && s.assignment != "work in the dairy"; })>>
<<else>>
	<<set $rebelSlaves = $slaves.filter(function(s) { return s.devotion < -20 && s.assignment != "be confined in the arcade" && canWalk(s); })>>
<</if>>
<<if $rebelSlaves.length > 1>>
	<<set $rebelSlaves = $rebelSlaves.shuffle()>>
	<<set $rebelSlaves.length = 2>>
	<<set $rebelSlaves[0] = $rebelSlaves[0].ID>>
	<<set $rebelSlaves[1] = $rebelSlaves[1].ID>>
	<<set $events.push("RE rebels")>>
<</if>>

<<if $brothelSlaves > 3>>
	<<set $events.push("RE busy brothel")>>
<</if>>
<<if $brothelSlaves > 5>>
	<<set $events.push("RE brothel function")>>
<</if>>
<<if $clubSlaves > 3>>
	<<set $events.push("RE busy club")>>
<</if>>
<<if $dairySlaves > 3>>
<<if $dairyRestraintsSetting < 2>>
	<<set $events.push("RE busy dairy")>>
<</if>>
<</if>>
<<if $servantsQuartersSlaves > 3>>
	<<set $events.push("RE busy servants quarters")>>
<</if>>
<<if $arcadeSlaves > 3>>
	<<set $events.push("RE busy arcade")>>
<</if>>
<<if $masterSuiteSlaves > 3>>
	<<if $Concubine != 0>>
	<<set $events.push("RE busy master suite")>>
	<</if>>
<</if>>

/* Position Events */

<<if ($HeadGirl != 0)>>

	<<if ($Concubine != 0)>>
	<<if $fuckSlaves > 1>>
	<<if canTalk($Concubine)>>
	<<if canSee($Concubine)>>
	<<if canWalk($Concubine)>>
		<<set $events.push("PE headgirl concubine")>>
	<</if>>
	<</if>>
	<</if>>
	<</if>>
	<</if>>

	<<set $j = $slaves.findIndex(function(s) { return s.ID != $HeadGirl.ID && s.devotion < 20; })>>

	<<if canPenetrate($HeadGirl) && ($HeadGirl.balls > 0)>>
		<<if $j != -1>>
			<<set $PESSevent.push("headgirl dickgirl")>> /* requires valid $slaves[$j] */
		<</if>>

		<<if ($universalRulesImpregnation == "HG")>>
		<<if ($HeadGirl.devotion > 95)>>
			<<set $PESSevent.push("worshipful impregnatrix")>> /* does not use $j */
		<</if>>
		<</if>>
	<</if>>

	<<if ($HeadGirl.devotion > 95)>>
		<<if ($slaves.length > 4)>>
			<<set $PESSevent.push("loving headgirl")>> /* uses $j if valid, but not required */
		<</if>>
		<<if ($week > 20)>>
		<<if ($HeadGirl.trust > 95)>>
		<<if ($HeadGirl.intelligence > 1)>>
			<<set $PESSevent.push("worried headgirl")>> /* does not use $j */
		<</if>>
		<</if>>
		<</if>>
	<</if>>

<</if>>

<<if ($Bodyguard != 0)>>

	/*<<set $events.push("PE pit fight invite")>>*/

	<<if ($Bodyguard.combatSkill != 0)>>
		<<set $PESSevent.push("bodyguard bedtime")>>
	<</if>>

	<<if ($Bodyguard.devotion > 45)>>
		<<set $PESSevent.push("bodyguard beatdown")>>
	<</if>>

	<<if ($Bodyguard.relationship == 0)>>
	<<if ($Bodyguard.relationshipRules == "permissive")>>
	<<if ($Bodyguard.fetish != "mindbroken")>>
		<<set $j = $slaves.findIndex(function(s) { return s.ID != $Bodyguard.ID && s.relationship == 0 && s.devotion > -20; })>>
		<<if $j != -1>>
			<<set $events.push("PE lonely bodyguard")>> /* requires valid $slaves[$j] */
		<</if>>
	<</if>>
	<</if>>
	<</if>>

	<<if ($Bodyguard.combatSkill == 0)>>
		<<set $events.push("PE combat training")>>
		<<set $events.push("PE combat training")>>
		<<set $events.push("PE combat training")>>
	<</if>>

<</if>>

<<if ($Milkmaid != 0) && ($dairySlaves >= 5) && ($Milkmaid.health >= 70)>>
	<<if ($Milkmaid.muscles > 5)>>
		<<set $PESSevent.push("tired milkmaid")>>
	<</if>>
	<<if canAchieveErection($Milkmaid)>>
		<<set $PESSevent.push("tired collectrix")>>
	<</if>>
<</if>>

<<if ($Stewardess != 0) && ($servantsQuartersSlaves > 0) && ($Stewardess.actualAge >= 35 || $AgePenalty == 0)>>
	<<set $PETSevent.push("stewardess beating")>>
<</if>>

<<if ($Madam != 0) && ($brothelSlaves >= 5) && ($Madam.actualAge >= 35 || $AgePenalty == 0) && ($Madam.whoreSkill >= 100)>>
	<<set $PESSevent.push("madam strategy")>>
<</if>>

<<if ($DJ != 0) && ($clubSlaves >= 5) && ($DJ.face > 95) && ($DJ.entertainSkill >= 100)>>
	<<set $PESSevent.push("DJ publicity")>>
<</if>>

<<if ($Schoolteacher != 0) && ($schoolroomSlaves > 0) && ($Schoolteacher.intelligence >= 1) && ($Schoolteacher.actualAge >= 35)>>
	<<set $PETSevent.push("aggressive schoolteacher")>>
<</if>>

<<if ($Wardeness != 0) && ($cellblockSlaves > 0) && canTalk($Wardeness)>>
	<<set $PETSevent.push("abusive wardeness")>>
<</if>>

<<if ($Attendant != 0) && ($spaSlaves > 0) && canTalk($Attendant)>>
	<<set $PETSevent.push("comforting attendant")>>

<</if>>

<<if ($Nurse != 0) && ($clinicSlaves > 0) && ($Nurse.energy > 95) || (($Nurse.fetishStrength > 60) && ($Nurse.fetish == "sadist" || $Nurse.fetish == "dom"))>>
	<<set $subSlave = $slaves.find(function(s) { return s.anus != 0 && s.assignment == "get treatment in the clinic"; })>>
	<<if (def $subSlave)>>
		<<set $PETSevent.push("nurse molestation")>>
	<</if>>
<</if>>

<<if ($Concubine != 0)>>
	<<if canWalk($Concubine)>>
	<<if canSee($Concubine)>>
	<<set $PESSevent.push("loving concubine")>>
	<</if>>
	<<if canTalk($Concubine)>>
		<<set $events.push("PE concubine interview")>>
	<</if>>
	<</if>>
<</if>>

/* Acquisition Events */

<<set $events.push("RE recruit")>>
<<if random(1,100) < $rep/200>>
	<<set $events.push("RE recruit")>>
<</if>>
<<if $ProRecruitment == 1>>
<<if random(1,100) < $rep/200>>
	<<set $events.push("RE recruit")>>
<</if>>
<</if>>
<<if $AntiEnslavementRep == 0>>
<<if random(1,100) < $rep/300>>
	<<set $events.push("RE recruit")>>
<</if>>
<</if>>
<<if $AntiEnslavementCash == 0>>
<<if random(1,100) < $rep/300>>
	<<set $events.push("RE recruit")>>
<</if>>
<</if>>
<<set $recruit = []>>

<<if $boomerangSlave>>
<<if $boomerangWeeks > 5>>
	<<set $events.push("RE boomerang")>>
	<<if $boomerangWeeks > 10>><<set $events.push("RE boomerang")>><</if>>
<</if>>
<</if>>

<<if $seeDicks != 100>> /*XX ACQUISITIONS*/

<<set $recruit.push("repo milf housekeeper")>>
<<set $recruit.push("spoiled daughter")>>
<<set $recruit.push("desperate university milf")>>
<<set $recruit.push("female debtor")>>
<<set $recruit.push("desperate milf")>>
<<if $seePreg != 0>>
	<<if $arcologies[0].FSRestart == "unset">>
		<<set $recruit.push("desperate preg")>>
	<</if>>
	<<if random(1,1000) < 5>>
		<<set $recruit.push("wandering homeless")>>
	<</if>>
	<<if $PC.medicine >= 50>>
		<<set $recruit.push("desperate birth")>>
	<</if>>
	<<set $recruit.push("blind homeless")>>
	<<set $recruit.push("farm cow")>>
	<<if ($mercenaries >= 5)>>
		<<set $recruit.push("female runaway")>>
	<</if>>
	<<if $seeHyperPreg == 1>>
		<<if $cheatMode == 1>>
			<<set $recruit.push("overwhelmed farmgirl")>>
		<</if>>
		<<set $recruit.push("blessed vessel")>>
	<</if>>
	<<if $PC.medicine > 50 && $PC.hacking > 75 && random(0,100) > 75>>
		<<set $recruit.push("embryo appropriation")>>
	<</if>>
	<<set $recruit.push("blessed virgin")>>
<</if>>
<<set $recruit.push("female SD")>>
<<set $recruit.push("female SD 2")>>
<<set $recruit.push("female SE")>>
<<set $recruit.push("CCS angel")>>
<<set $recruit.push("CCS DA")>>
<<set $recruit.push("racer loser")>>
<<set $recruit.push("racer winner")>>
<<set $recruit.push("repo housekeeper")>>
<<set $recruit.push("repo nanny")>>
<<set $recruit.push("farm virgin cow")>>
<<set $recruit.push("orphan rebellious female")>>
<<set $recruit.push("captured teen")>>
<<if ($cash > 20000)>>
	<<set $recruit.push("school sale")>>
<</if>>
<<if ($HeadGirl.devotion > 50) && ($HeadGirl.entertainSkill >= 100)>>
	<<set $recruit.push("female recruit")>>
<</if>>
<<if ($HeadGirl.devotion > 50) && ($HeadGirl.whoreSkill >= 100)>>
	<<set $recruit.push("whore recruit")>>
<</if>>
<<if $PC.hacking >= 50 && random(0,100) < $PC.hacking>>
	<<set $recruit.push("held POW")>>
<</if>>
<<if($pedo_mode == 1 || $minimumSlaveAge <= 13) && $PC.hacking >= 100 && random(0,100) > 95 && $cash >= 100000>>
	<<set $recruit.push("rogue cyborg")>>
<</if>>
<<if $arcologyUpgrade.drones == 1>>
	<<set $events.push("RE malefactor")>>
	<<set $malefactor = ["liberator", "whore", "businesswoman", "addict"]>>
	<<if $seePreg != 0>>
		<<set $malefactor.push("anchorBaby")>>
	<</if>>
	<<if $seeDicks != 0>>
		<<set $malefactor.push("rapist")>>
	<</if>>
	<<if $minimumSlaveAge <= 12>>
		<<set $malefactor.push("orphanloli")>>
	<</if>>
	<<if $arcologies[0].FSPaternalist < 50>>
		<<set $malefactor.push("escapee")>>
	<</if>>
	<<set $malefactor = $malefactor.random()>>
	<<if ($rep/150) > random(1,100)>>
		<<set $events.push("RE malefactor")>>
	<</if>>
<</if>>

<</if>>

<<if $seeDicks != 0>> /*XY ACQUISITIONS*/

<<set $recruit.push("male debtor")>>
<<set $recruit.push("tg addict")>>
<<set $recruit.push("male SD")>>
<<set $recruit.push("MTF SE")>>
<<set $recruit.push("DG SE")>>
<<set $recruit.push("gang leader")>>
<<set $recruit.push("racer DG chaser")>>
<<set $recruit.push("farm bull")>>
<<set $recruit.push("orphan femboy")>>
<<if ($mercenaries >= 5)>>
	<<set $recruit.push("DG runaway")>>
	<<if $seePreg != 0>>
		<<set $recruit.push("herm runaway")>>
	<</if>>
<</if>>
<<if ($cash > 20000)>>
	<<set $recruit.push("school trap")>>
<</if>>
<<if ($HeadGirl.devotion > 50) && ($HeadGirl.dick > 0)>>
	<<set $recruit.push("male recruit")>>
<</if>>
<<if $seeDicks != 100>>
	<<if ($HeadGirl.devotion > 50)>>
		<<set $RecETSevent.push("mismatched pair")>>
	<</if>>
	<<if ($rep/400) > random(1,100)>>
		<<set $RecETSevent.push("matched pair")>>
	<</if>>
	<<if $seePreg != 0>>
		<<if ($rep/400) > random(1,100) && $arcologies[0].FSRestart == "unset">>
			<<set $RecETSevent.push("identical herm pair")>>
		<</if>>
		<<if ($rep/400) > random(1,100) && $arcologies[0].FSRestart == "unset">>
			<<set $RecETSevent.push("incest mother son")>>
		<</if>>
		<<if ($rep/400) > random(1,100) && $arcologies[0].FSRestart == "unset">>
			<<set $RecETSevent.push("incest father daughter")>>
		<</if>>
		<<if ($rep/400) > random(1,100)>>
			<<set $RecETSevent.push("incest brother sister")>>
		<</if>>
	<</if>>
	<<if ($rep/400) > random(1,100)>>
		<<set $RecETSevent.push("incest twins mixed")>>
	<</if>>
	<<if ($rep/400) > random(1,100)>>
		<<set $RecETSevent.push("identical pair")>>
	<</if>>
	<<if ($rep/400) > random(1,100)>>
		<<set $RecETSevent.push("posh mother daughter")>>
	<</if>>
	<<if ($rep/400) > random(1,100)>>
		<<set $RecETSevent.push("incest sister sister")>>
	<</if>>
	<<if ($rep/400) > random(1,100)>>
		<<set $RecETSevent.push("incest twin sister")>>
	<</if>>
	<<if ($rep/400) > random(1,100)>>
		<<set $RecETSevent.push("incest mother daughter")>>
	<</if>>
<</if>>
<<if ($rep/400) > random(1,100)>>
	<<set $RecETSevent.push("incest brother brother")>>
<</if>>
<<if ($rep/400) > random(1,100)>>
	<<set $RecETSevent.push("incest twin brother")>>
<</if>>
<<if ($rep/400) > random(1,100)>>
	<<set $RecETSevent.push("incest father son")>>
<</if>>

<<else>> /*XX ACQUISITIONS*/

<<if ($rep/400) > random(1,100)>>
	<<set $RecETSevent.push("identical pair")>>
<</if>>
<<if ($rep/400) > random(1,100)>>
	<<set $RecETSevent.push("posh mother daughter")>>
<</if>>
<<if ($rep/400) > random(1,100)>>
	<<set $RecETSevent.push("incest sister sister")>>
<</if>>
<<if ($rep/400) > random(1,100)>>
	<<set $RecETSevent.push("incest twin sister")>>
<</if>>
<<if ($rep/400) > random(1,100)>>
	<<set $RecETSevent.push("incest mother daughter")>>
<</if>>

<</if>>

<<set $recruit.push("starving artist")>>
<<if ($rep/400) > random(1,100)>>
	<<set $RecETSevent.push("addict mother daughter")>>
<</if>>
<<if $seeHyperPreg == 1 && $seePreg != 0 && $arcologies[0].FSRestart == "unset" && random(1,100) <= 5>>
	<<set $RecETSevent.push("desperate broodmother")>>
<</if>>
<<if ($rep/250) > random(1,100)>>
	<<set $recruit.push("immigrant")>>
<</if>>

<<if ($PC.dick == 1) && ($PC.vagina == 0) && ($PC.boobs == 0) && ($PC.title == 1)>>
	<<if ($rep/250) > random(1,100)>>
	<<set $recruit.push("handsome PC")>>
	<<set $recruit.push("handsome PC")>>
	<</if>>
<<elseif ($PC.dick == 0) && ($PC.boobs == 1) && ($PC.title == 0)>>
	<<if ($rep/250) > random(1,100)>>
	<<set $recruit.push("womanly PC")>>
	<<set $recruit.push("womanly PC")>>
	<</if>>
<<elseif ($PC.dick == 1) && ($PC.boobs == 1)>>
	<<if ($rep/250) > random(1,100)>>
	<<set $recruit.push("shemale PC")>>
	<<set $recruit.push("shemale PC")>>
	<</if>>
<</if>>

<<if $familyTesting == 1>>

<<set _recruiterSlaves = $slaves.filter(function(s) { return s.fuckdoll == 0 && s.canRecruit == 1 && s.devotion > 50 && canWalk(s); })>>
<<for _recruiterSlaves.length > 0>>
	<<set $recruiterSlave = _recruiterSlaves.pluck()>>
	<<if random(1,100) > 90+(totalRelatives($recruiterSlave)*2)>>
		<<set $j = $genePool.findIndex(function(o) { return o.ID == $recruiterSlave.ID; })>>
		<<if $j != -1>>
			<<set $events.push("RE relative recruiter")>>
			<<set $recruiterSlave = $recruiterSlave.ID>>
			<<break>>
		<<else>> /* no matching slave object in the slavesOriginal array */
			<<set $i = $slaveIndices[$recruiterSlave.ID]>>
			<<set $slaves[$i].canRecruit = 0>>
			<<set $recruiterSlave = -1>>
		<</if>>
	<</if>>
<</for>>

<<else>> /* extended family mode == 0 */

<<set _recruiterSlaves = $slaves.filter(function(s) { return s.recruiter != 0 && s.fuckdoll == 0 && s.devotion > 50 && s.relation == 0 && canWalk(s); })>>
<<for _recruiterSlaves.length > 0>>
	<<set $recruiterSlave = _recruiterSlaves.pluck()>>
	<<set $j = $genePool.findIndex(function(o) { return o.ID == $recruiterSlave.ID; })>>
	<<if $j != -1>>
		<<set $events.push("RE relative recruiter")>>
		<<set $recruiterSlave = $recruiterSlave.ID>>
		<<break>>
	<<else>> /* no matching slave object in the slavesOriginal array -- bug? */
		<<set $i = $slaveIndices[$recruiterSlave.ID]>>
		<<set $slaves[$i].canRecruit = 0>>
		<<set $recruiterSlave = -1>>
	<</if>>
<</for>>

<</if>> /* closes extended family mode */

<<if $FSAnnounced == 1>>
	<<set $FSAcquisitionEvents = []>>
	<<if $arcologies[0].FSSupremacist > random(1,100)>>
		<<set $FSAcquisitionEvents.push("Supremacist")>>
		<<set $events.push("RE FS acquisition")>>
	<</if>>
	<<if $arcologies[0].FSSubjugationist > random(1,100)>>
		<<set $FSAcquisitionEvents.push("Subjugationist")>>
		<<set $events.push("RE FS acquisition")>>
	<</if>>
	<<if $arcologies[0].FSGenderRadicalist > random(1,100)>>
		<<set $FSAcquisitionEvents.push("Gender Radicalist")>>
		<<set $events.push("RE FS acquisition")>>
	<</if>>
	<<if $arcologies[0].FSRepopulationFocus > random(1,100)>>
		<<set $FSAcquisitionEvents.push("Repopulation Efforts")>>
		<<set $events.push("RE FS acquisition")>>
	<</if>>
	<<if $arcologies[0].FSRestart > random(1,100)>>
		<<set $FSAcquisitionEvents.push("Eugenics")>>
		<<set $events.push("RE FS acquisition")>>
	<</if>>
	<<if $seePreg != 0>>
	<<if $arcologies[0].FSGenderFundamentalist > random(1,100)>>
		<<set $FSAcquisitionEvents.push("Gender Fundamentalist")>>
		<<set $events.push("RE FS acquisition")>>
	<</if>>
	<</if>>
	<<if $arcologies[0].FSPaternalist > random(1,100)>>
		<<set $FSAcquisitionEvents.push("Paternalist")>>
		<<set $events.push("RE FS acquisition")>>
	<</if>>
	<<if $arcologies[0].FSDegradationist > random(1,100)>>
		<<set $FSAcquisitionEvents.push("Degradationist")>>
		<<set $events.push("RE FS acquisition")>>
	<</if>>
	<<if $arcologies[0].FSBodyPurist > random(1,100)>>
		<<set $FSAcquisitionEvents.push("Body Purist")>>
		<<set $events.push("RE FS acquisition")>>
	<</if>>
	<<if $arcologies[0].FSTransformationFetishist > random(1,100)>>
		<<set $FSAcquisitionEvents.push("Transformation Fetishist")>>
		<<set $events.push("RE FS acquisition")>>
	<</if>>
	<<if $arcologies[0].FSYouthPreferentialist > random(1,100)>>
		<<set $FSAcquisitionEvents.push("Youth Preferentialist")>>
		<<set $events.push("RE FS acquisition")>>
	<</if>>
	<<if $arcologies[0].FSMaturityPreferentialist > random(1,100)>>
		<<set $FSAcquisitionEvents.push("Maturity Preferentialist")>>
		<<set $events.push("RE FS acquisition")>>
	<</if>>
	<<if $arcologies[0].FSSlimnessEnthusiast > random(1,100)>>
		<<set $FSAcquisitionEvents.push("Slimness Enthusiast")>>
		<<set $events.push("RE FS acquisition")>>
	<</if>>
	<<if $arcologies[0].FSAssetExpansionist > random(1,100)>>
		<<set $FSAcquisitionEvents.push("Asset Expansionist")>>
		<<set $events.push("RE FS acquisition")>>
	<</if>>
	<<if $seePreg != 0>>
	<<if $arcologies[0].FSPastoralist > random(1,100)>>
		<<set $FSAcquisitionEvents.push("Pastoralist")>>
		<<set $events.push("RE FS acquisition")>>
	<</if>>
	<</if>>
	<<if $arcologies[0].FSPhysicalIdealist > random(1,100)>>
		<<set $FSAcquisitionEvents.push("Physical Idealist")>>
		<<set $events.push("RE FS acquisition")>>
	<</if>>
	<<if $arcologies[0].FSHedonisticDecadence > random(1,100)>>
		<<set $FSAcquisitionEvents.push("Hedonistic Decadence")>>
		<<set $events.push("RE FS acquisition")>>
	<</if>>
	<<if $arcologies[0].FSChattelReligionist > random(1,100)>>
		<<set $FSAcquisitionEvents.push("Chattel Religionist")>>
		<<set $events.push("RE FS acquisition")>>
	<</if>>
	<<if $arcologies[0].FSSupremacist > random(1,100)>>
		<<set $FSAcquisitionEvents.push("Supremacist Two")>>
		<<set $events.push("RE FS acquisition")>>
	<</if>>
	<<if $arcologies[0].FSSubjugationist > random(1,100)>>
		<<set $FSAcquisitionEvents.push("Subjugationist Two")>>
		<<set $events.push("RE FS acquisition")>>
	<</if>>
	<<if $arcologies[0].FSGenderRadicalist > random(1,100)>>
		<<set $FSAcquisitionEvents.push("Gender Radicalist Two")>>
		<<set $events.push("RE FS acquisition")>>
	<</if>>
	<<if $seePreg != 0>>
	<<if $arcologies[0].FSGenderFundamentalist > random(1,100)>>
		<<set $FSAcquisitionEvents.push("Gender Fundamentalist Two")>>
		<<set $events.push("RE FS acquisition")>>
	<</if>>
	<</if>>
	<<if $arcologies[0].FSPaternalist > random(1,100)>>
		<<set $FSAcquisitionEvents.push("Paternalist Two")>>
		<<set $events.push("RE FS acquisition")>>
	<</if>>
	<<if $arcologies[0].FSDegradationist > random(1,100)>>
		<<set $FSAcquisitionEvents.push("Degradationist Two")>>
		<<set $events.push("RE FS acquisition")>>
	<</if>>
	<<if $arcologies[0].FSBodyPurist > random(1,100)>>
		<<set $FSAcquisitionEvents.push("Body Purist Two")>>
		<<set $events.push("RE FS acquisition")>>
	<</if>>
	<<if $arcologies[0].FSTransformationFetishist > random(1,100)>>
		<<set $FSAcquisitionEvents.push("Transformation Fetishist Two")>>
		<<set $events.push("RE FS acquisition")>>
	<</if>>
	<<if $arcologies[0].FSYouthPreferentialist > random(1,100)>>
		<<set $FSAcquisitionEvents.push("Youth Preferentialist Two")>>
		<<set $events.push("RE FS acquisition")>>
	<</if>>
	<<if $arcologies[0].FSMaturityPreferentialist > random(1,100)>>
		<<set $FSAcquisitionEvents.push("Maturity Preferentialist Two")>>
		<<set $events.push("RE FS acquisition")>>
	<</if>>
	<<if $arcologies[0].FSSlimnessEnthusiast > random(1,100)>>
		<<set $FSAcquisitionEvents.push("Slimness Enthusiast Two")>>
		<<set $events.push("RE FS acquisition")>>
	<</if>>
	<<if $arcologies[0].FSAssetExpansionist > random(1,100)>>
		<<set $FSAcquisitionEvents.push("Asset Expansionist Two")>>
		<<set $events.push("RE FS acquisition")>>
	<</if>>
	<<if $arcologies[0].FSPastoralist > random(1,100)>>
		<<set $FSAcquisitionEvents.push("Pastoralist Two")>>
		<<set $events.push("RE FS acquisition")>>
	<</if>>
	<<if $arcologies[0].FSPhysicalIdealist > random(1,100)>>
		<<set $FSAcquisitionEvents.push("Physical Idealist Two")>>
		<<set $events.push("RE FS acquisition")>>
	<</if>>
	<<if $arcologies[0].FSHedonisticDecadence > random(1,100)>>
		<<set $FSAcquisitionEvents.push("Hedonistic Decadence Two")>>
		<<set $events.push("RE FS acquisition")>>
	<</if>>
	<<if $arcologies[0].FSChattelReligionist > random(1,100)>>
		<<set $FSAcquisitionEvents.push("Chattel Religionist Two")>>
		<<set $events.push("RE FS acquisition")>>
	<</if>>
	<<if $arcologies[0].FSRepopulationFocus > random(1,100)>>
		<<set $FSAcquisitionEvents.push("Repopulation Efforts Two")>>
		<<set $events.push("RE FS acquisition")>>
	<</if>>
	<<if $arcologies[0].FSRestart > random(1,100)>>
		<<set $FSAcquisitionEvents.push("Eugenics Two")>>
		<<set $events.push("RE FS acquisition")>>
	<</if>>
	<<if $arcologies[0].FSRomanRevivalist > random(1,100)>>
		<<set $FSAcquisitionEvents.push("Roman Revivalist")>>
		<<set $events.push("RE FS acquisition")>>
	<</if>>
	<<if $arcologies[0].FSAztecRevivalist > random(1,100)>>
		<<set $FSAcquisitionEvents.push("Aztec Revivalist")>>
		<<set $events.push("RE FS acquisition")>>
	<</if>>
	<<if $arcologies[0].FSEdoRevivalist > random(1,100)>>
		<<set $FSAcquisitionEvents.push("Edo Revivalist")>>
		<<set $events.push("RE FS acquisition")>>
	<</if>>
	<<if $arcologies[0].FSArabianRevivalist > random(1,100)>>
		<<set $FSAcquisitionEvents.push("Arabian Revivalist")>>
		<<set $events.push("RE FS acquisition")>>
	<</if>>
	<<if $arcologies[0].FSChineseRevivalist > random(1,100)>>
		<<set $FSAcquisitionEvents.push("Chinese Revivalist")>>
		<<set $events.push("RE FS acquisition")>>
	<</if>>
	<<if $arcologies[0].FSEgyptianRevivalist > random(1,100)>>
		<<set $events.push("RE FSEgyptianRevivalist acquisition")>>
	<</if>>
	<<if $arcologies[0].FSPaternalistDecoration == 100 && $minimumSlaveAge <= 14 && $week >= 100 && (ndef $swanSong || $swanSong == 0)>>
		<<set $recruit.push("paternalist swan song")>>
	<</if>>
	<<set $FSNonconformistEvents = []>>
	<<if $arcologies[0].FSSupremacist < 95 && $arcologies[0].FSSupremacist > 50>>
		<<set $FSNonconformistEvents.push("Supremacist")>>
		<<set $events.push("RE FS nonconformist")>>
	<</if>>
	<<if $arcologies[0].FSSubjugationist < 95 && $arcologies[0].FSSubjugationist > 50>>
		<<set $FSNonconformistEvents.push("Subjugationist")>>
		<<set $events.push("RE FS nonconformist")>>
	<</if>>
	<<if $arcologies[0].FSRepopulationFocus < 95 && $arcologies[0].FSRepopulationFocus > 50>>
		<<set $FSNonconformistEvents.push("Repopulation Efforts")>>
		<<set $events.push("RE FS nonconformist")>>
	<</if>>
	<<if $arcologies[0].FSRestart < 95 && $arcologies[0].FSRestart > 50>>
		<<set $FSNonconformistEvents.push("Eugenics")>>
		<<set $events.push("RE FS nonconformist")>>
	<</if>>
	<<if $arcologies[0].FSGenderRadicalist < 95 && $arcologies[0].FSGenderRadicalist > 50>>
		<<set $FSNonconformistEvents.push("Gender Radicalist")>>
		<<set $events.push("RE FS nonconformist")>>
	<</if>>
	<<if $arcologies[0].FSGenderFundamentalist < 95 && $arcologies[0].FSGenderFundamentalist > 50>>
		<<set $FSNonconformistEvents.push("Gender Fundamentalist")>>
		<<set $events.push("RE FS nonconformist")>>
	<</if>>
	<<if $arcologies[0].FSPaternalist < 95 && $arcologies[0].FSPaternalist > 50>>
		<<set $FSNonconformistEvents.push("Paternalist")>>
		<<set $events.push("RE FS nonconformist")>>
	<</if>>
	<<if $arcologies[0].FSDegradationist < 95 && $arcologies[0].FSDegradationist > 50>>
		<<set $FSNonconformistEvents.push("Degradationist")>>
		<<set $events.push("RE FS nonconformist")>>
	<</if>>
	<<if $arcologies[0].FSBodyPurist < 95 && $arcologies[0].FSBodyPurist > 50>>
		<<set $FSNonconformistEvents.push("Body Purist")>>
		<<set $events.push("RE FS nonconformist")>>
	<</if>>
	<<if $arcologies[0].FSTransformationFetishist < 95 && $arcologies[0].FSTransformationFetishist > 50>>
		<<set $FSNonconformistEvents.push("Transformation Fetishist")>>
		<<set $events.push("RE FS nonconformist")>>
	<</if>>
	<<if $arcologies[0].FSYouthPreferentialist < 95 && $arcologies[0].FSYouthPreferentialist > 50>>
		<<set $FSNonconformistEvents.push("Youth Preferentialist")>>
		<<set $events.push("RE FS nonconformist")>>
	<</if>>
	<<if $arcologies[0].FSMaturityPreferentialist < 95 && $arcologies[0].FSMaturityPreferentialist > 50>>
		<<set $FSNonconformistEvents.push("Maturity Preferentialist")>>
		<<set $events.push("RE FS nonconformist")>>
	<</if>>
	<<if $arcologies[0].FSSlimnessEnthusiast < 95 && $arcologies[0].FSSlimnessEnthusiast > 50>>
		<<set $FSNonconformistEvents.push("Slimness Enthusiast")>>
		<<set $events.push("RE FS nonconformist")>>
	<</if>>
	<<if $arcologies[0].FSAssetExpansionist < 95 && $arcologies[0].FSAssetExpansionist > 50>>
		<<set $FSNonconformistEvents.push("Asset Expansionist")>>
		<<set $events.push("RE FS nonconformist")>>
	<</if>>
	<<if $arcologies[0].FSPastoralist < 95 && $arcologies[0].FSPastoralist > 50>>
		<<set $FSNonconformistEvents.push("Pastoralist")>>
		<<set $events.push("RE FS nonconformist")>>
	<</if>>
	<<if $arcologies[0].FSPhysicalIdealist < 95 && $arcologies[0].FSPhysicalIdealist > 50>>
		<<set $FSNonconformistEvents.push("Physical Idealist")>>
		<<set $events.push("RE FS nonconformist")>>
	<</if>>
	<<if $arcologies[0].FSHedonisticDecadence < 95 && $arcologies[0].FSHedonisticDecadence > 50>>
		<<set $FSNonconformistEvents.push("Hedonistic Decadence")>>
		<<set $events.push("RE FS nonconformist")>>
	<</if>>
	<<if $arcologies[0].FSChattelReligionist < 95 && $arcologies[0].FSChattelReligionist > 50>>
		<<set $FSNonconformistEvents.push("Chattel Religionist")>>
		<<set $events.push("RE FS nonconformist")>>
	<</if>>
	<<if $arcologies[0].FSRomanRevivalist < 95 && $arcologies[0].FSRomanRevivalist > 50>>
		<<set $FSNonconformistEvents.push("Roman Revivalist")>>
		<<set $events.push("RE FS nonconformist")>>
	<</if>>
	<<if $arcologies[0].FSAztecRevivalist < 95 && $arcologies[0].FSAztecRevivalist > 50>>
		<<set $FSNonconformistEvents.push("Aztec Revivalist")>>
		<<set $events.push("RE FS nonconformist")>>
	<</if>>
	<<if $arcologies[0].FSEdoRevivalist < 95 && $arcologies[0].FSEdoRevivalist > 50>>
		<<set $FSNonconformistEvents.push("Edo Revivalist")>>
		<<set $events.push("RE FS nonconformist")>>
	<</if>>
	<<if $arcologies[0].FSArabianRevivalist < 95 && $arcologies[0].FSArabianRevivalist > 50>>
		<<set $FSNonconformistEvents.push("Arabian Revivalist")>>
		<<set $events.push("RE FS nonconformist")>>
	<</if>>
	<<if $arcologies[0].FSChineseRevivalist < 95 && $arcologies[0].FSChineseRevivalist > 50>>
		<<set $FSNonconformistEvents.push("Chinese Revivalist")>>
		<<set $events.push("RE FS nonconformist")>>
	<</if>>
	<<if $arcologies[0].FSEgyptianRevivalist < 95 && $arcologies[0].FSEgyptianRevivalist > 50>>
		<<set $FSNonconformistEvents.push("Egyptian Revivalist")>>
		<<set $events.push("RE FS nonconformist")>>
	<</if>>
<</if>>

/* SCHOOL EVENTS */

<<if $cash > 50000>>
	<<set $RESEndowment = []>>
	<<if $TSS.schoolUpgrade == 0>>
	<<if ($TSS.studentsBought > 1) || ($TSS.schoolPresent != 0)>>
		<<set $events.push("RES Endowment")>>
		<<if $TSS.studentsBought > 2>>
		<<set $events.push("RES Endowment")>>
		<</if>>
		<<set $RESEndowment.push("TSS")>>
	<</if>>
	<</if>>
	<<if $GRI.schoolUpgrade == 0>>
	<<if ($GRI.studentsBought > 1) || ($GRI.schoolPresent != 0)>>
		<<set $events.push("RES Endowment")>>
		<<if $GRI.studentsBought > 2>>
		<<set $events.push("RES Endowment")>>
		<</if>>
		<<set $RESEndowment.push("GRI")>>
	<</if>>
	<</if>>
	<<if $SCP.schoolUpgrade == 0>>
	<<if ($SCP.studentsBought > 1) || ($SCP.schoolPresent != 0)>>
		<<set $events.push("RES Endowment")>>
		<<if $SCP.studentsBought > 2>>
		<<set $events.push("RES Endowment")>>
		<</if>>
		<<set $RESEndowment.push("SCP")>>
	<</if>>
	<</if>>
	<<if $LDE.schoolUpgrade == 0>>
	<<if ($LDE.studentsBought > 1) || ($LDE.schoolPresent != 0)>>
		<<set $events.push("RES Endowment")>>
		<<if $LDE.studentsBought > 2>>
		<<set $events.push("RES Endowment")>>
		<</if>>
		<<set $RESEndowment.push("LDE")>>
	<</if>>
	<</if>>
	<<if $TGA.schoolUpgrade == 0>>
	<<if ($TGA.studentsBought > 1) || ($TGA.schoolPresent != 0)>>
		<<set $events.push("RES Endowment")>>
		<<if $TGA.studentsBought > 2>>
		<<set $events.push("RES Endowment")>>
		<</if>>
		<<set $RESEndowment.push("TGA")>>
	<</if>>
	<</if>>
	<<if $HA.schoolUpgrade == 0>>
	<<if ($HA.studentsBought > 1) || ($HA.schoolPresent != 0)>>
		<<set $events.push("RES Endowment")>>
		<<if $HA.studentsBought > 2>>
		<<set $events.push("RES Endowment")>>
		<</if>>
		<<set $RESEndowment.push("HA")>>
	<</if>>
	<</if>>
	<<if $TCR.schoolUpgrade == 0>>
	<<if ($TCR.studentsBought > 1) || ($TCR.schoolPresent != 0)>>
		<<set $events.push("RES Endowment")>>
		<<if $TCR.studentsBought > 2>>
		<<set $events.push("RES Endowment")>>
		<</if>>
		<<set $RESEndowment.push("TCR")>>
	<</if>>
	<</if>>
	<<if $TFS.schoolUpgrade == 0>>
	<<if ($TFS.studentsBought > 1) || ($TFS.schoolPresent != 0) || (($TFS.studentsBought > 0) && ($PC.dick == 1) && ($PC.vagina == 1) && ($PC.boobs == 1))>>
		<<set $events.push("RES Endowment")>>
		<<set $RESEndowment.push("TFS")>>
		<<if $TFS.studentsBought > 2>>
			<<set $events.push("RES Endowment")>>
			<<set $RESEndowment.push("TFS")>>
		<</if>>
		<<if ($PC.dick == 1) && ($PC.vagina == 1) && ($PC.boobs == 1)>>
			<<set $events.push("RES Endowment")>>
			<<set $RESEndowment.push("TFS")>>
		<</if>>
	<</if>>
	<</if>>
<</if>>

<<set $RESMove = []>>
<<if $TSS.schoolUpgrade != 0>>
<<if $TSS.schoolPresent == 0>>
<<if $TSS.schoolAnnexed == 0>>
	<<set $events.push("RES Move")>>
	<<set $events.push("RES Move")>>
	<<set $RESMove.push("TSS")>>
<</if>>
<</if>>
<</if>>
<<if $GRI.schoolUpgrade != 0>>
<<if $GRI.schoolPresent == 0>>
<<if $GRI.schoolAnnexed == 0>>
	<<set $events.push("RES Move")>>
	<<set $events.push("RES Move")>>
	<<set $RESMove.push("GRI")>>
<</if>>
<</if>>
<</if>>
<<if $SCP.schoolUpgrade != 0>>
<<if $SCP.schoolPresent == 0>>
<<if $SCP.schoolAnnexed == 0>>
	<<set $events.push("RES Move")>>
	<<set $events.push("RES Move")>>
	<<set $RESMove.push("SCP")>>
<</if>>
<</if>>
<</if>>
<<if $LDE.schoolUpgrade != 0>>
<<if $LDE.schoolPresent == 0>>
<<if $LDE.schoolAnnexed == 0>>
	<<set $events.push("RES Move")>>
	<<set $events.push("RES Move")>>
	<<set $RESMove.push("LDE")>>
<</if>>
<</if>>
<</if>>
<<if $TGA.schoolUpgrade != 0>>
<<if $TGA.schoolPresent == 0>>
<<if $TGA.schoolAnnexed == 0>>
	<<set $events.push("RES Move")>>
	<<set $events.push("RES Move")>>
	<<set $RESMove.push("TGA")>>
<</if>>
<</if>>
<</if>>
<<if $HA.schoolUpgrade != 0>>
<<if $HA.schoolPresent == 0>>
<<if $HA.schoolAnnexed == 0>>
	<<set $events.push("RES Move")>>
	<<set $events.push("RES Move")>>
	<<set $RESMove.push("HA")>>
<</if>>
<</if>>
<</if>>
<<if $TCR.schoolUpgrade != 0 && $TCR.schoolPresent == 0 && $TCR.schoolAnnexed == 0>>
	<<set $events.push("RES Move")>>
	<<set $events.push("RES Move")>>
	<<set $RESMove.push("TCR")>>
<</if>>
<<if $TFS.schoolUpgrade != 0>>
<<if $TFS.schoolPresent == 0>>
<<if $TFS.schoolAnnexed == 0>>
	<<set $events.push("RES Move")>>
	<<set $events.push("RES Move")>>
	<<set $RESMove.push("TFS")>>
	<<if ($PC.dick == 1) && ($PC.vagina == 1) && ($PC.boobs == 1)>>
		<<set $events.push("RES Move")>>
		<<set $events.push("RES Move")>>
		<<set $RESMove.push("TFS")>>
		<<set $RESMove.push("TFS")>>
	<</if>>
<</if>>
<</if>>
<</if>>

<<set $RESSale = []>>
<<if $cash > 10000>>
<<if $rep > 6000>>
	<<if $seeDicks != 100>>
		<<if $TSS.studentsBought == 0>>
			<<set $events.push("RES Sale")>>
			<<set $RESSale.push("TSS")>>
		<</if>>
		<<if $GRI.studentsBought == 0>>
			<<set $events.push("RES Sale")>>
			<<set $RESSale.push("GRI")>>
		<</if>>
		<<if $SCP.studentsBought == 0>>
			<<set $events.push("RES Sale")>>
			<<set $RESSale.push("SCP")>>
		<</if>>
		<<if $seePreg != 0>>
			<<if $TCR.studentsBought == 0>>
				<<set $events.push("RES Sale")>>
				<<set $RESSale.push("TCR")>>
			<</if>>
		<</if>>
		<<if $HA.studentsBought == 0>>
			<<set $events.push("RES Sale")>>
			<<set $RESSale.push("HA")>>
		<</if>>
	<</if>>
	<<if $seeDicks != 0>>
		<<if $LDE.studentsBought == 0>>
			<<set $events.push("RES Sale")>>
			<<set $RESSale.push("LDE")>>
		<</if>>
		<<if $TGA.studentsBought == 0>>
			<<set $events.push("RES Sale")>>
			<<set $RESSale.push("TGA")>>
		<</if>>
		<<if ($TFS.studentsBought == 0)>>
			<<set $events.push("RES Sale")>>
			<<set $RESSale.push("TFS")>>
			<<if ($PC.dick == 1) && ($PC.vagina == 1) && ($PC.boobs == 1)>>
				<<set $events.push("RES Sale")>>
				<<set $events.push("RES Sale")>>
				<<set $RESSale.push("TFS")>>
				<<set $RESSale.push("TFS")>>
			<</if>>
		<</if>>
	<</if>>
<</if>>
<</if>>

<<if $justiceEvents.length > 0>>
	<<if ($seeExtreme == 0) || ($seeDicks == 0)>>
		<<set $justiceEvents.delete("slave training")>>
	<</if>>
	<<if $justiceEvents.length > 2>>
		<<set $events.push("JE slave dispute")>>
		<<set $events.push("JE slave dispute")>>
	<<else>>
		<<set $events.push("JE slave dispute")>>
	<</if>>
<</if>>

<<if $minimumSlaveCost > 3000>>
	<<set $events.push("RE shipping container")>>
<</if>>

<<if $corpCash > 50000>>
	<<set $events.push("REM merger")>>
<</if>>

<<if $rep-10000 > random(1,12500)>>
		<<set $events.push("RE royal blood")>>
<</if>>

<<if $mercenaries > 0>>
		<<set $events.push("RE AWOL")>>
		<<set $events.push("RE Poker Night")>>
<</if>>

<<if $arcologies[0].prosperity >= 100 && ($rep > random(1,30000))>>
	<<set _milfSlaves = $slaves.filter(function(s) { return s.devotion > 20 && canTalk(s) && canWalk(s) && (s.assignment == "serve the public" || s.assignment == "serve in the club"); })>>
	<<if _milfSlaves.length > 0>>
		<<set $events.push("RE milf tourist")>>
		<<set $milfSlaveID = _milfSlaves.random()>>
		<<set $milfSlaveID = $milfSlaveID.ID>>
	<</if>>
<</if>>

<<if $RegularParties == 1>>
	<<if ($PC.vagina == 1 && $PC.title == 0) && (random(0,99) < $seeDicks)>>
		<<set $events.push("RE male citizen hookup")>>
	<<else>>
		<<set $events.push("RE citizen hookup")>>
	<</if>>
	<<if $rep-10000 > random(1,10000)>>
	<<if ($PC.vagina == 1 && $PC.boobs == 1 && $PC.title == 0) && (random(0,99) < $seeDicks)>>
		<<set $events.push("RE male arcology owner")>>
	<<else>>
		<<set $events.push("RE female arcology owner")>>
	<</if>>
	<</if>>
<</if>>

<<set $REM = []>>
<<if random(1,100) > $slaveCostFactor*40>>
	<<set $events.push("REM fluctuations")>>
	<<set $events.push("REM fluctuations")>>
	<<set $REM = 1>>
<</if>>
<<if random(1,100) < $slaveCostFactor*60>>
	<<set $events.push("REM fluctuations")>>
	<<set $events.push("REM fluctuations")>>
	<<set $REM = -1>>
<</if>>

/* FUTURE SOCIETY EVENTS */

	<<if $arcologies[0].FSBodyPurist > random(25,100)>>
		<<set $REFSevent.push("body purism encounter")>>
	<</if>>
	<<if $arcologies[0].FSTransformationFetishist > random(25,100)>>
		<<set $REFSevent.push("transformation fetishism encounter")>>
	<</if>>
	<<if $arcologies[0].FSYouthPreferentialist > random(25,100)>>
		<<set $REFSevent.push("youth preferentialist encounter")>>
	<</if>>
	<<if $arcologies[0].FSMaturityPreferentialist > random(25,100)>>
		<<set $REFSevent.push("maturity preferentialist encounter")>>
	<</if>>
	<<if $arcologies[0].FSPastoralist > random(25,100)>>
		<<set $REFSevent.push("pastoralist encounter")>>
	<</if>>
	<<if $arcologies[0].FSPhysicalIdealist > random(25,100)>>
		<<set $REFSevent.push("physical idealist encounter")>>
	<</if>>
	<<if $arcologies[0].FSPaternalist > random(25,100)>>
		<<set $REFSevent.push("paternalist encounter")>>
	<</if>>
	<<if $arcologies[0].FSDegradationist > random(25,100)>>
		<<set $REFSevent.push("degradationist encounter")>>
	<</if>>

/* EVENT RANDOMIZATION */

<<for $i = 0; $i < $RecETSevent.length; $i++>>
	<<set $events.push("RecETS")>>
<</for>>
<<for $i = 0; $i < $REFIevent.length; $i++>>
	<<set $events.push("REFI")>>
<</for>>
<<for $i = 0; $i < $PESSevent.length; $i++>>
	<<set $events.push("PESS")>>
<</for>>
<<for $i = 0; $i < $PETSevent.length; $i++>>
	<<set $events.push("PETS")>>
<</for>>
<<for $i = 0; $i < $REFSevent.length; $i++>>
	<<set $events.push("REFS")>>
<</for>>
<<if $cheatMode == 1>>
	<<goto "random event select">>
<<else>>
	<<goto "random event roll">>
<</if>>

<</silently>>
<</if>> /* CLOSES SLAVE SELECT */


code:
:: RE AWOL [nobr]

<<set $nextButton = "Continue", $nextLink = "RIE Eligibility Check", $returnTo = "RIE Eligibility Check">>

Human soldiers are superior to drones in a number of ways - they have the capability for suspicion, the ability to understand human interactions, and are impervious to the ever-present threat of cyber-warfare. That said, a crucial failing of any sentient warrior is their agency.

On this particular evening, you find your work interrupted by an urgent alert from $assistantName.
<<if $assistant > 0>>
	"<<if def $PC.customTitle>>$PC.customTitle<<elseif $PC.title != 0>>Master<<else>>Mistress<</if>>, one of the $mercenariesTitle has gone AWOL." She pauses before continuing. "She's taken a number of weapons with her."
<<else>>
	It informs you that one of the $mercenariesTitle has disappeared, seemingly taking with her a small stash of weapons.
<</if>>

Your window of opportunity to act is closing. If you have plans for punishing this dereliction from your authority, they must be set in motion now.

<<link "Let them go">>
	<<replace "#result">>
		You inform your personal assistant that you aren't planning to take any action. By the next morning, word has spread to the rest of your arcology that crossing you is apparently permissible and your @@.red;reputation has suffered@@ as a result.
		<<set $rep -= 1000>>
	<</replace>>
<</link>>

<<link "Let your mercenaries handle her">>
	<<replace "#result">>
		<<if random(1,100) > 50>>
			Despite the trouble she has caused you, the culmination of this mercenary's wanton flight from the rest of the $mercenariesTitle is decidedly an anti-climax. The last you hear of the matter is chorus of grim grunts and nods as your mercenaries file back into the arcology. The matter is done.
		<<else>>
			Your mercenaries return to tell you that they could not find the mutineer. It could be that she managed to escape beyond their reach or that one among your 'loyal' retainers allowed her to flee your judgment, but alas there is little that can be done to remedy the issue now. Still, aside from a slight grumbling within the arcology, few fault you for allowing the $mercenariesTitle to recapture one of their own - even if they failed to do so.
		<</if>>
	<</replace>>
<</link>>

<<if $securityForceActive == 1>>
	<<link "Let your $securityForceName handle her">>
		<<replace "#result">>
				You take a tablet and send The Colonel a notice about the mutinous mercenary. When you have the majority of the pertinent details committed to text, all that remains is to decide the fate of your quarry.

					<<link "You want her dead">>
						<<replace "#SFresult">>
							Despite the trouble she has caused you, the culmination of this mercenary's wanton flight from the rest of the $mercenariesTitle is decidedly anti-climatic. The last you hear of her is in the footnote of one of your daily reports, with some minute yet suitably gory pictures as an accompaniment. When the stolen weapons are returned to their rightful place in your arcology, the unfortunate matter is concluded once and for all. @@.green;Your reputation improves@@, a result of the fear of crossing you that your result have inspired. Also the @@.green;arcology's prosperity improves@@, a result of showing your citizens that you are willing and able to deal with such matters in-house.
							<<set $rep += 1000,$arcologies[0].prosperity += 2>>
							<<if $arcologies[0].prosperity > $AProsperityCap>>
								<<set $arcologies[0].prosperity = $AProsperityCap>>
							<</if>>
						<</replace>>
					<</link>>

					<<link "You want her alive">>
						<<replace "#SFresult">>
							It doesn't take long for a squad of $securityForceName, to track her down. Soon you have the troublesome turncoat before you in chains.

								<<link "Enslave her">>
									<<replace "#aliveresult">>
										Despite the trouble she has caused you, you manage to complete the legalities and biometric scanning quickly and without incident. Of course, this is in large part due to the fact that the would-be mutineer is of course restrained. Based on the accounts of her captors and the numerous injuries evident amongst them, she is likely to be violent when she is finally released.

										<<if $pedo_mode == 1>>
											<<set $activeSlaveOneTimeMinAge = 21>>
										<<else>>
											<<set $activeSlaveOneTimeMinAge = 38>>
										<</if>>
										<<set $activeSlaveOneTimeMaxAge = 43>>
										<<set $one_time_age_overrides_pedo_mode = 1>>
										<<if $arcologies[0].FSSupremacistLawME == 1>><<set $fixedRace = $arcologies[0].FSSupremacistRace>><</if>>
										<<include "Generate XX Slave">>
										<<set $activeSlave.origin = "You sentenced her to enslavement as a punishment for dereliction of her duty to you as a mercenary and for theft.">>
										<<set $activeSlave.career = "a soldier">>
										<<set $activeSlave.devotion = random(-75,-60)>>
										<<set $activeSlave.trust = random(-15,0)>>
										<<set $activeSlave.health = random(60,80)>>
										<<set $activeSlave.muscles = 50>>
										<<set $activeSlave.weight = random(-10,10)>>
										<<set $activeSlave.eyes = 1>>
										<<set $activeSlave.anus = 0>>
										<<set $activeSlave.analSkill = 0>>
										<<set $activeSlave.whoreSkill = 0>>
										<<set $activeSlave.combatSkill = 1>>
										<<set $activeSlave.behavioralFlaw = "arrogant">>
										<<set $activeSlave.sexualFlaw = "hates men">>
										<<set $activeSlave.hStyle = "shaved into a mohawk">>
										<<set $activeSlave.customTat = "She has a number of tattoos from a variety of mercenary companies.">>
										<<include "New Slave Intro">>
									<</replace>>
								<</link>>

								<<link "Flog her in public then exile her from the arcology">>
									<<replace "#aliveresult">>
										An example must be made. There is a binding contract between you and your $mercenariesTitle, and this woman attempted to undermine it for her own selfish profit. The protesting bitch is stripped and flogged on the promenade before being escorted bleeding from the arcology. The public @@.green;approves of this harshness.@@ In addition @@.green;Arcology prosperity improves@@, a result of showing your citizens that you are willing and able to deal with such matters in-house.
										<<set $rep += 1000,$arcologies[0].prosperity += 2>>
										<<if $arcologies[0].prosperity > $AProsperityCap>>
											<<set $arcologies[0].prosperity = $AProsperityCap>>
										<</if>>
									<</replace>>
								<</link>>

							 /* closes aliveresult */
						<</replace>> /* SFresult */
					<</link>> /* want her alive */

				 /* closes SFresult */
		<</replace>> /* result */
	<</link>>
<</if>>
<<if $cash < 5000>>

	//You lack the necessary funds to put out a bounty.//
<<else>> /* cash >= 5000 */

	<<link "Put out a bounty on her head">>
		<<replace "#result">>
			You take a tablet and draft a bounty notice for the mutinous mercenary. When you have the majority of the pertinent details committed to text, all that remains is to decide the fate of your quarry.

				<<link "You want her dead">>
					<<replace "#bountyresult">>
						Despite the trouble she has caused you, the culmination of this mercenary's wanton flight from the rest of the $mercenariesTitle is decidedly an anti-climax. The last you hear of her is in the footnote of one of your daily reports, with some minute yet suitably gory pictures as an accompaniment. When the stolen weapons are returned to their rightful place in your arcology, the unfortunate matter is concluded once and for all. @@.green;Your reputation improves@@, a result of the fear of crossing you that your unpleasantness has inspired.
						<<set $rep += 1000, $cash -= 5000>>
					<</replace>>
				<</link>>

				<<link "You want her alive">>
					<<replace "#bountyresult">>
						It doesn't take long for some hired guns, motivated by the bounty, to track her down. Soon you have the troublesome turncoat before you in chains.

							<<link "Enslave her">>
								<<replace "#aliveresult">>
									Despite the trouble she has caused you, you manage to complete the legalities and biometric scanning quickly and without incident. Of course, this is in large part due to the fact that the would-be mutineer is of course restrained. Based on the accounts of her captors and the numerous injuries evident amongst them, she is likely to be violent when she is finally released.

									<<if $pedo_mode == 1>>
										<<set $activeSlaveOneTimeMinAge = 21>>
									<<else>>
										<<set $activeSlaveOneTimeMinAge = 38>>
									<</if>>
									<<set $activeSlaveOneTimeMaxAge = 43>>
									<<set $one_time_age_overrides_pedo_mode = 1>>
									<<if $arcologies[0].FSSupremacistLawME == 1>><<set $fixedRace = $arcologies[0].FSSupremacistRace>><</if>>
									<<include "Generate XX Slave">>
									<<set $activeSlave.origin = "You sentenced her to enslavement as a punishment for dereliction of her duty to you as a mercenary and for theft.">>
									<<set $activeSlave.career = "a soldier">>
									<<set $activeSlave.devotion = random(-75,-60)>>
									<<set $activeSlave.trust = random(-15,0)>>
									<<set $activeSlave.health = random(60,80)>>
									<<set $activeSlave.muscles = 50>>
									<<set $activeSlave.weight = random(-10,10)>>
									<<set $activeSlave.eyes = 1>>
									<<set $activeSlave.anus = 0>>
									<<set $activeSlave.analSkill = 0>>
									<<set $activeSlave.whoreSkill = 0>>
									<<set $activeSlave.combatSkill = 1>>
									<<set $activeSlave.behavioralFlaw = "arrogant">>
									<<set $activeSlave.sexualFlaw = "hates men">>
									<<set $activeSlave.hStyle = "shaved into a mohawk">>
									<<set $activeSlave.customTat = "She has a number of tattoos from a variety of mercenary companies.">>
									<<include "New Slave Intro">>
									<<set $cash -= 5000>>
								<</replace>>
							<</link>>

							<<link "Flog her in public then exile her from the arcology">>
								<<replace "#aliveresult">>
									An example must be made. There is a binding contract between you and your $mercenariesTitle, and this woman attempted to undermine it for her own selfish profit. The protesting bitch is stripped and flogged on the promenade before being escorted bleeding from the arcology. The public @@.green;approves of this harshness.@@
									<<set $rep += 1000, $cash -= 5000>>
								<</replace>>
							<</link>>

						 /* closes aliveresult */
					<</replace>> /* bountyresult */
				<</link>> /* want her alive */

			 /* closes bountyresult */
		<</replace>> /* result */
	<</link>> // It will cost <<print cashFormat(5000)>> to put out a bounty on her.//
<</if>> /* cash >= 5000 */

 /* closes result */

repo_name: evrgentesee/fc


code:
:: RE boomerang [nobr]

<<set $nextButton = "Continue", $nextLink = "RIE Eligibility Check", $returnTo = "RIE Eligibility Check", $showEncyclopedia = 1, $encyclopedia = "Enslaving People">>

<<set $activeSlave = $boomerangSlave, _weeks = $boomerangWeeks, _pregWeeks = $boomerangWeeks, $boomerangWeeks = 0, _buyer = $boomerangBuyer, $boomerangBuyer = 0>>
<<run SetBellySize($activeSlave)>>

Your work is interrupted by $assistantName with an alert from the entrance to the penthouse.
<<if $assistant>>
	"<<if def $PC.customTitle>>$PC.customTitle<<elseif $PC.title != 0>>Sir<<else>>Ma'am<</if>>," she says, "you're going to want to see this." She
<<else>>
	It's got the incident flagged as not fitting into any of the usual categories of disturbance, and requests your attention. It
<</if>>
brings up the relevant feeds. There's a naked body crumpled pathetically against one wall of the entryway, beneath the communications panel. It's $activeSlave.slaveName<<if $activeSlave.slaveSurname>> $activeSlave.slaveSurname<</if>>, who you sold _weeks weeks ago. She's looking up into one of the cameras plaintively.
<<Enunciate $activeSlave>>
"Plea<<s>>e take me back," she whispers, not wanting to draw the attention of passersby, and knowing that her faint words will be picked up and amplified for you.

<<set $activeSlave.collar = "none", $activeSlave.choosesOwnClothes = 0, $activeSlave.clothes = "no clothing", $activeSlave.buttplug = "none", $activeSlave.vaginalAccessory = "none", $activeSlave.dickAccessory = "none">>
<<set $activeSlave.health = random(-40,-25)>>

/* ------------------ pregnancy setup start here----------------- */

<<set WombProgress($activeSlave, _pregWeeks)>> /* In all cases should be done */
<<set WombUpdatePregVars($activeSlave)>>
<<if $activeSlave.broodmother > 0>> /* Broodmother implant is assumed as removed.*/
	<<set $activeSlave.preg = -1, $activeSlave.birthsTotal += WombBirthReady($activeSlave, 37), $activeSlave.pregType = 0, $activeSlave.pregSource = 0, $activeSlave.pregWeek = 0, $activeSlave.pregKnown = 0, $activeSlave.broodmother == 0, $activeSlave.broodmotherFetuses = 0>>
	<<set WombFlush($activeSlave)>>
<<elseif WombBirthReady($activeSlave, 40) > 0 >> /* normal birth case, partial birthers not supported*/
	<<set $activeSlave.preg = -1, $activeSlave.birthsTotal += WombBirthReady($activeSlave, 40), $activeSlave.pregType = 0, $activeSlave.pregSource = 0, $activeSlave.pregWeek = 0, $activeSlave.pregKnown = 0>>
	<<set WombFlush($activeSlave)>>
<<else>>/* still pregnant slave */
	<<set $activeSlave.preg = WombMaxPreg($activeSlave)>> /*most ready fetus is a base*/
	<<set $activeSlave.pregWeek = WombMaxPreg($activeSlave)>> /*most ready fetus is a base*/
<</if>>
<<run SetBellySize($activeSlave)>> /*In any case it's useful to do.*/

/* old code, commented out.
<<if $activeSlave.broodmother > 0>>
	<<set $activeSlave.preg = -1, $activeSlave.birthsTotal += $activeSlave.pregType, $activeSlave.pregType = 0, $activeSlave.pregSource = 0, $activeSlave.pregWeek = 0, $activeSlave.pregKnown = 0, $activeSlave.broodmother == 0>>
	<<run SetBellySize($activeSlave)>>
<</if>>
<<if $activeSlave.preg > 0>>
	<<set $activeSlave.preg += _weeks>>
	<<set $activeSlave.pregWeek += _weeks>>
	<<if $activeSlave.preg > 40>>
		<<set $activeSlave.preg = -1, $activeSlave.birthsTotal += $activeSlave.pregType, $activeSlave.pregType = 0, $activeSlave.pregSource = 0, $activeSlave.pregWeek = 0, $activeSlave.pregKnown = 0>>
	<</if>>
	<<run SetBellySize($activeSlave)>>
<</if>>
*/

/* ------------------ pregnancy setup end here-----------------
	As no broodmother cases in code below, it's no need to setup every case of impregnation through new system. Backup mechanic will do it for normal pregnancies.
*/

<<if ($activeSlave.hStyle != "shaved" && $activeSlave.bald != 1)>>
	<<if ($activeSlave.hLength < 150)>>
		<<set $activeSlave.hLength += _weeks>>
	<</if>>
<</if>>
<<if $seeAge != 0>>
	<<for _weeks > 0>>
		<<set $activeSlave.birthWeek++>>
		<<if $activeSlave.birthWeek >= 52>>
			<<set $activeSlave.birthWeek = 0>>
			<<if $seeAge == 1>>
				<<set $activeSlave.physicalAge += 1, $activeSlave.actualAge += 1, $activeSlave.visualAge += 1>>
				<<set $activeSlave.ovaryAge += either(.8, .9, .9, 1, 1, 1, 1.1)>>
				<<if $activeSlave.physicalAge <= 18 && $loliGrow == 0>>
					<<PhysicalDevelopment $activeSlave>>
				<</if>>
			<</if>>
		<</if>>
		<<set _weeks-->>
	<</for>>
<</if>>

<<switch _buyer>>
<<case "buttbreaker">>
	"All my Ma<<s>>ter cares about i<<s>> raping my a<<ss>> until I <<s>>cream. I can't get u<<s>>ed to it. I'm loo<<s>>e and ruined, but he ju<<s>>t u<<s>>e<<s>> a dildo big enough to hurt me." She's sitting over on one buttock, and shifts uncomfortably.
	<<set $activeSlave.anus = 4>>
	<<set $activeSlave.sexualFlaw = "hates anal">>
<<case "factory farm" "free range" "pastoralist arcology" "D hucow" "cow trainer" "D milky herm">>
	<<switch _buyer>>
	<<case "free range">>
		"The ni<<c>>e free range dairy you <<s>>old me to failed, and a horrible factory farm bought everyone. It's horrible." The
	<<case "pastoralist arcology">>
		"After they finished showing me off, they just hooked me up to a milking machine and forgot about me." You sold her to a Pastoralist arcology as a prize heifer; it's nothing short of incredible that she managed to get back here. She must have sold and traded herself without hesitation. The
	<<case "D hucow">>
		"My new owner got bored of me as a human cow, and he wa<<s>> in debt, <<s>>o he re<<s>>old me to a dairy. A horrible dairy." The
	<<case "cow trainer">>
		"On<<c>>e the trainer was <<s>>ati<<s>>fied with my tit<<s>>, he re<<s>>old me to a dairy. A horrible dairy." The
	<<case "D milky herm">>
		"I got re<<s>>old me to a dairy. A horrible dairy. They <<s>>aid I'm valuable becau<<s>>e I give two kind<<s>> of milk." The
	<<default>>
		You sold her to a factory farm, and the
	<</switch>>
	effects of living there have changed her body greatly. It's surprising she managed to make it up here at all. "Plea<<s>>e," she begs. "I d-don't want to <<s>>pend the r-re<<s>>t of my life being raped by a machine."
	<<if $activeSlave.amp == 0>>She shifts uncomfortably on her feet. The soles of the feet are a convenient place to beat a whore, since it's agonizingly painful, doesn't bruise badly, and won't inconvenience a slave that spends all her time kneeling or lying down.<</if>>
	<<set $activeSlave.anus = 4>>
	<<set $activeSlave.lactation = 2, $activeSlave.lactationAdaptation = 100>>
	<<set $activeSlave.boobs = Math.clamp($activeSlave.boobs+2000+50*random(-20,20),0,10000)>>
	<<set $activeSlave.boobShape = "saggy">>
	<<if $seePreg != 0>><<if $activeSlave.ovaries>><<set $activeSlave.preg = random(5,_pregWeeks-1), $activeSlave.pregtype = random(2,4), $activeSlave.vagina = 4, $activeSlave.pregWeek = $activeSlave.preg, $activeSlave.pregKnown = 1, SetBellySize($activeSlave)>><</if>><</if>>
	<<if $activeSlave.balls>>
		<<set $activeSlave.balls = Math.clamp($activeSlave.balls+random(1,2),0,10)>>
		<<if $activeSlave.dick>><<set $activeSlave.dick = Math.clamp($activeSlave.dick+random(1,2),0,10)>><</if>>
	<</if>>
	<<set $activeSlave.intelligence = Math.clamp($activeSlave.intelligence-2,-3,3)>>
<<case "volume breeder" "preg fetishist">>
	<<switch _buyer>>
	<<case "preg fetishist">>
		"My ni<<c>>e Ma<<s>>ter had a d-debt. And he had to <<s>>ell me t-to a volume breeder. I wa<<s>> pregnant when I got there b-but they <<s>>-<<s>>tarted o-over." She swallows.
	<<default>>
		She tearfully describes life at a volume breeder like the one you sold her to.
	<</switch>>
	"They ran an IV line into me and then put me in a cage with a male <<s>>lave who raped me for a week. Then they <<s>>witched me into a <<s>>maller cage and forgot about me. I can feel my belly <<s>>welling. It'<<s>> horrible."
	<<set $activeSlave.preg = _pregWeeks-1, $activeSlave.vagina = 4, $activeSlave.pregWeek = $activeSlave.preg, $activeSlave.pregKnown = 1>>
	<<if $seeHyperPreg == 1>>
		<<set $activeSlave.pregtype = random(10,40)>>
	<<else>>
		<<set $activeSlave.pregtype = 5>>
	<</if>>
	<<run SetBellySize($activeSlave)>>
<<case "pain fetishist">>
	"They whip me. A-actually," she sniffles, "I'm glad when they whip me b-becau<<s>>e e-everything el<<s>>e they d-do is w-wor<<s>>e. The only break I get i-i<<s>> when I'm hurt bad and th-they have to f-fix me." After all, you did sell her into a life as a pain slave.
	<<set $activeSlave.behavioralFlaw = "odd", $activeSlave.sexualFlaw = "apathetic">>
	<<set $activeSlave.health = random(-85,-75)>>
<<case "sadism fetishist">>
	"I-it'<<s>> t-too much." She shudders. You sold her to a sadist who planned to use her to abuse other slaves. "I c-can't d-do it anymore. I u<<s>>ed to fanta<<s>>i<<z>>e about d-doing h-horrible thing<<s>>, but, but, the <<s>>creaming." She squeezes her eyes shut. "If I don't do it I'll h-have it d-done t-to me."
	<<set $activeSlave.behavioralFlaw = "odd", $activeSlave.sexualFlaw = "apathetic">>
	<<set $activeSlave.fetish = "none", $activeSlave.fetishStrength = 0>>
<<case "dom fetishist">>
	"I," she mutters, and then loses her way. "I lo<<s>>t," she grates out after a while. "I wa<<s>> <<s>>uppo<<s>>ed to be the Head Girl after you <<s>>old me. But a new girl came, and, and she'<<s>> the Head Girl now." She looks down. "It should have been me."
	<<set $activeSlave.behavioralFlaw = "hates women">>
<<case "sub fetishist">>
	"I thought I'd be happy to be a <<s>>ub forever." You sold her to a determined dom, extreme even by Free Cities standards. "But, but, I haven't, um, had a break <<s>>in<<c>>e I left. I never talk. I never, well, I never do anything. I ju<<s>>t obey." She looks down. "I'm going in<<s>>ane."
	<<set $activeSlave.behavioralFlaw = "odd", $activeSlave.sexualFlaw = "apathetic">>
	<<set $activeSlave.fetish = "none", $activeSlave.fetishStrength = 0>>
<<case "supremacist arcology">>
	"It wa<<s>> horrible." You sold her to a Supremacist arcology; it's nothing short of incredible that she managed to get back here. She must have sold and traded herself without hesitation. "The thing<<s>> they made me do to other girl<<s>> ju<<s>>t because of who they were." She swallows. "I tried not to. And they punished me."
	<<set $activeSlave.behavioralFlaw = "odd", $activeSlave.sexualFlaw = "hates men">>
<<case "subjugationist arcology">>
	"They were breeding me with idiot<<s>>." You sold her to a Subjugationist arcology; it's nothing short of incredible that she managed to get back here. She must have sold and traded herself without hesitation. "I d-don't want thi<<s>> pregnan<<c>>y."
	<<set $activeSlave.preg = _pregWeeks-1, $activeSlave.pregtype = random(2,4), $activeSlave.pregWeek = $activeSlave.preg, $activeSlave.pregKnown = 1>>
	<<run SetBellySize($activeSlave)>>
<<case "gender radicalist arcology">>
	"They <<if $activeSlave.balls>> cut my ball<<s>> off and then<</if>> j-ju<<s>>t kind of t-turned me loo<<s>>e in the corridor<<s>>," she moans. You sold her to a Gender Radicalist arcology. "Naked, <<s>>o everyone could u<<s>>e my a<<ss>>. Plea<<s>>e, I don't want to be an entire arcology'<<s>> bitch."
	<<set $activeSlave.balls = 0>>
	<<if $activeSlave.dick>><<set $activeSlave.dick = Math.clamp($activeSlave.dick-random(1,2),0,10)>><</if>>
<<case "gender fundamentalist arcology">>
	"It wa<<s>> horrible." You sold her to a Gender Fundamentalist arcology; it's nothing short of incredible that she managed to get back here. She must have sold and traded herself without hesitation. "I'm, I'm, not an idiot. At lea<<s>>t, not ju<<s>>t becau<<s>>e I'm a girl."
	<<set $activeSlave.behavioralFlaw = "odd", $activeSlave.sexualFlaw = "hates men">>
<<case "paternalist arcology">>
	"It wa<<s>> horrible." You sold her to a Paternalist arcology, but she explains the apparent contradiction. "The arcology got a new owner." She shudders. "I gue<<ss>> the ni<<c>>e one wa<<s>> weak, and, and the new one i<<s>> changing thing<<s>>. There'<<s>> cage<<s>>, and <<s>>pike<<s>>, and whip<<s>>, and rape." It's nothing short of incredible that she managed to get back here. She must have sold and traded herself without hesitation.
	<<set $activeSlave.behavioralFlaw = "odd", $activeSlave.sexualFlaw = "hates men">>
<<case "degradationist arcology">>
	"It wa<<s>> horrible." You sold her to a Degradationist arcology; it's nothing short of incredible that she managed to get back here. She must have sold and traded herself without hesitation.
	<<if $activeSlave.ovaries>>
		<<set $activeSlave.ovaries = 0, $activeSlave.preg = 0, WombFlush($activeSlave), $activeSlave.pregType = 0, $activeSlave.vagina = 4, $activeSlave.pregWeek = 0, $activeSlave.pregKnown = 0>>
		<<run SetBellySize($activeSlave)>>
		"They f-fixed me, t-to '<<s>>ave on maintenan<<c>>e of my cunt,'
	<<elseif $activeSlave.balls>>
		<<set $activeSlave.balls = 0, $activeSlave.anus = 4>>
		"They c-cut my b-ball<<s>> off, to 'keep me do<<c>>ile,'
	<<else>>
		<<set $activeSlave.anus = 4>>
		"They whipped me,
	<</if>>
	and then u<<s>>ed me to <<s>>ati<<s>>fy labor menial<<s>>. Ten an hour."
	<<set $activeSlave.behavioralFlaw = "odd", $activeSlave.sexualFlaw = "hates men">>
<<case "slimness enthusiast arcology">>
	"It wa<<s>> horrible." You sold her to a pleasant Slimness Enthusiast arcology, but somehow she's acquired grotesque implants. "The arcology got a new owner." She shudders. "I gue<<ss>> the ni<<c>>e one wa<<s>> weak, and, and the new one i<<s>> changing thing<<s>>. Sh-she l-like<<s>> t-to ruin the <<s>>lim one<<s>>." It's nothing short of incredible that she managed to get back here. She must have sold and traded herself without hesitation.
	<<set $activeSlave.boobsImplant = 200*random(2,4), $activeSlave.boobs += $activeSlave.boobsImplant>>
	<<set $activeSlave.buttImplant = random(2,4), $activeSlave.butt = Math.clamp($activeSlave.butt+$activeSlave.buttImplant,0,10)>>
	<<set $activeSlave.lipsImplant = 10*random(1,3), $activeSlave.lips = Math.clamp($activeSlave.lips+$activeSlave.lipsImplant,0,100)>>
<<case "asset expansionist arcology">>
	"It wa<<s>> horrible." You sold her to an Asset Expansionist arcology; it's nothing short of incredible that she managed to get back here. She must have sold and traded herself without hesitation.
	<<if $activeSlave.hips > 0>>
		<<set $activeSlave.butt = Math.clamp($activeSlave.butt+random(2,4),0,10)>>
		"They <<s>>aid, <<s>>in<<c>>e I've got broad hip<<s>>, I'd be a 'butt<<s>>lave'." The meaning is obvious; her ass has grown unbelievably.
	<<else>>
		<<set $activeSlave.boobs = Math.clamp($activeSlave.boobs+50*random(20,40),0,10000)>>
		"They <<s>>aid they'd <<s>>tart with my boob<<s>>." It's true; they've grown unbelievably.
	<</if>>
	She shivers. "The <<s>>ide effect<<s>> are terrible. I can't <<s>>leep. I can barely eat. They had to feed me with a tube."
	<<set $activeSlave.behavioralFlaw = "anorexic">>
<<case "transformation fetishist arcology">>
	"It wa<<s>> horrible." You sold her to a Transformation Fetishist arcology; it's nothing short of incredible that she managed to get back here. She must have sold and traded herself without hesitation. "They were giving me new boob implant<<s>> every two week<<s>>. I ran away before another <<s>>et. I c-couldn't take any more <<s>>-<<s>>urgery."
	<<set $activeSlave.boobsImplant = 200*random(9,12), $activeSlave.boobs += $activeSlave.boobsImplant>>
<<case "physical idealist arcology">>
	"It wa<<s>> horrible." You sold her to a Physical Idealist arcology; it's nothing short of incredible that she managed to get back here. She must have sold and traded herself without hesitation. "It should have been called a <<S>>teroid Enthu<<s>>ia<<s>>t arcology." She shivers. "The <<s>>ide effect<<s>> are terrible. I can't <<s>>leep. I can barely eat. They had to feed me with a tube."
	<<set $activeSlave.muscles = 100, $activeSlave.weight = random(-85,-75)>>
	<<set $activeSlave.behavioralFlaw = "anorexic">>
<<case "chattel religionist arcology">>
	"It wa<<s>> horrible." You sold her to a Chattel Religionist arcology; it's nothing short of incredible that she managed to get back here. She must have sold and traded herself without hesitation. "There were, um, cult<<s>> there, along with the Faith.  They were going to devote me to <<s>>omething called <<Sh>>e Who Thir<<s>>t<<s>>. Nobody ever hear<<s>> of girl<<s>> after that."
	<<set $activeSlave.behavioralFlaw = "odd", $activeSlave.sexualFlaw = "crude", $activeSlave.behavioralQuirk = "devout">>
<<case "roman revivalist arcology">>
	"It wa<<s>> horrible." You sold her to a Roman Revivalist arcology; it's nothing short of incredible that she managed to get back here. She must have sold and traded herself without hesitation. "I had to kill a girl," she adds in a small voice. "In the arena." Then, even more quietly: "I had to kill, um, girl<<s>>. I, I can't. Couldn't. Not again."
	<<set $activeSlave.behavioralFlaw = "odd", $activeSlave.sexualFlaw = "crude", $activeSlave.combatSkill = 1>>
<<case "aztec revivalist arcology">>
	"It wa<<s>> horrible." You sold her to an Aztec Revivalist arcology; it's nothing short of incredible that she managed to get back here. She must have sold and traded herself without hesitation. "They told me by blood would feed the <<S>>un." She shudders. "I, they, um, do that to hundred<<s>> of girl<<s>>. I had to help."
	<<set $activeSlave.behavioralFlaw = "odd", $activeSlave.sexualFlaw = "apathetic">>
<<case "egyptian revivalist arcology">>
	"It wa<<s>> horrible." You sold her to an Egyptian Revivalist arcology; it's nothing short of incredible that she managed to get back here. She must have sold and traded herself without hesitation. "My new owner wa<<s>> old, and he wa<<s>> really into <<s>>ome of the tomb <<s>>tuff. If he died, I'd have been buried with him."
<<case "body purist arcology">>
	"It wa<<s>> horrible." You sold her to a pleasant Body Purist arcology, but somehow she's acquired grotesque implants. "The arcology got a new owner." She shudders. "I gue<<ss>> the ni<<c>>e one wa<<s>> weak, and, and the new one i<<s>> changing thing<<s>>. Sh-she l-likes t-to ruin the pure one<<s>>." It's nothing short of incredible that she managed to get back here. She must have sold and traded herself without hesitation.
	<<set $activeSlave.boobsImplant = 200*random(2,4), $activeSlave.boobs += $activeSlave.boobsImplant>>
	<<set $activeSlave.buttImplant = random(2,4), $activeSlave.butt = Math.clamp($activeSlave.butt+$activeSlave.buttImplant,0,10)>>
	<<set $activeSlave.lipsImplant = 10*random(1,3), $activeSlave.lips = Math.clamp($activeSlave.lips+$activeSlave.lipsImplant,0,100)>>
<<case "trainer staffing" "D milf staffing">>
	"I'm a good <<s>>lave trainer, ju<<s>>t like you <<s>>old me to be. Too good." Her eyes look hollow. "I can't get what I'm doing to the<<s>>e girl<<s>> out of my head. Every young girl I meet, I get to know her and under<<s>>tand her. And then I break her down and turn her into a brainle<<ss>> little fuckpuppet." She swallows. "I can't. Not anymore."
	<<set $activeSlave.fetish = "dom", $activeSlave.fetishStrength = 100>>
	<<set $activeSlave.behavioralFlaw = "arrogant", $activeSlave.sexualFlaw = "crude">>
<<case "teaching trainer">>
	"I'm ju<<s>>t a mannequin now," she <<say>>s hollowly. Her buyer planned to use her as a teaching tool. "There'<<s>> nothing. No joy, no fun. Ju<<s>>t the same thing, over, and over. In<<s>>ide me."
	<<set $activeSlave.fetish = "sub", $activeSlave.fetishStrength = 100>>
	<<set $activeSlave.behavioralFlaw = "hates penetration", $activeSlave.sexualFlaw = "apathetic">>
<<case "implanting trainer">>
	"I d-don't want to be c-cut again," she <<say>>s hollowly. Her buyer planned to use her as a surgical teaching tool. "E-every time I'm healed, they implant me again. B-bigger."
	<<set $activeSlave.boobsImplant = 200*random(8,12), $activeSlave.boobs += $activeSlave.boobsImplant>>
	<<set $activeSlave.buttImplant = random(2,4), $activeSlave.butt = Math.clamp($activeSlave.butt+$activeSlave.buttImplant,0,10)>>
	<<set $activeSlave.lipsImplant = 10*random(1,3), $activeSlave.lips = Math.clamp($activeSlave.lips+$activeSlave.lipsImplant,0,100)>>
<<case "purifying trainer">>
	"It w-wa<<s>>n't like I thought it would be," she <<say>>s. "The trainer you <<s>>old me to took out my implant<<s>>. B-but then they <<s>>aid my boob<<s>> had to be rebuilt, only with drug<<s>> thi<<s>> time." She shivers. "The <<s>>ide effect<<s>> are terrible. I can't <<s>>leep. I can barely eat. They had to feed me with a tube."
	<<set $activeSlave.boobs -= $activeSlave.boobsImplant, $activeSlave.boobsImplant = 0>>
	<<set $activeSlave.butt -= $activeSlave.buttImplant, $activeSlave.buttImplant = 0>>
	<<set $activeSlave.lips -= $activeSlave.lipsImplant, $activeSlave.lipsImplant = 0>>
	<<set $activeSlave.boobs = Math.clamp($activeSlave.boobs+50*random(20,40),0,10000)>>
<<case "D startled the witch">>
	You sold her to a buyer interested in her because of her sharp teeth, among other things. "It wa<<s>> horrible," she whispers. Then she gags, dry heaves, and vomits slightly. She wipes her mouth with the back of her hand, staring upward vacantly. "Horrible."
	<<set $activeSlave.behavioralFlaw = "odd", $activeSlave.sexualFlaw = "crude">>
<<case "slimming trainer">>
	"It's horrible." You sold her to a trainer who specializes in slimming slaves down, and if anything, they seem to have gone too far. She's emaciated. "I'm h-hungry all the time, and when I'm not p-perfect, I d-don't get to eat at all."
	<<set $activeSlave.boobs = Math.clamp($activeSlave.boobs-50*random(5,10),0,10000)>>
	<<set $activeSlave.butt = Math.clamp($activeSlave.butt-random(1,2),0,10)>>
	<<set $activeSlave.waist = Math.clamp($activeSlave.waist-random(20,50),-100,100)>>
	<<set $activeSlave.weight = -100>>
<<case "broadening trainer" "D cannibal" "hedonistic decadence arcology">>
	<<switch _buyer>>
	<<case "D cannibal">>
		"M-my new owner i<<s>> going t-to do <<s>>omething horrible to me. H-he keep<<s>> me in a tiny cage and f-feed<<s>> me, and I have to <<s>>tay <<s>>till and eat or I'll <<s>>poil the meat." You did sell her to a citizen widely rumored to be a cannibal. She whispers, "I'm going to die."
	<<case "hedonistic decadence arcology">>
		You sold her to a Hedonistic arcology; it's nothing short of incredible that she managed to get back here. She must have sold and traded herself without hesitation. "It'<<s>> horrible." You sold her to an arcology that loves fattening slaves up, and if anything, they seem to have gone too far too fast. She's bloated, and her stomach is distended. "T-they beat me if I ever <<s>>topped eating, and they fed my butt too. I'm gro<<ss>> and ugly. Even when they mounted me, they'd <<s>>till <<sh>>ove food down my throat."
	<<default>>
		"It'<<s>> horrible." You sold her to a trainer who specializes in fattening slaves up, and if anything, they seem to have gone too far. She's bloated, and her stomach is distended. "T-they beat me if I ever <<s>>top eating, and they feed my butt too. I'm gro<<ss>> and ugly."
	<</switch>>
	<<set $activeSlave.boobs = Math.clamp($activeSlave.boobs+50*random(5,10),0,10000)>>
	<<set $activeSlave.butt = Math.clamp($activeSlave.butt+random(1,2),0,10)>>
	<<set $activeSlave.waist = Math.clamp($activeSlave.waist-random(20,50),-100,100)>>
	<<set $activeSlave.weight = Math.clamp($activeSlave.weight+random(50,100),-100,200)>>
<<case "clipping trainer">>
	"All I do i<<s>> <<s>>uck dick<<s>> and get fucked in the butt." You sold her to a trainer who specializes in clipping and improving overly masculine slaves, and she's definitely more feminine, if bitterly unhappy. "They're going to <<s>>ell me to a bitch brothel <<s>>oon, I know it. Plea<<s>>e, nobody'<<s>> even <<s>>aid anything to me other than '<<s>>uck my cock' or 'bend over bitch' in week<<s>>."
	<<set $activeSlave.boobsImplant = 200*random(2,4), $activeSlave.boobs += $activeSlave.boobsImplant>>
	<<set $activeSlave.buttImplant = random(1,2), $activeSlave.butt = Math.clamp($activeSlave.butt+$activeSlave.buttImplant,0,10)>>
	<<set $activeSlave.lipsImplant = 10*random(1,2), $activeSlave.lips = Math.clamp($activeSlave.lips+$activeSlave.lipsImplant,0,100)>>
	<<set $activeSlave.waist = Math.clamp($activeSlave.waist+random(20,50),-100,100)>>
	<<set $activeSlave.balls = 0, $activeSlave.scrotum = 0, $activeSlave.dick = Math.clamp($activeSlave.dick-random(1,2),0,10)>>
	<<set $activeSlave.behavioralFlaw = "hates men", $activeSlave.sexualFlaw = "hates anal">>
	<<if $activeSlave.faceShape == "masculine">><<set $activeSlave.faceShape = "androgynous">><</if>>
<<case "reassignment trainer">>
	"I m-mi<<ss>> my dick." You sold her to a trainer who specializes in gender reassignment, and she's definitely more feminine, if bitterly unhappy. "P-plea<<s>>e, even if you won't f-fix me, plea<<s>>e take me back. I'll b-be a <<s>>e<<x>> <<s>>lave, I ju<<s>>t don't want to be a woman."
	<<set $activeSlave.boobsImplant = 200*random(2,4), $activeSlave.boobs += $activeSlave.boobsImplant>>
	<<set $activeSlave.buttImplant = random(1,2), $activeSlave.butt = Math.clamp($activeSlave.butt+$activeSlave.buttImplant,0,10)>>
	<<set $activeSlave.lipsImplant = 10*random(1,2), $activeSlave.lips = Math.clamp($activeSlave.lips+$activeSlave.lipsImplant,0,100)>>
	<<set $activeSlave.waist = Math.clamp($activeSlave.waist+random(20,50),-100,100)>>
	<<set $activeSlave.balls = 0, $activeSlave.scrotum = 0, $activeSlave.dick = 0, $activeSlave.vagina = 3>>
	<<set $activeSlave.behavioralFlaw = "hates men", $activeSlave.sexualFlaw = "hates penetration">>
	<<if $activeSlave.faceShape == "masculine">><<set $activeSlave.faceShape = "androgynous">><</if>>
<<case "arcade">>
	"Take me back, or kill me," she <<say>>s. You sold her to an arcade, and it's surprising she managed to make it up here at all. "Plea<<s>>e," she begs. "I will do literally anything. I c-can feel my<<s>>elf going c-cra<<z>>y. I'd rather die."
	<<set $activeSlave.anus = 4>>
	<<if $activeSlave.vagina != -1>><<set $activeSlave.vagina = 4>><</if>>
	<<set $activeSlave.intelligence = Math.clamp($activeSlave.intelligence-2,-3,3)>>
	<<set $activeSlave.behavioralFlaw = "odd", $activeSlave.sexualFlaw = "apathetic">>
<<case "harvester">>
	"I'm ju<<s>>t kept in a pen unle<<ss>> they're d-doing <<s>>urgery on me." It's not surprising; you did sell her to an organ farm. What's unexpected is that she's still alive. They must be removing the less essential parts gradually. "I'm going to die," she <<say>>s hollowly. "Next <<s>>urgery, I won't wake up."
	<<set $activeSlave.balls = 0, $activeSlave.ovaries = 0, $activeSlave.preg = -2, $activeSlave.pregType = 0, $activeSlave.pregWeek = 0, $activeSlave.pregKnown = 0>>
	<<run SetBellySize($activeSlave)>>
	<<set $activeSlave.behavioralFlaw = "hates men", $activeSlave.sexualFlaw = "crude">>
<<case "D butt bury">>
	"My kind butt loving Ma<<s>>ter had to <<s>>ell me, and the brothel who bought me u<<s>>e<<s>> my behind a<<s>> an adverti<<s>>ement." She shifts uncomfortably. "I can barely feel my anu<<s>>."
	<<set $activeSlave.anus = 4>>
	<<set $activeSlave.behavioralFlaw = "hates men", $activeSlave.sexualFlaw = "hates anal">>
<<case "D shorty breeder">>
	"My kind Ma<<s>>ter had to <<s>>ell me, and the brothel who bought me got rid of hi<<s>>, um, they got rid of my pregnan<<c>>y, and now I'm ju<<s>>t a short <<s>>lut."
	<<set $activeSlave.behavioralFlaw = "hates men", $activeSlave.sexualFlaw = "crude">>
<<case "fuckdoll">>
	Her appearance is surprising; you sold her to a dealer who planned to encase her in a Fuckdoll suit and thereby transform her into a living sex toy. Apparently they decided to extract a bit of fun out of her first. "I've b-been chained up in their b-bathroom ever <<s>>in<<c>>e you <<s>>old me," she <<say>>s hollowly. "They're g-getting bored of me."
	<<set $activeSlave.behavioralFlaw = "hates men", $activeSlave.sexualFlaw = "hates penetration">>
<<case "stuffer chef">>
	"They fini<<sh>>ed." Her appearance is not that surprising; you sold her to a chef who enjoyed stuffing her face till she was bloated. Apparently he sold her off after she got too fat for his stuffings to show. "He <<s>>tretched my belly out <<s>>o much and when I got <<s>>o fat he couldn't <<s>>ee a differen<<c>>e with hi<<s>> fea<<s>>t<<s>>, he got rid of me." She lowers her arms, allowing her grotesquely sagging belly to hang free. "I'm gro<<ss>>. I'm fat, <<s>>aggy, and gro<<ss>>."
	<<set $activeSlave.boobs = Math.clamp($activeSlave.boobs+50*random(5,10),0,10000)>>
	<<set $activeSlave.butt = Math.clamp($activeSlave.butt+random(1,2),0,10)>>
	<<set $activeSlave.waist = Math.clamp($activeSlave.waist-random(20,50),-100,100)>>
	<<set $activeSlave.weight = Math.clamp($activeSlave.weight+random(50,100),-100,200)>>
	<<set $activeSlave.bellySag = 80>>
	<<set $activeSlave.behavioralFlaw = "anorexic">>
<<default>>
	<<switch _buyer>>
	<<case "housekeeper">>
		"My kind Ma<<s>>ter pa<<ss>>ed away, and hi<<s>> heir <<s>>old me
	<<case "nice brothel">>
		"The ni<<c>>e brothel you <<s>>old me to failed, and their girl<<s>> went
	<<case "virgin trader">>
		"After I couldn't pa<<ss>> a<<s>> a virgin any more, they <<s>>old me
	<<case "D virgin asspussy">>
		"My new owner loved my a<<ss>>pu<<ss>>y becau<<s>>e my front hole was virgin. B-but i-it got b-broken by accid-dent, I <<s>>wear, and then he <<s>>old me
	<<default>>
		"Plea<<s>>e. I've been re<<s>>old
	<</switch>>
	to a sh-shitty brothel on the lower level<<s>>. It'<<s>> h-horrible there. I live in a tiny little room, and the only people I ever <<s>>ee ju<<s>>t fuck me and leave. N-nobody ever t-talk<<s>> to me. And they beat me."
	<<if $activeSlave.amp == 0>>She shifts uncomfortably on her feet. The soles of the feet are a convenient place to beat a whore, since it's agonizingly painful, doesn't bruise badly, and won't inconvenience a slave that spends all her time kneeling or lying down.<</if>>
	<<set $activeSlave.anus = 3>>
	<<if $activeSlave.vagina > -1>><<set $activeSlave.vagina = 3>><</if>>
	<<set $activeSlave.sexualFlaw = either("hates oral", "hates anal", "hates penetration")>>
<</switch>>

<br><br>
It isn't obvious how she managed to escape, though no doubt you could review the arcology surveillance logs and find out. For right now, though, the question is what to do with her.
<<if $activeSlave.trust > 95>>
	"Plea<<s>>e," she sobs, breaking down at last. "I th-thought I w-wa<<s>> a g-good girl. T-take me b-back and I'll p-pretend I n-never left. I'll d-do anything you a<<s>>k. I'll worship the ground you walk on. Plea<<s>>e."
	<<set $activeSlave.devotion = 100>>
<<elseif $activeSlave.intelligence < 0>>
	"Plea<<s>>e," she sobs, breaking down at last. "I d-don't know where el<<s>>e to go." That much you believe; she's an idiot.
<<else>>
	"I know I'll be caught," she sobs, breaking down at last. "I know you'd f-find me. <<S>>o I came here. Plea<<s>>e." She's right about that much. This is literally the only chance she has of getting away from her current owners.
<</if>>

<<set $contractCost = 5000>>
<<slaveCost $activeSlave>>
<<set $slaveCost -= $contractCost>>

<br><br>

<<set $saleDescription = 1, $applyLaw = 0>><<include "Long Slave Description">>

<br><br>

<span id="result">
<<link "Return her">>
	<<set $rep += Math.trunc($slaveCost/10)>>
	<<replace "#result">>
		$activeSlave.slaveName keeps waiting, but the doors to the penthouse never open. When her owners arrive a few minutes later to collect her, she cries harder, but does not resist. Her weeping has the peculiar ring of utter hopelessness as they restrain her and drag her off. A few minutes after that, you receive a businesslike note @@.green;expressing gratitude@@ for your assistance in this matter.
		<<set $boomerangStats = 0>>
	<</replace>>
<</link>>
<<if $cash >= $contractCost>>
<br><<link "Obfuscate her appearance and re-enslave her">>
	<<set $cash -= $contractCost>>
	<<if $familyTesting == 1>>
		<<if $boomerangStats.PCpregSource > 0 && $PC.preg > 0 && $PC.pregSource == 0>>
			<<set $PC.pregSource = $activeSlave.ID>>
		<</if>>
		<<if $boomerangStats.PCmother > 0>>
			<<set $PC.mother = $activeSlave.ID>>
		<</if>>
		<<if $boomerangStats.PCfather > 0>>
			<<set $PC.father = $activeSlave.ID>>
		<</if>>
		<<for _reb = 0; _reb < $slaves.length; _reb++>>
			<<if $boomerangStats.boomerangMother.includes($slaves[_reb].ID)>>
				<<set $slaves[_reb].mother = $activeSlave.ID>>
			<</if>>
			<<if $boomerangStats.boomerangFather.includes($slaves[_reb].ID)>>
				<<set $slaves[_reb].father = $activeSlave.ID>>
			<</if>>
			<<if $boomerangStats.boomerangPregSources.includes($slaves[_reb].ID) && $slaves[_reb].preg > 0 && $slaves[_reb].pregSource == 0>>
				<<set $slaves[_reb].pregSource = $activeSlave.ID>>
			<</if>>
		<</for>>
		<<if $incubator > 0>>
			<<for _reb = 0; _reb < $tanks.length; _reb++>>
				<<if $boomerangStats.boomerangMotherTank.includes($tanks[_reb].ID)>>
					<<set $tanks[_reb].mother = $activeSlave.ID>>
				<</if>>
				<<if $boomerangStats.boomerangFatherTank.includes($tanks[_reb].ID)>>
					<<set $tanks[_reb].father = $activeSlave.ID>>
				<</if>>
			<</for>>
		<</if>>
	<<else>>
		<<if $boomerangStats.boomerangRelation > 0>>
			<<set _reb = $slaveIndices[$boomerangStats.boomerangRelation]>>
			<<if def _reb>>
				<<if $activeSlave.relation == "mother">>
					<<set $slaves[_reb].relation = "daughter">>
				<<elseif $activeSlave.relation == "daughter">>
					<<set $slaves[_reb].relation = "mother">>
				<<else>>
					<<set $slaves[_reb].relation = $activeSlave.relation>>
				<</if>>
				<<set $slaves[_reb].relationshipTarget = $activeSlave.ID>>
			<<else>>
				<<set $activeSlave.relation = 0, $activeSlave.relationTarget = 0>>
			<</if>>
		<</if>>
		<<if $boomerangStats.boomerangPregSources.length > 0>>
			<<for _reb = 0; _reb < $slaves.length; _reb++>>
				<<if $boomerangStats.boomerangPregSources.includes($slaves[_reb].ID) && $slaves[_reb].preg > 0 && $slaves[_reb].pregSource == 0>>
					<<set $slaves[_reb].pregSource = $activeSlave.ID>>
				<</if>>
			<</for>>
		<</if>>
	<</if>>
	<<if $boomerangStats.boomerangRelationship > 0>>
		<<set _reb = $slaveIndices[$boomerangStats.boomerangRelationship]>>
		<<if def _reb>>
			<<set $slaves[_reb].relationship = $activeSlave.relationship, $slaves[_reb].relationshipTarget = $activeSlave.ID>>
		<<else>>
			<<set $activeSlave.relationship = 0, $activeSlave.relationshipTarget = 0>>
		<</if>>
	<</if>>
	<<if $boomerangStats.boomerangRivalry > 0>>
		<<set _reb = $slaveIndices[$boomerangStats.boomerangRivalry]>>
		<<if def _reb>>
			<<set $slaves[_reb].rivalry = $activeSlave.rivalry, $slaves[_reb].rivalryTarget = $activeSlave.ID>>
		<<else>>
			<<set $activeSlave.rivalry = 0, $activeSlave.rivalryTarget = 0>>
		<</if>>
	<</if>>
	<<if $boomerangStats.boomerangBody > 0>>
		<<set _reb = $slaveIndices[$boomerangStats.boomerangBody]>>
		<<if def _reb>>
			<<set $slaves[_reb].origBodyOwnerID = $activeSlave.ID>>
		<</if>>
	<</if>>
	<<set $boomerangStats = 0>>
	<<replace "#result">>
		The penthouse opens, and $activeSlave.slaveName stumbles inside, sobbing her thanks. She's immediately conducted to the autosurgery for some quick cosmetic surgery, while you and $assistantName do the necessary work to falsify the arcology records and conceal her origins. Even so, it would probably be wise to keep her off public assignments for a while. In no time at all, she's standing in front of your desk like any other new slave. She waits obediently, knowing that it's in her best interests not to mention anything out of the ordinary.
	<<include "New Slave Intro">>
	<</replace>>
<</link>> //This will cost in <<print cashFormat($contractCost)>>.//
<br><<link "Sell her immediately">>
	<<set $cash += $slaveCost>>
	<<replace "#result">>
		The penthouse opens, and $activeSlave.slaveName stumbles inside, sobbing her thanks. She's immediately conducted to the autosurgery for some quick cosmetic surgery, while you and $assistantName do the necessary work to falsify the arcology records and conceal her origins. Before she's even out from under anesthesia, she's bundled off into one of the hundreds of slave shipments that move between arcologies every day. This time she'll be sold far enough away that no matter how much of an escape artist she is, you won't be seeing any more of her. She can whine elsewhere.
		<<set $boomerangStats = 0>>
	<</replace>>
<</link>> //This will bring in <<print cashFormat($slaveCost)>>.//
<<else>>
	//You lack the necessary funds to enslave her.//
<</if>>
</span>