code:
:: Special Slave [nobr]

<<set $nextButton = "Back", $nextLink = "Buy Slaves", $returnTo = "Buy Slaves", $showEncyclopedia = 1, $encyclopedia = "Direct Sales">>

<<if $heroSlaves.length == 0>>
	Unfortunately, the catalog is empty.
<<else>>

	<<run slaveSortMinor($heroSlaves)>>
	<<set $activeSlave = App.Utils.getHeroSlave($heroSlaves.random(), $baseHeroSlave)>>
	<<set $activeSlave.weekAcquired = $week>>
	<<if ndef $activeSlave.pubicHColor>>
		<<set $activeSlave.pubicHColor = $activeSlave.hColor>>
	<</if>>
	<<if ndef $activeSlave.underArmHColor>>
		<<set $activeSlave.underArmHColor = $activeSlave.hColor>>
	<</if>>

	<<if $activeSlave.override_Race != 1>>
		<<set $activeSlave.origRace = $activeSlave.race>>
	<</if>>

	<<if $activeSlave.override_Eye_Color != 1>>
		<<run resetEyeColor($activeSlave, "both")>>
	<</if>>
	<<if $activeSlave.override_H_Color != 1>>
		<<set $activeSlave.hColor = getGeneticHairColor($activeSlave)>>
	<</if>>
	<<if $activeSlave.override_Arm_H_Color != 1>>
		<<set $activeSlave.underArmHColor = getGeneticHairColor($activeSlave)>>
	<</if>>
	<<if $activeSlave.override_Pubic_H_Color != 1>>
		<<set $activeSlave.pubicHColor = getGeneticHairColor($activeSlave)>>
	<</if>>
	<<if $activeSlave.override_Brow_H_Color != 1>>
		<<set $activeSlave.eyebrowHColor = getGeneticHairColor($activeSlave)>>
	<</if>>
	<<if $activeSlave.override_Skin != 1>>
		<<set $activeSlave.skin = getGeneticSkinColor($activeSlave)>>
	<</if>>

	<<run SetBellySize($activeSlave)>>
	<<if $familyTesting == 1>>
		/* special slaves exceptions to keep siblings sensible */
		<<if $activeSlave.mother == -9999 && $activeSlave.father == -9998>> /* The twins — Camille & Kennerly */
			<<for _k = 0; _k < $slaves.length; _k++>>
				<<if areSisters($slaves[_k], $activeSlave) > 0>>
					<<set $activeSlave.actualAge = $slaves[_k].actualAge, $activeSlave.physicalAge = $activeSlave.actualAge, $activeSlave.visualAge = $activeSlave.actualAge, $activeSlave.ovaryAge = $activeSlave.actualAge, $activeSlave.birthWeek = $slaves[_k].birthWeek>>
				<</if>>
			<</for>>
		<</if>>
		<<if $activeSlave.mother == -9997 && $activeSlave.father == -9996>> /* The siblings — Elisa & Martin */
			<<for _k = 0; _k < $slaves.length; _k++>>
				<<if areSisters($slaves[_k], $activeSlave) > 0>>
					<<if $activeSlave.birthName == "Elisa">>
						<<set $activeSlave.actualAge = $slaves[_k].actualAge-1, $activeSlave.physicalAge = $activeSlave.actualAge, $activeSlave.visualAge = $activeSlave.actualAge, $activeSlave.ovaryAge = $activeSlave.actualAge>>
					<<elseif $activeSlave.birthName == "Martin">>
						<<set $activeSlave.actualAge = $slaves[_k].actualAge+1, $activeSlave.physicalAge = $activeSlave.actualAge, $activeSlave.visualAge = $activeSlave.actualAge, $activeSlave.ovaryAge = $activeSlave.actualAge>>
					<</if>>
				<</if>>
			<</for>>
		<</if>>
		<<if $activeSlave.mother == -9995 && $activeSlave.father == -9994>> /* The fruit siblings — Green & Purple Grape */
			<<for _k = 0; _k < $slaves.length; _k++>>
				<<if areSisters($slaves[_k], $activeSlave) > 0>>
					<<if $activeSlave.birthName == "Green Grape">>
						<<set $activeSlave.actualAge = $slaves[_k].actualAge-5, $activeSlave.physicalAge = $activeSlave.actualAge, $activeSlave.visualAge = $activeSlave.actualAge, $activeSlave.ovaryAge = $activeSlave.actualAge>>
					<<elseif $activeSlave.birthName == "Purple Grape">>
						<<set $activeSlave.actualAge = $slaves[_k].actualAge+5, $activeSlave.physicalAge = $activeSlave.actualAge, $activeSlave.visualAge = $activeSlave.actualAge, $activeSlave.ovaryAge = $activeSlave.actualAge>>
					<</if>>
				<</if>>
			<</for>>
		<</if>>
	<</if>>
	<<run nationalityToAccent($activeSlave)>>
	<<set $specialSlavesPriceOverride = 1>>
	<<set $slaveCost = slaveCost($activeSlave)>>
	<<set $slaveCost = (10*Math.trunc(($slaveCost/10)*2))>>
	<<if $slaveCost < 20000>>
		<<set $slaveCost += random(5000,30000)>>
	<</if>>
	<<setLocalPronouns $activeSlave>>

	You review a piece of merchandise via video call, making a few lewd demands to gauge $his obedience. The background of the video feed is luxurious and plush; somewhere offscreen someone is moaning rapturously.

	The offered price is <<print cashFormat($slaveCost)>>.

	[["Buy " + $his + " slave contract"|New Slave Intro][cashX(forceNeg($slaveCost), "slaveTransfer", $activeSlave),$nextButton = "Continue",$nextLink = "AS Dump",$returnTo = "Main",$specialSlave = 1]]

	[[Pay to access complete catalog of slaves|Complete Catalog][cashX(-1000, "personalBusiness")]] //Costs <<print cashFormat(1000)>>.//

	//Best regards to /d/, whose fine denizens came up with most of the slaves in the "previously owned" database.//

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

<</if>>


code:
:: Stewardess Select [nobr]

<<set $nextButton = "Back", $nextLink = "Servants' Quarters", $showEncyclopedia = 1, $encyclopedia = "Stewardess">>
<<if ($Stewardess != 0)>>
	<<set $Stewardess = getSlave($Stewardess.ID)>>
	<<setLocalPronouns $Stewardess>>
	''__@@.pink;<<= SlaveFullName($Stewardess)>>@@__'' is serving as your Stewardess.

$He will manage the Servants' Quarters.
<<else>>
	You have not selected a Stewardess.
<</if>>

''Appoint a Stewardess from your devoted slaves:''

[[None|Stewardess Workaround][$i = -1]]

<<print App.UI.SlaveList.facilityManagerSelection(App.Entity.facilities.servantsQuarters)>>

repo_name: IchthysdeKilt/fc

license: mit


code:
:: Stewardess Workaround [silently]

<<if $Stewardess != 0>>
	<<= removeJob($Stewardess, "be the Stewardess")>>
<</if>>
<<if $i > -1>>
	<<= assignJob($slaves[$i], "be the Stewardess")>>
	<<set $slaves[$i].rules.living = "luxurious">>
	<<set $Stewardess = $slaves[$i]>>
<</if>>

<<goto "Servants' Quarters">>


code:
:: StoryCaption [nobr]

<<set _Pass = passage()>>
<<widget "userButton">>
	/* Must use link so spacebar shortcut will work. */
	/* Don't remove these spans, it will break things. */
	<<if _Pass != "End Week">>
		<<if _Pass == "Main">>

			<<link "$nextButton">> <<goto $nextLink>> <</link>> @@.cyan;[Ent]@@

			<<if $rulesAssistantAuto == 1 && DefaultRulesError()>>

@@.yellow;WARNING: Rules Assistant has rules with errors!@@
			<</if>>
		<<else>>
			  <<if $nextButton != " ">>

				<<link "$nextButton">> <<goto $nextLink>> <</link>> @@.cyan;[Space]@@
			<</if>>
			  <</if>>
	<</if>>

<</widget>>

<<widget "security">>
	<<if ($SF.Toggle && $SF.Active >= 1) || $secExpEnabled > 0 && ($SecExp.buildings.propHub.active + $secHQ + $SecExp.buildings.barracks.active + $riotCenter) > 1>>

	<</if>>
	<<if $SF.Toggle && $SF.Active >= 1 && _Pass != "Firebase">>

			<<link "$SF.Caps's firebase""Firebase">><</link>>
		 @@.cyan;[Z]@@
	<</if>>

	<<if $secExpEnabled > 0>>
		<<if $SecExp.buildings.propHub.active > 0 && _Pass != "propagandaHub">>

				<<link [[Manage PR|propagandaHub]]>><</link>>
			 @@.cyan;[Shift+H]@@
		<</if>>
		<<if $secHQ > 0 && _Pass != "securityHQ">>

				<<link [[Manage Security|securityHQ]]>><</link>>
			 @@.cyan;[Shift+S]@@
		<</if>>

		<<if $SecExp.buildings.barracks.active > 0 && _Pass != "secBarracks">>

				<<link [[Manage Military|secBarracks]]>><</link>>
			 @@.cyan;[Shift+A]@@
		<</if>>
		<<if $riotCenter > 0 && _Pass != "riotControlCenter">>

				<<link [[Manage Rebels|riotControlCenter]]>><</link>>
			 @@.cyan;[Shift+R]@@
		<</if>>
	<</if>>
<</widget>>

<<if $ui != "start" || _Pass === "Encyclopedia">>
 <<if _Pass != "Encyclopedia">>
		<<if $cheatMode || $debugMode>> _Pass
 <</if>>
		''Week $week''
		<<if $week > 52>> (<<= years($week)>>) <</if>>

Week of <<= asDateString($week) >>
		<<if (_Pass == "Main") && ($cheatMode)&& ($cheatModeM)>>
			<<set _TWeek = $week>>
			<<textbox "$week" $week>>
			<<link "Apply">>
				<<set $week = Math.trunc(Number($week) || _TWeek)>>
				<<if $week < 1>><<set $week = 1>><</if>>
				<<replace "#week">>''Week $week''<</replace>>
			<</link>>
		<</if>>

		<<if $weatherToday.severity == 1>> //@@.cyan;
		<<elseif $weatherToday.severity == 2>> //@@.yellow;
		<<elseif $weatherToday.severity == 3>> //@@.orange;
		<<else>> //@@.red;
		<</if>>
		$weatherToday.name@@//
	<</if>>
	<<if _Pass != "End Week">> <<userButton>> <</if>>
<</if>>

<<if _Pass == "Encyclopedia">>

	/* Intro, new players, PC/Gameplay focused */
	[[Playing Free Cities|Encyclopedia][$encyclopedia = "Playing Free Cities"]]

[[Design your master|Encyclopedia][$encyclopedia = "Design Your Master"]]

[[Being in charge|Encyclopedia][$encyclopedia = "Being in charge"]]
	/* Section for slaves */

[[Slaves|Encyclopedia][$encyclopedia = "Slaves"]]

[[Obtaining Slaves|Encyclopedia][$encyclopedia = "Obtaining Slaves"]]

[[Slave Assignments|Encyclopedia][$encyclopedia = "Slave Assignments"]]

[[Slave Body|Encyclopedia][$encyclopedia = "Body"]] / [[Skills|Encyclopedia][$encyclopedia = "Skills"]]

[[Slave Fetishes|Encyclopedia][$encyclopedia = "Fetishes"]] / [[Quirks|Encyclopedia][$encyclopedia = "Quirks"]] / [[Flaws|Encyclopedia][$encyclopedia = "Flaws"]]

[[Slave Relationships|Encyclopedia][$encyclopedia = "Relationships"]]
	/* Section for arcology and Lore */

[[The X-Series Arcology|Encyclopedia][$encyclopedia = "What the Upgrades Do"]]

[[Arcology Facilities|Encyclopedia][$encyclopedia = "Facilities"]]

[[Terrain Types|Encyclopedia][$encyclopedia = "Terrain Types"]]

[[Future Societies|Encyclopedia][$encyclopedia = "Future Societies"]]

[[Lore|Encyclopedia][$encyclopedia = "Lore"]]
	/* Mods and extras */

[[Game Mods|Encyclopedia][$encyclopedia = "Game Mods"]]

[[Credits|Encyclopedia][$encyclopedia = "Credits"]]
<<elseif _Pass == "Starting Girls">>
	<<SlaveCostDescription>>

<</if>>

