:: Slave Interact [nobr jump-from-safe]

<<set $nextButton = "Confirm changes", $nextLink = "Main">>
<<set _SL = $slaves.length, _CL = $canines.length, _HL = $hooved.length, _FL = $felines.length>>
<<set $AS = $activeSlave.ID>>
<<set $activeSlave = getSlave($AS)>>
<<run App.Utils.setLocalPronouns(getSlave($AS))>>
<<run Enunciate(getSlave($AS))>>
<style>
.active {
	background-color: grey;
}
</style>

<<run App.UI.tabbar.handlePreSelectedTab($tabChoice.SlaveInteract)>>


<<if !assignmentVisible(getSlave($AS))>>
	<<switch getSlave($AS).assignment>>
	<<case "work in the brothel" "be the Madam">>
		<<set $nextLink = "Brothel">>
	<<case "be confined in the arcade">>
		<<set $nextLink = "Arcade">>
	<<case "serve in the club" "be the DJ">>
		<<set $nextLink = "Club">>
	<<case "work in the dairy" "be the Milkmaid">>
		<<set $nextLink = "Dairy">>
	<<case "work as a farmhand" "be the Farmer">>
		<<set $nextLink = "Farmyard">>
	<<case "rest in the spa" "be the Attendant">>
		<<set $nextLink = "Spa">>
	<<case "work as a nanny" "be the Matron">>
		<<set $nextLink = "Nursery">>
	<<case "learn in the schoolroom" "be the Schoolteacher">>
		<<set $nextLink = "Schoolroom">>
	<<case "work as a servant" "be the Stewardess">>
		<<set $nextLink = "Servants' Quarters">>
	<<case "serve in the master suite" "be your Concubine">>
		<<set $nextLink = "Master Suite">>
	<<case "be confined in the cellblock" "be the Wardeness">>
		<<set $nextLink = "Cellblock">>
	<<case "get treatment in the clinic" "be the Nurse">>
		<<set $nextLink = "Clinic">>
	<<case "live with your Head Girl">>
		<<set $nextLink = "Head Girl Suite">>
	<</switch>>
<</if>>

<<set $encyclopedia = either("Costs Summary", "Disease in the Free Cities", "Drugs and Their Effects", "From Rebellious to Devoted", "Gender", "Independent Slaves", "Modern Anal", "Nymphomania", "Slave Couture")>>
<<if getSlave($AS).dick > 0>>
	<<set $encyclopedia = "Gender">>
<</if>>

<<set _slavesInLine = App.UI.SlaveInteract.placeInLine(getSlave($AS))>>

<<set _desc = `<<set $activeSlave = getSlave($AS)>><<include "Long Slave Description">>`>>

<p align="center">
	<<if $cheatMode == 1>>
		<div style="font-style:italic">
			[[Cheat Edit Slave|MOD_Edit Slave Cheat][$cheater = 1]] |
			[[Cheat Edit Slave Alternative|MOD_Edit Slave Cheat New][$cheater = 1]]
		</div>
	<</if>>
	<span class="cyan">
		[←,Q]
	</span>
	<span id="prevSlave" style="font-weight:bold">
		<<link "Prev" "Slave Interact">><<set $activeSlave = getSlave(_slavesInLine[0])>><</link>>
	</span>
	&nbsp;&nbsp;&nbsp;&nbsp;
	<span class='slave-name'>
		<<= getSlave($AS).slaveName>>
	</span>
	&nbsp;&nbsp;&nbsp;&nbsp;
	<span id="nextSlave" style="font-weight:bold">
		<<link "Next" "Slave Interact">><<set $activeSlave = getSlave(_slavesInLine[1])>><</link>>
	</span>
	<span class="cyan">
		[E,→]
	</span>
