code:
:: Rename [nobr]

<<set $nextButton = "Back", $nextLink = "Slave Interact">>

<<if $activeSlave.slaveName === $oldName && $activeSlave.slaveSurname === $oldSurname>>
	<<goto "Slave Interact">>
<<else>>
/* First time renaming reaction */
<<if $activeSlave.slaveName === "" || ndef $activeSlave.slaveName>>
	$oldName needs to be called something on the records, so $oldName $he stays.
	<<set $activeSlave.slaveName = $oldName>>
<<elseif $activeSlave.fetish == "mindbroken">>
	$activeSlave.slaveName doesn't even recognize that $he's been renamed. It simply does not register.
<<elseif ($oldName != $activeSlave.birthName && $oldSurname != $activeSlave.birthSurname) && ($activeSlave.slaveName == $activeSlave.birthName || $activeSlave.slaveSurname == $activeSlave.birthSurname)>>
	$activeSlave.slaveName
	<<if $activeSlave.devotion > 50>>
		cheerfully accepts $his old name back.
	<<elseif $activeSlave.devotion >= -20>>
		obediently accepts $his old name back.
	<<elseif $activeSlave.devotion >= -50>>
		happily accepts $his original name.
	<<elseif $activeSlave.trust > 20>>
		scoffs at the notion that $he was ever anything other than <<= SlaveFullBirthName($activeSlave)>>, @@.orangered;weakening your control over $him.@@
		<<set $activeSlave.trust += 5>>
	<<else>>
		cautiously accepts the return of $his name.
	<</if>>
<<elseif $oldName == $activeSlave.birthName || $oldSurname == $activeSlave.birthSurname>>
	$activeSlave.slaveName
	<<if $activeSlave.devotion > 50>>
		accepts $his new name cheerfully. This attachment to you @@.hotpink; increases $his devotion.@@
		<<set $activeSlave.devotion += 4>>
	<<elseif $activeSlave.devotion >= -20>>
		obediently accepts $his new name. This surrender to you @@.hotpink; increases $his obedience.@@
		<<set $activeSlave.devotion += 4>>
	<<elseif $activeSlave.devotion >= -50>>
		reluctantly accepts $his new name.
	<<else>>
		angrily tries to resist $his new name, insisting that $his name is <<= SlaveFullBirthName($activeSlave)>>. This resistance @@.mediumorchid; increases $his rebelliousness.@@
		<<set $activeSlave.devotion -= 5>>
	<</if>>
<<else>>
	Since $activeSlave.slaveName has already had a new name <<if $activeSlave.devotion > 20>>given to<<else>>forced on<</if>> $him before, the mere fact of having it changed again doesn't really affect $him.
<</if>>

<<set _insultingName = 0>>
<<if $oldName != $activeSlave.slaveName && typeof $activeSlave.slaveName == "string">>
	<<set _toSearch = $activeSlave.slaveName.toLowerCase()>>
	<<for $i = 0; $i < setup.badWords.length; $i++>>
	<<if _toSearch.indexOf(setup.badWords[$i]) != -1>>
		<<set _insultingName = 1>>
		<<break>>
	<</if>>
	<</for>>
<</if>>
<<if !_insultingName>>
<<if $oldSurname != $activeSlave.slaveSurname && typeof $activeSlave.slaveSurname == "string">>
	<<set _toSearch = $activeSlave.slaveSurname.toLowerCase()>>
	<<for $i = 0; $i < setup.badWords.length; $i++>>
	<<if _toSearch.indexOf(setup.badWords[$i]) != -1>>
		<<set _insultingName = 1>>
		<<break>>
	<</if>>
	<</for>>
<</if>>
<</if>>
<<if _insultingName == 1>>
<<if $activeSlave.fetish == "mindbroken">>
	$His new name would be insulting to a normal $girl, but $he dully accepts that it is an accurate description and goes about $his duties.
<<elseif $activeSlave.devotion < -50>>
	Being given such a degrading name @@.mediumorchid;further increases $his hatred@@ of you.
	<<set $activeSlave.devotion -= 5>>
<<elseif $activeSlave.devotion <= 50>>
	Being given such a degrading name @@.gold;terrifies $him,@@ since $he thinks it's fair warning for what $he'll suffer in the future.
	<<set $activeSlave.trust -= 5>>
<</if>>
<</if>>

/* Wife's surname reaction */
<<if $oldSurname != $activeSlave.slaveSurname>>
<<if $activeSlave.relationship >= 5>>
	<<set _i = $slaveIndices[$activeSlave.relationshipTarget]>>
	<<if ndef _i>>@@.red;Error, relationshipTarget not found.@@<</if>>
	<<if $slaves[_i].slaveSurname>>
	<<if $activeSlave.slaveSurname == $slaves[_i].slaveSurname>>
		$He's touched that $he now shares a surname with $his wife $slaves[_i].slaveName $slaves[_i].slaveSurname, and is @@.mediumaquamarine;more confident than ever@@ that you intend to keep them together in marital bliss.
		<<set $activeSlave.trust += 5>>
	<<elseif $oldSurname == $slaves[_i].slaveSurname>>
		$He's concerned that $he no longer shares a surname with $his wife $slaves[_i].slaveName $slaves[_i].slaveSurname, and is @@.gold;very worried@@ that you might be considering splitting them up.
		<<set $activeSlave.trust -= 5>>
	<</if>>
	<</if>>
<</if>>
<</if>>

/* PC's surname reaction */
<<if $oldSurname != $activeSlave.slaveSurname>>
<<if $activeSlave.relationship == -3>>
	<<if $PC.surname>>
	<<if $activeSlave.fetish == "mindbroken">>
		Names are meaningless to $him and it is unlikely $he'll remember it.
	<<elseif $activeSlave.devotion+$activeSlave.trust >= 175>>
		<<if $activeSlave.slaveSurname == $PC.surname>>
			<<if $activeSlave.amp <= 0>>
				When you tell $him that $he's to be known as $activeSlave.slaveName $activeSlave.slaveSurname now, $he starts to cry. $He tries to get $himself under control and thank you as best $he can, wiping at the tears running down $his $activeSlave.skin cheeks, but $he can't seem to stop weeping as $he thanks you over and over. $He's a sex slave, your property, and it's understandable that some doubts about the permanence of $his place as your slave wife. This has @@.mediumaquamarine;helped reassure $him,@@ and explains the strength of $his emotional reaction. The next time you make love to $him, $he @@.hotpink;presses $himself as close to you as $he can,@@ eager to drink in as much of your presence as $he can get.
			<<else>>
				$He's @@.hotpink;deeply touched@@ that $he now shares a surname with you, and has @@.mediumaquamarine;an additional source of confidence@@ that $he'll remain your amputee slave wife.
			<</if>>
			<<set $activeSlave.devotion += 5, $activeSlave.trust += 5>>
		<<elseif $oldSurname == $PC.slaveSurname>>
			$He's devastated that you'd rename $him something other than your name. $He's @@.gold;terrified@@ that you intend to discard $him as your slave wife, and @@.mediumorchid;saddened@@ that you would take away something that was precious to $him.
			<<set $activeSlave.devotion -= 5, $activeSlave.trust -= 5>>
		<</if>>
	<<elseif $activeSlave.devotion < -20 && $activeSlave.trust > 20>>
		<<if $activeSlave.slaveSurname == $PC.surname>>
			When you tell $him that $he's to be known as $activeSlave.slaveName $activeSlave.slaveSurname now, $he shows no reaction. You already took everything from $him, what's a name at this point?
		<<elseif $oldSurname == $PC.slaveSurname>>
			$He doesn't care about losing your surname at first, but it quickly sets in that $he may have @@.gold;pushed $his position too far.@@
			<<set $activeSlave.trust -= 20>>
		<</if>>
	<<elseif $activeSlave.devotion < -20>>
		<<if $activeSlave.slaveSurname == $PC.surname>>
			When you tell $him that $he's to be known as $activeSlave.slaveName $activeSlave.slaveSurname now, $he pleads with you not to steal $his name. It matters little to you, and $he is forced to @@.hotpink;accept your will.@@
			<<set $activeSlave.devotion += 5>>
		<<elseif $oldSurname == $PC.slaveSurname>>
			$He's @@.mediumorchid;happy@@ to no longer have to share a name with $his tormentor, but the bliss doesn't last long as @@.gold;dread@@ quickly sets in about what this may mean.
			<<set $activeSlave.devotion += 5, $activeSlave.trust -= 10>>
		<</if>>
	<<else>>
		<<if $activeSlave.slaveSurname == $PC.surname>>
			When you tell $him that $he's to be known as $activeSlave.slaveName $activeSlave.slaveSurname now, $he nods with approval feeling @@.mediumaquamarine;that $he may hold at least some value in your eyes.@@
			<<set $activeSlave.trust += 5>>
		<<elseif $oldSurname == $PC.slaveSurname>>
			$He accepts that you'd rename $him something other than your name. She's @@.gold;a little scared@@ that you intend to discard $him as your slave wife, or worse, but realizes this was not only a possibility, but likely.
			<<set $activeSlave.trust -= 5>>
		<</if>>
	<</if>>
	<</if>>
<</if>>
<</if>>

<</if>> /* close new name check */


code:
:: Reputation [nobr]

<<if $useTabs == 0>>__Reputation__<</if>>
<br>

<<run PCTitle()>>

On formal occasions, you are announced as $PCTitle.

<<if $arcologies[0].FSChattelReligionist != "unset">>
<<if $arcologies[0].FSChattelReligionistCreed == 1>>
	$arcologies[0].name keeps the creed of the $nicaeaName. The faithful
	<<if $nicaeaAchievement == "slaves">>
		<<if $slaves.length > 50>>
			@@.green;strongly approve@@ of the large
			<<= FSChange("ChattelReligionist", 5)>>
		<<elseif $slaves.length > 20>>
			@@.green;approve@@ of the good
			<<= FSChange("ChattelReligionist", 2)>>
		<<else>>
			are not impressed by the
		<</if>>
		number of people you're giving the honor of sexual servitude.
	<<elseif $nicaeaAchievement == "devotion">>
		<<if $averageDevotion > 80>>
			@@.green;strongly approve@@ of the worshipfulness
			<<= FSChange("ChattelReligionist", 5)>>
		<<elseif $averageDevotion > 50>>
			@@.green;approve@@ of the devotion
			<<= FSChange("ChattelReligionist", 2)>>
		<<else>>
			are not impressed by the devotion
		<</if>>
		of your slaves.
	<<else>>
		<<if $averageTrust > 50>>
			@@.green;strongly approve@@ of the great trust your slaves place in you.
			<<= FSChange("ChattelReligionist", 5)>>
		<<elseif $averageTrust > 20>>
			@@.green;approve@@ of the trust your slaves place in you.
			<<= FSChange("ChattelReligionist", 2)>>
		<<else>>
			are not impressed by the fear many of your slaves feel towards you.
		<</if>>
	<</if>>
<</if>>
<</if>>

<<set $repDecay = 0.2>>
<<if $arcologies[0].FSChattelReligionistLaw == 1>>
	<<set $repLoss = 0, $PC.degeneracy = 0>>
	Since you are the Prophet, your reputation no longer degrades at all.
<<elseif $arcologies[0].FSRestartDecoration == 100>>
	<<set $repLoss = 0, $PC.degeneracy = 0>>
	Since you are an established member of the Societal Elite, your public reputation no longer decays.
<<elseif $rep > $enduringRep>>
	<<if $arcologies[0].FSMaturityPreferentialistLaw == 1>>
	<<if $PC.actualAge >= 65>>
		Since you're getting on in years and have an impressive list of accomplishments, and $arcologies[0].name's society respects age, your reputation degrades quite slowly.
		<<set $repLoss = Math.trunc(($rep-$enduringRep)*($repDecay-0.025))>>
	<<elseif $PC.actualAge >= 50>>
		Since you're well into middle age and have an impressive list of accomplishments, and $arcologies[0].name's society respects age, your reputation degrades quite slowly.
		<<set $repLoss = Math.trunc(($rep-$enduringRep)*($repDecay-0.025))>>
	<<elseif $PC.actualAge < 35>>
		Since you're unusually young for an arcology owner, and $arcologies[0].name's society respects age, your reputation degrades quite quickly.
		<<set $repLoss = Math.trunc(($rep-$enduringRep)*($repDecay+0.025))>>
	<<else>>
		Since you're only entering middle age, and $arcologies[0].name's society respects age, your reputation degrades fairly quickly.
		<<set $repLoss = Math.trunc(($rep-$enduringRep)*($repDecay))>>
	<</if>>
	<<elseif $arcologies[0].FSYouthPreferentialistLaw == 1>>
	<<if $PC.actualAge >= 65>>
		Since you're getting on in years and have an impressive list of accomplishments, but $arcologies[0].name's society is coming to prefer youth to experience, so your reputation degrades fairly quickly.
		<<set $repLoss = Math.trunc(($rep-$enduringRep)*($repDecay-0.025))>>
	<<elseif $PC.actualAge >= 50>>
		You're well into middle age and have an impressive list of accomplishments, but $arcologies[0].name's society is coming to prefer youth to experience, so your reputation degrades fairly quickly.
		<<set $repLoss = Math.trunc(($rep-$enduringRep)*($repDecay+0.025))>>
	<<elseif $PC.actualAge < 35>>
		You're unusually young for an arcology owner, but $arcologies[0].name's society doesn't mind.
		<<set $repLoss = Math.trunc(($rep-$enduringRep)*($repDecay))>>
	<<else>>
		Since you're entering middle age, and $arcologies[0].name's society respects youth, your reputation degrades fairly quickly.
		<<set $repLoss = Math.trunc(($rep-$enduringRep)*($repDecay+0.025))>>
	<</if>>
	<<else>>
	<<if $PC.actualAge >= 65>>
		Since you're getting on in years and have an impressive list of accomplishments, and $arcologies[0].name's society respects age, your reputation degrades quite slowly.
		<<set $repLoss = Math.trunc(($rep-$enduringRep)*($repDecay-0.025))>>
	<<elseif $PC.actualAge >= 50>>
		Since you're well into middle age and have an impressive list of accomplishments, your reputation degrades fairly slowly.
		<<set $repLoss = Math.trunc(($rep-$enduringRep)*($repDecay-0.025))>>
	<<elseif $PC.actualAge < 35>>
		Since you're unusually young for an arcology owner, your reputation degrades fairly quickly.
		<<set $repLoss = Math.trunc(($rep-$enduringRep)*($repDecay+0.025))>>
	<<else>>
		<<set $repLoss = Math.trunc(($rep-$enduringRep)*($repDecay))>>
	<</if>>
	<</if>>
	<<if $enduringRep > 8000>>
	However, you have been a figure of renown for so long that much of your reputation has become permanent.
	<<elseif $enduringRep > 5000>>
	However, you have been a figure of repute for enough time that part of your reputation has become permanent.
	<<elseif $enduringRep > 2000>>
	However, you have been a figure of regard for long enough that some of your reputation has become permanent.
	<</if>>
	<<set $enduringRep += Math.trunc($repLoss*0.025)>>