<<if $ui != "start" && _Pass != "Encyclopedia">>
	<<if $sideBarOptions.Cash > 0>>
		<<set $cash = Math.trunc($cash)>>

		<<if $cash > 0>>
			@@.yellowgreen;Cash@@
			| @@.yellowgreen;<<print cashFormat($cash)>>@@
		<<else>>
			__@@.red;Cash@@__
			| @@.red;<<print cashFormat($cash)>>@@
		<</if>>

		<<if _Pass == "Main">>

			<<set _TCash2 = ($cash-$cashLastWeek)>>

			<<if _TCash2 > 0>>
				(@@.green;<<print cashFormat(_TCash2)>>@@
			<<else>>
				(@@.red;<<print cashFormat(_TCash2)>>@@
			<</if>>

			since last week)
			<<if ($cheatMode) && ($cheatModeM)>>
				<<set _TCash1 = $cash>>
				<<textbox "$cash" $cash>>
				<<link "Apply">>
					<<set $cash = Math.trunc(Number($cash) || _TCash1), $cheater = 1>>
					<<replace "#cash">>
					<<if $cash > 0>>
						@@.yellowgreen;Cash@@
					<<else>>
						__@@.red;Cash@@__
					<</if>>
					| <<print cashFormat($cash)>>
					<</replace>>
					<<set _TCash2 = ($cash-$cashLastWeek)>>
					<<replace "#oldcash">>
					<<if _TCash2 > 0>>
						(@@.green;<<print cashFormat(_TCash2)>>@@
					<<else>>
						(@@.red;<<print cashFormat(_TCash2)>>@@
					<</if>>
					<</replace>>
					since last week)
				<</link>>
			<</if>>
		<</if>>

		<<if $foodMarket > 0>>

			<<set $food = Math.trunc($food)>>
			<<set $foodConsumption = (($lowerClass*$lowerRate) + ($middleClass*$middleRate) + ($upperClass*$upperRate) + ($topClass*$topRate))>>

			<<if $food > $foodConsumption>> /* if there is enough food for the next week */
				@@.chocolate;Food@@
			<<else>>
				@@.red;Food@@
			<</if>>
			<<if $food < 0>> <<set $food = 0>> <</if>>
			| <<print massFormat($food)>>

			<<set _TFood2 = ($food-$foodLastWeek)>>

			<<if _TFood2 < 0>>
				(@@.red;
			<<else>>
				(@@.chocolate;+
			<</if>>
			<<print massFormat(_TFood2)>>@@)

			since last week)
			<<if ($cheatMode) && ($cheatModeM)>>
				<<set _TFood1 = $food>>
				<<textbox "$food" $food>>
				<<link "Apply">>
					<<if $food < 0>>
						<<set $food = 0>>
					<<else>>
						<<set $food = Math.trunc(Number($food) || _TFood1), $cheater = 1>>
					<</if>>
					<<replace "#food">>
					<<if $food > $foodConsumption>>		/* if there is enough food for the next week */
						@@.chocolate;Food@@
					<<else>>
						__@@.red;Food@@__
					<</if>>
					| <<print massFormat($food)>>
					<</replace>>
					<<set _TFood2 = ($food-$foodLastWeek)>>
					<<replace "#oldfood">>
					<<if _TFood2 < 0>>
						(@@.red;<<print massFormat(_TFood2)>>@@
					<<else>>
						(@@.chocolate;+<<print massFormat(_TFood2)>>@@
					<</if>>
					<</replace>>
					since last week)
				<</link>>
			<</if>>
		<</if>>
	<<else>>
		<<if $foodMarket > 0>>
			<<set $food = Math.trunc($food)>>

			<<if $food > $foodConsumption>>		/* if there is enough food for the next week */
				@@.chocolate;Food@@
			<<else>>
				@@.red;Food@@
			<</if>>
			| <<print massFormat($food)>>

		<</if>>
	<</if>>

	<<if $sideBarOptions.Upkeep > 0>>

		<<if _Pass === "Main">> [[Upkeep|Costs Budget]] |
		<<else>> Upkeep |
		<</if>>
		@@.red;<<print cashFormat($costs)>>@@
	<</if>>

	<<if $sideBarOptions.SexSlaveCount > 0>>

		@@.pink;Total Sex Slaves@@ | <<print $slaves.length>>
	<</if>>
	<<if $sideBarOptions.roomPop > 0>>

		@@.pink;Penthouse Beds@@ |
		<<if $dormitoryPopulation+$roomsPopulation > ($dormitory+$rooms)>>@@.red;<<print $dormitoryPopulation+$roomsPopulation>>@@<<else>><<print $dormitoryPopulation+$roomsPopulation>><</if>>/<<print ($dormitory+$rooms)>>

@@.pink;Dormitory Beds@@ | <<if $dormitoryPopulation > $dormitory>>@@.red;<<print $dormitoryPopulation>>@@<<else>><<print $dormitoryPopulation>><</if>>/<<print $dormitory>>

@@.pink;Luxury Rooms@@ | <<if $roomsPopulation > $rooms>>@@.red;<<print $roomsPopulation>>@@<<else>><<print $roomsPopulation>><</if>>/<<print $rooms>>
	<</if>>

	<<if _Pass != "Manage Penthouse">>
		<<if $sideBarOptions.GSP > 0 && _Pass != "Neighbor Interact">>

			@@.yellowgreen;GSP@@ |
			<<= num(Math.trunc(0.1*$arcologies[0].prosperity))>>m
			<<if $arcologies[0].ownership >= $arcologies[0].minority>>
				<<if $arcologies[0].ownership >= $arcologies[0].minority+5>>
					<<if $arcologies[0].ownership < 100>>
						<<if $assistantPower >= 1>> (@@.yellowgreen;<<print $arcologies[0].ownership>>%@@:<<print $arcologies[0].minority>>%) <<else>> (@@.yellowgreen;<<print $arcologies[0].ownership>>%@@) <</if>>
					<<else>> (<<print $arcologies[0].ownership>>%)
					<</if>>
				<<else>>
					<<if $assistantPower >= 1>> (@@.yellow;<<print $arcologies[0].ownership>>%@@:<<print $arcologies[0].minority>>%) <<else>> (@@.yellow;<<print $arcologies[0].ownership>>%@@) <</if>>
				<</if>>
			<<else>>
				<<if $assistantPower >= 1>> (@@.red;<<print $arcologies[0].ownership>>%@@:<<print $arcologies[0].minority>>%) <<else>> (@@.red;<<print $arcologies[0].ownership>>%@@) <</if>>
			<</if>>
		<</if>>

		<<if $sideBarOptions.Rep > 0>>

			<<if _Pass === "Main">>
				[[Rep|Rep Budget]] |
			<<else>>
				@@.green;Rep@@ |
			<</if>>

			<<if $rep > 19000>>
				@@color:rgb(0,145,0);worshipped@@
			<<elseif $rep > 18000>>
				@@color:rgb(0,150,0);great@@
			<<elseif $rep > 17000>>
				@@color:rgb(0,155,0);exalted@@
			<<elseif $rep > 16000>>
				@@color:rgb(0,160,0);illustrious@@
			<<elseif $rep > 15000>>
				@@color:rgb(0,165,0);prestigious@@
			<<elseif $rep > 14000>>
				@@color:rgb(0,170,0);renowned@@
			<<elseif $rep > 13000>>
				@@color:rgb(0,175,0);famed@@
			<<elseif $rep > 12000>>
				@@color:rgb(0,180,0);celebrated@@
			<<elseif $rep > 11000>>
				@@color:rgb(0,185,0);honored@@
			<<elseif $rep > 10000>>
				@@color:rgb(0,190,0);acclaimed@@
			<<elseif $rep > 9000>>
				@@color:rgb(0,195,0);eminent@@
			<<elseif $rep > 8250>>
				@@color:rgb(0,200,0);prominent@@
			<<elseif $rep > 7000>>
				@@color:rgb(0,205,0);distinguished@@
			<<elseif $rep > 6750>>
				@@color:rgb(0,210,0);admired@@
			<<elseif $rep > 6000>>
				@@color:rgb(0,215,0);esteemed@@
			<<elseif $rep > 5250>>
				@@color:rgb(0,220,0);respected@@
			<<elseif $rep > 4500>>
				@@color:rgb(0,225,0);known@@
			<<elseif $rep > 3750>>
				@@color:rgb(0,230,0);recognized@@
			<<elseif $rep > 3000>>
				@@color:rgb(0,235,0);rumored@@
			<<elseif $rep > 2250>>
				@@color:rgb(0,240,0);envied@@
			<<elseif $rep > 1500>>
				@@color:rgb(0,245,0);resented@@
			<<elseif $rep > 750>>
				@@color:rgb(0,250,0);disliked@@
			<<else>>
				@@color:rgb(0,255,0);unknown@@
			<</if>>
			(<<print num($rep)>>)

			<<if (_Pass == "Main")>>
				<<if ($cheatMode) && ($cheatModeM)>>
					<<set _TRep = $rep>>
					<<textbox "$rep" $rep>>
					<<link "Apply">>
						<<set $rep = Math.clamp(Math.trunc(Number($rep) || _TRep), 0, 20000), $cheater = 1>>
						<<replace "#rep">>
						<<if $rep > 19000>>
							@@color:rgb(0,145,0);worshipped@@
						<<elseif $rep > 18000>>
							@@color:rgb(0,150,0);great@@
						<<elseif $rep > 17000>>
							@@color:rgb(0,155,0);exalted@@
						<<elseif $rep > 16000>>
							@@color:rgb(0,160,0);illustrious@@
						<<elseif $rep > 15000>>
							@@color:rgb(0,165,0);prestigious@@
						<<elseif $rep > 14000>>
							@@color:rgb(0,170,0);renowned@@
						<<elseif $rep > 13000>>
							@@color:rgb(0,175,0);famed@@
						<<elseif $rep > 12000>>
							@@color:rgb(0,180,0);celebrated@@
						<<elseif $rep > 11000>>
							@@color:rgb(0,185,0);honored@@
						<<elseif $rep > 10000>>
							@@color:rgb(0,190,0);acclaimed@@
						<<elseif $rep > 9000>>
							@@color:rgb(0,195,0);eminent@@
						<<elseif $rep > 8250>>
							@@color:rgb(0,200,0);prominent@@
						<<elseif $rep > 7000>>
							@@color:rgb(0,205,0);distinguished@@
						<<elseif $rep > 6750>>
							@@color:rgb(0,210,0);admired@@
						<<elseif $rep > 6000>>
							@@color:rgb(0,215,0);esteemed@@
						<<elseif $rep > 5250>>
							@@color:rgb(0,220,0);respected@@
						<<elseif $rep > 4500>>
							@@color:rgb(0,225,0);known@@
						<<elseif $rep > 3750>>
							@@color:rgb(0,230,0);recognized@@
						<<elseif $rep > 3000>>
							@@color:rgb(0,235,0);rumored@@
						<<elseif $rep > 2250>>
							@@color:rgb(0,240,0);envied@@
						<<elseif $rep > 1500>>
							@@color:rgb(0,245,0);resented@@
						<<elseif $rep > 750>>
							@@color:rgb(0,250,0);disliked@@
						<<else>>
							@@color:rgb(0,255,0);unknown@@
						<</if>>
						<<print num($rep)>>
						<</replace>>
					<</link>>
				<</if>>
			<</if>>
		<</if>>

		<<if $secExpEnabled > 0 && ($sideBarOptions.Authority + $sideBarOptions.Security + $sideBarOptions.Crime > 0)>>
			<<if $sideBarOptions.Authority > 0>>

				@@.darkviolet;Auth@@ |
				<<set $SecExp.core.authority = Math.clamp(Math.trunc($SecExp.core.authority), 0, 20000)>>

				<<if $SecExp.core.authority > 19500>>
					@@color:rgb(148, 0, 211);divine will@@
				<<elseif $SecExp.core.authority > 19000>>
					@@color:rgb(148, 0, 211);sovereign@@
				<<elseif $SecExp.core.authority > 18000>>
					@@color:rgb(148, 0, 211);monarch@@
				<<elseif $SecExp.core.authority > 17000>>
					@@color:rgb(148, 0, 211);tyrant@@
				<<elseif $SecExp.core.authority > 15000>>
					@@color:rgb(148, 0, 211);dictator@@
				<<elseif $SecExp.core.authority > 14000>>
					@@color:rgb(148, 0, 211);prince@@
				<<elseif $SecExp.core.authority > 13000>>
					@@color:rgb(183, 0, 211);master@@
				<<elseif $SecExp.core.authority > 12000>>
					@@color:rgb(183, 0, 211);leader@@
				<<elseif $SecExp.core.authority > 11000>>
					@@color:rgb(183, 0, 211);director@@
				<<elseif $SecExp.core.authority > 10000>>
					@@color:rgb(183, 0, 211);overseer@@
				<<elseif $SecExp.core.authority > 9000>>
					@@color:rgb(183, 0, 211);chief@@
				<<elseif $SecExp.core.authority > 8000>>
					@@color:rgb(183, 0, 211);manager@@
				<<elseif $SecExp.core.authority > 7000>>
					@@color:rgb(211,0,204);principal@@
				<<elseif $SecExp.core.authority > 6000>>
					@@color:rgb(211,0,204);auxiliary@@
				<<elseif $SecExp.core.authority > 5000>>
					@@color:rgb(211,0,204);subordinate@@
				<<elseif $SecExp.core.authority > 4000>>
					@@color:rgb(211,0,204);follower@@
				<<elseif $SecExp.core.authority > 3000>>
					@@color:rgb(211,0,204);powerless@@
				<<elseif $SecExp.core.authority > 2000>>
					@@color:rgb(211,0,204);toothless@@
				<<elseif $SecExp.core.authority > 1000>>
					@@color:rgb(211,0,204);mostly harmless@@
				<<else>>
					@@color:rgb(211,0,204);harmless@@
				<</if>>
				(<<print num($SecExp.core.authority)>>)

				<<if (_Pass == "Main")>>
					<<if ($cheatMode) && ($cheatModeM)>>
						<<set _TAuth = $SecExp.core.authority>>
						<<textbox "$SecExp.core.authority" $SecExp.core.authority>>
						<<link "Apply">>
							<<set $SecExp.core.authority = Math.clamp(Math.trunc(Number($SecExp.core.authority) || _TAuth), 0, 20000), $cheater = 1>>
							<<replace "#auth">>
								<<if $SecExp.core.authority > 19500>>
									@@color:rgb(148, 0, 211);divine will@@
								<<elseif $SecExp.core.authority > 19000>>
									@@color:rgb(148, 0, 211);sovereign@@
								<<elseif $SecExp.core.authority > 18000>>
									@@color:rgb(148, 0, 211);monarch@@
								<<elseif $SecExp.core.authority > 17000>>
									@@color:rgb(148, 0, 211);tyrant@@
								<<elseif $SecExp.core.authority > 15000>>
									@@color:rgb(148, 0, 211);dictator@@
								<<elseif $SecExp.core.authority > 14000>>
									@@color:rgb(148, 0, 211);prince@@
								<<elseif $SecExp.core.authority > 13000>>
									@@color:rgb(183, 0, 211);master@@
								<<elseif $SecExp.core.authority > 12000>>
									@@color:rgb(183, 0, 211);leader@@
								<<elseif $SecExp.core.authority > 11000>>
									@@color:rgb(183, 0, 211);director@@
								<<elseif $SecExp.core.authority > 10000>>
									@@color:rgb(183, 0, 211);overseer@@
								<<elseif $SecExp.core.authority > 9000>>
									@@color:rgb(183, 0, 211);chief@@
								<<elseif $SecExp.core.authority > 8000>>
									@@color:rgb(183, 0, 211);manager@@
								<<elseif $SecExp.core.authority > 7000>>
									@@color:rgb(211,0,204);principal@@
								<<elseif $SecExp.core.authority > 6000>>
									@@color:rgb(211,0,204);auxiliary@@
								<<elseif $SecExp.core.authority > 5000>>
									@@color:rgb(211,0,204);subordinate@@
								<<elseif $SecExp.core.authority > 4000>>
									@@color:rgb(211,0,204);follower@@
								<<elseif $SecExp.core.authority > 3000>>
									@@color:rgb(211,0,204);powerless@@
								<<elseif $SecExp.core.authority > 2000>>
									@@color:rgb(211,0,204);toothless@@
								<<elseif $SecExp.core.authority > 1000>>
									@@color:rgb(211,0,204);mostly harmless@@
								<<else>>
									@@color:rgb(211,0,204);harmless@@
								<</if>>
							<</replace>>
						<</link>>
					<</if>>
				<</if>>
			<</if>>

			<<if $sideBarOptions.Security > 0>>

					@@.deepskyblue;Security@@ | @@.deepskyblue;<<print Math.trunc($SecExp.security.cap)>>%@@

				<<if (_Pass == "Main")>>
					<<if ($cheatMode) && ($cheatModeM)>>
						<<set _TSec = $SecExp.security.cap>>
						<<textbox "$SecExp.security.cap" $SecExp.security.cap>>
						<<link "Apply">>
							<<set $SecExp.security.cap = Math.clamp(Math.trunc(Number($SecExp.security.cap) || _TSec), 0, 100), $cheater = 1>>
							<<replace "#sec">>

@@.deepskyblue;Security@@ | <<print Math.trunc($SecExp.security.cap)>>%
							<</replace>>
						<</link>>
					<</if>>
				<</if>>
			<</if>>

			<<if $sideBarOptions.Crime > 0>>

					@@.orangered;Crime@@ | @@.orangered;<<print Math.trunc($SecExp.core.crimeLow)>>%@@

				<<if (_Pass == "Main")>>
					<<if ($cheatMode) && ($cheatModeM)>>
						<<set _TCrime = $SecExp.core.crimeLow>>
						<<textbox "$SecExp.core.crimeLow" $SecExp.core.crimeLow>>
						<<link "Apply">>
							<<set $SecExp.core.crimeLow = Math.clamp(Math.trunc(Number($SecExp.core.crimeLow) || _TCrime), 0, 100), $cheater = 1>>
							<<replace "#crime">>

@@.orangered;Crime@@ | <<print Math.trunc($SecExp.core.crimeLow)>>%
							<</replace>>
						<</link>>
					<</if>>
				<</if>>
			<</if>>

		<</if>> /* Closes secExp check and associated sideBarOptions options */
	<</if>> /* Closes Pass != "Manage Penthouse""*/

	<<if $nextButton != "Continue" && $nextButton != " ">>

		<<if _Pass != "Manage Penthouse">>

				<<link [[Manage Penthouse]]>><</link>>
			 @@.cyan;[P]@@
		<</if>>
		<<if _Pass != "Manage Arcology">>

				<<link [[Manage Arcology]]>><</link>>
			 @@.cyan;[C]@@
		<</if>>

		<<if _Pass != "Manage Personal Affairs">>

				<<link [[Manage Personal Affairs]]>><</link>>
			 @@.cyan;[X]@@
		<</if>>
		<<if $corpAnnounced == 1 && _Pass != "Manage Corporation">>

				<<link [[Manage Corporation][$nextButton = "Back", $nextLink = _Pass]]>><</link>>

			<<if ($corpSpecToken > 0) && ($corpSpecTimer == 0)>>@@.yellow;[!]@@<</if>>
		<</if>>

		<<if _Pass === "Main">>

				<<link [[Locate Slave|Find Slave]]>><</link>>

		<</if>>

		<<if $sideBarOptions.compact === 0 && _Pass === "Main" || $sideBarOptions.compact === 1 && _Pass === "Manage Arcology">>

			<<if $FSAnnounced>>

				<<link [[Future Societies|Future Society][$nextButton = "Back", $nextLink = "Main"]]>><</link>>
				 @@.cyan;[F]@@
				<<if ($FSCredits > 0) || ($FSReminder)>>@@.yellow;[!]@@<</if>>
			<</if>>

				<<link [[Personal Assistant|Personal assistant options]]>><</link>>
			 @@.cyan;[T]@@
		<</if>>

		<<if _Pass === "Main" && $newModelUI === 0>>
				<<if ($HGSuite)>>

 <<link "$HGSuiteNameCaps""Head Girl Suite">><</link>>
					<<if $abbreviateSidebar == 2>>
						<<if $HeadGirl != 0>>(HG<<if $HGSuiteiIDs.length > 0>>, 1)<<else>>)<</if>><</if>>
					<<else>>
						<<if $HeadGirl != 0>>(HG<<if $HGSuiteiIDs.length > 0>> and slave<<else>>)<</if>><</if>>
					<</if>>
				<</if>>
				<<if ($dojo > 1)>>

[[Armory|BG Select]]
					<<if $Bodyguard != 0>>
						(BG)
					<</if>>
				<</if>>

				<<if ($brothel)>>

 <<link "$brothelNameCaps""Brothel">><</link>>
					<<if $abbreviateSidebar == 2>>
						($BrothiIDs.length/<<print $brothel>> whores<<if $Madam>>, madam<</if>>)
					<<else>>
						($BrothiIDs.length/<<print $brothel>><<if $Madam>>, L<</if>>)
					<</if>>
				<</if>>
				<<if ($club)>>

 <<link "$clubNameCaps""Club">><</link>>
					<<if $abbreviateSidebar == 2>>
						($ClubiIDs.length/<<print $club>> sluts<<if $DJ>>, DJ<</if>>)
					<<else>>
						($ClubiIDs.length/<<print $club>><<if $DJ>>, L<</if>>)
					<</if>>
				<</if>>

				<<if ($arcade)>>

 <<link "$arcadeNameCaps""Arcade">><</link>>
					<<if $abbreviateSidebar == 2>>
						($ArcadeiIDs.length/<<print $arcade>> inmates)
					<<else>>
						($ArcadeiIDs.length/<<print $arcade>>)
					<</if>>
				<</if>>
				<<if ($dairy)>>

 <<link "$dairyNameCaps""Dairy">><</link>>
					<<set _SCapT9 = $bioreactorsXY+$bioreactorsXX+$bioreactorsHerm+$bioreactorsBarren>>
					<<if $abbreviateSidebar == 2>>
						($DairyiIDs.length<<if _SCapT9>>+_SCapT9<</if>>/<<print $dairy>> cows<<if $Milkmaid>>, milkmaid<</if>>)
					<<else>>
						($DairyiIDs.length<<if _SCapT9>>+_SCapT9<</if>>/<<print $dairy>><<if $Milkmaid>>, L<</if>>)
					<</if>>
				<</if>>

				<<if ($farmyard)>>

 <<link "$farmyardNameCaps""Farmyard">><</link>>
					<<if $abbreviateSidebar == 2>>
						($FarmyardiIDs.length/$farmyard farmhands<<if $Farmer>>, farmer<</if>>)
					<<else>>
						($FarmyardiIDs.length/$farmyard<<if $Farmer>>, L<</if>>)
					<</if>>
				<</if>>
				<<if ($servantsQuarters)>>

 <<link "$servantsQuartersNameCaps""Servants' Quarters">><</link>>
					<<if $abbreviateSidebar == 2>>
						($ServQiIDs.length/$servantsQuarters servants<<if $Stewardess>>, stewardess<</if>>)
					<<else>>
						($ServQiIDs.length/$servantsQuarters<<if $Stewardess>>, L<</if>>)
					<</if>>
				<</if>>

				<<if ($masterSuite)>>

 <<link "$masterSuiteNameCaps""Master Suite">><</link>>
					<<if $abbreviateSidebar == 2>>
						($MastSiIDs.length/$masterSuite <<if $MastSiIDs.length != 1>>fucktoys<<else>>fucktoy<</if>><<if $Concubine>>, Concubine<</if>>)
					<<else>>
						($MastSiIDs.length/$masterSuite<<if $Concubine>>, C<</if>>)
					<</if>>
				<</if>>
				<<if ($schoolroom)>>

 <<link "$schoolroomNameCaps""Schoolroom">><</link>>
					<<if $abbreviateSidebar == 2>>
						($SchlRiIDs.length/$schoolroom <<if $SchlRiIDs.length != 1>>students<<else>>student<</if>><<if $Schoolteacher>>, schoolteacher<</if>>)
					<<else>>
						($SchlRiIDs.length/$schoolroom<<if $Schoolteacher>>, L<</if>>)
					<</if>>
				<</if>>

				<<if ($spa)>>

 <<link "$spaNameCaps""Spa">><</link>>
					<<if $abbreviateSidebar == 2>>
						($SpaiIDs.length/$spa <<if $SpaiIDs.length != 1>>bathers<<else>>bathing<</if>><<if $Attendant>>, attendant<</if>>)
					<<else>>
						($SpaiIDs.length/$spa<<if $Attendant>>, L<</if>>)
					<</if>>
				<</if>>
				<<if ($nursery)>>

 <<link "$nurseryNameCaps""Nursery">><</link>>
					<<if $abbreviateSidebar == 2>>
						(<<if $nursery-$nurseryBabies == 0>>No empty rooms<<elseif $nursery-$nurseryBabies == 1>>1 empty room<<else>><<print $nursery-$nurseryBabies>> empty rooms<</if>>, $NurseryiIDs.length/$nurseryNannies <<if $NurseryiIDs.length != 1>>nannies<<else>>nanny<</if>><<if $Matron>>, attendant<</if>>)
					<<else>>
						($nurseryBabies/$nursery, $NurseryiIDs.length/$nurseryNannies<<if $Matron>>, L<</if>>)
					<</if>>
				<</if>>

				<<if ($clinic)>>

 <<link "$clinicNameCaps""Clinic">><</link>>
					<<if $abbreviateSidebar == 2>>
						($CliniciIDs.length/$clinic <<if $CliniciIDs.length != 1>>patients<<else>>patient<</if>><<if $Nurse>>, nurse<</if>>)
					<<else>>
						($CliniciIDs.length/$clinic<<if $Nurse>>, L<</if>>)
					<</if>>
				<</if>>
				<<if ($cellblock)>>

 <<link "$cellblockNameCaps""Cellblock">><</link>>
					<<if $abbreviateSidebar == 2>>
						($CellBiIDs.length/$cellblock <<if $CellBiIDs.length != 1>>prisoners<<else>>prisoner<</if>><<if $Wardeness>>, wardeness<</if>>)
					<<else>>
						($CellBiIDs.length/$cellblock<<if $Wardeness>>, L<</if>>)
					<</if>>
				<</if>>

				<<if ($incubator)>>

 <<link "$incubatorNameCaps""Incubator">><</link>>
					<<if $abbreviateSidebar == 2>>
						(<<if $incubator-$incubatorSlaves == 0>>No empty tanks<<elseif $incubator-$incubatorSlaves == 1>>1 empty tank<<else>><<print $incubator-$incubatorSlaves>> empty tanks<</if>>)
					<<else>>
						($incubatorSlaves/$incubator)
					<</if>>
					<<if $readySlaves > 0>> @@.yellow;[!]@@ <</if>>
				<</if>>
				<<if ($pit)>>

 <<link "$pitNameCaps""Pit">><</link>>
					<<set _SCapT = $fighterIDs.length>>
					<<if $abbreviateSidebar == 2>>
						(_SCapT <<if _SCapT != 1>>combatants<<else>>combatant<</if>>)
					<<else>>
						(_SCapT)
					<</if>>

				<</if>>

		<</if>>

		<<if $sideBarOptions.compact === 0 && _Pass === "Main" || $sideBarOptions.compact === 1 && _Pass === "Manage Arcology">>

				<<link [[Policies]]>><</link>>
			 @@.cyan;[Y]@@

			<<if $secExpEnabled > 0>>

					<<link [[Edicts|edicts]]>><</link>>
				 @@.cyan;[D]@@
			<</if>>
			<<if $arcologies.length > 1>>

				[[Diplomacy|Neighbor Interact]]
			<</if>>

			<<if ($secExpEnabled > 0 && ($SecExp.buildings.propHub.active + $secHQ + $SecExp.buildings.barracks.active + $riotCenter > 0)) || $SF.Toggle && $SF.Active >= 1>>

				<<link "Manage Security">> <<replace "#Security">>
					<<security>>
				<</replace>> <</link>>
			<</if>>

		<</if>>

		<<if _Pass === "Manage Penthouse">>

				<<link [[Universal Rules]]>><</link>>
			 @@.cyan;[V]@@

			<<if $geneticMappingUpgrade>>
[[Gene Lab|Gene Lab]]<</if>>
			<<if $dispensary>>
[[Pharmaceutical Fabricator|Dispensary]]<</if>>
			<<if $organFarmUpgrade>>
[[Organ Farm]]<</if>>
			<<if $ImplantProductionUpgrade>>
[[Implant Manufactory]]<</if>>
			<<if $researchLab.level > 0>>
[[Prosthetic Lab]]<</if>>
			<<if $geneticMappingUpgrade + $dispensary + $organFarmUpgrade + $ImplantProductionUpgrade + $researchLab.level > 0>>

			<</if>>

 [[Wardrobe]]
			<<if $rep >= 10000>>

[[Black Market|The Black Market]]
			<<else>>

You lack the reputation (<<print num(10000)>>) to be invited to the underground Black Market.
			<</if>>

		<<elseif ["Dispensary", "Organ Farm", "Implant Manufactory", "Gene Lab", "Prosthetic Lab"].includes(_Pass)>>
			<<if $dispensary && _Pass != "Dispensary">>
[[Pharmaceutical Fabricator|Dispensary]]<</if>>
			<<if $organFarmUpgrade && _Pass != "Organ Farm">>
[[Organ Farm]]<</if>>
			<<if $ImplantProductionUpgrade && _Pass != "Implant Manufactory">>
[[Implant Manufactory]]<</if>>
			<<if $geneticMappingUpgrade && _Pass != "Gene Lab">>
[[Gene Lab]]<</if>>
			<<if $prostheticsUpgrade && _Pass != "Prosthetic Lab">>
[[Prosthetic Lab]]<</if>>

		<<elseif _Pass == "Rules Assistant">>

			[[Rules Assistant Summary]]

		<<elseif ["Firebase", "propagandaHub", "securityHQ", "secBarracks", "riotControlCenter"].includes(_Pass)>>
			<<security>>

		<<elseif _Pass == "Wardrobe Use">>

			[[Wardrobe (shopping)|Wardrobe]]

		<</if>> /* Closes Pass state check */

		<<if !["Description Options", "Options", "Summary Options"].includes(_Pass)>>

				<<link [[Game Options|Options][$nextButton = "Back", $nextLink = _Pass]]>><</link>>
			 @@.cyan;[O]@@
		<<else>>
			<<if _Pass != "Summary Options">> [[Summary Options]] <</if>>
			<<if _Pass === "Options">>
 <</if>>
			<<if _Pass != "Description Options">> [[Description Options]] <</if>>
		<</if>>

	<</if>> /* Closes nextButton != "Continue" && nextButton != " " */
<</if>>

<<if _Pass != "Encyclopedia" && $showEncyclopedia > 0 && $nextButton != "Continue">>
	<<if $nextButton === " ">>
 <</if>> <<if $ui != "start">>
 <</if>>
	//''FCE'':// [[$encyclopedia|Encyclopedia][$nextButton = "Back", $nextLink = _Pass]]
<</if>>

<<if $ui != "start" && _Pass != "Encyclopedia" && $debugMode > 0>>

Debugging Tools
 <<link "Display Variables">><<checkvars>><</link>>

 <<link "Display Changed Variables">>
		<<set Config.history.maxStates = 2>> /* makes sure we store the current state so we can return to it */
		<<goto "Variable Difference">>
	<</link>>

 <<link "Bug Report">><<bugreport>><</link>>
	<<if $debugModeCustomFunction > 0>>

 <<textarea "_customEvalCode" "">>
		<<link "Run Custom Function">>
			<<if _customEvalCode>>
				<<if _customEvalCode.charAt(0) != "(" || $nextLink == ")">> /* second condition is only there for sanityCheck */
					<<set _customEvalCode = "(" + _customEvalCode + ")">>
				<</if>>
				<<if typeof eval(_customEvalCode) === "function">>
					<<run (eval(_customEvalCode))()>>
				<</if>>
			<</if>>
			<<goto _Pass>>
		<</link>>
	<</if>>

 <<link "Dump Game State">><<run App.Debug.dumpGameState()>><</link>>
<</if>>


code:
:: Subordinate Targeting [nobr]

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

<<set _displaySlave = $activeSlave>>
<<setLocalPronouns $activeSlave>>

<<if $activeSlave.subTarget == $activeSlave.ID>>
	<<set $activeSlave.subTarget = 0>>
<</if>>
<<= assignJob($activeSlave, "be a subordinate slave")>>
<<set _st = $slaveIndices[$activeSlave.subTarget]>>
<<if def _st>>
	$activeSlave.slaveName will submit to ''__@@.pink;$slaves[_st].slaveName@@__'' this week.
<<else>>
	$activeSlave.slaveName has not been given to any particular slave, so $he will have to offer $himself to everyone this week.
	<<set $activeSlave.subTarget = 0>>
<</if>>

__Select a slave for $him to submit to, sexually:__
<<= App.UI.SlaveList.slaveSelectionList(
		s => s.devotion >= -20 && s.fuckdoll === 0 && State.variables.activeSlave.ID !== s.ID &&
			(!isAmputee(State.variables.activeSlave) || !isAmputee(s)),
		(s, i) => App.UI.DOM.passageLink(SlaveFullName(s), 'Subordinate Targeting', () => { App.activeSlave.subTarget = s.ID; }),
	)>>

[[None|Subordinate Targeting][$activeSlave.subTarget = 0]]

<<set $activeSlave = _displaySlave>>
<<= assignJob($activeSlave, "be a subordinate slave")>>


code:
:: Summary Options [nobr]

<<set $nextButton = "Back">>
<<if $storedLink !== "Slave Interact" && $storedLink !== "Main">>
	<<if lastVisited("Main") === 1>>
		<<set $storedLink = "Main">>
	<<else>>
		<<set $storedLink = "Options">>
	<</if>>
<</if>>
<<set $nextLink = $storedLink>>
<<run clearSummaryCache()>>

//These options will affect the short slave summaries that appear on the main menu and the facility management screens.//

<<options $lineSeparations>>
	Line separations are
	<<option 1 "Shown">>
	<<option 0 "Hidden">>
<</options>>

<<options $sortSlavesMain>>
	Sorting main menu options are
	<<option 1 "Shown">>
	<<option 0 "Hidden">>
<</options>>

<<if $sortSlavesMain > 0>>
	<<options $sortSlavesOrder>>
			, sorted by
			<<option "ascending" "Ascending">>
			<<option "descending" "Descending">>
		<</options>>

	<<options $sortSlavesBy>>
		and
		<<option "devotion" "Devotion">>
		<<option "name" "Name">>
		<<option "seniority" "Date purchased">>
		<<option "actualAge" "Age">>
		<<option "visualAge" "How old they look">>
		<<option "physicalAge" "Age of their body">>
		<<option "assignment" "Assignment">>
		<<comment>>
			order.
	<</options>>
<</if>>

<<options $abbreviateDevotion>>
	Mental stats are
	<<option 2 "Summarized">>
	<<option 1 "Abbreviated">>
	<<option 0 "Hidden">>
<</options>>
<<options $abbreviateMental>>
	Mental attributes are
	<<option 2 "Summarized">>
	<<option 1 "Abbreviated">>
	<<option 0 "Hidden">>
<</options>>

<<options $abbreviateRules>>

Rules are
	<<option 2 "Summarized">>
	<<option 1 "Abbreviated">>
	<<option 0 "Hidden">>
<</options>>

<<options $abbreviateHealth>>
	Health is
	<<option 2 "Summarized">>
	<<option 1 "Abbreviated">>
	<<option 0 "Hidden">>
<</options>>

<<options $abbreviateDiet>>

Diet and weight are
	<<option 2 "Summarized">>
	<<option 1 "Abbreviated">>
	<<option 0 "Hidden">>
<</options>>

<<options $abbreviateDrugs>>
	Drugs and addiction are
	<<option 2 "Summarized">>
	<<option 1 "Abbreviated">>
	<<option 0 "Hidden">>
<</options>>
<<options $abbreviateHormoneBalance>>

Hormone balance is
	<<option 2 "Summarized">>
	<<option 1 "Abbreviated">>
	<<option 0 "Hidden">>
<</options>>

<<options $abbreviateGenitalia>>

Genitalia are
	<<option 2 "Summarized">>
	<<option 1 "Abbreviated">>
	<<option 0 "Hidden">>
<</options>>
<<options $abbreviatePhysicals>>
	Physical traits are
	<<option 2 "Summarized">>
	<<option 1 "Abbreviated">>
	<<option 0 "Hidden">>
<</options>>

<<options $abbreviateSkills>>

Skills are
	<<option 2 "Summarized">>
	<<option 1 "Abbreviated">>
	<<option 0 "Hidden">>
<</options>>

<<options $abbreviateNationality>>
	Nationality is
	<<option 2 "Summarized">>
	<<option 1 "Abbreviated">>
	<<option 0 "Hidden">>
<</options>>
<<options $abbreviateRace>>

Race is
	<<option 2 "Summarized">>
	<<option 1 "Abbreviated">>
	<<option 0 "Hidden">>
<</options>>

<<options $abbreviateRulesets>>
	Rules Assistant rulesets are
	<<option 2 "Summarized">>
	<<option 1 "Abbreviated">>
<</options>>

<<options $abbreviateSidebar>>

Facilities in the sidebar are
	<<option 2 "Summarized">>
	<<option 1 "Abbreviated">>
<</options>>

<<options $summaryStats>>
	Granular slave stat numbers are
	<<option 1 "Shown">>
	<<option 0 "Hidden">>
<</options>>

<<options $rulesAssistantMain>>
	Rules Assistant visibility:
	<<option 1 "Shown">>
	<<option 0 "Hidden">>
<</options>>

<<options $displayAssignments>>
Main menu assignment shortcuts are
	<<option 1 "Shown">>
	<<option 0 "Hidden">>
<</options>>
<<options $abbreviateOrigins>>
	Origins are
	<<option 2 "Summarized">>
	<<option 0 "Hidden">>
<</options>>

<<if $showMissingSlaves>>

	<<options $showMissingSlavesSD>>
		Missing slave parents are
		<<option true "Shown">>
		<<option false "Hidden">>
	<</options>>
<</if>>

//[[FC Dev's preferred options|Summary Options ][$seeDesk = 0, $seeFCNN = 0, $sortSlavesBy = "devotion",$sortSlavesOrder = "descending",$sortSlavesMain = 0,$rulesAssistantMain = 1,$abbreviateDevotion = 1,$abbreviateRules = 1,$abbreviateClothes = 2,$abbreviateHealth = 1,$abbreviateDiet = 1,$abbreviateDrugs = 1,$abbreviateRace = 1,$abbreviateGenitalia = 1,$abbreviatePhysicals = 1,$abbreviateSkills = 1,$abbreviateMental = 1,$abbreviateSidebar = 1]]//


code:
:: TFS Farm Upgrade [nobr]

<<set $nextButton = "Continue", $nextLink = "Scheduled Event">>
<<set $TFS.farmUpgradeAsked = $week>>

You receive yet another personal call from an older Futanari Sister, one of the Sisters who lives in your arcology; you've given up trying to tell them apart. Unusually, this one has taken a break from the Sisters' constant sexual communion to concentrate on speaking with you, and she looks serious, though she's still a gorgeous naked futa whose boobs fill half the screen, and whose perpetually erect dick pokes insistently into frame. "<<if $PC.slaveSurname>><<if $PC.title>>Mr.<<else>>Ms.<</if>> <<print $PC.slaveSurname>><<else>><<print $PC.slaveName>><</if>>," she says
<<if ($PC.dick != 0) && ($PC.vagina != -1) && ($PC.boobs >= 300)>>
	submissively, "I would like to beg a favor of you." She looks uncharacteristically uncomfortable, but steels herself and asks. "Please, may we use your organ farm? We're not... complete. Like you." She hugs herself unconsciously, her arms pressing her enormous breasts against her chest. "We... I... would like to be like you, and we
<<else>>
	politely, "I would like to ask a favor of you on behalf of myself and my Sisters." She looks less confident than the older Sisters usually do, but steels herself and asks. "May we use your organ farm? We would like to really complete our transformations. We
<</if>>
<<if $TFS.schoolUpgrade == 3 && $TFS.compromiseWeek+15 <= $week>>have a rather cheap one to grow dicks for the girls and we<</if>> can pay for the costs of using it, but we have no other way of accessing such advanced technology."

"I know that you could demand thousands of credits," she continues, "but the discount we already give you is all we can afford without selling Sisters early.
<<if ($PC.dick != 0) && ($PC.vagina != -1) && ($PC.boobs >= 300)>>
	I would pretend to be independent and offer you the choice of how we approach this, but you've already given us so much, and you're... so perfect. We'll do whatever you say. If you do give us this priceless gift, it's your decision
<<else>>
	All we have to offer for this priceless gift is your decision on an important question:
<</if>>
whether we will use contraception after we are transformed." She shudders suddenly, gripped by obscure emotion. "Not using contraception would be a hard change in some ways. But years later, there would be... more of us."

"Please forgive me for calling you, instead of asking you in person," she says penitently. "And please come down to see us, whatever you decide."

<<link "Permit them access, but tell them to use contraception">>
	<<replace "#result">>
		You signify your assent, telling the Sister that the organ farm will accept seed tissue from any of them for the purpose of fabricating ovaries. To your mild surprise, she responds by breaking down into cutely inelegant crying. You add that you think the Sisters are beautiful as they are, and recruits will continue to approach them; it's not necessary for them to go through the rigors of pregnancy. It takes her a long time to manage to thank to properly, and she hurries to end the call before she can embarrass herself further.
		<<set $TFS.farmUpgrade = 1>>
	<</replace>>
<</link>>
<<if $seePreg != 0>>

<<link "Permit them access, and encourage them to get pregnant">>
		<<replace "#result">>
			You signify your assent, telling the Sister that the organ farm will accept seed tissue from any of them for the purpose of fabricating ovaries. To your mild surprise, she responds with cutely inelegant crying. You add that you think the world needs more Futanari Sisters, especially ones as cute and sexy as you're confident her many daughters will be. At that, she breaks down completely, one of her hands going to rub her belly gently. It takes her a long time to manage to thank to properly, and she hurries to end the call before she can embarrass herself further.<<if $arcologies[0].FSRestartDecoration == 100 && $eugenicsFullControl != 1>> The Societal Elite are @@.red;outraged@@ that you would not only allow such a breach of eugenics to occur, but encourage it.<</if>>
			<<set $TFS.farmUpgrade = 2>>
			<<if $arcologies[0].FSRestart != "unset" && $eugenicsFullControl != 1>>
				<<set $failedElite += 275>>
			<</if>>
		<</replace>>
	<</link>>
	<<if $seeHyperPreg == 1>>

<<link "Permit them access, and encourage them to embrace hyperpregnancy.">>
			<<replace "#result">>
				You signify your assent, telling the Sister that the organ farm will accept seed tissue from any of them for the purpose of fabricating ovaries, so long as they are willing to bear as many children as they can handle. To your mild surprise, she responds with cutely inelegant crying. You add that you think the world needs many more Futanari Sisters, especially ones as cute and sexy as you're confident her countless daughters will be. At that, she breaks down completely, one of her hands going to rub her belly gently. It takes her a long time to manage to thank to properly, and she hurries to end the call before she can embarrass herself further.<<if $arcologies[0].FSRestartDecoration == 100 && $eugenicsFullControl != 1>> The Societal Elite are @@.red;outraged@@ that you would not only allow such a breach of eugenics to occur, but encourage it to such an obscene degree.<</if>>
				<<set $TFS.farmUpgrade = 3>>
				<<if $arcologies[0].FSRestart != "unset" && $eugenicsFullControl != 1>>
					<<set $failedElite += 1000>>
				<</if>>
			<</replace>>
		<</link>>
	<</if>>
	/*

<<link "Decline, but grant them something more fitting">>
		<<replace "#result">>
			You decline her offer and propose a new one, letting the Sister know that the organ farm will accept seed tissue from any of them for the purpose of fabricating testicular ovaries, which should satisfy their desires, if in an unorthodox way. To your mild surprise, she responds with cutely inelegant crying. You add that you think the world needs more Futanari Sisters, especially ones as cute and sexy as you're confident her many daughters will be. At that, she breaks down completely, one of her hands going to rub her balls gently. It takes her a long time to manage to thank to properly, and she hurries to end the call before she can embarrass herself further.<<if $arcologies[0].FSRestartDecoration == 100 && $eugenicsFullControl != 1>> The Societal Elite are @@.red;outraged@@ that you would not only allow such a breach of eugenics to occur, but encourage it.<</if>>
			<<set $TFS.farmUpgrade = 4>>
			<<if $arcologies[0].FSRestart != "unset" && $eugenicsFullControl != 1>>
				<<set $failedElite += 100>>
			<</if>>
		<</replace>>
	<</link>>
	*/
<</if>>

<<link "Decline">>
	<<replace "#result">>
		You decline. The Sister accepts your decision politely, but cannot hide her deep disappointment.
		<<set $TFS.farmUpgrade = -1>>
	<</replace>>
<</link>>


code:
:: The Futanari Sisters [nobr]

<<set $nextButton = "Back", $nextLink = "Buy Slaves", $returnTo = "Buy Slaves", $showEncyclopedia = 1, $encyclopedia = "Slave Schools">>
/* Multi-Purchase Support */
<<if ndef $newSlaves>><<set $newSlaves = []>><</if>>
<<if $newSlaves.length > 0>>
	<<set $nextButton = "Continue", $nextLink = "Bulk Slave Intro", $slaveMarket = "TFS", $returnTo = "Main", $newSlaveIndex = 0>>
<</if>>

<<if $TFS.schoolPresent == 1>>

You pay a visit to the Futanari Sisters. They occupy a suite remodeled for their very special needs; it's surprisingly small, to house so many girls, since they live communally and do not believe in privacy. You are the only outsider permitted to enter the outer door. As you move towards the center of the suite, you pass through the outer ring of sleeping areas, kitchens, medical rooms, and workout stations that surround the inner sanctum.

This is a large, circular room with a shallow depression in the floor, filled with pillows and naked, fucking futas. Every possible interaction between mouths, nipples, breasts, penises, vaginas, and anuses is taking place, with most participants managing several at once. They are all very, very pretty, and it's easier to distinguish the older ones by their bigger tits, asses and cocks than by their apparent age. The older futas tend to be on top, but this is by no means the rule, and they like to switch around often.
<<if $TFS.farmUpgrade == 2>>
	<<if $TFS.farmUpgradeAsked < $week - 10>>

		It's been long enough since you allowed them to use your organ farm to add ovaries to themselves and instructed them not to use contraceptives that most of them are visibly pregnant. This hasn't slowed their sexual congress at all, though. They've become much more focused on vaginal, and there's an obvious eagerness to cum inside Sisters who aren't obviously pregnant.
	<<else>>

		It hasn't been long enough since you allowed them to use your organ farm to add ovaries to themselves for the effects to be obvious yet. Most of them are doubtless pregnant, however. There's been a subtle shift in their sexual behavior, too: they're much more likely to focus on vaginal sex than they were before, so much so that they often double penetrate each others' pussies. When there aren't any cunts available, they do their best to hold their orgasms until one opens up, so to speak.
	<</if>>
<<elseif $TFS.farmUpgrade == 3>>
	<<if $TFS.farmUpgradeAsked < $week - 20>>

		It's been long enough since you allowed them to use your organ farm to add ovaries to themselves and instructed them not to use contraceptives that most of them are extremely pregnant. This hasn't slowed their sexual congress at all, though they've had to get creative with their positioning. They've become much more focused on vaginal, and there's an obvious eagerness to cum inside Sisters who aren't obviously pregnant.
	<<elseif $TFS.farmUpgradeAsked < $week - 10>>

		It's been long enough since you allowed them to use your organ farm to add ovaries to themselves and instructed them not to use contraceptives that most of them are visibly pregnant. This hasn't slowed their sexual congress at all, though. They've become much more focused on vaginal, and there's an obvious eagerness to cum inside Sisters who aren't obviously pregnant.
	<<else>>

		It hasn't been long enough since you allowed them to use your organ farm to add ovaries to themselves for the effects to be obvious yet. Most of them are doubtless pregnant, however. There's been a subtle shift in their sexual behavior, too: they're much more likely to focus on vaginal sex than they were before, so much so that they often double penetrate each others' pussies. When there aren't any cunts available, they do their best to hold their orgasms until one opens up, so to speak.
	<</if>>
<</if>>

Visitors are not common: in fact, visitors are only as frequent as you feel like visiting. It takes a while before they notice you. When a dreamy-eyed young futa finally does, she reaches a lazy hand over to alert the eldest one present by tugging on one of her nipples and pointing in your direction. The elder looks over at you and gives you a friendly wave followed by a wait-one-moment gesture. She's curled up on her back with her cockhead in her own mouth, using both hands to give her own shaft a boob job while a younger futa is eats her ass and fingers her pussy. The futa matron orgasms promptly, sucking down her own cum. She gets up languidly, her plush body, softening forearm-sized dick, and enormous natural boobs making it a wonderful sight.

<<if $PC.title == 1>>"Protector,<<else>>"Protectrix,<</if>> thank you so much for coming to see us. Our own Selection of a Sister to serve in slavery is not to take place for some time, but our communications interface in that side room," she points, "will permit you to access a regional listing of Selected Sisters<<if $TFS.farmUpgrade > 0>>, all of which are fully fertile and produce their own natural female hormones, thanks to you<</if>>." She looks uncharacteristically uncertain. "Will you permit me to <<if $PC.dick != 0>><<if $PC.vagina != -1>>worship your perfect genitalia<<else>>serve your cock<</if>><<else>>adore your pussy<</if>> while you use it? I think my Sisters will forgive me the infidelity." <<if ($PC.dick != 0) && ($PC.vagina != -1) && ($PC.boobs >= 300)>>She looks at you speculatively. "Or you could join us for a while."<</if>>

<<link "Let her give you oral while you browse">>
	<<replace "#result">>
		You accept her offer, and she walks seductively over to the interface with the listing of available Sisters, getting down on her knees below it. When you step up to look through the listing, she presses her huge soft tits against your knees
		<<if $PC.dick != 0>>
			<<if $PC.vagina != -1>>
				and nuzzles her plush lips and hot tongue against your womanhood, using one hand to massage your shaft languidly. Perusing the very thorough pictures and videos of the pretty futanari for sale here is arousing enough without a truly masterful oral queen pleasing both your cock and your pussy, and you cum quickly. She drinks your cum rapturously and returns her mouth to your wet cunt, eagerly working to bring more forth.
			<<else>>
				and snuggles her face between your thighs, nuzzling her nose into your ballsack before licking it with appetite and then sucking each of your balls gently, one by one. Meanwhile one of her clever hands is languidly massaging your shaft, bringing forth a drop of precum which she laps up with appetite. Humming with pleasure, she deepthroats you without apparent effort, her mischievous tongue flicking forward to lap at your scrotum. You blow your load down her throat, and she starts to suck you hard again.
			<</if>>
		<<else>>
			and trails nibbles and kisses along your inner thighs before nuzzling her plush lips and hot tongue against your womanhood. Perusing the very thorough pictures and videos of the pretty futanari for sale here is arousing enough without a truly masterful cunt pleaser working her magic between your legs, and you've orgasmed before you finish one listing. She prolongs the climax cleverly and then starts to build you towards another.
		<</if>>
	<</replace>>
<</link>>
<<if ($PC.dick != 0) && ($PC.vagina >= 0) && ($PC.boobs >= 300)>>

<<link "Join the Sisters' orgy">>
		<<replace "#result">>
			<<set $futaAddiction += 1>>
			<<switch $futaAddiction>>
			<<case 1>>
				You agree to spend some time taking part in the Sisters' orgy. The futa matron looks doubtful. "You'd have to agree to act as one of us," she says. "No different. No special sexual treatment." Her voice rises cutely on the last syllable, as you take her enormous dick in one hand and begin to stroke it vigorously. "V-very well," she gasps, taking one of your breasts in each of her hands.
				<<if $PC.vagina == 0>>
					You leave the Sisters' suite a few hours later, @@.green;leaving your virginity behind.@@ You are tired and a bit sore, but satisfied.
					<<set $PC.vagina = 1>>
				<<else>>
					You leave the Sisters' suite after a few hours of fucking and being fucked, feeling tired but satisfied.
				<</if>>
				<<if canGetPregnant($PC)>>
					<<= knockMeUp($PC, 5, 0, -9, 1)>>
				<</if>>
			<<case 2>>
				She doesn't have to explain the Sisters' sexual equality this time, or that you have to subject yourself to it. You remember, and you let her know you're willing by giving her a friendly hug that squashes your breasts against each other and rubs your stiff pricks together. She reaches around you to grab your ass, already pulling you towards the pile of futas. You leave the Sisters' suite after a few hours of fucking and being fucked, in a state of total sexual satiation.
				<<if canGetPregnant($PC)>>
					<<= knockMeUp($PC, 10, 0, -9, 1)>>
				<</if>>
			<<case 3>>
				She asked that with a distinctly flirty tone, obviously hoping you'd agree again, and she isn't disappointed. You take her by the hand and skip over to the pile of futas, most of which know you very intimately by now. They see their Sister and you approaching, and those of them that don't have their mouths full greet you eagerly. Three of them quickly rearrange themselves to present you with a couple of dicks to sit on and a pussy to fuck, all at once. You leave the Sisters' suite after many hours of fucking and being fucked, tired but satisfied.
				<<if canGetPregnant($PC)>>
					<<= knockMeUp($PC, 20, 0, -9, 1)>>
				<</if>>
			<<case 4>>
				She asked that in a knowing voice, confident you'd agree, and was already moving in to kiss you when you did. She seems to want you more than usual today, and pulls you down onto the edge of the pit, guiding your cock into her pussy. She isn't selfish, of course, and reaches around to spread your buttocks so you can get fucked while you fuck. You leave the Sisters' suite after many hours of this, very tired. You wonder when you can make time to visit the Sisters again.
				<<if canGetPregnant($PC)>>
					<<= knockMeUp($PC, 40, 0, -9, 1)>>
				<</if>>
			<<case 5>>
				She runs her tongue over her lips as she asks, and sits you down on the edge of the pit and deepthroats you as soon as you agree. She wants your cum, and uses a couple of fingers to tickle your prostate and make it appear faster. You jerk with orgasm, and she pushes your wet cock up against your stomach so she can fuck your pussy. She pauses for a moment, letting a younger Sister enter her ass first. You leave the Sisters' suite after a full day of this, utterly exhausted but eager to return.
				<<if canGetPregnant($PC)>>
					<<= knockMeUp($PC, 60, 0, -9, 1)>>
				<</if>>
			<<case 6>>
				You nod, and she turns back towards the orgy, not seeing any reason to lead you, since you know the way. You both sink back into the pile of cocks, pussies, mouths, asses, boobs; the hours go by without you noticing. You leave the Sisters' suite unable to remember specifics, but you clearly fucked and got fucked by every futa there at least once. You're surprised when you learn how long you were there, but the worries of being an arcology owner no longer seem as pressing as they once did.
				<<if canGetPregnant($PC)>>
					<<= knockMeUp($PC, 80, 0, -9, 1)>>
				<</if>>
			<<case 7>>
				You don't even bother to respond, and head straight for the orgy. You insert yourself into an eager mouth, bending over so the matron following you can take you from behind. The worries of your life as an arcology owner seem very far away as she slides inside you. You only leave when $assistantName repeatedly pages you over the arcology's public announcement system. On the way to your office, you notice how full of cum your stomach is, how relaxed your pussy and ass are, and how happy you feel.
				<<if canGetPregnant($PC)>>
					<<= knockMeUp($PC, 100, 0, -9, 1)>>
				<</if>>
			<<case 8>>
				<<set $gameover = "sisters">>
				<<goto "Gameover">>
			<<default>>
				<<set $futaAddiction = 0>>
			<</switch>>
		<</replace>>
	<</link>>
<</if>>

<<else>>

//The Futanari Sisters use the same legalistic structures as other slave schools, but are actually very different. They're quite enigmatic, and inquiry into their cult-like methods is politely discouraged. All the Sisters own the institution together, and seem to share the goal of pursuing transformation of themselves to fit the classic futanari fetish — that is, to transform themselves into beautiful, curvaceous women with large dicks. All Sisters remain within the closed society for at least seven years. The Sisters fund themselves by selling members into slavery: interestingly, the more impressive a member is, the older she seems to be when sold; there may be a sort of selection mechanism by which the losers are sold immediately and the winners remain, leading the Sisters. This does not mean that ex-Sisters are unhappy with enslavement. On the contrary, it seems to be an expected stage of their lives, and not shameful.
<<if $TFS.schoolUpgrade != 0>>

	Since you have supported the faction within the Sisters that favors
	<<if $TFS.schoolUpgrade == 3>>
		a mix of futas with and without balls; its female members will appear without balls, while its male members will appear with extremely large testicles.
		<<if $TFS.compromiseWeek+15 > $week>>Or they will, in around <<print (($TFS.compromiseWeek+15)-$week)>> weeks.<</if>>
	<<elseif $TFS.schoolUpgrade == 1>>
		futas without balls, its members will now appear without visible testicles and increased submissiveness.
	<<else>>
		futa balls, its members will now appear with extremely large testicles and increased sex drives.
	<</if>>
	As a major <<if $PC.title == 0>>benefactrix<<else>>benefactor<</if>> of the institution, you also receive a discount on them.
<</if>>//

The Sisters offer a member selected for sale into slavery for inspection via video call. The feed is of an exhausted futa, fast asleep. Whatever ceremonies the Sisters perform before releasing a member into slavery, they seem to have tired her out. There are indistinct but obviously sexual sounds audible in the background; it sounds like an orgy with a very large number of participants is going on nearby.

<</if>>

<<= generateMarketSlave("TFS")>>
<<set $slaveCost = slaveCost($activeSlave)>>
<<set $slaveCost = Math.trunc($slaveCost*0.8)>>
<<if $TFS.schoolSale != 0>>
	<<set $slaveCost = Math.trunc($slaveCost*0.5)>>
<<elseif $TFS.schoolUpgrade != 0>>
	<<set $slaveCost = Math.trunc($slaveCost*0.8)>>
<</if>>
<<if $slavesSeen > $slaveMarketLimit>><<set $slaveCost += Math.trunc($slaveCost*(($slavesSeen-$slaveMarketLimit)*0.1))>><</if>>

The price is <<print cashFormat($slaveCost)>>.<<if $slavesSeen > $slaveMarketLimit>> You have cast such a wide net for slaves this week that it is becoming more expensive to find more for sale. Your reputation helps determine your reach within the slave market.<</if>>

<<setLocalPronouns $activeSlave>>
<<buyingFromSchoolControls $TFS "slave" "slaves">>


code:
:: The Slavegirl School [nobr]

<<set $nextButton = "Back", $nextLink = "Buy Slaves", $returnTo = "Buy Slaves", $showEncyclopedia = 1, $encyclopedia = "Slave Schools">>
/* Multi-Purchase Support */
<<if ndef $newSlaves>><<set $newSlaves = []>><</if>>
<<if $newSlaves.length > 0>>
	<<set $nextButton = "Continue", $nextLink = "Bulk Slave Intro", $slaveMarket = "TSS", $returnTo = "Main", $newSlaveIndex = 0>>
<</if>>

//The Slavegirl School is the newest slave school operating in the Free Cities. Its business model is to offer simpler, cheaper wares than its competitors. All Slavegirl School graduates are natural-born females without surgical modifications. Their training emphasizes elimination of any serious psychological deformities. They are promptly enslaved and sold as soon as they reach their majorities, and are marketed as complete virgins. <<if $TSS.schoolUpgrade != 0>>

You have endowed <<if $TSS.schoolUpgrade == 1>>an alternative college at The Slavegirl School, which focuses on retraining good MILF stock into mature slave girls.<<else>>an improvement in the simplistic school's approach that teaches good basic skills without losing too much efficiency.<</if>> As a major <<if $PC.title == 0>>benefactrix<<else>>benefactor<</if>> of the institution, you also receive a discount on them.<</if>>//

The Slavegirl School offers a fresh graduate for inspection via video call. The interview takes place in a faculty member's office. Absurdly, it's barely distinguishable from an office at any traditional institution of higher education. The only giveaway is the profusion of sex toys on the desk and the pornography on the walls.

<<= generateMarketSlave("TSS")>>
<<set $slaveCost = slaveCost($activeSlave)>>
<<if $TSS.schoolSale != 0>>
	<<set $slaveCost = Math.trunc($slaveCost*0.5)>>
<<elseif $TSS.schoolUpgrade != 0>>
	<<set $slaveCost = Math.trunc($slaveCost*0.8)>>
<</if>>
<<if $slavesSeen > $slaveMarketLimit>><<set $slaveCost += Math.trunc($slaveCost*(($slavesSeen-$slaveMarketLimit)*0.1))>><</if>>

The price is <<print cashFormat($slaveCost)>>.<<if $slavesSeen > $slaveMarketLimit>> You have cast such a wide net for slaves this week that it is becoming more expensive to find more for sale. Your reputation helps determine your reach within the slave market.<</if>>

<<setLocalPronouns $activeSlave>>
<<buyingFromSchoolControls $TSS "slave" "slaves">>


code:
:: Twins Workaround

Your new pair of slaves look frightened and uncertain, but seem encouraged by each other's presence.

<<run newSlave($activeSlave)>>

<<set _secondSlave = clone($activeSlave)>>
<<unset $activeSlave>>
<<if _secondSlave.slaveSurname>><<set _familyName = _secondSlave.slaveSurname>><</if>>
<<set _familyBirthSurname = _secondSlave.birthSurname>>
<<run nationalityToName(_secondSlave)>>
<<if _familyName>><<set _secondSlave.slaveSurname = _familyName>><</if>>
<<set _secondSlave.birthSurname = _familyBirthSurname>>
<<run nationalityToAccent(_secondSlave)>>

<<set _secondSlave.ID = _secondSlave.ID + 1000>>
<<if $familyTesting == 0>>
	<<set _secondSlave.relation = "twin">>
	<<set _secondSlave.relationTarget = _secondSlave.ID - 1000>>
<</if>>

<<run newSlave(_secondSlave)>>


code:
:: Universal Rules [nobr]

<<set $nextButton = "Back", $nextLink = "Manage Penthouse">>

''Permissions for slaves''

<<if $universalRulesRest == 0>>
	Slaves will ''remain on assignment'' when unhealthy. [[Allow automatic rest when unhealthy|Universal Rules][$universalRulesRest = 1]]
<<else>>
	Slaves will ''automatically rest'' at $assistantName's discretion when unhealthy. [[Require all slaves to stay on assignment|Universal Rules][$universalRulesRest = 0]]
<</if>>

<<if $universalRulesConsent == 0>>
	Slaves are ''not required'' to get consent before fucking other slaves. [[Restrain slave on slave molestation|Universal Rules][$universalRulesConsent = 1]]
<<else>>
	Slaves are ''generally required'' to get consent before fucking other slaves. [[Encourage slave on slave molestation|Universal Rules][$universalRulesConsent = 0]]
<</if>>

Slave requests for body mods are
<<if ($modRequestsAllowed == 0)>>
	@@.red;FORBIDDEN.@@ [[Allow|Universal Rules][$modRequestsAllowed = 1]]
<<else>>
	@@.cyan;ALLOWED.@@ [[Forbid|Universal Rules][$modRequestsAllowed = 0]]
<</if>>

Slave requests for growth hormones are
<<if ($expansionRequestsAllowed == 0)>>
	@@.red;FORBIDDEN.@@ [[Allow|Universal Rules][$expansionRequestsAllowed = 1]]
<<else>>
	@@.cyan;ALLOWED.@@ [[Forbid|Universal Rules][$expansionRequestsAllowed = 0]]
<</if>>

<<if $brothel+$club+$dairy+$farmyard+$servantsQuarters+$arcade+$schoolroom+$spa+$nursery+$clinic+$masterSuite+$cellblock > 0>>

	<<if $universalRulesFacilityWork == 0>>
		Slaves ''will not'' cooperate with staffed facilities to improve their performance. [[Allow cooperation|Universal Rules][$universalRulesFacilityWork = 1]]
	<<else>>
		Slaves ''will'' cooperate with staffed facilities to improve their performance. [[Stop cooperation|Universal Rules][$universalRulesFacilityWork = 0]]
	<</if>>
<</if>>

<<if $brothel+$club+$dairy+$farmyard+$servantsQuarters+$arcade+$schoolroom+$spa+$nursery+$clinic+$masterSuite+$cellblock > 0>>

	<<if $universalRulesAssignsSelfFacility == 1>>
		Slaves ''are'' permitted to assign themselves to facilities when choosing their assignment. [[Deny self assignment to facilities|Universal Rules][$universalRulesAssignsSelfFacility = 0]]
	<<else>>
		Slaves ''are not'' permitted to assign themselves to facilities when choosing their assignment. [[Permit self assignment to facilities|Universal Rules][$universalRulesAssignsSelfFacility = 1]]
	<</if>>
<</if>>

<<if $universalRulesImmobileSlavesMaintainMuscles == 1>>
	Immobile slaves ''will maintain'' their muscles rather than allow themselves to become soft.
	[[Stop mandatory workouts|Universal Rules][$universalRulesImmobileSlavesMaintainMuscles = 0]]
<<else>>
	Immobile slaves ''will not maintain'' their musculature and will gradually lose it.
	[[Mandatory workouts|Universal Rules][$universalRulesImmobileSlavesMaintainMuscles = 1]]
<</if>>

''Branding for slaves''

Choose an official brand. Any slave marked with this brand will be connected to your reputation, and will receive a beauty boost or penalty depending on how high or low that reputation is.

Use ''$brandDesign.official'' or choose another brand:
[[Your slaving emblem|Universal Rules][$brandDesign.official = "your personal symbol"]]
| [[Your initials|Universal Rules][$brandDesign.official = "your initials"]]

[[SLUT|Universal Rules][$brandDesign.official = "SLUT"]]
| [[WHORE|Universal Rules][$brandDesign.official = "WHORE"]]
| [[SLAVE|Universal Rules][$brandDesign.official = "SLAVE"]]
| [[COW|Universal Rules][$brandDesign.official = "COW"]]
| [[MEAT|Universal Rules][$brandDesign.official = "MEAT"]]
| [[CUMDUMP|Universal Rules][$brandDesign.official = "CUMDUMP"]]
| [[LOVER|Universal Rules][$brandDesign.official = "LOVER"]]

[[Pussy symbol|Universal Rules][$brandDesign.official = "a pussy symbol"]]
| [[Anus symbol|Universal Rules][$brandDesign.official = "an anus symbol"]]
| [[Penis symbol|Universal Rules][$brandDesign.official = "a penis symbol"]]

[[Lady|Universal Rules][$brandDesign.official = "a lady silhouette"]]
| [[Princess|Universal Rules][$brandDesign.official = "a princess silhouette"]]
| [[Queen|Universal Rules][$brandDesign.official = "a queen silhouette"]]
| [[Angel|Universal Rules][$brandDesign.official = "an angel silhouette"]]
| [[Devil|Universal Rules][$brandDesign.official = "a devil silhouette"]]
<<if ($arcologies[0].FSSupremacist != "unset") && ($activeSlave.race != $arcologies[0].FSSupremacistRace)>>
| //FS// [[Racial Slur|Universal Rules][$brandDesign.official = "a racial slur"]] <</if>>
<<if ($arcologies[0].FSSubjugationist != "unset") && ($activeSlave.race == $arcologies[0].FSSubjugationistRace)>>
| //FS// [[Racial Slur|Universal Rules][$brandDesign.official = "a racial slur"]] <</if>>
<<if ($arcologies[0].FSIntellectualDependency != "unset")>>
| //FS// [[Scores|Universal Rules][$brandDesign.official = "how much sex $he needs per day"]] <</if>>
<<if ($arcologies[0].FSSlaveProfessionalism != "unset")>>
| //FS// [[Scores|Universal Rules][$brandDesign.official = "$his average slave aptitude test scores"]] <</if>>
<<if ($arcologies[0].FSRepopulationFocus != "unset")>>
| //FS// [[Birth Count|Universal Rules][$brandDesign.official = "the number of children $he has birthed"]] <</if>>
<<if ($arcologies[0].FSGenderRadicalist != "unset") || ($arcologies[0].FSGenderFundamentalist != "unset")>>
| //FS// [[Gender Symbol|Universal Rules][$brandDesign.official = "a gender symbol"]] <</if>>
<<if ($arcologies[0].FSPaternalist != "unset")>>
| //FS// [[Personal Symbol|Universal Rules][$brandDesign.official = "$his own personal symbol"]] <</if>>
<<if ($arcologies[0].FSDegradationist != "unset")>>
| //FS// [[Chain Symbol|Universal Rules][$brandDesign.official = "a chain symbol"]] <</if>>
<<if ($arcologies[0].FSBodyPurist != "unset")>>
| //FS// [[Vitruvian Man|Universal Rules][$brandDesign.official = "a Vitruvian man"]] <</if>>
<<if ($arcologies[0].FSTransformationFetishist != "unset")>>
| //FS// [[Scalpel|Universal Rules][$brandDesign.official = "a scalpel"]] <</if>>
<<if ($arcologies[0].FSYouthPreferentialist != "unset")>>
| //FS// [[Virginity Status|Universal Rules][$brandDesign.official = "$his virginity status"]] <</if>>
<<if ($arcologies[0].FSMaturityPreferentialist != "unset")>>
| //FS// [[Sexual Skill Info|Universal Rules][$brandDesign.official = "$his sexual skills"]] <</if>>
<<if ($arcologies[0].FSPetiteAdmiration != "unset") || ($arcologies[0].FSStatuesqueGlorification != "unset")>>
| //FS// [[Current height|Universal Rules][$brandDesign.official = "$his current height"]] <</if>>
<<if ($arcologies[0].FSSlimnessEnthusiast != "unset")>>
| //FS// [[Breast Floor|Universal Rules][$brandDesign.official = "$his absolute minimum breast size"]] <</if>>
<<if ($arcologies[0].FSAssetExpansionist != "unset")>>
| //FS// [[Breast Ceiling|Universal Rules][$brandDesign.official = "$his absolute maximum breast size"]] <</if>>
<<if ($arcologies[0].FSHedonisticDecadence != "unset")>>
| //FS// [[Weight Record|Universal Rules][$brandDesign.official = "$his highest weigh-in"]] <</if>>
<<if ($arcologies[0].FSHedonisticDecadence != "unset") && $PC.refreshmentType == 2>>
| //FS// [[Favorite Food|Universal Rules][$brandDesign.official = "a big helping of "+$PC.refreshment]] <</if>>
<<if ($arcologies[0].FSPastoralist != "unset")>>
| //FS// [[Product Quality|Universal Rules][$brandDesign.official = "$his body product quality"]] <</if>>
<<if ($arcologies[0].FSPhysicalIdealist != "unset")>>
| //FS// [[Deadlift Info|Universal Rules][$brandDesign.official = "$his deadlift record"]] <</if>>
<<if ($arcologies[0].FSChattelReligionist != "unset")>>
| //FS// [[Religious Symbol|Universal Rules][$brandDesign.official = "a religious symbol"]] <</if>>
<<if ($arcologies[0].FSRomanRevivalist != "unset")>>
| //FS// [[Republican Crest|Universal Rules][$brandDesign.official = "the crest of your Republic"]] <</if>>
<<if ($arcologies[0].FSAztecRevivalist != "unset")>>
| //FS// [[Seven Serpents|Universal Rules][$brandDesign.official = "the symbol of the Aztec gods"]] <</if>>
<<if ($arcologies[0].FSEgyptianRevivalist != "unset")>>
| //FS// [[Dynastic Sigil|Universal Rules][$brandDesign.official = "the sigil of your Dynasty"]] <</if>>
<<if ($arcologies[0].FSEdoRevivalist != "unset")>>
| //FS// [[Mon|Universal Rules][$brandDesign.official = "the Shogunate's mon"]] <</if>>
<<if ($arcologies[0].FSArabianRevivalist != "unset")>>
| //FS// [[Caliphate Symbol|Universal Rules][$brandDesign.official = "a symbol of the Caliphate"]] <</if>>
<<if ($arcologies[0].FSChineseRevivalist != "unset")>>
| //FS// [[Imperial Seal|Universal Rules][$brandDesign.official = "your Imperial Seal"]] <</if>>

Or design your own: <<textbox "$brandDesign.official" $brandDesign.official "Universal Rules">> //For best results, use a single word//

One 'welcome' for a new slave is to have them branded. Where would you like such brands to be applied?
<<if ["ankle", "breast", "buttock", "calf", "cheek", "ear", "foot", "hand", "lower arm", "shoulder", "testicle", "thigh", "upper arm", "wrist"].includes($brandTarget.primary)>>

 On the
	[[left|Universal Rules][$brandTarget.primary = ("left " + $brandTarget.primary)]]
	$brandTarget.primary, or the
	[[right|Universal Rules][$brandTarget.primary = ("right " + $brandTarget.primary)]]?
<<else>>

 Current site is ''$brandTarget.primary'':
	[[Ears|Universal Rules][$brandTarget.primary = "ear"]]
	| [[Cheeks|Universal Rules][$brandTarget.primary = "cheek"]]
	| [[Shoulders|Universal Rules][$brandTarget.primary = "shoulder"]]
	| [[Breasts|Universal Rules][$brandTarget.primary = "breast"]]
	| [[Arm, upper|Universal Rules][$brandTarget.primary = "upper arm"]]
	| [[Arm, lower|Universal Rules][$brandTarget.primary = "lower arm"]]
	| [[Wrist|Universal Rules][$brandTarget.primary = "wrist"]]
	| [[Hand|Universal Rules][$brandTarget.primary = "hand"]]
	| [[Buttocks|Universal Rules][$brandTarget.primary = "buttock"]]
	| [[Thigh|Universal Rules][$brandTarget.primary = "thigh"]]
	| [[Calf|Universal Rules][$brandTarget.primary = "calf"]]
	| [[Ankle|Universal Rules][$brandTarget.primary = "ankle"]]
	| [[Feet|Universal Rules][$brandTarget.primary = "foot"]]
	| [[Neck|Universal Rules][$brandTarget.primary = "neck"]]
	| [[Chest|Universal Rules][$brandTarget.primary = "chest"]]
	| [[Belly|Universal Rules][$brandTarget.primary = "belly"]]
	| [[Pubic Mound|Universal Rules][$brandTarget.primary = "pubic mound"]]
	| [[Penis|Universal Rules][$brandTarget.primary = "penis"]]
	| [[Testicles|Universal Rules][$brandTarget.primary = "testicle"]]
	| [[Back|Universal Rules][$brandTarget.primary = "back"]]
	| [[Lower Back|Universal Rules][$brandTarget.primary = "lower back"]]
<</if>>

<<if ["ankle", "breast", "buttock", "calf", "cheek", "ear", "foot", "hand", "lower arm", "shoulder", "testicle", "thigh", "upper arm", "wrist"].includes($brandTarget.secondary)>>

 On the
	[[left|Universal Rules][$brandTarget.secondary = ("left " + $brandTarget.secondary)]]
	$brandTarget.secondary, or the
	[[right|Universal Rules][$brandTarget.secondary = ("right " + $brandTarget.secondary)]]?
<<elseif [
	"left ankle", "right ankle",
	"left calve", "right calve",
	"left ear", "right ear",
	"left foot", "right foot",
	"left hand", "right hand",
	"left lower arm", "right lower arm",
	"left penis", "right penis",
	"left testicle", "right testicle",
	"left thigh", "right thigh",
	"left upper arm", "right upper arm",
	"left wrist", "right wrist"
	].includes($brandTarget.primary)>>

 It's possible that ''$brandTarget.primary'' may be missing from a slave. Choose a fallback in case it is not available: Current backup is ''$brandTarget.secondary'':
	/* Material copied from bodyModification, but please leave commented out any sections that may not be on ALL slaves. */

	/*<<if hasAnyEars($activeSlave)>>[[Ears|Universal Rules][$brandTarget.secondary = "ear"]]<</if>>*/
	| [[Cheeks|Universal Rules][$brandTarget.secondary = "cheek"]]
	| [[Shoulders|Universal Rules][$brandTarget.secondary = "shoulder"]]
	| [[Breasts|Universal Rules][$brandTarget.secondary = "breast"]]
	/*<<if hasAnyNaturalArms($activeSlave)>>
		| [[Arm, upper|Universal Rules][$brandTarget.secondary = "upper arm"]]
		| [[Arm, lower|Universal Rules][$brandTarget.secondary = "lower arm"]]
		| [[Wrist|Universal Rules][$brandTarget.secondary = "wrist"]]
		| [[Hand|Universal Rules][$brandTarget.secondary = "hand"]]
	<</if>>*/
	| [[Buttocks|Universal Rules][$brandTarget.secondary = "buttock"]]
	/*<<if hasAnyNaturalLegs($activeSlave)>>
		| [[Thigh|Universal Rules][$brandTarget.secondary = "thigh"]]
		| [[Calf|Universal Rules][$brandTarget.secondary = "calf"]]
		| [[Ankle|Universal Rules][$brandTarget.secondary = "ankle"]]
		| [[Feet|Universal Rules][$brandTarget.secondary = "foot"]]
	<</if>>*/
	| [[Neck|Universal Rules][$brandTarget.secondary = "neck"]]
	| [[Chest|Universal Rules][$brandTarget.secondary = "chest"]]
	| [[Belly|Universal Rules][$brandTarget.secondary = "belly"]]
	| [[Pubic Mound|Universal Rules][$brandTarget.secondary = "pubic mound"]]
	/*<<if $activeSlave.dick > 0>>
		| [[Penis|Universal Rules][$brandTarget.secondary = "penis"]]
	<</if>>*/
	/*<<if $activeSlave.balls > 0 && $activeSlave.scrotum > 0>>
		| [[Testicles|Universal Rules][$brandTarget.secondary = "testicle"]]
	<</if>>*/
	| [[Back|Universal Rules][$brandTarget.secondary = "back"]]
	| [[Lower Back|Universal Rules][$brandTarget.secondary = "lower back"]]
<</if>>

Use ''$brandDesign.primary'' or choose another brand:
[[Your slaving emblem|Universal Rules][$brandDesign.primary = "your personal symbol"]]
| [[Your initials|Universal Rules][$brandDesign.primary = "your initials"]]

[[SLUT|Universal Rules][$brandDesign.primary = "SLUT"]]
| [[WHORE|Universal Rules][$brandDesign.primary = "WHORE"]]
| [[SLAVE|Universal Rules][$brandDesign.primary = "SLAVE"]]
| [[COW|Universal Rules][$brandDesign.primary = "COW"]]
| [[MEAT|Universal Rules][$brandDesign.primary = "MEAT"]]
| [[CUMDUMP|Universal Rules][$brandDesign.primary = "CUMDUMP"]]
| [[LOVER|Universal Rules][$brandDesign.primary = "LOVER"]]

[[Pussy symbol|Universal Rules][$brandDesign.primary = "a pussy symbol"]]
| [[Anus symbol|Universal Rules][$brandDesign.primary = "an anus symbol"]]
| [[Penis symbol|Universal Rules][$brandDesign.primary = "a penis symbol"]]

[[Lady|Universal Rules][$brandDesign.primary = "a lady silhouette"]]
| [[Princess|Universal Rules][$brandDesign.primary = "a princess silhouette"]]
| [[Queen|Universal Rules][$brandDesign.primary = "a queen silhouette"]]
| [[Angel|Universal Rules][$brandDesign.primary = "an angel silhouette"]]
| [[Devil|Universal Rules][$brandDesign.primary = "a devil silhouette"]]
<<if ($arcologies[0].FSSupremacist != "unset") && ($activeSlave.race != $arcologies[0].FSSupremacistRace)>>
| //FS// [[Racial Slur|Universal Rules][$brandDesign.primary = "a racial slur"]] <</if>>
<<if ($arcologies[0].FSSubjugationist != "unset") && ($activeSlave.race == $arcologies[0].FSSubjugationistRace)>>
| //FS// [[Racial Slur|Universal Rules][$brandDesign.primary = "a racial slur"]] <</if>>
<<if ($arcologies[0].FSSubjugationist != "unset") && ($activeSlave.race == $arcologies[0].FSSubjugationistRace)>>
| //FS// [[Racial Slur|Universal Rules][$brandDesign.primary = "a racial slur"]] <</if>>
<<if ($arcologies[0].FSIntellectualDependency != "unset")>>
| //FS// [[Scores|Universal Rules][$brandDesign.primary = "how much sex $he needs per day"]] <</if>>
<<if ($arcologies[0].FSSlaveProfessionalism != "unset")>>
| //FS// [[Scores|Universal Rules][$brandDesign.primary = "$his average slave aptitude test scores"]] <</if>>
<<if ($arcologies[0].FSRepopulationFocus != "unset")>>
| //FS// [[Birth Count|Universal Rules][$brandDesign.primary = "the number of children $he has birthed"]] <</if>>
<<if ($arcologies[0].FSGenderRadicalist != "unset") || ($arcologies[0].FSGenderFundamentalist != "unset")>>
| //FS// [[Gender Symbol|Universal Rules][$brandDesign.primary = "a gender symbol"]] <</if>>
<<if ($arcologies[0].FSPaternalist != "unset")>>
| //FS// [[Personal Symbol|Universal Rules][$brandDesign.primary = "$his own personal symbol"]] <</if>>
<<if ($arcologies[0].FSDegradationist != "unset")>>
| //FS// [[Chain Symbol|Universal Rules][$brandDesign.primary = "a chain symbol"]] <</if>>
<<if ($arcologies[0].FSBodyPurist != "unset")>>
| //FS// [[Vitruvian Man|Universal Rules][$brandDesign.primary = "a Vitruvian man"]] <</if>>
<<if ($arcologies[0].FSTransformationFetishist != "unset")>>
| //FS// [[Scalpel|Universal Rules][$brandDesign.primary = "a scalpel"]] <</if>>
<<if ($arcologies[0].FSYouthPreferentialist != "unset")>>
| //FS// [[Virginity Status|Universal Rules][$brandDesign.primary = "$his virginity status"]] <</if>>
<<if ($arcologies[0].FSMaturityPreferentialist != "unset")>>
| //FS// [[Sexual Skill Info|Universal Rules][$brandDesign.primary = "$his sexual skills"]] <</if>>
<<if ($arcologies[0].FSPetiteAdmiration != "unset") || ($arcologies[0].FSStatuesqueGlorification != "unset")>>
| //FS// [[Current height|Universal Rules][$brandDesign.primary = "$his current height"]] <</if>>
<<if ($arcologies[0].FSSlimnessEnthusiast != "unset")>>
| //FS// [[Breast Floor|Universal Rules][$brandDesign.primary = "$his absolute minimum breast size"]] <</if>>
<<if ($arcologies[0].FSAssetExpansionist != "unset")>>
| //FS// [[Breast Ceiling|Universal Rules][$brandDesign.primary = "$his absolute maximum breast size"]] <</if>>
<<if ($arcologies[0].FSHedonisticDecadence != "unset")>>
| //FS// [[Weight Record|Universal Rules][$brandDesign.primary = "$his highest weigh-in"]] <</if>>
<<if ($arcologies[0].FSHedonisticDecadence != "unset") && $PC.refreshmentType == 2>>
| //FS// [[Favorite Food|Universal Rules][$brandDesign.primary = "a big helping of "+$PC.refreshment]] <</if>>
<<if ($arcologies[0].FSPastoralist != "unset")>>
| //FS// [[Product Quality|Universal Rules][$brandDesign.primary = "$his body product quality"]] <</if>>
<<if ($arcologies[0].FSPhysicalIdealist != "unset")>>
| //FS// [[Deadlift Info|Universal Rules][$brandDesign.primary = "$his deadlift record"]] <</if>>
<<if ($arcologies[0].FSChattelReligionist != "unset")>>
| //FS// [[Religious Symbol|Universal Rules][$brandDesign.primary = "a religious symbol"]] <</if>>
<<if ($arcologies[0].FSRomanRevivalist != "unset")>>
| //FS// [[Republican Crest|Universal Rules][$brandDesign.primary = "the crest of your Republic"]] <</if>>
<<if ($arcologies[0].FSAztecRevivalist != "unset")>>
| //FS// [[Seven Serpents|Universal Rules][$brandDesign.primary = "the symbol of the Aztec gods"]] <</if>>
<<if ($arcologies[0].FSEgyptianRevivalist != "unset")>>
| //FS// [[Dynastic Sigil|Universal Rules][$brandDesign.primary = "the sigil of your Dynasty"]] <</if>>
<<if ($arcologies[0].FSEdoRevivalist != "unset")>>
| //FS// [[Mon|Universal Rules][$brandDesign.primary = "the Shogunate's mon"]] <</if>>
<<if ($arcologies[0].FSArabianRevivalist != "unset")>>
| //FS// [[Caliphate Symbol|Universal Rules][$brandDesign.primary = "a symbol of the Caliphate"]] <</if>>
<<if ($arcologies[0].FSChineseRevivalist != "unset")>>
| //FS// [[Imperial Seal|Universal Rules][$brandDesign.primary = "your Imperial Seal"]] <</if>>

Or design your own: <<textbox "$brandDesign.primary" $brandDesign.primary "Universal Rules">> //For best results, use a single word//

''Scarring for slaves''

/* Correct some "bad" choices" */
<<if ["menacing", "exotic"].includes($scarDesign.primary)>>
	<<if !["cheek", "left cheek", "right cheek"].includes($scarTarget.primary)>>
		<<set $scarTarget.primary = "cheek">>
	<</if>>
<</if>>

One 'welcome' for a new slave is to have them scarred. Where would you like such scars to be applied?
<<if ["ankle", "breast", "buttock", "calf", "cheek", "ear", "foot", "hand", "lower arm", "shoulder", "testicle", "thigh", "upper arm", "wrist"].includes($scarTarget.primary)>>

 On the
	[[left|Universal Rules][$scarTarget.primary = ("left " + $scarTarget.primary)]]
	$scarTarget.primary, or the
	[[right|Universal Rules][$scarTarget.primary = ("right " + $scarTarget.primary)]]?
<<else>>

 Current site is ''$scarTarget.primary'':
	[[Ears|Universal Rules][$scarTarget.primary = "ear"]]
	| [[Cheeks|Universal Rules][$scarTarget.primary = "cheek"]]
	| [[Shoulders|Universal Rules][$scarTarget.primary = "shoulder"]]
	| [[Breasts|Universal Rules][$scarTarget.primary = "breast"]]
	| [[Arm, upper|Universal Rules][$scarTarget.primary = "upper arm"]]
	| [[Arm, lower|Universal Rules][$scarTarget.primary = "lower arm"]]
	| [[Wrist|Universal Rules][$scarTarget.primary = "wrist"]]
	| [[Hand|Universal Rules][$scarTarget.primary = "hand"]]
	| [[Buttocks|Universal Rules][$scarTarget.primary = "buttock"]]
	| [[Thigh|Universal Rules][$scarTarget.primary = "thigh"]]
	| [[Calf|Universal Rules][$scarTarget.primary = "calf"]]
	| [[Ankle|Universal Rules][$scarTarget.primary = "ankle"]]
	| [[Feet|Universal Rules][$scarTarget.primary = "foot"]]
	| [[Neck|Universal Rules][$scarTarget.primary = "neck"]]
	| [[Chest|Universal Rules][$scarTarget.primary = "chest"]]
	| [[Belly|Universal Rules][$scarTarget.primary = "belly"]]
	| [[Pubic Mound|Universal Rules][$scarTarget.primary = "pubic mound"]]
	| [[Penis|Universal Rules][$scarTarget.primary = "penis"]]
	| [[Testicles|Universal Rules][$scarTarget.primary = "testicle"]]
	| [[Back|Universal Rules][$scarTarget.primary = "back"]]
	| [[Lower Back|Universal Rules][$scarTarget.primary = "lower back"]]
<</if>>

<<if ["ankle", "breast", "buttock", "calf", "cheek", "ear", "foot", "hand", "lower arm", "shoulder", "testicle", "thigh", "upper arm", "wrist"].includes($scarTarget.secondary)>>

 On the
	[[left|Universal Rules][$scarTarget.secondary = ("left " + $scarTarget.secondary)]]
	$scarTarget.secondary, or the
	[[right|Universal Rules][$scarTarget.secondary = ("right " + $scarTarget.secondary)]]?
<<elseif [
	"left ankle", "right ankle",
	"left calve", "right calve",
	"left ear", "right ear",
	"left foot", "right foot",
	"left hand", "right hand",
	"left lower arm", "right lower arm",
	"left penis", "right penis",
	"left testicle", "right testicle",
	"left thigh", "right thigh",
	"left upper arm", "right upper arm",
	"left wrist", "right wrist"
	].includes($scarTarget.primary)>>

 It's possible that ''$scarTarget.primary'' may be missing from a slave. Choose a fallback in case it is not available: Current backup is ''$scarTarget.secondary'':
	/* Material copied from bodyModification, but please leave commented out any sections that may not be on ALL slaves. */

	/*<<if hasAnyEars($activeSlave)>>[[Ears|Universal Rules][$scarTarget.secondary = "ear"]]<</if>>*/
	| [[Cheeks|Universal Rules][$scarTarget.secondary = "cheek"]]
	| [[Shoulders|Universal Rules][$scarTarget.secondary = "shoulder"]]
	| [[Breasts|Universal Rules][$scarTarget.secondary = "breast"]]
	/*<<if hasAnyNaturalArms($activeSlave)>>
		| [[Arm, upper|Universal Rules][$scarTarget.secondary = "upper arm"]]
		| [[Arm, lower|Universal Rules][$scarTarget.secondary = "lower arm"]]
		| [[Wrist|Universal Rules][$scarTarget.secondary = "wrist"]]
		| [[Hand|Universal Rules][$scarTarget.secondary = "hand"]]
	<</if>>*/
	| [[Buttocks|Universal Rules][$scarTarget.secondary = "buttock"]]
	/*<<if hasAnyNaturalLegs($activeSlave)>>
		| [[Thigh|Universal Rules][$scarTarget.secondary = "thigh"]]
		| [[Calf|Universal Rules][$scarTarget.secondary = "calf"]]
		| [[Ankle|Universal Rules][$scarTarget.secondary = "ankle"]]
		| [[Feet|Universal Rules][$scarTarget.secondary = "foot"]]
	<</if>>*/
	| [[Neck|Universal Rules][$scarTarget.secondary = "neck"]]
	| [[Chest|Universal Rules][$scarTarget.secondary = "chest"]]
	| [[Belly|Universal Rules][$scarTarget.secondary = "belly"]]
	| [[Pubic Mound|Universal Rules][$scarTarget.secondary = "pubic mound"]]
	/*<<if $activeSlave.dick > 0>>
		| [[Penis|Universal Rules][$scarTarget.secondary = "penis"]]
	<</if>>*/
	/*<<if $activeSlave.balls > 0 && $activeSlave.scrotum > 0>>
		| [[Testicles|Universal Rules][$scarTarget.secondary = "testicle"]]
	<</if>>*/
	| [[Back|Universal Rules][$scarTarget.secondary = "back"]]
	| [[Lower Back|Universal Rules][$scarTarget.secondary = "lower back"]]
<</if>>

Use ''$scarDesign.primary'' or choose another scar:
[[Whip|Universal Rules][$scarDesign.primary = "whip"]]
| [[Burns|Universal Rules][$scarDesign.primary = "burn"]]
| [[Surgical|Universal Rules][$scarDesign.primary = "surgical"]]
| [[Menacing|Universal Rules][$scarDesign.primary = "menacing"]]
| [[Exotic|Universal Rules][$scarDesign.primary = "exotic"]]
/* Other common scars might be battle scars or c-Section but it makes little sense to include them here */

Or design your own: <<textbox "$scarDesign.primary" $scarDesign.primary "Universal Rules">> //For best results, use a single word//

''Names for slaves''

<<if $surnamesForbidden == 0>>

	<<link "Strip all slaves of their surnames, both new and old">>
		<<for _i = 0; _i < $slaves.length; _i++>>
			<<set $slaves[_i].slaveSurname = 0>>
		<</for>>
		<<set $surnamesForbidden = 1>>
		<<replace "#strip">>
			Surnames taken.
		<</replace>>
	<</link>>

<<else>>
	[[Allow future slaves to keep their surnames|Universal Rules][$surnamesForbidden = 0]]
<</if>>

Slave nicknames are
<<if ($nicknamesAllowed == 0)>>
	@@.red;FORBIDDEN.@@ [[Allow|Universal Rules][$nicknamesAllowed = 1]]
<<else>>
	@@.cyan;ALLOWED.@@ [[Forbid|Universal Rules][$nicknamesAllowed = 0]]
<</if>>

<<if $FSAnnounced > 0>>

	<<if ($useFSNames == 0)>>
		Future society names for new slaves are currently @@.red;NOT APPLIED.@@ [[Apply|Universal Rules][$useFSNames = 1]]
	<<else>>
		Future society names for new slaves are currently @@.cyan;APPLIED.@@ [[Stop applying|Universal Rules][$useFSNames = 0]]

		<<if $FSNamePref == 0>>
			You are currently not setting direction towards which Future Society names are preferred.
		<<elseif $FSNamePref == 1>>
			New Slaves are currently being given devotional names.
		<<elseif $FSNamePref == 2>>
			New slaves are currently being named according to Roman Custom.
		<<elseif $FSNamePref == 3>>
			New slaves are currently being named according to ancient Aztec Custom.
		<<elseif $FSNamePref == 4>>
			New slaves are currently being named according to ancient Egyptian Custom.
		<<elseif $FSNamePref == 5>>
			New slaves are currently being named according to feudal Japanese Custom.
		<<elseif $FSNamePref == 6>>
			New slaves are currently being named according to Degradationalist Custom.
		<<elseif $FSNamePref == 7>>
			New slaves are currently being named according to Paternalist Custom.
		<<elseif $FSNamePref == 8>>
			New slaves are currently being given simple bimbo names.
		<<elseif $FSNamePref == 9>>
			New Slaves are currently being named according to Pastoralist Custom.
		<</if>>

		<<if $FSNamePref != 0>>
			[[No Longer Specify which Future Society to Draw Names From.|Universal Rules][$FSNamePref = 0]]

		<</if>>
		<<if $FSNamePref != 1 && $arcologies[0].FSChattelReligionist >= 20>>
			[[Give New Slaves Devotional Names|Universal Rules][$FSNamePref = 1]]

		<</if>>
		<<if $FSNamePref != 2 && $arcologies[0].FSRomanRevivalist > 20>>
			[[Give New slaves Roman Names|Universal Rules][$FSNamePref = 2]]

		<</if>>
		<<if $FSNamePref != 3 && $arcologies[0].FSAztecRevivalist > 20>>
			[[Give New Slaves Ancient Aztec Names.|Universal Rules][$FSNamePref = 3]]

		<</if>>
		<<if $FSNamePref != 4 && $arcologies[0].FSEgyptianRevivalist > 20>>
			[[Give New Slaves Ancient Egyptian Names|Universal Rules][$FSNamePref = 4]]

		<</if>>
		<<if $FSNamePref != 5 && $arcologies[0].FSEdoRevivalist > 20>>
			[[Give New Slaves Feudal Japanese Names|Universal Rules][$FSNamePref = 5]]

		<</if>>
		<<if $FSNamePref != 6 && $arcologies[0].FSDegradationist !== "unset">>
			[[Give New Slaves Degrading Names|Universal Rules][$FSNamePref = 6]]

		<</if>>
		<<if $FSNamePref != 7 && $arcologies[0].FSPaternalist >= 20>>
			[[Give New Slaves Paternalist Names|Universal Rules][$FSNamePref = 7]]

		<</if>>
		<<if $FSNamePref != 8 && $arcologies[0].FSIntellectualDependency >= 20>>
			[[Give New Slaves Simple Bimbo Names|Universal Rules][$FSNamePref = 8]]
		<</if>>
	<</if>>
<</if>>

<<if $seePreg != 0>>

''Pregnant slaves''

<<if $universalRulesImpregnation == "HG">>
	<<setLocalPronouns $HeadGirl>>
	Fertile slaves will be ''systematically impregnated by your Head Girl,'' if $he is able to do so. [[Cancel insemination regime|Universal Rules][($universalRulesImpregnation = "none"),($universalHGImpregnateMasterSuiteToggle = 0)]]<<if $PC.dick > 0>> | [[Inseminate them yourself|Universal Rules][($universalRulesImpregnation = "PC"),($universalHGImpregnateMasterSuiteToggle = 0)]]<</if>>

	<<if $universalHGImpregnateMasterSuiteToggle == 1>>
		Your Head Girl, if able, ''is not'' inseminating slaves in the Master Suite. [["Allow "+$him+" to inseminate Master Suite slaves"|Universal Rules][$universalHGImpregnateMasterSuiteToggle = 0]]
	<<else>>
		Your Head Girl, if able, ''is'' inseminating slaves in the Master Suite. [["Forbid "+$him+" from inseminating Master Suite slaves"|Universal Rules][$universalHGImpregnateMasterSuiteToggle = 1]]
	<</if>>
<<elseif $universalRulesImpregnation == "PC">>
	Fertile slaves will be ''systematically impregnated by you.'' [[Cancel insemination regime|Universal Rules][$universalRulesImpregnation = "none"]]<<if $seeDicks != 0>> | [[Delegate insemination to your Head Girl|Universal Rules][$universalRulesImpregnation = "HG"]]<</if>>
<<elseif $seePreg != 0>>
	Fertile slaves will ''not be systematically impregnated.'' <<if $PC.dick > 0>>[[Inseminate them yourself|Universal Rules][$universalRulesImpregnation = "PC"]]<</if>><<if ($PC.dick > 0) && ($seeDicks != 0)>> | <</if>><<if $seeDicks != 0>>[[Delegate insemination to your Head Girl|Universal Rules][$universalRulesImpregnation = "HG"]]<</if>>
<</if>>

<<if $universalRulesBirthing == 1>>
	Heavily pregnant slaves will be ''scanned daily'' for signs of labor and moved to a birthing area immediately if any are detected.
	[[Stop scanning|Universal Rules][$universalRulesBirthing = 0]]
<<else>>
	Heavily pregnant slaves will be ''required to work'' right up until they feel contractions.
	[[Apply daily scanning|Universal Rules][$universalRulesBirthing = 1]]

	//This will increase upkeep costs for these slaves//
<</if>>

<<if $universalRulesCSec == 1>>
	Pregnant slaves will be ''given Caesarean sections'' rather than allowed to give birth naturally in order to minimize health issues and to preserve their vaginas.
	[[Only perform c-sections when necessary|Universal Rules][$universalRulesCSec = 0]]
<<else>>
	Pregnant slaves will ''give birth naturally'' unless health issues pose a threat.
	[[Always perform c-sections|Universal Rules][$universalRulesCSec = 1]]

	//Will lessen medical costs, at the expense of scarring//
<</if>>

''Babies''

Upon birth slave babies will be sent to $DefaultBirthDestination.

You can decide on a new policy:
	<<if $DefaultBirthDestination != "individually decided fates">>
		[[Decide individually|Universal Rules][$DefaultBirthDestination = "individually decided fates",$universalRulesChildrenBecomeBreeders = 0]]
	<</if>>
	<<if $DefaultBirthDestination != "an orphanage">>
		| [[Slave orphanage|Universal Rules][$DefaultBirthDestination = "an orphanage",$universalRulesChildrenBecomeBreeders = 0]]
	<</if>>
	<<if $DefaultBirthDestination != "a citizen school">>
		| [[Citizen school|Universal Rules][$DefaultBirthDestination = "a citizen school",$universalRulesChildrenBecomeBreeders = 0]]
	<</if>>
	<<if $DefaultBirthDestination != "a private school">>
		| [[Private school|Universal Rules][$DefaultBirthDestination = "a private school",$universalRulesChildrenBecomeBreeders = 0]]
	<</if>>
	<<if $Cash4Babies > 0>>
		<<if $DefaultBirthDestination != "the market">>
			| [[Market|Universal Rules][$DefaultBirthDestination = "the market",$universalRulesChildrenBecomeBreeders = 0]]
		<</if>>
	<</if>>
	<<if $arcologies[0].FSRepopulationFocus > 40>>

		<<if $DefaultBirthDestination != "breeder schools">>
			| [[Breeder schools|Universal Rules][$DefaultBirthDestination = "breeder schools",$universalRulesChildrenBecomeBreeders = 1]]
			//Will require a <<print cashFormat(50)>> donation per week once enrollment begins//
		<</if>>
	<</if>>
	//Children reserved for the Incubator or Nursery will not be affected//

<</if>>/*Closes seePreg check*/

''New slaves''

<<if $universalRulesNewSlavesRA == 0>>
	The Rules Assistant ''will not apply'' automatically to newly acquired slaves. [[Apply to new slaves|Universal Rules][$universalRulesNewSlavesRA = 1]]
<<else>>
	The Rules Assistant ''will apply'' automatically to newly acquired slaves [[Stop applying to new slaves|Universal Rules][$universalRulesNewSlavesRA = 0]]
<</if>>


code:
:: Walk Past List [nobr]

<<set $nextButton = "Back to Main", $nextLink = "Main", _target = $target>>
//For testing purposes only, this page lists or can produce all of the "walk past" scenes.//

//No scene has been selected yet.//

Choose target

Target: $target

<<link "Lips">>
	<<set $target = "FLips">>
	<<goto "Walk Past List">>
<</link>>

<<link "Boobs">>
	<<set $target = "FBoobs">>
	<<goto "Walk Past List">>
<</link>>

<<link "Butt">>
	<<set $target = "FButt">>
	<<goto "Walk Past List">>
<</link>> |
<<link "Anus">>
	<<set $target = "FAnus">>
	<<goto "Walk Past List">>
<</link>> |
<<link "Vagina">>
	<<set $target = "FVagina">>
	<<goto "Walk Past List">>
<</link>> //or ass if they lack one//

<<link "Dick">>
	<<set $target = "FDick">>
	<<goto "Walk Past List">>
<</link>>

<<link "Rival">>
	<<set $target = "FRival">>
	<<goto "Walk Past List">>
<</link>>

<<link "Relation">>
	<<set $target = "FRelation">>
	<<goto "Walk Past List">>
<</link>>

Walk Past List

<<for _i = 0; _i < $slaves.length; _i++>>
	<<set $activeSlave = $slaves[_i]>>
	<<capture $activeSlave>>
		<<set _print = "">>
		<<set _print = walkPast($slaves[_i], "fixed")>>
		<<if _print>>
			<<print _print + "

">>
		<</if>>
		<<if $target != _target>>
			<<set $target = _target>>
		<</if>>
	<</capture>>
<</for>>


code:
:: Wardeness Select [nobr]

<<set $nextButton = "Back", $nextLink = "Cellblock", $showEncyclopedia = 1, $encyclopedia = "Wardeness">>
<<if ($Wardeness != 0)>>
	<<set $Wardeness = getSlave($Wardeness.ID)>>
	<<setLocalPronouns $Wardeness>>
	''__@@.pink;<<= SlaveFullName($Wardeness)>>@@__'' is serving as your Wardeness.

$He will help break your prisoners.
<<else>>
	You have not selected a Wardeness.
<</if>>

''Appoint a Wardeness from your devoted slaves:''

[[None|Wardeness Workaround][$i = -1]]

<<print App.UI.SlaveList.facilityManagerSelection(App.Entity.facilities.cellblock)>>


code:
:: Wardeness Workaround [silently]

<<if $Wardeness != 0>>
	<<= removeJob($Wardeness, "be the Wardeness")>>
<</if>>
<<if $i > -1>>
	<<= assignJob($slaves[$i], "be the Wardeness")>>
	<<set $slaves[$i].rules.living = "luxurious">>
	<<set $Wardeness = $slaves[$i]>>
<</if>>

<<goto "Cellblock">>