</p>
<div class="tabbar">
	<button class="tablinks" onclick="App.UI.tabbar.openTab(event, 'Description'), App.UI.replace('#LSD', '_desc')" id="tab Description">Description</button>
	<button class="tablinks" onclick="App.UI.tabbar.openTab(event, 'Modify')" id="tab Modify">Modify</button>
	<button class="tablinks" onclick="App.UI.tabbar.openTab(event, 'Work')" id="tab Work">Work</button>
	<button class="tablinks" onclick="App.UI.tabbar.openTab(event, 'Appearance'), App.UI.Wardrobe.refreshAll(getSlave(V.activeSlave.ID))" id="tab Appearance">Appearance</button>
	<button class="tablinks" onclick="App.UI.tabbar.openTab(event, 'PhysicalRegimen')" id="tab PhysicalRegimen">Physical Regimen</button>
	<button class="tablinks" onclick="App.UI.tabbar.openTab(event, 'Rules')" id="tab Rules">Rules</button>
	<button class="tablinks" onclick="App.UI.tabbar.openTab(event, 'Financial')" id="tab Financial">Financial</button>
	<button class="tablinks" onclick="App.UI.tabbar.openTab(event, 'Customize'), App.UI.SlaveInteract.custom(getSlave(V.activeSlave.ID))" id="tab Customize">Customize</button>
	<button class="tablinks" onclick="App.UI.tabbar.openTab(event, 'FamilyTab'), renderFamilyTree(V.slaves, V.activeSlave.ID)" id="tab FamilyTab">Family</button>
</div>

<div id="artFrame">
	<<if $seeImages == 1 && $eventDescription != 1>>
		<<if $imageChoice == 1>>
			<div class="imageRef lrgVector"><div class="mask">&nbsp;</div><<= SlaveArt(getSlave($AS), 3, 0)>></div>
		<<else>>
			<div class="imageRef lrgRender"><div class="mask">&nbsp;</div><<= SlaveArt(getSlave($AS), 3, 0)>></div>
		<</if>>
	<</if>>
</div>

<div id="Description" class="tabcontent">
	<div class="content">
		<<if $seeDetails == 1>>
			<<set $saleDescription = 0>>
			<div style="font-style:italic">
				<<link "Description Options">>
					<<replace #hideOptionPages>>
						<<link "(hide)">>
							<<replace #hideOptionPages>>
							<</replace>>
							<<replace #optionPages>>
								/* Hide */
							<</replace>>
						<</link>>
					<</replace>>
					<<replace #optionPages>>
						<<include "Description Options">>
					<</replace>>
				<</link>>
				<span id="hideOptionPages"></span>
				/*|
				[[Hide descriptions|Slave Interact][$seeDetails = 0]]*/
				/*| Desc is now refreshed on tab click, but may need this later for an "all" view.
				<span style="font-weight:bold">
					<<link "Update">><<replace "#LSD">><<include "Long Slave Description">><</replace>><</link>>
				</span>
				*/
				<p id="optionPages"></p>
			</div>
			<span id="LSD">/*<<include "Long Slave Description">>*/</span>
		<<else>>
			<div style="font-style:italic">
				[[Show descriptions|Slave Interact][$seeDetails = 1]]
			</div>
		<</if>>
	</div>
</div>

<div id="Modify" class="tabcontent">
	<div class="content">
		<p id="modifySection"></p>
		<script>
			jQuery('#modifySection').empty().append(App.UI.SlaveInteract.modify(getSlave(V.AS)))
		</script>
	</div>
</div>


<div id="Work" class="tabcontent">
	<div class="content">
		<p id="work"></p>
		<script>
			App.UI.SlaveInteract.work(getSlave(V.activeSlave.ID))
		</script>
	</div>
</div>