<<else>>
	<<set $repLoss = 0>>
	<<if $enduringRep > 8000>>
	You have been a figure of renown for so long that your reputation does not decay past its present level.
	<<elseif $enduringRep > 5000>>
	You have been a figure of repute for enough time that your reputation does not decay past its present level.
	<<elseif $enduringRep > 2000>>
	You have been a figure of regard for long enough that your reputation does not decay past its present level.
	<</if>>
<</if>>

<<if ($weatherAwareness == 0) && ($weatherCladding == 2)>>
	The public @@.green;is awestruck@@ of the beautiful weather hardening you have applied to the arcology's exterior, though they do not understand why you would waste so much money first ruining your arcology's appearance before doing this.
	<<set $rep += 10>>
<<elseif ($weatherAwareness == 0) && ($weatherCladding == 1)>>
	The public @@.red;disapproves@@ of the ugly weather hardening you have applied to the arcology's exterior, not understanding what you're worried about.
	<<set $rep -= 100>>
<</if>>

<<if $arcologies[0].FSRestartDecoration == 100>>
	As a member of the societal elite, your appearance has no bearing on your reputation.
<<else>>
<<if ($PC.dick == 0) && ($PC.boobs == 1) && $PC.title == 0>>
	<<if $rep > 18000>>
		Your reputation is so well-established that society has accepted your notoriously feminine appearance despite how unusual it is for a prominent slaveowner to look like you do.
		<<if $arcologies[0].FSGenderRadicalist > 30>>
			Indeed, society sees you as entirely male, since you are powerful, and @@.green;strongly approves@@ of your nonconformity; this advances the redefinition of gender around power.
			<<= FSChange("GenderRadicalist", 5)>>
		<<elseif $arcologies[0].FSGenderFundamentalist > 30>>
			Indeed, society has been reconciled to female leadership, preferring to see you as a mother figure.
		<</if>>
	<<elseif $arcologies[0].FSGenderRadicalist > 40>>
		Society accepts you as an arcology owner, since it has become open-minded about power and gender.
		<<if $arcologies[0].FSGenderRadicalist > 50>>
			Indeed, society sees you as fundamentally male, since you are powerful, and @@.green;strongly approves@@ of your audacity; this advances the redefinition of gender around power.
			<<= FSChange("GenderRadicalist", 5)>>
		<</if>>
	<<else>>
		Most prominent slaveowners are male, and your obviously feminine appearance makes it @@.red;harder for you to maintain your reputation.@@
		<<set $repLoss += Math.trunc($rep*0.1)>>
		<<if $arcologies[0].FSGenderFundamentalist > 10>>
			Society @@.red;strongly resents@@ your being an arcology owner; this damages the idea that women should not be in positions of responsibility.
			<<= FSChange("GenderFundamentalist", -5)>>
		<</if>>
	<</if>>
<<elseif ($PC.boobs == 1) || $PC.title == 0>>
	<<if $rep > 15000>>
		Your reputation is so strong that society has accepted your feminine appearance despite how unusual it is for a prominent slaveowner to look like you do.
		<<if $arcologies[0].FSGenderRadicalist > 30>>
			Indeed, society sees you as entirely male, since you are powerful, and @@.green;strongly approves@@ of your nonconformity; this advances the redefinition of gender around power.
			<<= FSChange("GenderRadicalist", 5)>>
		<<elseif $arcologies[0].FSGenderFundamentalist > 30>>
			Indeed, society has been reconciled to your feminine appearance, seeing you as a person apart.
		<</if>>
	<<elseif $arcologies[0].FSGenderRadicalist > 20>>
		Society accepts you as an arcology owner, since it has become open-minded anyone who has a cock and fucks.
		<<if $arcologies[0].FSGenderRadicalist > 30>>
			Indeed, society sees you as dominant, since you fuck bitches, and @@.green;strongly approves@@ of your nonconformity; this advances the redefinition of gender around power.
			<<= FSChange("GenderRadicalist", 5)>>
		<</if>>
	<<else>>
		Most prominent slaveowners are very masculine, and your feminine appearance makes it @@.red;harder for you to maintain your reputation.@@
		<<set $repLoss += Math.trunc($rep*0.05)>>
		<<if $arcologies[0].FSGenderFundamentalist > 30>>
			Society @@.red;strongly resents@@ your being an arcology owner; this damages the idea that feminine people should not be in positions of responsibility.
			<<= FSChange("GenderFundamentalist", -5)>>
		<</if>>
	<</if>>
<<elseif ($PC.dick == 0) || ($PC.vagina == 1)>>
	<<if $rep > 15000>>
		Your reputation is so strong that society has accepted your unorthodox arrangement downstairs, for an arcology owner.
		<<if $arcologies[0].FSGenderRadicalist > 30>>
			Indeed, society sees you as entirely male, since you are powerful, and @@.green;strongly approves@@ of your nonconformity; this advances the redefinition of gender around power.
			<<= FSChange("GenderRadicalist", 5)>>
		<<elseif $arcologies[0].FSGenderFundamentalist > 30>>
			Indeed, society has been reconciled to your strangeness, seeing you as a person apart.
		<</if>>
	<<elseif $arcologies[0].FSGenderRadicalist > 20>>
		Society accepts you as an arcology owner, since it has become open-minded about the exact genital layout of powerful people.
		<<if $arcologies[0].FSGenderRadicalist > 30>>
			Indeed, society sees you as dominant, since you are powerful, and @@.green;strongly approves@@ of your nonconformity; this advances the redefinition of gender around power.
			<<= FSChange("GenderRadicalist", 5)>>
		<</if>>
	<<else>>
		Most prominent slaveowners are very masculine, and though your unorthodox arrangement downstairs isn't obvious when you're clothed, the rumors are unavoidable and it's @@.red;harder for you to maintain your reputation.@@
		<<set $repLoss += Math.trunc($rep*0.05)>>
		<<if $arcologies[0].FSGenderFundamentalist > 30>>
			Society @@.red;strongly resents@@ your being an arcology owner; this damages the idea that people who are not men should not be in positions of responsibility.
			<<= FSChange("GenderFundamentalist", -5)>>
		<</if>>
	<</if>>
<</if>>
<</if>>

<<if $sexualOpeness == 1>>
	<<if $arcologies[0].FSChattelReligionistLaw == 1 || $arcologies[0].FSRestartDecoration == 100>>
		/* already handled above */
	<<else>>
		<<if $arcologies[0].FSGenderRadicalist != "unset">>
			<<if $rep > 18000>>
				You are so well regarded that society has acquiesced that getting penetrated is not a sure sign of femininity.
			<<else>>
				Society views getting fucked as sign of femininity and is @@.red;strongly against your sexual preferences.@@
				<<= FSChange("GenderRadicalist", -1)>>
				<<set $rep -= 1000>>
			<</if>>
		<<elseif $arcologies[0].FSGenderFundamentalist != "unset" && $PC.vagina == 1 && $PC.title == 0>>
			<<if $rep > 10000>>
				Society has grown accustomed to your efforts enough to not care that you enjoy slave dick. In fact, it even @@.green;strengthens@@ traditional gender roles, even though you insist on breaking them.
				<<= FSChange("GenderFundamentalist", 1)>>
			<<else>>
				Society wonders if you would be happier in a whore house getting fucked all day instead of trying to lead an arcology. Your efforts @@.red;strongly support@@ the idea that women should not be in positions of responsibility.
				<<= FSChange("GenderFundamentalist", -3)>>
				<<set $rep -= 1000>>
			<</if>>
		<<else>>
			<<if $rep > 15000>>
				You are so well liked that society has accepted that you enjoy taking everything a slave has to offer.
			<<else>>
				Society finds your penchant for taking slave dick @@.red;very distasteful@@ for a slaveowner.
				<<set $rep -= 500>>
			<</if>>
		<</if>>
	<</if>>
<</if>>

<<if $secExp == 1>>
	<<if $smilingManFate == 1>>
		The grim statue of the Smiling Man outside your arcology @@.green;reminds the world of who managed to eliminate such a threat@@.
		<<set $rep += 100>>
	<</if>>

	<<if $weaponsLaw == 3>>
		The absence of any kind of restriction on weaponry within your arcology is @@.green;welcomed by your citizens@@ as sign of your respect for the ideals the Free Cities stand for.
		<<set $rep += 20>>
	<</if>>
<</if>>

<<if $arcologies[0].FSSupremacist != "unset">>
	<<if ($PC.race == $arcologies[0].FSSupremacistRace)>>
		Since you are a member of the $PC.race, society @@.green;strongly approves@@ of your ownership of the arcology.
		<<= FSChange("Supremacist", 5)>>
	<</if>>
<<elseif $arcologies[0].FSSubjugationist != "unset">>
	<<if ($PC.race == $arcologies[0].FSSubjugationistRace)>>
		<<if $rep > 15000>>
			Your reputation is so strong that society has accepted your <<print $PC.race>>ness despite you being an inferior race.
		<<else>>
			Society @@.red;loathes;@@ being lead by an inferior $PC.race, believing that any other race would make a far better leader than you.
			<<set $rep -= 200*($arcologies[0].FSSubjugationist/$FSLockinLevel)>>
		<</if>>
	<</if>>
<</if>>

<<if $arcologies[0].FSAssetExpansionist != "unset">>
	<<if $PC.boobsBonus == 3>>
		Society loves enormous breasts and you are no exception; your <<if $PC.boobsImplant == 1>>chest balloons<<else>>cow tits<</if>> @@.green;improve@@ your public image.
		<<set $rep += 10>>
	<</if>>
	<<if $PC.butt == 3>>
		Society loves big butts and you are no exception; your <<if $PC.buttImplant == 1>>inflated ass<<else>>fat ass<</if>> @@.green;improves@@ your public image.
		<<set $rep += 10>>
	<</if>>
	<<if $PC.ballsImplant > 1>>
		Society loves big things and the bulge in your crotch is no exception; your swollen balls @@.green;improve@@ your public image.
		<<set $rep += (5*$PC.ballsImplant)>>
	<</if>>
<<elseif $arcologies[0].FSSlimnessEnthusiast != "unset">>
	<<if $PC.boobsBonus > 1>>
		Society finds big breasts unsightly and you are no exception; your <<if $PC.boobsImplant == 1>>chest balloons<<else>>fat tits<</if>> @@.red;harm@@ your public image.
		<<set $rep -= (10*$PC.boobsBonus)>>
	<</if>>
	<<if $PC.butt == 3>>
		Society finds big butts unsightly and you are no exception; your <<if $PC.buttImplant == 1>>inflated ass<<else>>fat ass<</if>> @@.red;harms@@ your public image.
		<<set $rep -= (10*$PC.butt)>>
	<</if>>
<</if>>

<<if $arcologies[0].FSTransformationFetishist != "unset">>
	<<if $PC.boobsImplant == 1>>
		Society loves fake breasts and yours are no exception; your breast implants @@.green;improve@@ your public image.
		<<set $rep += (7*$PC.boobsBonus)>>
	<</if>>
	<<if $PC.buttImplant == 1>>
		Society loves fake butts and yours are no exception; your ass implants @@.green;improve@@ your public image.
		<<set $rep += (7*$PC.butt)>>
	<</if>>
	<<if $PC.ballsImplant > $PC.balls>>
		Society loves everything augmented and the bulge in your crotch is no exception; your swollen balls @@.green;improve@@ your public image.
		<<set $rep += (5*($PC.ballsImplant-$PC.balls))>>
	<</if>>
	<<if ($arcologies[0].FSRepopulationFocus != "unset")>>
		<<if $PC.boobsBonus > 0 && $PC.boobsImplant == 0>>
			Society approves of anything that helps the repopulation efforts. Your large breasts promise plentiful milk and @@.green;improve@@ your public image.
			<<set $rep += (10*$PC.boobsBonus)>>
		<</if>>
		<<if $PC.balls > 1>>
			Society loves anything that helps the repopulation efforts. Your huge fertile balls indicate that you're a successful breeder and @@.green;strongly improves@@ your public image.
			<<set $rep += (15*$PC.ballsImplant)>>
		<</if>>
	<</if>>
<<elseif $arcologies[0].FSBodyPurist != "unset">>
	<<if $PC.boobsImplant == 1>>
		Society finds fake breasts repulsive and yours are no exception; your balloon-like breasts @@.red;harm@@ your public image.
		<<set $rep -= (10*$PC.boobsBonus)>>
	<</if>>
	<<if $PC.buttImplant == 1>>
		Society finds fake butts unsightly and yours is no exception; your inflated ass @@.red;harms@@ your public image.
		<<set $rep -= (10*$PC.butt)>>
	<</if>>
	<<if $PC.ballsImplant > 1 && $PC.balls == 0>>
		Society finds everything unnatural disgusting and the grotesque bulge in your crotch is no exception; your gel filled balls @@.red;harm@@ your public image.
		<<set $rep -= (10*($PC.ballsImplant-$PC.balls))>>
	<</if>>
	<<if ($arcologies[0].FSRepopulationFocus != "unset") && $PC.boobsBonus > 0 && $PC.boobsImplant == 0>>
		Society approves of anything that helps the repopulation efforts. Your large breasts promise plentiful milk and @@.green;improve@@ your public image.
		<<set $rep += (10*$PC.boobsBonus)>>
	<</if>>
<<elseif ($arcologies[0].FSRepopulationFocus != "unset")>>
	<<if $PC.boobsBonus > 0 && $PC.boobsImplant == 0>>
		Society approves of anything that helps the repopulation efforts. Your large breasts promise plentiful milk and @@.green;improve@@ your public image.
		<<set $rep += (10*$PC.boobsBonus)>>
	<</if>>
	<<if $PC.balls > 1>>
		Society loves anything that helps the repopulation efforts. Your huge fertile balls indicate that you're a successful breeder and @@.green;strongly improves@@ your public image.
		<<set $rep += (15*$PC.ballsImplant)>>
	<</if>>
<</if>>

<<if (($PC.belly >= 1500) || ($PC.career == "escort" && $PC.belly >= 500)) && $PC.preg > 0>>
	<<if $arcologies[0].FSRestart != "unset">>
		<<if $arcologies[0].FSRestartDecoration == 100>>
			<<if $PC.pregSource != -1 && $PC.pregSource != -6>>
				Most prominent female owners avoid being penetrated on
				<<if $sexualOpeness == 1>>
					principle, though you choose the opposite; your fecund figure suggests a slave knocked you up, a huge
				<<else>>
					principle; your fecund figure exposes not only your willingness to be penetrated, but your
				<</if>>
				breach of eugenics. Your citizens are @@.red;livid@@ over your actions and are calling for your removal.
				<<set $rep -= 500>>
				<<set $failedElite += 100>>
			<<else>>
				Since it is public knowledge that you are carrying a child in the name of eugenics; society views you as a bearer of the future and @@.green;celebrates@@ your contributions to society.
				<<set $rep += 200>>
				<<set $failedElite -= 10>>
			<</if>>
		<<else>>
			Most prominent female owners avoid being penetrated on
			<<if $sexualOpeness == 1>>
				principle, though you choose the opposite; your fecund figure suggests a slave knocked you up, a huge
			<<else>>
				principle; your fecund figure exposes not only your willingness to be penetrated, but your
			<</if>>
			breach of the eugenics you are pushing for. Your citizens are @@.red;disgusted@@ by both your body and your lack of commitment.
			<<set $rep -= 500>>
			<<set $failedElite += 50>>
		<</if>>
	<<elseif $arcologies[0].FSRepopulationFocus >= 60>>
		Most prominent female owners avoid being penetrated on principle, but your arcology values motherhood so much that it is more @@.green;pleased@@ with your dedication than it is disappointed in your
		<<if $sexualOpeness == 1>>
			suspected slave baby.
		<<else>>
			penetration.
		<</if>>
		<<set $rep += 10>>
	<<else>>
		Most prominent female owners avoid being penetrated on
		<<if $sexualOpeness == 1>>
			principle, though you choose the opposite; your fecund figure suggests a slave knocked you up,
		<<else>>
			principle; your fecund figure exposes your willingness to be penetrated,
		<</if>>
		making it @@.red;harder for you to maintain your reputation.@@
		<<set $rep -= 200>>
	<</if>>
<</if>>

<<if $PC.career == "escort" && $rep < 16000>>
	Society @@.red;frowns@@ over being run by an ex-whore. The presence of porn of you on the net doesn't aid your reputation either.
	<<set $rep -= ($rep*0.1)>>
<<elseif $PC.career == "escort">>
	Your reputation is so strong that society has accepted your previous endeavors despite how unusual it is for a prominent slaveowner to have once nearly been a slave.
<</if>>
<<if $PC.career == "servant" && $rep < 12000>>
	Society @@.red;frowns@@ over being run by an ex-<<if $PC.title == 1>>butler<<else>>maid<</if>>, despite how prominent their previous owner was.
	<<set $rep -= ($rep*0.1)>>
<<elseif $PC.career == "servant">>
	Your reputation is so strong that society has accepted your previous vocation despite how unusual it is for a prominent slaveowner to have once been nothing more than a lowly servant.
<</if>>
<<if $PC.career == "gang" && $rep < 15000>>
	Society @@.red;frowns@@ over being run by an ex-gang leader, no matter how strong they might have been.
	<<set $rep -= ($rep*0.1)>>
<<elseif $PC.career == "BlackHat" && $rep < 15000>>
	Society @@.red;dislikes@@ being run by someone so capable of dredging up secrets, especially when they used to do it for the highest bidder.
	<<set $rep -= ($rep*0.1)>>
<<elseif $PC.career == "gang" || $PC.career == "BlackHat">>
	Your reputation is strong enough that society has come to accept your background as part of your image.
<</if>>

<<if $PCSlutContacts == 2>>
	You are actively starring in pornographic videos. While they are rather exclusive, @@.red;some still leak out to the public,@@ harming your image.
	<<set $rep -= 50>>
	<<if isPlayerFertile($PC)>>
		That's not all that leaks out of you, considering all your shoots are rubber free.
		<<= knockMeUp($PC, 20, 0, 0, 1)>>
	<</if>>
<</if>>

<<if $arcologies[0].FSRomanRevivalist != "unset">>
	<<if $mercenaries > 0>>
		Society @@.green;approves@@ of how you are providing for the defense of the state, as should all citizens of the new Rome.
		<<= FSChange("RomanRevivalist", $mercenaries)>>
	<</if>>
		<<if ($slaves.length > 20) && ($cash > 50000)>>
		Society @@.green;strongly approves@@ of your wealth and prosperity, fit goals for the <<if def $PC.customTitle>>$PC.customTitle<<elseif $PC.title == 1>>new Roman man<<else>>rising Roman lady<</if>>.
		<<= FSChange("RomanRevivalist", 5)>>
	<</if>>
	<<if $language != "Latin">>
		Continuing to use $language as the lingua franca of $arcologies[0].name rather than the storied Latin @@.red;disappoints@@ society and causes doubt about your revivalist project.
		<<= FSChange("RomanRevivalist", -2)>>
	<</if>>
<<elseif $arcologies[0].FSAztecRevivalist != "unset">>
	<<if $PC.visualAge >= 35>>
		Society @@.green;approves@@ of your advancing age, which advances the ancient Aztec ideal of an experienced leader of the people.
		<<= FSChange("AztecRevivalist", 1)>>
	<</if>>
	<<if $HeadGirl == 0>>
		Society @@.red;disapproves@@ of you not having a Head Girl as an advisor and assistant.
		<<= FSChange("AztecRevivalist", -2)>>
	<<else>>
		Society @@.green;approves@@ of your reliance on a Head Girl as an advisor and assistant.
		<<= FSChange("AztecRevivalist", 2)>>
	<</if>>
	<<if $PC.warfare < 0>>
		Society @@.red;greatly disapproves@@ of your feebleness in the arts of war.
		<<= FSChange("AztecRevivalist", -4)>>
	<<elseif $PC.warfare < 50>>
		Society @@.red;disapproves@@ of you not being properly trained in the arts of war.
		<<= FSChange("AztecRevivalist", -2)>>
	<<else>>
		Society @@.green;approves@@ of having a leader that is trained in the arts of war.
		<<= FSChange("AztecRevivalist", 2)>>
	<</if>>
	<<if $language != "Nahuatl">>
		Continuing to use $language as the lingua franca of $arcologies[0].name rather than the revived Nahuatl @@.red;disappoints@@ society and causes doubt about your revivalist project.
		<<= FSChange("AztecRevivalist", -3)>>
	<</if>>
<<elseif $arcologies[0].FSEgyptianRevivalist != "unset">>
	<<if $racialVarieties.length > 4>>
		Society @@.green;strongly approves@@ of how you own a cornucopia of different races, which advances the ancient Egyptian ideal of cosmopolitan sex slavery.
		<<= FSChange("EgyptianRevivalist", 5)>>
	<</if>>
	<<if $language != "Ancient Egyptian">>
		Continuing to use $language as the lingua franca of $arcologies[0].name rather than revived Ancient Egyptian @@.red;disappoints@@ society and causes doubt about your revivalist project.
		<<= FSChange("EgyptianRevivalist", -2)>>
	<</if>>
<<elseif $arcologies[0].FSEdoRevivalist != "unset">>
	<<set _threshold = Math.trunc($rep/5000)>>
	<<if $publicServants <= _threshold>>
		Society @@.red;disapproves@@ of your failure to provide for cultural development by offering public servants or club slaves in a number that befits your reputation.
		<<= FSChange("EdoRevivalist", -2)>>
	<<else>>
		Society @@.green;approves@@ of your provision for cultural development by offering public servants and club slaves in a number that befits your reputation.
		<<set _EdoPS = 2*_threshold>>
		<<= FSChange("EdoRevivalist", _EdoPS)>>
	<</if>>
	<<if $language != "Japanese">>
		Continuing to use $language as the lingua franca of $arcologies[0].name rather than pure Japanese @@.red;disappoints@@ society and causes doubt about your revivalist project.
		<<= FSChange("EdoRevivalist", -2)>>
	<</if>>
<<elseif $arcologies[0].FSArabianRevivalist != "unset">>
	<<if $fuckSlaves < $rep/3500>>
		Society @@.red;disapproves@@ of the small size of your harem, feeling that you do not have enough fucktoys or slaves in your master suite for your reputation.
		<<= FSChange("ArabianRevivalist", -2)>>
	<<else>>
		Society @@.green;approves@@ of the size of your harem, feeling that you have a good number of fucktoys and slaves in your master suite for your reputation.
		<<= FSChange("ArabianRevivalist", 2)>>
	<</if>>
	<<if $language != "Arabic">>
		Continuing to use $language as the lingua franca of $arcologies[0].name rather than the Arabic in which the word of God was passed to Muhammad @@.red;disappoints@@ society and causes doubt about your revivalist project.
		<<= FSChange("ArabianRevivalist", -2)>>
	<</if>>
<<elseif $arcologies[0].FSChineseRevivalist != "unset">>
	<<if $HeadGirl == 0>>
		Society @@.red;disapproves@@ of your failure to rely on a Head Girl, as proper imperial administration requires,
		<<= FSChange("ChineseRevivalist", -2)>>
	<<else>>
		Society @@.green;approves@@ of your reliance on a Head Girl, as proper imperial administration requires,
		<<= FSChange("ChineseRevivalist", 2)>>
	<</if>>
	<<if $Recruiter == 0>>
		@@.red;disapproves@@ of your failure to maintain a Recruiter to expand the Middle Kingdom,
		<<= FSChange("ChineseRevivalist", -2)>>
	<<else>>
		@@.green;approves@@ of your maintaining a Recruiter to expand the Middle Kingdom,
		<<= FSChange("ChineseRevivalist", 2)>>
	<</if>>
	<<if $Bodyguard == 0>>
		and @@.red;disapproves@@ of your failure to keep a Bodyguard as befits a proper imperial palace.
		<<= FSChange("ChineseRevivalist", -2)>>
	<<else>>
		and @@.green;approves@@ of your keeping a Bodyguard, as befits a proper imperial palace.
		<<= FSChange("ChineseRevivalist", 2)>>
	<</if>>
	<<if $language != "Chinese">>
		Continuing to use $language as the lingua franca of $arcologies[0].name rather than the Chinese of the Middle Kingdom @@.red;disappoints@@ society and causes doubt about your revivalist project.
		<<= FSChange("ChineseRevivalist", -2)>>
	<</if>>
<</if>>

<<if ($arcologies[0].FSRepopulationFocus != "unset")>>
	<<if $IntelligenceEugenicsSMR == 1 || $HeightEugenicsSMR == 1 || $FaceEugenicsSMR == 1>>
		Society @@.red;disapproves@@ of your policies sterilizing potential mothers. Your insistence on eugenics hinders adoption of your new society.
		<<set _noEugenics = -1*($IntelligenceEugenicsSMR+$HeightEugenicsSMR+$FaceEugenicsSMR)>>
		<<= FSChange("Repopulationist", _noEugenics)>>
	<</if>>
<<elseif $arcologies[0].FSPaternalist != "unset">>
	<<if $IntelligenceEugenicsSMR == 1 || $HeightEugenicsSMR == 1 || $FaceEugenicsSMR == 1>>
		Society @@.red;disapproves@@ of your policies forcefully sterilizing slaves, especially when they snuff out the life growing within them.
		<<set _noEugenics = -1*($IntelligenceEugenicsSMR+$HeightEugenicsSMR+$FaceEugenicsSMR)>>
		<<= FSChange("Paternalist", _noEugenics)>>
	<</if>>