<div id="Appearance" class="tabcontent">
	<div class="content">
		<p>
			<span id="clothes"></span>
			/*<script>App.UI.Wardrobe.clothes(getSlave(V.activeSlave.ID))</script>*/

			<<if getSlave($AS).fuckdoll == 0>>
				<span id="collar"></span>
				/*<script>App.UI.Wardrobe.collar(getSlave(V.activeSlave.ID))</script>*/

				<span id="faceAccessory"></span>

				<span id="mouthAccessory"></span>

				<span id="armAccessory"></span>
				/*<script>App.UI.Wardrobe.armAccessory(getSlave(V.activeSlave.ID))</script>*/

				<<if hasAnyLegs(getSlave($AS))>>
					<span id="shoes"></span>
					/*<script>App.UI.Wardrobe.shoes(getSlave(V.activeSlave.ID))</script>*/

					<span id="legAccessory"></span>
					/*<script>App.UI.Wardrobe.legAccessory(getSlave(V.activeSlave.ID))</script>*/
				<</if>>

				<span id="bellyAccessory"></span>
				/*<script>App.UI.Wardrobe.bellyAccessory(getSlave(V.activeSlave.ID))</script>*/

				<span id="buttplug"></span>
				/*<script>App.UI.Wardrobe.buttplug(getSlave(V.activeSlave.ID))</script>*/

				<<if isItemAccessible.entry("tail", "buttplugAttachment") && getSlave($AS).buttplug != "none">>
					<span id="buttplugAttachment"></span>
					/*<script>App.UI.Wardrobe.buttplugAttachment(getSlave(V.activeSlave.ID))</script>*/
				<</if>>

				<<if getSlave($AS).vagina > -1>>
					<span id="vaginalAccessory"></span>
					/*<script>App.UI.Wardrobe.vaginalAccessory(getSlave(V.activeSlave.ID))</script>*/
					<span id="vaginalAttachment"></span>
					/*<script>App.UI.Wardrobe.vaginalAttachment(getSlave(V.activeSlave.ID))</script>*/
				<</if>>

				<<if getSlave($AS).dick > 0>>
					<span id="dickAccessory"></span>
					/*<script>App.UI.Wardrobe.dickAccessory(getSlave(V.activeSlave.ID))</script>*/
				<</if>>

				<span id="chastity"></span>
				/*<script>App.UI.Wardrobe.chastity(getSlave(V.activeSlave.ID))</script>*/

				<h3>Shopping</h3>
				<span id="shopping"></span>
				<script>App.UI.Wardrobe.shopping(getSlave(V.activeSlave.ID))</script>

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

<div id="PhysicalRegimen" class="tabcontent">
	<div class="content">
		<p>
			<span id="drugs"></span>
			<script>App.UI.SlaveInteract.drugs(getSlave(V.activeSlave.ID))</script>

			<span id="curatives"></span>
			<script>App.UI.SlaveInteract.curatives(getSlave(V.activeSlave.ID))</script>

			<span id="aphrodisiacs"></span>
			<script>App.UI.SlaveInteract.aphrodisiacs(getSlave(V.activeSlave.ID))</script>

			<span id="fertilityblock"></span>
			<script>App.UI.SlaveInteract.fertility(getSlave(V.activeSlave.ID))</script>

			<span id="incubator"></span>
			<script>App.UI.SlaveInteract.incubator(getSlave(V.activeSlave.ID))</script>

			<span id="nursery"></span>
			<script>App.UI.SlaveInteract.nursery(getSlave(V.activeSlave.ID))</script>

			<<if $propOutcome == 1 && $arcologies[0].FSRestart != "unset">>
				<<if getSlave($AS).breedingMark == 0 && getSlave($AS).fuckdoll == 0 && getSlave($AS).eggType == "human" && isFertile(getSlave($AS)) && getSlave($AS).preg == 0>>
					<br>&nbsp;&nbsp;&nbsp;&nbsp;
					[[Breeder Eligibility Exam|BreedingTest]]
				<</if>>
			<</if>>

			<span id="bloating"></span>
			<script>App.UI.SlaveInteract.bloating(getSlave(V.activeSlave.ID))</script>

			<span id="hormones"></span>
			<script>App.UI.SlaveInteract.hormones(getSlave(V.activeSlave.ID))</script>

			<span id="diet"></span>
			<script>App.UI.SlaveInteract.diet(getSlave(V.activeSlave.ID))</script>

			<span id="dietBase"></span>
			<script>App.UI.SlaveInteract.dietBase(getSlave(V.activeSlave.ID))</script>

			<span id="snacks"></span>
			<script>App.UI.SlaveInteract.snacks(getSlave(V.activeSlave.ID))</script>
		</p>
	</div>