<<elseif ($arcologies[0].FSRestart != "unset") && $arcologies[0].FSPaternalist == "unset">>
	<<if ($IntelligenceEugenicsSMR == 1 || $HeightEugenicsSMR == 1 || $FaceEugenicsSMR == 1) && $arcologies[0].FSRestartSMR != 1>>
		Society @@.green; approves@@ of your slave eugenics policies, easing them into more thorough eugenics.
		<<set _yesEugenics = ($IntelligenceEugenicsSMR+$HeightEugenicsSMR+$FaceEugenicsSMR)>>
		<<= FSChange("Eugenics", _yesEugenics)>>
		<<set $failedElite -= 1*($IntelligenceEugenicsSMR+$HeightEugenicsSMR+$FaceEugenicsSMR)>>
	<<elseif $arcologies[0].FSRestartSMR == 1>>
		<<set $failedElite -= 2*($IntelligenceEugenicsSMR+$HeightEugenicsSMR+$FaceEugenicsSMR)>>
	<</if>>
<</if>>

<<if ($arcologies[0].FSRepopulationFocus != "unset") && ($birthsTotal > 0)>>
	The number of children you've bought into the world @@.green;pleases@@ your citizens.
	<<if $birthsTotal < 1000>>
		<<set $rep += $birthsTotal>>
	<<else>>
		<<set $rep += 1000>>
	<</if>>
<</if>>

<<if $shelterAbuse > 5>>
	<<if $arcologies[0].FSPaternalist != "unset">>
		You are on the Slave Shelter's public list of abusive slaveowners. Society @@.red;disapproves@@ of your falling foul of such a well regarded charity.
		<<= FSChange("Paternalist", -2)>>
	<<elseif $arcologies[0].FSDegradationist != "unset">>
		You are on the Slave Shelter's public list of abusive slaveowners. Your citizens find this hilarious, and @@.green;approve@@ of your taking advantage of a pack of idiots.
		<<= FSChange("Degradationist", 2)>>
	<</if>>
<</if>>

<<if $TCR.schoolPresent == 1>>
	<<if $arcologies[0].FSRestart != "unset">>
		Your Eugenics focused society @@.red;disagrees@@ with the local branch of The Cattle Ranch's views on slave breeding. Until society sees them as nothing more than mindless cattle and not human, they are in conflict with current reproduction standards.
		<<= FSChange("Eugenics", -1)>>
	<<elseif $arcologies[0].FSPaternalist != "unset">>
		While they can't stop what happens to slaves outside of your arcology, they can @@.red;disapprove and protest@@ you allowing a branch of the mentally and physically abusive Cattle Ranch to be established in your arcology.
		<<= FSChange("Paternalist", -2)>>
	<</if>>
<</if>>

<<if $Cash4Babies == 1>>
	<<if $arcologies[0].FSDegradationist != "unset">>
		Society @@.green;approves@@ of your poor treatment of slave infants.
		<<set $rep += 5*$FSSingleSlaveRep*($arcologies[0].FSDegradationist/$FSLockinLevel)>>
	<<elseif $arcologies[0].FSRestart != "unset">>
		The Societal Elite @@.red;strongly disapproves@@ of your creating an economic incentive for the lower classes to breed and sell infants, holding back acceptance of your new society.
		<<set $failedElite += 5, $arcologies[0].FSRestart -= $FSSingleSlaveRep, $rep -= (5*$FSSingleSlaveRep*($arcologies[0].FSRestart/$FSLockinLevel))+($rep/40)>>
	<<elseif $arcologies[0].FSPaternalist != "unset">>
		Society @@.red;greatly despises@@ your poor treatment of slave infants.
		<<set $rep -= (25*$FSSingleSlaveRep*($arcologies[0].FSPaternalist/$FSLockinLevel))+($rep/20)>>
	<<elseif $arcologies[0].FSRepopulationFocus != "unset">>
		Society @@.red;disapproves@@ of your poor treatment of your future population, holding back acceptance of your new society.
		<<set $arcologies[0].FSRepopulationFocus -= $FSSingleSlaveRep, $rep -= (5*$FSSingleSlaveRep*($arcologies[0].FSRepopulationFocus/$FSLockinLevel))+($rep/20)>>
	<<else>>
		Your citizens @@.red;disapprove@@ of your poor treatment of slave children.
		<<set $rep -= ($rep/20)>>
	<</if>>
<</if>>

<<if $MixedMarriage == 1>>
	Your citizens
	<<if $arcologies[0].FSPaternalist >= 80>>
		are so paternalistic that they @@.green;approve@@ of
		<<= FSChange("Paternalist", 2)>>
	<<elseif $arcologies[0].FSPaternalist >= 40>>
		are paternalistic enough to tolerate
	<<else>>
		@@.red;disapprove@@ of
		<<set $rep -= 50>>
	<</if>>
	your support for marriage between citizens and slaves.
<</if>>

<<if $citizenOrphanageTotal > 0>>
	<<if $arcologies[0].FSPaternalist != "unset">>
		The public @@.green;approves@@ of the way you're providing for $citizenOrphanageTotal of your slaves' children to be raised as citizens.
		<<= FSChange("Paternalist", $citizenOrphanageTotal)>>
		<<if $privateOrphanageTotal > 0>>
			Raising <<print commaNum($privateOrphanageTotal)>> of your slaves' children privately is considered even more @@.green;impressive.@@
			<<set _care = $privateOrphanageTotal*2>>
			<<= FSChange("Paternalist", _care)>>
		<</if>>
	<<elseif $arcologies[0].FSDegradationist != "unset">>
		The public @@.red;disapproves@@ of the way you're providing for $citizenOrphanageTotal of your slaves' children to be raised as citizens.
		<<set _care = -$citizenOrphanageTotal>>
		<<= FSChange("Degradationist", _care)>>
		<<if $privateOrphanageTotal > 0>>Fortunately your raising slaves' children privately is not publicly known.<</if>>
	<</if>>
<<elseif $privateOrphanageTotal > 0>>
	<<if $arcologies[0].FSPaternalist != "unset">>
		Raising <<print commaNum($privateOrphanageTotal)>> of your slaves' children privately is considered extremely @@.green;impressive.@@
		<<set _care = $privateOrphanageTotal*2>>
		<<= FSChange("Paternalist", _care)>>
	<<elseif $arcologies[0].FSDegradationist != "unset">>
		Fortunately your raising slaves' children privately is not publicly known.
	<</if>>
<</if>>
<<if $breederOrphanageTotal > 0 && $arcologies[0].FSRepopulationFocus != "unset">>
	The public @@.green;approves@@ of the way you've dedicated <<print commaNum($breederOrphanageTotal)>> of your slaves' children to be raised into future breeders.
	<<set _futureBreeders = Math.round((($breederOrphanageTotal/100)+1))>>
	<<= FSChange("Repopulationist", _futureBreeders)>>
<</if>>

<<if $arcologies[0].FSNull != "unset">>
	Your cultural openness @@.green;helps your reputation,@@ since few citizens have disputes with your permissive approach.
	<<set $rep += 50*$FSSingleSlaveRep*($arcologies[0].FSNull/$FSLockinLevel)>>
<</if>>

<<if $arcologies[0].FSRestartLaw == 1>>
	Your laws requiring the non-elite to pay additional taxes or be sterilized @@.red;agitates@@ some of your citizens, but they don't matter. Only your @@.green;pleased@@ elite do.
	<<set $rep -= 100>>
	<<set $failedElite -= 1>>
<</if>>

<<if $arcologies[0].FSHedonisticDecadenceLaw == 1>>
	The burgeoning prosperity brought on by new business through your policies @@.green;builds your reputation,@@ since nearly every citizen has something available to satisfy their cravings.
	<<set $rep += 100>>
<</if>>

<<if $FrigiditySMR == 1>>
	Your market regulations regarding slave sex drives @@.red;outrages@@ your citizens seeking sex slaves, since only slaves disinterested in sex are available.
	<<set $rep -= 250>>
<</if>>

<<if $PC.degeneracy > 0>>
	<<if $PC.degeneracy > 100>>
		There are @@.red;severe and devastating rumors@@ about you spreading across the arcology.
		<<set $rep -= 100*$PC.degeneracy>>
		<<set $enduringRep = 0>>
	<<elseif $PC.degeneracy > 75>>
		There are @@.red;severe rumors@@ about you spreading across the arcology.
		<<set $rep -= 20*($PC.degeneracy)>>
	<<elseif $PC.degeneracy > 50>>
		There are @@.red;bad rumors@@ about you spreading across the arcology.
		<<set $rep -= 10*$PC.degeneracy>>
	<<elseif $PC.degeneracy > 25>>
		There are @@.red;rumors@@ about you spreading across the arcology.
		<<set $rep -= 5*$PC.degeneracy>>
	<<elseif $PC.degeneracy > 10>>
		There are @@.red;minor rumors@@ about you spreading across the arcology.
		<<set $rep -= 2*$PC.degeneracy>>
	<<else>>
		The occasional rumor about you can be heard throughout the arcology.
		<<set $rep -= $PC.degeneracy>>
	<</if>>
<</if>>

<<if $secExp == 1>>
	<<if $fakeNews == 1>>
		The authenticity department produces and distributes copious amounts of plausible enough news and reports, @@.green;increasing your reputation.@@
		<<set $repGain += 10 * $miniTruth>>
	<</if>>
<</if>>

<<if !isNaN($repLoss) && !isNaN($repGain)>>
	<<set $rep -= $repLoss>>
	<<set $rep += $repGain>>
<</if>>

<br>

<<if $repGain > $repLoss>>
	@@.green;Your reputation increased this week.@@
<<elseif $repGain < $repLoss>>
	@@.red;Your reputation decreased this week.@@
<</if>>

<<if isNaN($repGain)>>
	<br>@@.red;Error: repGain is outside accepted range, please report this issue@@
<</if>>
<<if isNaN($repLoss)>>
	<br>@@.red;Error: repLoss is outside accepted range, please report this issue@@
<</if>>
<<if isNaN($rep)>>
	<br>@@.red;Error: rep is outside accepted range, please report this issue@@
<</if>>

<<if $rep > 19000>>
	Your reputation is capped.
	<<set $rep = 20000>>
<<elseif $rep-$enduringRep > 7500>>
	Your base rate of reputation decay is very high.
<<elseif $rep-$enduringRep > 5000>>
	Your base rate of reputation decay is high.
<<elseif $rep-$enduringRep > 2500>>
	Your base rate of reputation decay is moderate.
<<elseif $rep-$enduringRep > 0>>
	Your base rate of reputation decay is low.
<</if>>
<<if $enduringRep >= 10000>>
	Your legend is perfected, reducing reputation decay to its lowest possible level.
	<<set $enduringRep = 10000>>
<</if>>

<<if $alwaysSubsidizeRep == 1>>
<<if $rep <= 19900>>
	<<set $rep += 100>>
	Reputation subsidized as planned.
	<<if $PC.degeneracy > 1>>
		<<set $PC.degeneracy -= 1>>
	<</if>>
<<elseif $PC.degeneracy > 1>>
	<<set $PC.degeneracy -= 1>>
	Rumors quelled as planned.
<<else>>
	<<set $cash += 1000>>
	Reputation subsidy reclaimed this week since your reputation is capped.
<</if>>
<</if>>

<<if $failedElite > 1>>
	<<set $failedElite -= 1>>
<</if>>
<<if $PC.degeneracy > 1>>
	<<set $PC.degeneracy -= 1>>
<</if>>

<<if $arcologies[0].FSRestartDecoration == 100>>
	<<if $eugenicsFullControl != 1>>
		<<if $failedElite > 300>>
			The Societal Elite @@.red;are plotting your demise.@@
		<<elseif $failedElite > 250>>
			The Societal Elite @@.red;are openly discussing about your failures.@@ It would be in your best interests to appease them.
		<<elseif $failedElite > 200>>
			The Societal Elite @@.red;are avoiding you.@@ Getting back on their good side is a good idea, lest you want to disappear.
		<<elseif $failedElite > 150>>
			The Societal Elite @@.red;stop their conversations around you.@@ You may want to consider your actions more.
		<<elseif $failedElite > 100>>
			The Societal Elite @@.red;seem to dislike you.@@
		<<elseif $failedElite > 50>>
			The Societal Elite @@.red;mutter about you.@@
		<</if>>
	<<else>>
		The Societal Elite can think what they want, they know better than to try and cross you again.
	<</if>>
<<elseif $arcologies[0].FSRestart != "unset">>
	<<if $failedElite > 300>>
		The Societal Elite @@.red;have departed from your arcology in disgust@@.
		<<run removeFS("FSRestart")>>
		<<set $rep -= 10000>>
		<<set $eliteFail = random(30,100),
		$eliteFailTimer = 15>>
		<<if $eliteFail > $topClass - 20>>
			<<set $eliteFail = $topClass - 20>>
		<</if>>
		<<if $arcologies[0].prosperity > 50>>
		<<set $arcologies[0].prosperity -= random(20,40)>>
		<</if>>
	<<elseif $failedElite > 250>>
		The Societal Elite @@.red;are openly discussing leaving@@. It would be in your best interests to appease them.
	<<elseif $failedElite > 200>>
		The Societal Elite @@.red;are avoiding you@@. Getting back on their good side is a good idea, lest you want to disappear.
	<<elseif $failedElite > 150>>
		The Societal Elite @@.red;stop their conversations around you@@. You may want to consider your actions more.
	<<elseif $failedElite > 100>>
		The Societal Elite @@.red;seem to dislike you@@.
	<<elseif $failedElite > 50>>
		The Societal Elite @@.red;mutter about you@@.
	<</if>>
<</if>>
<br>


code:
:: RES Failure [nobr]

<<set $nextButton = "Continue", $nextLink = "Scheduled Event", $returnTo = "Scheduled Event">>