</div>

<div id="Rules" class="tabcontent">
	<div class="content">
		<p>
			<<if $seePreg != 0>>
				<<if $universalRulesImpregnation == "HG">>
					<<if getSlave($AS).HGExclude == 0>>
						Will be bred by the Head Girl when fertile. <<link "Exempt $him" "Slave Interact">><<set getSlave($AS).HGExclude = 1>><</link>>
					<<else>>
						Will not be bred by the Head Girl when fertile. <<link "Include $him" "Slave Interact">><<set getSlave($AS).HGExclude = 0>><</link>>
					<</if>>
				<<elseif $universalRulesImpregnation == "Stud">>
					<<if getSlave($AS).StudExclude == 0>>
						Will be bred by your Stud when fertile. <<link "Exempt $him" "Slave Interact">><<set getSlave($AS).StudExclude = 1>><</link>>
					<<else>>
						Will not be bred by your Stud when fertile. <<link "Include $him" "Slave Interact">><<set getSlave($AS).StudExclude = 0>><</link>>
					<</if>>
				<</if>>
			<</if>>
		</p>

		<p>
			<<if getSlave($AS).useRulesAssistant == 0>>
				<span class="gray">
					''Not subject'' to the Rules Assistant.
				</span>
				<<link "Include $him" "Slave Interact">>
					<<set getSlave($AS).useRulesAssistant = 1>>
				<</link>>
			<<else>>
				__Rules Assistant:__ [[Rules Assistant Options|Rules Assistant]]

				<<if (def getSlave($AS).currentRules) && (getSlave($AS).currentRules.length > 0)>>
					<ul style="margin:0">
						<<= $defaultRules.filter(x => ruleApplied(getSlave($AS), x)).map(x => `<li>Rule "${x.name}" applied</li>`).join(" ") >>
					</ul>
				<<else>>
					|
				<</if>>
				<span style="font-style:italic">
					<<link "Apply rules">>
						<<run DefaultRules(getSlave($AS))>>
						<<goto "Slave Interact">>
					<</link>>
				</span>
				|
				<<link "Exempt $him" "Slave Interact">>
					<<set getSlave($AS).useRulesAssistant = 0>>
				<</link>>
			<</if>>
		</p>
		<<if getSlave($AS).fuckdoll > 0>>
			//Rules have little meaning for living sex toys//
		<<else>>
			<<run penthouseCensus()>>

			Living standard: <span id="livingRules" style="font-weight:bold"><<= getSlave($AS).rules.living>></span>.
			<<if setup.facilityCareers.includes(getSlave($AS).assignment)>>
				//$His living conditions are managed by $his assignment.//
			<<elseif (getSlave($AS).assignment == "be your Head Girl") && ($HGSuite == 1)>>
				//$He has $his own little luxurious room in the penthouse with everything $he needs to be a proper Head Girl.//
			<<elseif (getSlave($AS).assignment == "guard you") && ($dojo > 1)>>
				//$He has a comfortable room in the armory to call $his own.//
			<<else>>
				<<link "Spare">><<set getSlave($AS).rules.living = "spare">><<replace "#livingRules">><<= getSlave($AS).rules.living>><</replace>><</link>> |
				<<link "Normal">><<set getSlave($AS).rules.living = "normal">><<replace "#livingRules">><<= getSlave($AS).rules.living>><</replace>><</link>> |
				<<if $roomsPopulation <= $rooms-0.5>><<link "Luxurious">><<set getSlave($AS).rules.living = "luxurious">><<replace "#livingRules">><<= getSlave($AS).rules.living>><</replace>><</link>><<else>>//No luxurious rooms available//<</if>>
			<</if>>

			<<if $cheatMode>>
			<<if ["be a servant", "get milked", "please you", "serve in the club", "serve the public", "whore", "work as a farmhand", "work in the brothel", "work in the dairy", "work a glory hole"].includes($activeSlave.assignment)>>
				<br>Sleep rules: <span id="restRules" style="font-weight:bold"><<= getSlave($AS).rules.rest>></span>.
				<<link "None">><<set getSlave($AS).rules.rest = "none">><<replace "#restRules">><<= getSlave($AS).rules.rest>><</replace>><</link>> |
				<<link "Cruel">><<set getSlave($AS).rules.rest = "cruel">><<replace "#restRules">><<= getSlave($AS).rules.rest>><</replace>><</link>> |
				<<link "Restrictive">><<set getSlave($AS).rules.rest = "restrictive">><<replace "#restRules">><<= getSlave($AS).rules.rest>><</replace>><</link>> |
				<<link "Permissive">><<set getSlave($AS).rules.rest = "permissive">><<replace "#restRules">><<= getSlave($AS).rules.rest>><</replace>><</link>> |
				<<link "Mandatory">><<set getSlave($AS).rules.rest = "mandatory">><<replace "#restRules">><<= getSlave($AS).rules.rest>><</replace>><</link>>
			<</if>>
			<</if>>

			<br>Typical punishment: <span id="standardPunishment" style="font-weight:bold"><<= getSlave($AS).rules.punishment>></span>.
			<<link "Confinement">><<set getSlave($AS).rules.punishment = "confinement">><<replace "#standardPunishment">><<= getSlave($AS).rules.punishment>><</replace>><</link>> |
			<<link "Whipping">><<set getSlave($AS).rules.punishment = "whipping">><<replace "#standardPunishment">><<= getSlave($AS).rules.punishment>><</replace>><</link>> |
			<<link "Chastity">><<set getSlave($AS).rules.punishment = "chastity">><<replace "#standardPunishment">><<= getSlave($AS).rules.punishment>><</replace>><</link>> |
			<<link "Situational">><<set getSlave($AS).rules.punishment = "situational">><<replace "#standardPunishment">><<= getSlave($AS).rules.punishment>><</replace>><</link>>
			<br>Typical reward: <span id="standardReward" style="font-weight:bold"><<= getSlave($AS).rules.reward>></span>.
			<<link "Relaxation">><<set getSlave($AS).rules.reward = "relaxation">><<replace "#standardReward">><<= getSlave($AS).rules.reward>><</replace>><</link>> |
			<<link "Drugs">><<set getSlave($AS).rules.reward = "drugs">><<replace "#standardReward">><<= getSlave($AS).rules.reward>><</replace>><</link>> |
			<<link "Orgasm">><<set getSlave($AS).rules.reward = "orgasm">><<replace "#standardReward">><<= getSlave($AS).rules.reward>><</replace>><</link>> |
			<<link "Situational">><<set getSlave($AS).rules.reward = "situational">><<replace "#standardReward">><<= getSlave($AS).rules.reward>><</replace>><</link>>

			<<if setup.facilityHeads.includes(getSlave($AS).assignment)>>
				<<if getSlave($AS).lactation != 2>>
					<br>Lactation maintenance for facility heads: <span id="lactationRules" style="font-weight:bold"><<= getSlave($AS).rules.lactation>></span>.
					<<link "Left alone">><<set getSlave($AS).rules.lactation = "none">><<replace "#lactationRules">><<= getSlave($AS).rules.lactation>><</replace>><</link>> |
					<<if getSlave($AS).lactation == 0>>
						<<link "Induce lactation">><<set getSlave($AS).rules.lactation = "induce">><<replace "#lactationRules">><<= getSlave($AS).rules.lactation>><</replace>><</link>>
					<<else>>
						<<link "Maintain lactation">><<set getSlave($AS).rules.lactation = "maintain">><<replace "#lactationRules">><<= getSlave($AS).rules.lactation>><</replace>><</link>>
					<</if>>
				<</if>>
			<</if>>

			<span id="orgasm"></span>
			<script>App.UI.SlaveInteract.orgasm(getSlave(V.activeSlave.ID))</script>

			<<if getSlave($AS).voice != 0>>
				Speech rules: <span id="speechRules" style="font-weight:bold"><<= getSlave($AS).rules.speech>></span>.
				<<link "Restrictive">><<set getSlave($AS).rules.speech = "restrictive">><<replace "#speechRules">><<= getSlave($AS).rules.speech>><</replace>><</link>> |
				<<link "Permissive">><<set getSlave($AS).rules.speech = "permissive">><<replace "#speechRules">><<= getSlave($AS).rules.speech>><</replace>><</link>>
				<<if getSlave($AS).accent > 0 && getSlave($AS).accent < 4>>| <<link "Accent elimination">><<set getSlave($AS).rules.speech = "accent elimination">><<replace "#speechRules">><<= getSlave($AS).rules.speech>><</replace>><</link>>
				<<elseif getSlave($AS).accent > 3>>| <<link "Language lessons">><<set getSlave($AS).rules.speech = "language lessons">><<replace "#speechRules">><<= getSlave($AS).rules.speech>><</replace>><</link>>
				<</if>>
			<</if>>

			<br>
			Relationship rules: <span id="relationshipRules" style="font-weight:bold"><<= getSlave($AS).rules.relationship>></span>.
			<<link "Restrictive">><<set getSlave($AS).rules.relationship = "restrictive">><<replace "#relationshipRules">><<= getSlave($AS).rules.relationship>><</replace>><</link>> |
			<<link "Just friends">><<set getSlave($AS).rules.relationship = "just friends">><<replace "#relationshipRules">><<= getSlave($AS).rules.relationship>><</replace>><</link>> |
			<<link "Permissive">><<set getSlave($AS).rules.relationship = "permissive">><<replace "#relationshipRules">><<= getSlave($AS).rules.relationship>><</replace>><</link>>
		<</if>>
		<span id="smartSettings"></span>
		<script>App.UI.SlaveInteract.smartSettings(getSlave(V.activeSlave.ID))</script>
	</div>