<<if ($TSS.schoolPresent == 1) && ($TSS.schoolProsperity <= -10)>>
	<<set $RESFailure = "TSS">>
<<elseif ($GRI.schoolPresent == 1) && ($GRI.schoolProsperity <= -10)>>
	<<set $RESFailure = "GRI">>
<<elseif ($SCP.schoolPresent == 1) && ($SCP.schoolProsperity <= -10)>>
	<<set $RESFailure = "SCP">>
<<elseif ($LDE.schoolPresent == 1) && ($LDE.schoolProsperity <= -10)>>
	<<set $RESFailure = "LDE">>
<<elseif ($TGA.schoolPresent == 1) && ($TGA.schoolProsperity <= -10)>>
	<<set $RESFailure = "TGA">>
<<elseif ($TCR.schoolPresent == 1) && ($TCR.schoolProsperity <= -10)>>
	<<set $RESFailure = "TCR">>
<<elseif ($TFS.schoolPresent == 1) && ($TFS.schoolProsperity <= -10)>>
	<<set $RESFailure = "TFS">>
<<elseif ($HA.schoolPresent == 1) && ($HA.schoolProsperity <= -10)>>
	<<set $RESFailure = "HA">>
<</if>>

<<set $rep -= 200>>
<<set $arcologies[0].prosperity -= 2>>
<<set $slavesToAdd = 5>>
<<if $RESFailure == "TSS">>
	<<set $TSS.schoolPresent = 0>>
	<<set $TSS.subsidy = 0>>
	<<set $TSS.schoolProsperity = 0>>
	<<set $TSS.schoolAnnexed = 1>>
	<<for $i = 0; $i < $slavesToAdd; $i++>>
		<<set $oneTimeDisableDisability = 1>>
		<<include "Generate XX Slave">>
		<<set $activeSlave.career = "a slave">>
		<<set $activeSlave.butt = either(1, 2, 2, 3)>>
		<<set $activeSlave.boobs = either(200, 300, 300, 400)>>
		<<if $TSS.schoolUpgrade == 1>>
			<<set $activeSlave.origin = "She was given to you by a failed branch campus of The Slavegirl School after she was retrained as a slave girl.">>
			<<set $activeSlave.butt += 1>>
			<<set $activeSlave.boobs += 200>>
			<<set $activeSlave.anus = 1>>
			<<set $activeSlave.vagina = 1>>
			<<set $activeSlave.actualAge = random(36,42)>>
			<<set $activeSlave.visualAge = $activeSlave.actualAge>>
			<<set $activeSlave.physicalAge = $activeSlave.actualAge>>
			<<set $activeSlave.ovaryAge = $activeSlave.actualAge>>
		<<else>>
			<<set $activeSlave.origin = "She was given to you by a failed branch campus of The Slavegirl School right after her majority.">>
			<<set $activeSlave.anus = 0>>
			<<set $activeSlave.vagina = 0>>
			<<set $activeSlave.actualAge = 18>>
			<<set $activeSlave.visualAge = $activeSlave.actualAge>>
			<<set $activeSlave.physicalAge = $activeSlave.actualAge>>
			<<set $activeSlave.ovaryAge = $activeSlave.actualAge>>
		<</if>>
		<<set $activeSlave.intelligenceImplant = 15>>
		<<set $activeSlave.teeth = "normal">>
		<<set $activeSlave.intelligence = random(-50,95)>>
		<<set $activeSlave.devotion = random(25,45)>>
		<<set $activeSlave.trust = random(25,45)>>
		<<set $activeSlave.health = random(50,60)>>
		<<set $activeSlave.preg = 0>>
		<<set $activeSlave.weight = 0>>
		<<set $activeSlave.chem = 20>>
		<<if $TSS.schoolUpgrade == 0>>
			<<set $activeSlave.vaginalSkill = 0>>
			<<set $activeSlave.oralSkill = 0>>
			<<set $activeSlave.analSkill = 0>>
			<<set $activeSlave.whoreSkill = 0>>
			<<set $activeSlave.entertainSkill = 15>>
		<<else>>
			<<set $activeSlave.vaginalSkill = 15>>
			<<set $activeSlave.oralSkill = 15>>
			<<set $activeSlave.analSkill = 15>>
			<<set $activeSlave.whoreSkill = 15>>
			<<set $activeSlave.entertainSkill = 15>>
		<</if>>
		<<set $activeSlave.combatSkill = 0>>
		<<set $activeSlave.pubicHStyle = "waxed">>
		<<set $activeSlave.underArmHStyle = "waxed">>
		<<set $activeSlave.sexualFlaw = either("none")>>
		<<set $activeSlave.behavioralFlaw = either("none")>>
		<<set $activeSlave.hStyle = "tails">>
		<<set $activeSlave.customTat = "She has the simple logo of the corporation that operates The Slavegirl School tattooed on her left cheek.">>
		<<run newSlave($activeSlave)>> /* skip New Slave Intro */
	<</for>>
<<elseif $RESFailure == "TCR">>
	<<set $TCR.schoolPresent = 0>>
	<<set $TCR.subsidy = 0>>
	<<set $TCR.schoolProsperity = 0>>
	<<set $TCR.schoolAnnexed = 1>>
	<<for $i = 0; $i < $slavesToAdd; $i++>>
		<<set $activeSlaveOneTimeMinAge = $fertilityAge+6>>
		<<set $activeSlaveOneTimeMaxAge = 32>>
		<<set $one_time_age_overrides_pedo_mode = 1>>
		<<set $oneTimeDisableDisability = 1>>
		<<include "Generate XX Slave">>
		<<set $activeSlave.slaveName = setup.cowSlaveNames.random()>>
		<<set $activeSlave.slaveSurname = 0>>
		<<set $activeSlave.career = "a dairy cow">>
		<<set $activeSlave.butt = either(5, 6, 6, 7, 7, 8, 9)>>
		<<set $activeSlave.boobs = 30000>>
		<<set $activeSlave.lactation = 1>>
		<<set $activeSlave.lactationDuration = 2>>
		<<set $activeSlave.lactationAdaptation = 100>>
		<<set $activeSlave.origin = "She is a prized dairy cow given to you by a failed local pasture of The Cattle Ranch.">>
		<<set $activeSlave.anus = 1>>
		<<set $activeSlave.vagina = 5>>
		<<set $activeSlave.vaginaLube = 2>>
		<<set $activeSlave.intelligence = either(-100, -100, -100, -96, -80, -70, -50)>>
		<<set $activeSlave.devotion = 100>>
		<<set $activeSlave.trust = 100>>
		<<set $activeSlave.health = random(50,60)>>
		<<set $activeSlave.preg = random(30,39)>>
		<<set $activeSlave.pregType = random(3,6)>>
		<<set $activeSlave.pregKnown = 1>>
		<<set $activeSlave.pregWeek = $activeSlave.preg>>
		<<run SetBellySize($activeSlave)>>
		<<set $activeSlave.bellySag = 10>>
		<<set $activeSlave.bellySagPreg = 10>>
		<<set $activeSlave.hips = either(2, 2, 2, 2, 3)>>
		<<set $activeSlave.birthsTotal = random(10,15)>>
		<<set $activeSlave.weight = random(60,160)>>
		<<set $activeSlave.muscles = random(60,80)>>
		<<set $activeSlave.chem = 10>>
		<<set $activeSlave.vaginalSkill = 0>>
		<<set $activeSlave.oralSkill = 0>>
		<<set $activeSlave.analSkill = 0>>
		<<set $activeSlave.whoreSkill = 0>>
		<<set $activeSlave.entertainSkill = 0>>
		<<set $activeSlave.combatSkill = 0>>
		<<set $activeSlave.pubicHStyle = "waxed">>
		<<set $activeSlave.underArmHStyle = "waxed">>
		<<set $activeSlave.heels = 1>>
		<<set $activeSlave.fetish = "mindbroken">>
		<<set $activeSlave.fetishStrength = 10>>
		<<set $activeSlave.fetishKnown = 1>>
		<<set $activeSlave.sexualFlaw = either("none")>>
		<<set $activeSlave.behavioralFlaw = either("none")>>
		<<set $activeSlave.sexualQuirk = either("none")>>
		<<set $activeSlave.behavioralQuirk = either("none")>>
		<<set $activeSlave.hStyle = "neat">>
		<<set $activeSlave.collar = "leather with cowbell">>
		<<set $activeSlave.customTat = "She has the logo of the Cattle Ranch branded on her thigh.">>
		<<set $activeSlave.boobsTat = "bovine patterns">>
		<<set $activeSlave.buttTat = "bovine patterns">>
		<<set $activeSlave.vaginaTat = "bovine patterns">>
		<<set $activeSlave.lipsTat = "bovine patterns">>
		<<set $activeSlave.anusTat = "bovine patterns">>
		<<set $activeSlave.shouldersTat = "bovine patterns">>
		<<set $activeSlave.backTat = "bovine patterns">>
		<<set $activeSlave.armsTat = "bovine patterns">>
		<<set $activeSlave.legsTat = "bovine patterns">>
		<<set $activeSlave.stampTat = "bovine patterns">>
		<<run newSlave($activeSlave)>> /* skip New Slave Intro */
	<</for>>
<<elseif $RESFailure == "GRI">>
	<<set $GRI.schoolPresent = 0>>
	<<set $GRI.subsidy = 0>>
	<<set $GRI.schoolProsperity = 0>>
	<<set $GRI.schoolAnnexed = 1>>
	<<for $i = 0; $i < $slavesToAdd; $i++>>
		<<set $oneTimeDisableDisability = 1>>
		<<include "Generate XX Slave">>
		<<set $activeSlave.origin = "She was given to you by a failed subsidiary lab of the Growth Research Institute right after her use as a test subject ended.">>
		<<set $activeSlave.career = "a slave">>
		<<set $activeSlave.intelligenceImplant = 0>>
		<<set $activeSlave.devotion = random(-15,-5)>>
		<<set $activeSlave.trust = random(-25,-45)>>
		<<set $activeSlave.chem = 100>>
		<<if $GRI.schoolUpgrade == 1>>
			<<set $activeSlave.health = 200>>
		<<else>>
			<<set $activeSlave.health = random(-80,100)>>
		<</if>>
		<<set $activeSlave.height = random(150,190)>>
		<<set $activeSlave.butt = random(4,10)>>
		<<if $GRI.schoolUpgrade == 2>>
			<<set $activeSlave.boobs = 200*random(15,30)>>
			<<set $activeSlave.lactation = 2>>
			<<set $activeSlave.lactationDuration = 2>>
		<<else>>
			<<set $activeSlave.boobs = 200*random(4,20)>>
		<</if>>
		<<set $activeSlave.nipples = either("inverted", "huge")>>
		<<set $activeSlave.areolae = either(0, 1, 2, 3)>>
		<<set $activeSlave.clit = either(0, 1, 2, 3)>>
		<<set $activeSlave.lips = random(5,85)>>
		<<set $activeSlave.anus = 0>>
		<<set $activeSlave.vagina = 0>>
		<<set $activeSlave.preg = 0>>
		<<set $activeSlave.weight = 0>>
		<<set $activeSlave.vaginalSkill = 0>>
		<<set $activeSlave.oralSkill = 0>>
		<<set $activeSlave.analSkill = 0>>
		<<set $activeSlave.whoreSkill = 0>>
		<<set $activeSlave.entertainSkill = 0>>
		<<set $activeSlave.combatSkill = 0>>
		<<set $activeSlave.pubicHStyle = "waxed">>
		<<set $activeSlave.underArmHStyle = "waxed">>
		<<set $activeSlave.actualAge = 19>>
		<<set $activeSlave.visualAge = $activeSlave.actualAge>>
		<<set $activeSlave.physicalAge = $activeSlave.actualAge>>
		<<set $activeSlave.ovaryAge = $activeSlave.actualAge>>
		<<set $activeSlave.behavioralFlaw = either("odd")>>
		<<set $activeSlave.hStyle = "shaved">>
		<<set $activeSlave.hLength = 0>>
		<<set $activeSlave.customTat = "She has a barcode that identified her when she was a test subject at the Growth Research Institute tattooed on her left cheek.">>
		<<run newSlave($activeSlave)>> /* skip New Slave Intro */
	<</for>>