</div>

<div id="Financial" class="tabcontent">
	<div class="content">

		<<if $studio == 1>>
			<h3>Media</h3>
			<<if getSlave($AS).porn.prestige == 3>>
				//$He is so prestigious in the realm of getSlave($AS).porn.fameType porn that $his fame is self-sustaining.//
			<<elseif getSlave($AS).porn.feed == 0>>
				The media hub is not releasing highlights of $his sex life. [[Release|Slave Interact][getSlave($AS).porn.feed = 1]]
			<<else>>
				The media hub is releasing highlights of $his sex life <<if getSlave($AS).porn.spending < 500>>to those who can find it<<elseif getSlave($AS).porn.spending < 2500>>on several websites<<elseif getSlave($AS).porn.spending > 5000>>through your old distributor<<else>>on many websites<</if>>.
				<<if getSlave($AS).porn.spending == 0>>
					[[Halt|Slave Interact][getSlave($AS).porn.feed = 0, getSlave($AS).porn.focus = "none"]] |
					[[Publicize|Slave Interact][getSlave($AS).porn.spending += 1000]]
					//Will cost <<print cashFormat(1000)>> weekly.//
				<<else>>
					<<textbox "_newPornSpending" $slaves[$slaveIndices[$AS]].porn.spending>> weekly is spent to publicize them. [[Save changes|Slave Interact][getSlave($AS).porn.spending = Number(_newPornSpending) || 0]] |
					[[Halt|Slave Interact][getSlave($AS).porn.feed = 0, getSlave($AS).porn.spending = 0, getSlave($AS).porn.focus = "none", $PCSlutContacts = 1]] |
					<<if getSlave($AS).porn.spending < 5000>>
						[[Increase|Slave Interact][getSlave($AS).porn.spending += 1000]] |
					<</if>>
					[[Decrease|Slave Interact][getSlave($AS).porn.spending -= 1000]]
					<<if getSlave($AS).porn.spending > 5000>><<set _warn = 1>><</if>>
					<<set getSlave($AS).porn.spending = Number(getSlave($AS).porn.spending) || 0>>
					<<set getSlave($AS).porn.spending = Math.clamp(Math.ceil(getSlave($AS).porn.spending/1000)*1000, 0, 5000)>>
					<<if _warn>><br>//Spending more than <<print cashFormat(5000)>> weekly will have no effect.//<</if>>
					<<if $PC.career == "escort">>
						<br>
						You retain some contacts from your past life in the industry that may be willing to cut you some discounts should you return to it.
						<<if $PCSlutContacts != 2>>
							You are not baring your body for all to see.
							[[Star in porn for a discount|Slave Interact][$PCSlutContacts = 2]]
						<<else>>
							You are starring in hardcore porn once more.
							[[Stop doing porn for a discount|Slave Interact][$PCSlutContacts = 1]]
						<</if>>
					<</if>>
				<</if>>

				<<if $studioFeed == 1>>
					<br>
					<<if getSlave($AS).porn.viewerCount < 100>>
						$He lacks the fame in porn needed to discern what $his feed is getting tagged as.
					<<else>>
						<<if getSlave($AS).porn.prestige > 0>>
							$He is known for <<= getSlave($AS).porn.fameType>> porn<<if getSlave($AS).porn.prestige > 1>> and viewers have grown to expect it from $him<</if>>.
						<</if>>
						<<if getSlave($AS).porn.focus == "none">>
							You are allowing $his viewers to guide the direction of $his content.
						<<else>>
							You are focusing attention on the <<= getSlave($AS).porn.focus>> aspect of $his content.
						<</if>>
						<<= App.Porn.genreChoiceLinks("Slave Interact", getSlave($AS))>> | [[No focus|Slave Interact][getSlave($AS).porn.focus = "none"]]
					<</if>>
				<</if>>
			<</if>>
		<</if>>

		<h3>Financial</h3>
		<p>
			<<SlaveExpenses $activeSlave>>
		</p>

		<p>
			<<if ($slaveCostFactor > 1)>>
				<span class="yellow">The slave market is bullish; the price of slaves is high.</span>
			<<elseif ($slaveCostFactor < 1)>>
				<span class="yellow">The slave market is bearish; the price of slaves is low.</span>
			<</if>>

			<<if (_SL > 1)>>
				<<if getSlave($AS).origin == "You bought $him from a body dump, completely broken." && ($week-getSlave($AS).weekAcquired <= 8)>>
					//A discarded slave must be kept for at least two months to ensure health before being sold.// |
				<<elseif getSlave($AS).accent > 3>>
					//$His lack of language and basic life skills is a red sign to most slave appraisers. $He must not act like a child to be sold without raising suspicion.// |
				<<else>>
					<<link "Sell $him" "Sell Slave">><<run cashX(-500, "personalBusiness", getSlave($AS))>><</link>> //Listing $him for sale will cost <<print cashFormat(500)>>// |
					<<if ($seeAge != 0) && (getSlave($AS).indenture < 1)>>
						<<link "Retire $him" "SE retirement">><<set $retiree = getSlave($AS).ID, $retired = 1>><</link>> |
					<</if>>
				<</if>>
				<<link "Discard $him" "Discard Confirm">><</link>>
				<<if $seeExtreme == 1 && $arcologies[0].FSPaternalist == "unset" && $cheatMode>>
					| <<link "Threaten $his life" "KillSlave">><</link>>
				<</if>>
			<<else>>
				//You cannot sell or discard your last slave.//
			<</if>>

			| <<link "Export this slave" "Export Slave">><</link>>
			<<if $cheatMode>>
				| <<link "Import a slave" "Import Slave">><</link>>
			<</if>>
		</p>
	</div>
</div>

<div id="Customize" class="tabcontent">
	<div class="content">
		<span id="custom"></span>
		<script>App.UI.SlaveInteract.custom(getSlave(V.activeSlave.ID))</script>

		/*<<include "Add custom descriptors">>*/
	</div>
</div>

<div id="FamilyTab" class="tabcontent">
	<div class="content">
		<p id="family">
			<div id="familyTree"></div>
			<span id="familyTreeLink"></span>
		</p>
	</div>
</div>

src/uncategorized/slaveInteract.tw