<<elseif $RESFailure == "SCP">>
	<<set $SCP.schoolPresent = 0>>
	<<set $SCP.subsidy = 0>>
	<<set $SCP.schoolProsperity = 0>>
	<<set $SCP.schoolAnnexed = 1>>
	<<for $i = 0; $i < $slavesToAdd; $i++>>
		<<set $oneTimeDisableDisability = 1>>
		<<include "Generate XX Slave">>
		<<set $activeSlave.origin = "She was given to you by a failed branch campus of St. Claver Preparatory after she served as a plastic surgeon's passing final exam.">>
		<<set $activeSlave.chem = 20>>
		<<set $activeSlave.career = "a slave">>
		<<if $SCP.schoolUpgrade == 1>>
			<<set $activeSlave.intelligenceImplant = 0>>
			<<set $activeSlave.intelligence = -70>>
			<<set $activeSlave.devotion = 20>>
			<<set $activeSlave.trust = 20>>
		<<else>>
			<<set $activeSlave.intelligenceImplant = 15>>
			<<set $activeSlave.teeth = "normal">>
			<<set $activeSlave.intelligence = random(-50,50)>>
			<<set $activeSlave.devotion = random(25,45)>>
			<<set $activeSlave.trust = random(25,45)>>
		<</if>>
		<<set $activeSlave.health = 100>>
		<<set $activeSlave.heightImplant = 1>>
		<<set $activeSlave.height += 10>>
		<<set $activeSlave.buttImplant = (4-$activeSlave.butt)>>
		<<set $activeSlave.butt += $activeSlave.buttImplant>>
		<<set $activeSlave.boobsImplant = (2000-$activeSlave.boobs)>>
		<<set $activeSlave.boobs += $activeSlave.boobsImplant>>
		<<set $activeSlave.nipples = "tiny">>
		<<set $activeSlave.areolae = 0>>
		<<set $activeSlave.clit = 0>>
		<<set $activeSlave.lipsImplant = (75-$activeSlave.lips)>>
		<<set $activeSlave.lips += $activeSlave.lipsImplant>>
		<<set $activeSlave.faceImplant = 35>>
		<<set $activeSlave.face = random(35,80)>>
		<<set $activeSlave.anus = 0>>
		<<set $activeSlave.vagina = 0>>
		<<set $activeSlave.preg = 0>>
		<<set $activeSlave.weight = -20>>
		<<if $SCP.schoolUpgrade == 2>>
			<<set $activeSlave.vaginalSkill = 15>>
			<<set $activeSlave.oralSkill = 15>>
			<<set $activeSlave.analSkill = 15>>
			<<set $activeSlave.whoreSkill = 15>>
			<<set $activeSlave.entertainSkill = 15>>
		<<else>>
			<<set $activeSlave.vaginalSkill = 0>>
			<<set $activeSlave.oralSkill = 0>>
			<<set $activeSlave.analSkill = 0>>
			<<set $activeSlave.whoreSkill = 0>>
			<<set $activeSlave.entertainSkill = 0>>
		<</if>>
		<<set $activeSlave.combatSkill = 0>>
		<<set $activeSlave.pubicHStyle = "waxed">>
		<<set $activeSlave.underArmHStyle = "waxed">>
		<<set $activeSlave.actualAge = 19>>
		<<set $activeSlave.visualAge = $activeSlave.actualAge>>
		<<set $activeSlave.physicalAge = $activeSlave.actualAge>>
		<<set $activeSlave.ovaryAge = $activeSlave.actualAge>>
		<<set $activeSlave.sexualFlaw = either("none")>>
		<<set $activeSlave.behavioralFlaw = either("none")>>
		<<set $activeSlave.hStyle = "tails">>
		<<set $activeSlave.hColor = "blonde">>
		<<set $activeSlave.pubicHColor = "blonde">>
		<<set $activeSlave.underArmHColor = "blonde">>
		<<set $activeSlave.race = "white">>
		<<set $activeSlave.skin = "tanned">>
		<<set $activeSlave.override_H_Color = 1>>
		<<set $activeSlave.override_Arm_H_Color = 1>>
		<<set $activeSlave.override_Brow_H_Color = 1>>
		<<set $activeSlave.override_Pubic_H_Color = 1>>
		<<set $activeSlave.override_Race = 1>>
		<<set $activeSlave.override_Skin = 1>>
		<<set $activeSlave.customTat = "She has the coat of arms of St. Claver Preparatory tattooed on her left cheek.">>
		<<run newSlave($activeSlave)>> /* skip New Slave Intro */
	<</for>>
<<elseif $RESFailure == "LDE">>
	<<set $LDE.schoolPresent = 0>>
	<<set $LDE.subsidy = 0>>
	<<set $LDE.schoolProsperity = 0>>
	<<set $LDE.schoolAnnexed = 1>>
	<<for $i = 0; $i < $slavesToAdd; $i++>>
		<<set $oneTimeDisableDisability = 1>>
		<<include "Generate XY Slave">>
		<<set $activeSlave.origin = "She was given to you by a failed branch campus of the innovative École des Enculées right after her graduation.">>
		<<set $activeSlave.career = "a slave">>
		<<set $activeSlave.intelligenceImplant = 0>>
		<<set $activeSlave.chem = 100>>
		<<if $LDE.schoolUpgrade == 1>>
			<<set $activeSlave.devotion = 20>>
			<<set $activeSlave.trust = 20>>
		<<else>>
			<<set $activeSlave.devotion = random(60,70)>>
			<<set $activeSlave.trust = random(55,60)>>
		<</if>>
		<<set $activeSlave.health = random(60,80)>>
		<<set $activeSlave.muscles = 0>>
		<<set $activeSlave.butt = either(4,5)>>
		<<set $activeSlave.face = random(20,60)>>
		<<set $activeSlave.boobs = either(500,650,800)>>
		<<set $activeSlave.waist = -15>>
		<<set $activeSlave.lips = 35>>
		<<if $LDE.schoolUpgrade == 2>>
			<<set $activeSlave.balls = either(3,4)>>
			<<set $activeSlave.dick = either(3,4)>>
			<<if $activeSlave.foreskin > 0>><<set $activeSlave.foreskin = $activeSlave.dick>><</if>>
			<<if $activeSlave.balls > 0>><<set $activeSlave.scrotum = $activeSlave.balls>><</if>>
		<<else>>
			<<set $activeSlave.dick = either(1,1,1,2)>>
			<<if $activeSlave.foreskin > 0>><<set $activeSlave.foreskin = $activeSlave.dick>><</if>>
			<<if $activeSlave.balls > 0>><<set $activeSlave.scrotum = $activeSlave.balls>><</if>>
			<<set $activeSlave.balls = either(1,1,1,2)>>
		<</if>>
		<<set $activeSlave.anus = 2>>
		<<set $activeSlave.vagina = -1>>
		<<set $activeSlave.preg = 0>>
		<<set $activeSlave.weight = random(0,20)>>
		<<set $activeSlave.vaginalSkill = 0>>
		<<set $activeSlave.oralSkill = 15>>
		<<set $activeSlave.analSkill = 100>>
		<<set $activeSlave.whoreSkill = 15>>
		<<set $activeSlave.entertainSkill = 15>>
		<<set $activeSlave.combatSkill = 0>>
		<<set $activeSlave.pubicHStyle = "waxed">>
		<<set $activeSlave.underArmHStyle = "waxed">>
		<<set $activeSlave.actualAge = 19>>
		<<set $activeSlave.visualAge = $activeSlave.actualAge>>
		<<set $activeSlave.physicalAge = $activeSlave.actualAge>>
		<<set $activeSlave.ovaryAge = $activeSlave.actualAge>>
		<<set $activeSlave.sexualFlaw = "none">>
		<<set $activeSlave.behavioralFlaw = either("none", "odd")>>
		<<set $activeSlave.fetishStrength = either(1, 2)>>
		<<set $activeSlave.fetish = "buttslut">>
		<<set $activeSlave.fetishKnown = 1>><<set $activeSlave.attrKnown = 1>>
		<<set $activeSlave.hStyle = "tails">>
		<<set $activeSlave.hLength = 100>>
		<<set $activeSlave.customTat = "She has the buttock-shaped symbol of the École des Enculées that created her tattooed on her left cheek.">>
		<<run newSlave($activeSlave)>> /* skip New Slave Intro */
	<</for>>
<<elseif $RESFailure == "TGA">>
	<<set $TGA.schoolPresent = 0>>
	<<set $TGA.subsidy = 0>>
	<<set $TGA.schoolProsperity = 0>>
	<<set $TGA.schoolAnnexed = 1>>
	<<for $i = 0; $i < $slavesToAdd; $i++>>
		<<set $oneTimeDisableDisability = 1>>
		<<include "Generate XY Slave">>
		<<set $activeSlave.origin = "She was given to you by a failed branch campus of the intense Gymnasium-Academy right after her majority.">>
		<<set $activeSlave.career = "a slave">>
		<<set $activeSlave.intelligenceImplant = 15>>
		<<set $activeSlave.teeth = "normal">>
		<<set $activeSlave.intelligence = random(-50,95)>>
		<<set $activeSlave.chem = 20>>
		<<if $TGA.schoolUpgrade == 1>>
			<<set $activeSlave.devotion = 20>>
			<<set $activeSlave.trust = 20>>
		<<else>>
			<<set $activeSlave.devotion = random(25,45)>>
			<<set $activeSlave.trust = random(25,45)>>
		<</if>>
		<<set $activeSlave.health = 100>>
		<<set $activeSlave.muscles = either(20, 50, 50)>>
		<<set $activeSlave.butt = either(2, 2, 3)>>
		<<set $activeSlave.boobs = either(100, 200)>>
		<<set $activeSlave.dick = random(3,5)>>
		<<if $activeSlave.foreskin > 0>><<set $activeSlave.foreskin = $activeSlave.dick>><</if>>
		<<if $activeSlave.balls > 0>><<set $activeSlave.scrotum = $activeSlave.balls>><</if>>
		<<set $activeSlave.balls = random(3,5)>>
		<<set $activeSlave.anus = 0>>
		<<set $activeSlave.vagina = -1>>
		<<set $activeSlave.preg = 0>>
		<<set $activeSlave.weight = 0>>
		<<set $activeSlave.vaginalSkill = 0>>
		<<set $activeSlave.oralSkill = 0>>
		<<set $activeSlave.analSkill = 0>>
		<<set $activeSlave.whoreSkill = 0>>
		<<set $activeSlave.entertainSkill = 0>>
		<<if $TGA.schoolUpgrade == 2>>
			<<set $activeSlave.combatSkill = 1>>
		<<else>>
			<<set $activeSlave.combatSkill = 0>>
		<</if>>
		<<set $activeSlave.pubicHStyle = "waxed">>
		<<set $activeSlave.underArmHStyle = "waxed">>
		<<set $activeSlave.actualAge = 18>>
		<<set $activeSlave.visualAge = $activeSlave.actualAge>>
		<<set $activeSlave.physicalAge = $activeSlave.actualAge>>
		<<set $activeSlave.ovaryAge = $activeSlave.actualAge>>
		<<set $activeSlave.sexualFlaw = either("none", "apathetic")>>
		<<set $activeSlave.behavioralFlaw = either("none", "arrogant", "odd")>>
		<<set $activeSlave.hStyle = "short">>
		<<set $activeSlave.hLength = 2>>
		<<set $activeSlave.customTat = "She has the baroque crest of the Gymnasium-Academy that trained her branded into her left cheek.">>
		<<run newSlave($activeSlave)>> /* skip New Slave Intro */
	<</for>>
<<elseif $RESFailure == "HA">>
	<<set $HA.schoolPresent = 0>>
	<<set $HA.subsidy = 0>>
	<<set $HA.schoolProsperity = 0>>
	<<set $HA.schoolAnnexed = 1>>
	<<for $i = 0; $i < $slavesToAdd; $i++>>
		<<set $oneTimeDisableDisability = 1>>
		<<include "Generate XX Slave">>
		<<set $activeSlave.origin = "She was given to you by a failed branch campus of the Hippolyta Academy right after her majority.">>
		<<set $activeSlave.career = "a slave">>
		<<set $activeSlave.intelligenceImplant = 15>>
		<<set $activeSlave.teeth = "normal">>
		<<set $activeSlave.intelligence = random(0,95)>>
		<<set $activeSlave.chem = 20>>
		<<if $HA.schoolUpgrade == 1>>
			<<set $activeSlave.devotion = 20>>
			<<set $activeSlave.trust = 20>>
		<<else>>
			<<set $activeSlave.devotion = random(25,45)>>
			<<set $activeSlave.trust = random(25,45)>>
		<</if>>
		<<set $activeSlave.faceShape = either("cute", "normal")>>
		<<set $activeSlave.face = either(20,20,35,35,35,50,75,100)>>
		<<set $activeSlave.lips = either(0,10,25)>>
		<<set $activeSlave.weight = -10>>
		<<set $activeSlave.health = random(80,100)>>
		<<set $activeSlave.actualAge = 18>>
		<<set $activeSlave.physicalAge = $activeSlave.actualAge>>
		<<set $activeSlave.visualAge = $activeSlave.actualAge>>
		<<set $activeSlave.ovaryAge = $activeSlave.actualAge>>
		<<set $activeSlave.hips = 0>>
		<<set $activeSlave.vagina = random(0,1)>>
		<<set $activeSlave.anus = random(0,1)>>
		<<set $activeSlave.butt = random(2,4)>>
		<<set $activeSlave.boobs = (random(30,60) * 10)>>
		<<set $activeSlave.preg = 0>>
		<<run SetBellySize($activeSlave)>>
		<<set $activeSlave.health = random(60,80)>>
		<<set $activeSlave.muscles = random(40,60)>>
		<<set _minHeight = random(170,180)>>
		<<set $activeSlave.height = Math.trunc(Math.clamp(Height.random($activeSlave, {limitMult: [2, 15], spread: .1}),_minHeight, 274))>>
		<<set $activeSlave.waist = -15>>
		<<set $activeSlave.shoulders = 0>>
		<<set $activeSlave.vaginalSkill = 10>>
		<<set $activeSlave.oralSkill = 10>>
		<<set $activeSlave.analSkill = 10>>
		<<set $activeSlave.whoreSkill = 10>>
		<<set $activeSlave.entertainSkill = either(10,10,30)>>
		<<set $activeSlave.combatSkill = 1>>
		<<set $activeSlave.sexualFlaw = either("none", "none", "apathetic", "judgemental")>>
		<<set $activeSlave.behavioralFlaw = either("none", "arrogant")>>
		<<set $activeSlave.pubicHStyle = "waxed">>
		<<set $activeSlave.underArmHStyle = "waxed">>
		<<set $activeSlave.hStyle = either("neat", "braided", "tails", "ponytail", "bun")>>
		<<set $activeSlave.hLength = random(5,50)>>
		<<set $activeSlave.customTat = "She has the sword and eagle symbol of the Hippolyta Academy tattooed on her left shoulder.">>
		<<run newSlave($activeSlave)>> /* skip New Slave Intro */
	<</for>>
<<else>>
	<<set $TFS.schoolPresent = 0>>
	<<set $TFS.subsidy = 0>>
	<<set $TFS.schoolProsperity = 0>>
	<<set $TFS.schoolAnnexed = 1>>
	<<for $i = 0; $i < $slavesToAdd-1; $i++>>
		<<set _slaveGenRange = random(1,4)>>
		<<set $oneTimeDisableDisability = 1>>
		<<if $TFS.schoolUpgrade == 3 && $TFS.compromiseWeek+15 <= $week>>
			<<include "Generate New Slave">>
		<<else>>
			<<include "Generate XY Slave">>
		<</if>>
		<<set $activeSlave.origin = "She was a Futanari Sister until you engineered her early enslavement.">>
		<<set $activeSlave.career = "a Futanari Sister">>
		<<set $activeSlave.faceShape = either("sensual", "exotic")>>
		<<if _slaveGenRange == 1>>
			<<set $activeSlave.intelligence = random(-50,-20)>>
			<<set $activeSlave.chem = 150>>
			<<set $activeSlave.butt = either(5,6)>>
			<<set $activeSlave.hips = 1>>
			<<set $activeSlave.face = either(35,35,35,75,100)>>
			<<set $activeSlave.boobs = 100*random(12,20)>>
			<<set $activeSlave.dick = random(2,3)>>
			<<if $activeSlave.foreskin > 0>> <<set $activeSlave.foreskin = $activeSlave.dick>> <</if>>
			<<if $TFS.schoolUpgrade == 3 && $TFS.compromiseWeek+15 <= $week>>
				<<if $activeSlave.genes == "XY">>
					<<set $activeSlave.balls = random(8,9), $activeSlave.scrotum = $activeSlave.balls>>
				<<else>>
					<<set $activeSlave.balls = 1>>
					<<set $activeSlave.scrotum = 0>>
				<</if>>
			<<elseif $TFS.schoolUpgrade == 1>>
				<<set $activeSlave.balls = 1>>
				<<set $activeSlave.scrotum = 0>>
			<<elseif $TFS.schoolUpgrade == 2>>
				<<set $activeSlave.balls = random(8,9), $activeSlave.scrotum = $activeSlave.balls>>
			<<else>>
				<<set $activeSlave.balls = random(2,3)>>
				<<set $activeSlave.scrotum = $activeSlave.balls>>
			<</if>>
			<<set $activeSlave.lips = 0>>
			<<set $activeSlave.weight = 0>>
			<<set $activeSlave.actualAge = random(25,29)>>
			<<set $activeSlave.visualAge = $activeSlave.actualAge>>
			<<set $activeSlave.physicalAge = $activeSlave.actualAge>>
			<<set $activeSlave.ovaryAge = $activeSlave.actualAge>>
			<<set $activeSlave.vagina = 2>>
			<<set $activeSlave.anus = 2>>
			<<set $activeSlave.fetish = "submissive">>
		<<elseif _slaveGenRange == 2>>
			<<set $activeSlave.intelligence = random(-15,15)>>
			<<set $activeSlave.chem = 200>>
			<<set $activeSlave.butt = either(6,7)>>
			<<set $activeSlave.hips = 2>>
			<<set $activeSlave.face = either(35,35,75,75,100)>>
			<<set $activeSlave.boobs = 100*random(20,32)>>
			<<set $activeSlave.dick = random(3,4)>>
			<<if $activeSlave.foreskin > 0>><<set $activeSlave.foreskin = $activeSlave.dick>><</if>>
			<<if $TFS.schoolUpgrade == 3 && $TFS.compromiseWeek+15 <= $week>>
				<<if $activeSlave.genes == "XY">>
					<<set $activeSlave.balls = random(9,10), $activeSlave.scrotum = $activeSlave.balls>>
				<<else>>
					<<set $activeSlave.balls = 1>>
					<<set $activeSlave.scrotum = 0>>
				<</if>>
			<<elseif $TFS.schoolUpgrade == 1>>
				<<set $activeSlave.balls = 1>>
				<<set $activeSlave.scrotum = 0>>
			<<elseif $TFS.schoolUpgrade == 2>>
				<<set $activeSlave.balls = random(9,10), $activeSlave.scrotum = $activeSlave.balls>>
			<<else>>
				<<set $activeSlave.balls = random(3,4)>>
				<<set $activeSlave.scrotum = $activeSlave.balls>>
			<</if>>
			<<set $activeSlave.lips = random(15,25)>>
			<<set $activeSlave.weight = 20>>
			<<set $activeSlave.actualAge = random(30,34)>>
			<<set $activeSlave.visualAge = $activeSlave.actualAge>>
			<<set $activeSlave.physicalAge = $activeSlave.actualAge>>
			<<set $activeSlave.ovaryAge = $activeSlave.actualAge>>
			<<set $activeSlave.vagina = 2>>
			<<set $activeSlave.anus = 2>>
			<<set $activeSlave.fetish = either("buttslut", "cumslut")>>
		<<elseif _slaveGenRange == 3>>
			<<set $activeSlave.intelligence = random(16,50)>>
			<<set $activeSlave.chem = 250>>
			<<set $activeSlave.butt = either(7,8)>>
			<<set $activeSlave.hips = 2>>
			<<set $activeSlave.face = either(35,75,75,100,100)>>
			<<set $activeSlave.boobs = 100*random(32,42)>>
			<<set $activeSlave.dick = random(4,5)>>
			<<if $activeSlave.foreskin > 0>><<set $activeSlave.foreskin = $activeSlave.dick>><</if>>
			<<if $TFS.schoolUpgrade == 3 && $TFS.compromiseWeek+15 <= $week>>
				<<if $activeSlave.genes == "XY">>
					<<set $activeSlave.balls = random(6,7), $activeSlave.scrotum = $activeSlave.balls>>
				<<else>>
					<<set $activeSlave.balls = 1>>
					<<set $activeSlave.scrotum = 0>>
				<</if>>
			<<elseif $TFS.schoolUpgrade == 1>>
				<<set $activeSlave.balls = 1>>
				<<set $activeSlave.scrotum = 0>>
			<<elseif $TFS.schoolUpgrade == 2>>
				<<set $activeSlave.balls = random(6,7), $activeSlave.scrotum = $activeSlave.balls>>
			<<else>>
				<<set $activeSlave.balls = random(4,5)>>
				<<set $activeSlave.scrotum = $activeSlave.balls>>
			<</if>>
			<<set $activeSlave.lips = random(25,55)>>
			<<set $activeSlave.weight = 20>>
			<<set $activeSlave.actualAge = random(35,39)>>
			<<set $activeSlave.visualAge = $activeSlave.actualAge>>
			<<set $activeSlave.physicalAge = $activeSlave.actualAge>>
			<<set $activeSlave.ovaryAge = $activeSlave.actualAge>>
			<<set $activeSlave.vagina = 3>>
			<<set $activeSlave.anus = 3>>
			<<set $activeSlave.fetish = either("buttslut", "cumslut")>>
		<<else>>
			<<set $activeSlave.intelligence = random(51,95)>>
			<<set $activeSlave.chem = 300>>
			<<set $activeSlave.butt = either(8,9)>>
			<<set $activeSlave.hips = 2>>
			<<set $activeSlave.face = either(35,75,100,100,100)>>
			<<set $activeSlave.boobs = 100*random(44,60)>>
			<<set $activeSlave.dick = random(5,6)>>
			<<if $activeSlave.foreskin > 0>><<set $activeSlave.foreskin = $activeSlave.dick>><</if>>
			<<if $TFS.schoolUpgrade == 3 && $TFS.compromiseWeek+15 <= $week>>
				<<if $activeSlave.genes == "XY">>
					<<set $activeSlave.balls = random(7,8), $activeSlave.scrotum = $activeSlave.balls>>
				<<else>>
					<<set $activeSlave.balls = 1>>
					<<set $activeSlave.scrotum = 0>>
				<</if>>
			<<elseif $TFS.schoolUpgrade == 1>>
				<<set $activeSlave.balls = 1>>
				<<set $activeSlave.scrotum = 0>>
			<<elseif $TFS.schoolUpgrade == 2>>
				<<set $activeSlave.balls = random(7,8), $activeSlave.scrotum = $activeSlave.balls>>
			<<else>>
				<<set $activeSlave.balls = random(5,6)>>
				<<set $activeSlave.scrotum = $activeSlave.balls>>
			<</if>>
			<<set $activeSlave.lips = random(25,55)>>
			<<set $activeSlave.weight = 50>>
			<<set $activeSlave.actualAge = random(40,42)>>
			<<set $activeSlave.visualAge = $activeSlave.actualAge>>
			<<set $activeSlave.physicalAge = $activeSlave.actualAge>>
			<<set $activeSlave.ovaryAge = $activeSlave.actualAge>>
			<<set $activeSlave.vagina = 3>>
			<<set $activeSlave.anus = 3>>
			<<set $activeSlave.fetish = "dom">>
		<</if>>
		<<set $activeSlave.preg = -3>>
		<<if $TFS.farmUpgrade != 0>>
			<<set $activeSlave.ovaries = 1>>
			<<if $TFS.farmUpgrade >= 2>>
				<<set $activeSlave.preg = random(1,41)>>
				<<if $TFS.farmUpgrade == 3>>
					<<set $activeSlave.pregType = random(10,30)>>
					<<set $activeSlave.pregAdaptation = 300>>
				<<else>>
					<<set $activeSlave.pregType = 1>>
				<</if>>
				<<set $activeSlave.pregKnown = 1>>
				<<set $activeSlave.pregWeek = $activeSlave.preg>>
				<<run SetBellySize($activeSlave)>>
			<</if>>
		<</if>>
		<<set $activeSlave.intelligenceImplant = 30>>
		<<set $activeSlave.teeth = "normal">>
		<<if $TFS.schoolUpgrade == 2>>
			<<set $activeSlave.energy = 100>>
		<<else>>
			<<set $activeSlave.energy = $activeSlave.physicalAge+random(20,30)>>
		<</if>>
		<<set $activeSlave.devotion = random(30,35)>>
		<<set $activeSlave.trust = random(-15,-5)>>
		<<set $activeSlave.health = random(60,80)>>
		<<set $activeSlave.muscles = 20>>
		<<set $activeSlave.waist = -15>>
		<<if $activeSlave.genes == "XY">>
			<<set $activeSlave.shoulders = 1>>
		<</if>>
		<<set $activeSlave.vaginalSkill = 100>>
		<<set $activeSlave.oralSkill = 100>>
		<<set $activeSlave.analSkill = 100>>
		<<set $activeSlave.whoreSkill = 15>>
		<<set $activeSlave.entertainSkill = 100>>
		<<set $activeSlave.combatSkill = 0>>
		<<set $activeSlave.pubicHStyle = "waxed">>
		<<set $activeSlave.underArmHStyle = "waxed">>
		<<if $TFS.schoolUpgrade == 1>>
			<<set $activeSlave.sexualQuirk = "caring">>
		<</if>>
		<<set $activeSlave.sexualFlaw = either("none", "hates women")>>
		<<set $activeSlave.behavioralFlaw = either("none", "arrogant")>>
		<<set $activeSlave.fetishStrength = 100>>
		<<set $activeSlave.fetishKnown = 0>>
		<<set $activeSlave.attrKnown = 0>>
		<<set $activeSlave.hStyle = "neat">>
		<<set $activeSlave.hLength = 150>>
		<<set $activeSlave.customTat = "She has a simple pink heart tattooed on her right temple.">>
		<<set $REFutaSisterCheckinIDs.push($activeSlave.ID)>>
		<<run newSlave($activeSlave)>> /* skip New Slave Intro */
	<</for>>
	<<set $oneTimeDisableDisability = 1>>
	<<include "Generate XY Slave">>
	<<set $activeSlave.origin = "She was the leader of your arcology's Futanari Sisters until you engineered her community's failure and enslavement.">>
	<<set $activeSlave.career = "a Futanari Sister">>
	<<set $activeSlave.intelligence = random(51,95)>>
	<<set $activeSlave.chem = 300>>
	<<set $activeSlave.butt = either(8,9)>>
	<<set $activeSlave.hips = 2>>
	<<set $activeSlave.face = 100>>
	<<set $activeSlave.boobs = 100*random(44,60)>>
	<<set $activeSlave.dick = random(5,6)>>
	<<if $activeSlave.foreskin > 0>><<set $activeSlave.foreskin = $activeSlave.dick>><</if>>
	<<if $TFS.schoolUpgrade == 3 && $TFS.compromiseWeek+15 <= $week>>
		<<set $activeSlave.balls = 10, $activeSlave.scrotum = $activeSlave.balls>>
	<<elseif $TFS.schoolUpgrade == 1>>
		<<set $activeSlave.balls = 1>>
		<<set $activeSlave.scrotum = 0>>
	<<elseif $TFS.schoolUpgrade == 2>>
		<<set $activeSlave.balls = 10>>
		<<set $activeSlave.scrotum = $activeSlave.balls>>
	<<else>>
		<<set $activeSlave.balls = random(5,6)>>
		<<set $activeSlave.scrotum = $activeSlave.balls>>
	<</if>>
	<<set $activeSlave.lips = random(25,55)>>
	<<set $activeSlave.weight = 50>>
	<<set $activeSlave.actualAge = random(40,42)>>
	<<set $activeSlave.visualAge = $activeSlave.actualAge>>
	<<set $activeSlave.physicalAge = $activeSlave.actualAge>>
	<<set $activeSlave.ovaryAge = $activeSlave.actualAge>>
	<<set $activeSlave.vagina = 3>>
	<<set $activeSlave.anus = 3>>
	<<set $activeSlave.fetish = "dom">>
	<<set $activeSlave.preg = -3>>
	<<if $TFS.farmUpgrade != 0>>
		<<set $activeSlave.ovaries = 1>>
		<<if $TFS.farmUpgrade >= 2>>
			<<set $activeSlave.preg = random(1,41)>>
			<<if $TFS.farmUpgrade == 3>>
				<<set $activeSlave.pregType = random(20,40)>>
				<<set $activeSlave.pregAdaptation = 500>>
			<<else>>
				<<set $activeSlave.pregType = 1>>
			<</if>>
			<<set $activeSlave.pregKnown = 1>>
			<<set $activeSlave.pregWeek = $activeSlave.preg>>
			<<run SetBellySize($activeSlave)>>
		<</if>>
	<</if>>
	<<set $activeSlave.intelligenceImplant = 30>>
	<<set $activeSlave.teeth = "normal">>
	<<if $TFS.schoolUpgrade == 2>>
		<<set $activeSlave.energy = 100>>
	<<else>>
		<<set $activeSlave.energy = $activeSlave.physicalAge+random(20,30)>>
	<</if>>
	<<set $activeSlave.devotion = random(25,30)>>
	<<set $activeSlave.trust = random(10,15)>>
	<<set $activeSlave.health = random(60,80)>>
	<<set $activeSlave.muscles = 20>>
	<<set $activeSlave.waist = -15>>
	<<set $activeSlave.shoulders = 1>>
	<<set $activeSlave.vaginalSkill = 100>>
	<<set $activeSlave.oralSkill = 100>>
	<<set $activeSlave.analSkill = 100>>
	<<set $activeSlave.whoreSkill = 15>>
	<<set $activeSlave.entertainSkill = 100>>
	<<set $activeSlave.combatSkill = 0>>
	<<set $activeSlave.pubicHStyle = "waxed">>
	<<set $activeSlave.underArmHStyle = "waxed">>
	<<if $TFS.schoolUpgrade == 1>>
		<<set $activeSlave.sexualQuirk = "caring">>
	<</if>>
	<<set $activeSlave.sexualFlaw = either("none", "hates women")>>
	<<set $activeSlave.behavioralFlaw = either("none", "arrogant")>>
	<<set $activeSlave.fetishStrength = 100>>
	<<set $activeSlave.fetishKnown = 0>>
	<<set $activeSlave.attrKnown = 0>>
	<<set $activeSlave.hStyle = "neat">>
	<<set $activeSlave.hLength = 150>>
	<<set $activeSlave.customTat = "She has a simple pink heart tattooed on her right temple.">>
	<<run newSlave($activeSlave)>> /* skip New Slave Intro */
<</if>>

<<setLocalPronouns $activeSlave>>

<<if $RESFailure == "TSS">>
	You receive a personal call from a senior representative of The Slavegirl School, as you've been expecting since their second missed rent payment. "I apologize," he says with some embarrassment, "but it seems our expansion into your arcology was a mistake. It's strange - the business climate seemed excellent, and other corporations are doing well." He sighs. "Nevertheless, nothing ever seemed to go as planned. We'll be shutting our branch campus down immediately. In fact, it should be shut down within the hour. I regret to add," he says nervously, "that we're experiencing continued difficulty finding the liquidity to pay what we owe you. The branch campus we're closing has five recent graduates. We'd like to transfer them to you in lieu of payment." He hurriedly ends the call.
<<elseif $RESFailure == "GRI">>
	You receive a personal call from a senior representative of the Growth Research Institute, as you've been expecting since their second missed rent payment. "I apologize," he says with some embarrassment, "but it seems our expansion into your arcology was a mistake. It's strange - the business climate seemed excellent, and other corporations are doing well." He sighs. "Nevertheless, nothing ever seemed to go as planned. We'll be shutting our subsidiary lab down immediately. In fact, it should be shut down within the hour. I regret to add," he says nervously, "that we're experiencing continued difficulty finding the liquidity to pay what we owe you. The lab we're closing has five solid test subjects. We'd like to transfer them to you in lieu of payment." He hurriedly ends the call.
<<elseif $RESFailure == "SCP">>
	You receive a personal call from a senior representative of St. Claver Prep, as you've been expecting since their second missed rent payment. "I apologize," he says with some embarrassment, "but it seems our expansion into your arcology was a mistake. It's strange - the business climate seemed excellent, and other corporations are doing well." He sighs. "Nevertheless, nothing ever seemed to go as planned. We'll be shutting our branch campus down immediately. In fact, it should be shut down within the hour. I regret to add," he says nervously, "that we're experiencing continued difficulty finding the liquidity to pay what we owe you. The branch campus we're closing has five recent graduates. We'd like to transfer them to you in lieu of payment." He hurriedly ends the call.
<<elseif $RESFailure == "LDE">>
	You receive a personal call from a senior representative of the École des Enculées, as you've been expecting since their second missed rent payment. "I apologize," he says with some embarrassment, "but it seems our expansion into your arcology was a mistake. It's strange - the business climate seemed excellent, and other corporations are doing well." He sighs. "Nevertheless, nothing ever seemed to go as planned. We'll be shutting our branch campus down immediately. In fact, it should be shut down within the hour. I regret to add," he says nervously, "that we're experiencing continued difficulty finding the liquidity to pay what we owe you. The branch campus we're closing has five recent graduates. We'd like to transfer them to you in lieu of payment." He hurriedly ends the call.
<<elseif $RESFailure == "TGA">>
	You receive a personal call from a senior representative of the Gymnasium-Academy, as you've been expecting since their second missed rent payment. "I apologize," he says with some embarrassment, "but it seems our expansion into your arcology was a mistake. It's strange - the business climate seemed excellent, and other corporations are doing well." He sighs. "Nevertheless, nothing ever seemed to go as planned. We'll be shutting our branch campus down immediately. In fact, it should be shut down within the hour. I regret to add," he says nervously, "that we're experiencing continued difficulty finding the liquidity to pay what we owe you. The branch campus we're closing has five recent graduates. We'd like to transfer them to you in lieu of payment." He hurriedly ends the call.
<<elseif $RESFailure == "HA">>
	You receive a personal call from a senior representative of the Hippolyta Academy, as you've been expecting since their second missed rent payment. "I apologize," he says with some embarrassment, "but it seems our expansion into your arcology was a mistake. It's strange - the business climate seemed excellent, and other corporations are doing well." He sighs. "Nevertheless, nothing ever seemed to go as planned. We'll be shutting our branch campus down immediately. In fact, it should be shut down within the hour. I regret to add," he says nervously, "that we're experiencing continued difficulty finding the liquidity to pay what we owe you. The branch campus we're closing has five recent graduates. We'd like to transfer them to you in lieu of payment." He hurriedly ends the call.
<<elseif $RESFailure == "TCR">>
	You receive a personal call from a senior representative of the Cattle Ranch, as you've been expecting since their second missed rent payment. "I apologize," he says with some embarrassment, "but it seems our expansion into your arcology was a mistake. It's strange - the business climate seemed excellent, and other corporations are doing well." He sighs. "Nevertheless, nothing ever seemed to go as planned. We'll be shutting our farm down immediately. In fact, it should be shut down within the hour. However, we lack the funds to remove some of our finest cattle and since we still owe you a little... We'd like to you to have them; we'll even have them delivered to your penthouse with the last of our credits." He hurriedly ends the call.
<<else>>
	The senior Sister of the community of Futanari Sisters in your arcology appears at your penthouse, as you've been expecting since their second missed rent payment. This is quite the occasion, since they never leave their little nest. $He's delightfully nude, and it occurs to you that the Sisters probably do not own clothing at all. $He has obviously been crying; puffy eyes and a sniffling nose mar $his gorgeous face. $He must have caused quite the sensation as $he made $his way here, in tears, gigantic tits and huge cock bouncing around. To your surprise, $he flings herself at your feet, $his dick making a painful-sounding slap against the floor and $his breasts squashing out to either side of $him.
	<br><br>
	"Please," $he cries to your feet. "Please take us as slaves. We're indebted, and we'll all be enslaved. You're our friend, you'll treat us better than anyone." Then $he whispers, "Please, <<if $PC.surname>><<if $PC.title>>Mr.<<else>>Ms.<</if>> <<print $PC.surname>>,<<else>><<print $PC.name>>,<</if>> don't make me beg." You tell the prostrate futa you accept. $His mood does not improve: $he scrabbles around to face away from you, plush body jiggling submissively, and raises $his buttocks to spread $his pussy and anus for you. "Thank you," $he weeps. "Now please rape me, <<Master>>. I deserve it. My mismanagement stole my Sisters' years of idyll from them. Please, rape me."
<</if>>
<br><br>
The failure of a prominent organization within your arcology has @@.red;affected your reputation@@ and @@.red;your arcology's prosperity@@ slightly, but you've come out a long way ahead. You've acquired excellent slaves for a pitiful fraction of their fair price.

<br><br>

<span id="result">
<<if $RESFailure == "TFS">>
<<link "Rape $him">>
	<<replace "#result">>
	<<for $i = 0; $i < $slaves.length; $i++>>
	<<if ($slaves[$i].origin == "She was the leader of your arcology's Futanari Sisters until you engineered her community's failure and enslavement.")>>
		<<set $activeSlave.devotion += 10>>
		<<set $activeSlave.analCount += 1>>
		<<set $activeSlave.vaginalCount += 1>>
		<<set $analTotal += 1>>
		<<set $vaginalTotal += 1>>
	<</if>>
	<</for>>
	You <<if $PC.dick == 1>>whip out your dick<<else>>pull on a strap-on, the one you use for disobedient slaves,<</if>> and kneel down behind the sobbing futa matron. When $he feels it touching $his pussylips, $he whispers "Thank you, <<Master>>," through $his tears. $He's very, very sexually experienced, so it's harder to make $him feel it than it would be for a girl with tighter holes. But you're an expert. You calibrate your pounding to pull just barely too far out, so that $he feels you ramming mercilessly into $him with each stroke, and so that the slightest mistake from $him sends <<if $PC.dick == 1>>your cock<<else>>the phallus<</if>> right up the other hole. Despite $his anguish and the brutal fuck, or perhaps because of them, $he slowly manages to get hard, and orgasms painfully when you do. $He @@.hotpink;can't seem to stop thanking you,@@ but is quiet when you tell $him to be.
	<</replace>>
<</link>>
<br>
<</if>>
<<link "Sell your prizes immediately">>
	<<replace "#result">>
	<<for $i = 0; $i < $slaves.length; $i++>>
	<<set $activeSlave = $slaves[$i]>>
	<<if $RESFailure == "TSS">>
		<<if ($slaves[$i].origin == "She was given to you by a failed branch campus of The Slavegirl School right after her majority.") || ($slaves[$i].origin == "She was given to you by a failed branch campus of The Slavegirl School after she was retrained as a slave girl.")>>
		<<slaveCost $slaves[$i]>>
		<<set $cash += $slaveCost>>
		<<include "Remove activeSlave">>
		<<set $i -= 1>>
		<</if>>
	<<elseif $RESFailure == "GRI">>
		<<if $slaves[$i].origin == "She was given to you by a failed subsidiary lab of the Growth Research Institute right after her use as a test subject ended.">>
		<<slaveCost $slaves[$i]>>
		<<set $cash += $slaveCost>>
		<<include "Remove activeSlave">>
		<<set $i -= 1>>
		<</if>>
	<<elseif $RESFailure == "SCP">>
		<<if $slaves[$i].origin == "She was given to you by a failed branch campus of St. Claver Preparatory after she served as a plastic surgeon's passing final exam.">>
		<<slaveCost $slaves[$i]>>
		<<set $cash += $slaveCost>>
		<<include "Remove activeSlave">>
		<<set $i -= 1>>
		<</if>>
	<<elseif $RESFailure == "LDE">>
		<<if $slaves[$i].origin == "She was given to you by a failed branch campus of the innovative École des Enculées right after her graduation.">>
		<<slaveCost $slaves[$i]>>
		<<set $cash += $slaveCost>>
		<<include "Remove activeSlave">>
		<<set $i -= 1>>
		<</if>>
	<<elseif $RESFailure == "TGA">>
		<<if $slaves[$i].origin == "She was given to you by a failed branch campus of the intense Gymnasium-Academy right after her majority.">>
		<<slaveCost $slaves[$i]>>
		<<set $cash += $slaveCost>>
		<<include "Remove activeSlave">>
		<<set $i -= 1>>
		<</if>>
	<<elseif $RESFailure == "HA">>
		<<if $slaves[$i].origin == "She was given to you by a failed branch campus of the Hippolyta Academy right after her majority.">>
		<<slaveCost $slaves[$i]>>
		<<set $cash += $slaveCost>>
		<<include "Remove activeSlave">>
		<<set $i -= 1>>
		<</if>>
	<<elseif $RESFailure == "TCR">>
		<<if $slaves[$i].origin == "She is a prized dairy cow given to you by a failed local pasture of The Cattle Ranch.">>
		<<slaveCost $slaves[$i]>>
		<<set $cash += $slaveCost>>
		<<include "Remove activeSlave">>
		<<set $i -= 1>>
		<</if>>
	<<else>>
		<<if ($slaves[$i].origin == "She was the leader of your arcology's Futanari Sisters until you engineered her community's failure and enslavement.") || ($slaves[$i].origin == "She was a Futanari Sister until you engineered her early enslavement.")>>
		<<slaveCost $slaves[$i]>>
		<<set $cash += $slaveCost>>
		<<include "Remove activeSlave">>
		<<set $i -= 1>>
		<</if>>
	<</if>>
	<</for>>
	Prizes sold.
	<</replace>>
<</link>>
</span>