:: Starting Girls [nobr]

<style>
.active {
	background-color: grey;
}
</style>

<p>
	<<if $slaves.length == 0>>
		You're no stranger to the Free Cities, which means you're no stranger to slavery. If you wish, you can bring slaves from your past life with you to your arcology. You can spend your cash reserves on slaves here, or bring it with you to start the game. Slaves created here will be much cheaper than if they were purchased on the market.
		<<if ($PC.dick != 0) && ($PC.vagina != -1) && ($seeDicks != 0 || $makeDicks == 1)>>
			Since you have both a penis and a vagina yourself, you've obviously had access to a source of advanced surgery and organ farming. @@.springgreen;Slaves get a smaller cost increase here for having both penises and vaginas, and for having both testicles and ovaries.@@
		<</if>>
		<<if $PC.career == "slaver">>
			Since you personally saw to the capture, breaking and or training of these slaves, @@.springgreen;they cost half of what they normally would have here.@@
		<</if>>
	<</if>>
	<br>Current cash reserves can be found on the far left sidebar.
	<<if $slaves.length == 1>>
		<br>One slave is already committed.
	<<elseif $slaves.length > 1>>
		<br>$slaves.length slaves already committed.
	<</if>>
</p>

<p>
	<span id="headerLinks">
		<span class="major-link">
			<<link "Refresh" "Starting Girls">>	<</link>>
		</span>

		| <<link "Randomize career" "Starting Girls">>
			<<set $activeSlave.career = randomCareer($activeSlave)>>
		<</link>>

		| <<link "Randomize name" "Starting Girls">>
			<<run nationalityToName($activeSlave)>>
			<<set $activeSlave.slaveName = $activeSlave.birthName>>
		<</link>>

		| <<link "Start over with a random slave" "Starting Girls">>
			<<set $activeSlave = App.StartingGirls.generate()>>
		<</link>>

		| <<link "Start over by selecting an archetype">>
			<<replace "#headerLinks">>
				<div class="note">
					Convenient combinations of slave attributes
				</div>
				<div class="indent">
					<<link "Irish Rose" "Starting Girls">>
						<<set $activeSlave = App.StartingGirls.generate({ nationality: "Irish", race: "white" })>>
						<<set $activeSlave.eye.origColor = "green", $activeSlave.origSkin = "fair", $activeSlave.origHColor = "red", $activeSlave.markings = "heavily freckled">>
					<</link>>
					<span class="note">
						A beautiful flower from the Emerald Isle
					</span>
				</div>

				<div class="indent">
					<<link "Cali Girl" "Starting Girls">>
						<<set $activeSlave = App.StartingGirls.generate({ nationality: "American" })>>
						<<set $activeSlave.eye.origColor = "blue", $activeSlave.skin = "sun tanned", $activeSlave.override_Skin = 1, $activeSlave.origHColor = "blonde", $activeSlave.markings = "none", $activeSlave.face = 95, $activeSlave.muscles = 20, $activeSlave.weight = -20, $activeSlave.height = Math.round(Height.forAge(190, $activeSlave))>>
					<</link>>
					<span class="note">
						Tall, taut, and tan
					</span>
				</div>

				<div class="indent">
					<<link "Novice" "Starting Girls">>
						<<set $activeSlave = App.StartingGirls.generate()>>
						<<set $activeSlave.skill.anal = 0, $activeSlave.skill.oral = 0, $activeSlave.skill.vaginal = 0, $activeSlave.skill.whoring = 0, $activeSlave.skill.entertainment = 0, $activeSlave.skill.combat = 0, $activeSlave.actualAge = 18, $activeSlave.visualAge = 18, $activeSlave.physicalAge = 18, $activeSlave.fetishKnown = 0, $activeSlave.attrKnown = 0>>
					<</link>>
					<span class="note">
						Train your own and save
					</span>
				</div>

				<div class="indent">
					<<link "Head Girl Prospect" "Starting Girls">>
						<<set $activeSlave = App.StartingGirls.generate({ minAge: 36, maxAge: 44 })>>
						<<set $activeSlave.career = setup.HGCareers.random(), $activeSlave.intelligence = 70, $activeSlave.intelligenceImplant = 0>>
					<</link>>
					<span class="note">
						Inexpensive potential to become a great right hand woman
					</span>
				</div>

				<<if $seeExtreme != 0>>
					<div class="indent">
						<<link "Wellspring" "Starting Girls">>
							<<set $activeSlave = App.StartingGirls.generate({ minAge: 18, maxAge: 18 })>>
							<<set $activeSlave.skill.anal = 0, $activeSlave.skill.oral = 0, $activeSlave.skill.vaginal = 0, $activeSlave.skill.whoring = 0, $activeSlave.skill.entertainment = 0, $activeSlave.skill.combat = 0, $activeSlave.fetishKnown = 0, $activeSlave.attrKnown = 0, $activeSlave.health.condition = 10, $activeSlave.intelligence = -100, $activeSlave.intelligenceImplant = 0, $activeSlave.vagina = 3, $activeSlave.anus = 3, $activeSlave.ovaries = 1, $activeSlave.dick = 5, $activeSlave.balls = 5, $activeSlave.prostate = 1, $activeSlave.lactation = 2, $activeSlave.lactationDuration = 2, $activeSlave.nipples = "huge", $activeSlave.boobs = 10000>>
						<</link>>
						<span class="note">
							Capable of producing all kinds of useful fluids
						</span>
					</div>

					<div class="indent">
						<<link "Onahole" "Starting Girls">>
							<<set $activeSlave = App.StartingGirls.generate()>>
							<<set $activeSlave.skill.anal = 0, $activeSlave.skill.oral = 0, $activeSlave.skill.vaginal = 0, $activeSlave.skill.whoring = 0, $activeSlave.skill.entertainment = 0, $activeSlave.skill.combat = 0, $activeSlave.fetish = "mindbroken", $activeSlave.voice = 0, $activeSlave.hears = 0>>
							<<run removeLimbs($activeSlave, "all"), eyeSurgery($activeSlave, "both", "normal")>>
						<</link>>
						<span class="note">
							A living cocksleeve
						</span>
					</div>
				<</if>>

				<div class="indent">
					<<link "Back" "Starting Girls">>	<</link>>
				</div>
			<</replace>>
		<</link>>

		<<if !$showSGNationalities>>
			| <<link "Start over by selecting a nationality" "Starting Girls">>
				<<set $showSGNationalities = 1>>
			<</link>>
		<</if>>

		| [[Take control of your arcology|Acquisition]]
	</span>
	<hr>
</p>

<<if $showSGNationalities>>
	<p>
		<h3>Start over by selecting a nationality:</h3>
		<div>
			<<for _sg = 0; _sg < setup.baseNationalities.length; _sg++>>
				<<set _nation = setup.baseNationalities[_sg]>>
				<<capture _nation>>
				<<link _nation "Starting Girls">>
					<<set $activeSlave = App.StartingGirls.generate({ nationality: _nation })>>
				<</link>>
				<</capture>>
				<<if _sg < setup.baseNationalities.length-1>>
					|
				<</if>>
			<</for>>
		</div>
		<div>
			<<link "Hide" "Starting Girls">><<set $showSGNationalities = 0>><</link>>
		</div>
		<hr>
	</p>
<</if>>

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

<<if !$activeSlave>>
	<<set $activeSlave = App.StartingGirls.generate()>>
<</if>>

<<run App.StartingGirls.cleanup($activeSlave)>>
<<set _slaveCost = startingSlaveCost($activeSlave)>>
<<set $saleDescription = 1>>

<<if $activeSlave.father == -1>>
	<<if $PC.dick == 0>>
		<<set $activeSlave.father = 0>>
	<<elseif ($PC.actualAge - $activeSlave.actualAge) < $minimumSlaveAge || (($PC.actualAge - $activeSlave.actualAge) < $potencyAge)>>
		<<set $activeSlave.father = 0>>
	<</if>>
	<<if $saveImported == 1>>
		<<set $activeSlave.father = 0>>
	<</if>>
<</if>>
<<if $activeSlave.mother == -1>>
	<<if $PC.vagina == -1>>
		<<set $activeSlave.mother = 0>>
	<<elseif (($PC.actualAge - $activeSlave.actualAge) < $minimumSlaveAge) || (($PC.actualAge - $activeSlave.actualAge) < $fertilityAge)>>
		<<set $activeSlave.mother = 0>>
	<</if>>
	<<if $saveImported == 1>>
		<<set $activeSlave.mother = 0>>
	<</if>>
<</if>>
/* this block makes starting girls actually apply the slave origins, mostly since it just hates you and everything you do */
<<if $originOveride == 0>>
	<<if $PC.career == "capitalist">>
		<<if $activeSlave.mother == -1 && $activeSlave.father == -1>>
			<<set $activeSlave.origin = "To solidify an investment in hermaphrodite self-fertility, you took part in a test successful test trial. Nine months later your $daughter was born.">>
			<<set $activeSlave.custom.tattoo = "$He has a famous corporate logo tattooed on the nape of $his neck.">>
		<<elseif $activeSlave.mother == -1>>
			<<set $activeSlave.origin = "Sometimes it pays off to use your body in business deals, and other times you end up burdened with child. $He is the result of the latter.">>
			<<set $activeSlave.custom.tattoo = "$He has a famous corporate logo tattooed on the nape of $his neck.">>
		<<elseif $activeSlave.father == -1>>
			<<set $activeSlave.origin = "To seal a business deal, a client asked you to knock her up. $He is the end result of that fling.">>
			<<set $activeSlave.custom.tattoo = "$He has a famous corporate logo tattooed on the nape of $his neck.">>
		<<else>>
			<<set $activeSlave.origin = "You acquired $him in the last stages of your career as a successful venture capitalist.">>
			<<set $activeSlave.custom.tattoo = "$He has a famous corporate logo tattooed on the nape of $his neck.">>
		<</if>>
	<<elseif $PC.career == "mercenary">>
		<<if $activeSlave.mother == -1 && $activeSlave.father == -1>>
			<<set $activeSlave.origin = "Drugs and alcohol can be a potent mix; the night that followed it can sometimes be hard to remember. Needless to say, once your belly began swelling with $him, you had to temporarily switch to a desk job for your mercenary group.">>
			<<set $activeSlave.custom.tattoo = "$He has a small tattoo of a private military company's coat of arms on the nape of $his neck.">>
		<<elseif $activeSlave.mother == -1>>
			<<set $activeSlave.origin = "Drugs and alcohol can be a potent mix; the night that followed it can sometimes be hard to remember. Needless to say, once your belly began swelling with $him, you had to temporarily switch to a desk job for your mercenary group.">>
			<<set $activeSlave.custom.tattoo = "$He has a small tattoo of a private military company's coat of arms on the nape of $his neck.">>
		<<elseif $activeSlave.father == -1>>
			<<set $activeSlave.origin = "A trip to a brothel after a mission resulted in an unexpected surprise years later.">>
			<<set $activeSlave.custom.tattoo = "$He has a small tattoo of a private military company's coat of arms on the nape of $his neck.">>
		<<else>>
			<<set $activeSlave.origin = "You acquired $him in the last stages of your career as a noted private military contractor.">>
			<<set $activeSlave.custom.tattoo = "$He has a small tattoo of a private military company's coat of arms on the nape of $his neck.">>
		<</if>>
	<<elseif $PC.career == "slaver">>
		<<if $activeSlave.mother == -1 && $activeSlave.father == -1>>
			<<set $activeSlave.origin = "You never thought you would be capable of impregnating yourself, but years of pleasuring yourself with yourself after missions managed to create $him.">>
			<<set $activeSlave.custom.tattoo = "$He has a small tattoo of a private military company's coat of arms on the nape of $his neck.">>
		<<elseif $activeSlave.mother == -1>>
			<<set $activeSlave.origin = "A fresh capture once overpowered you and had his way with you. You kept $him as a painful reminder to never lower your guard again.">>
			<<set $activeSlave.custom.tattoo = "$He has your tiny slaving emblem tattooed behind $his left ear.">>
		<<elseif $activeSlave.father == -1>>
			<<set $activeSlave.origin = "Your slaving troop kept several girls as fucktoys; you sired $him in your favorite.">>
			<<set $activeSlave.custom.tattoo = "$He has your tiny slaving emblem tattooed behind $his left ear.">>
		<<else>>
			<<set $activeSlave.origin = "You enslaved $him personally during the last stages of your slaving career.">>
			<<set $activeSlave.custom.tattoo = "$He has your tiny slaving emblem tattooed behind $his left ear.">>
		<</if>>
	<<elseif $PC.career == "engineer">>
		<<if $activeSlave.mother == -1 && $activeSlave.father == -1>>
			<<set $activeSlave.origin = "You sired $him in yourself after an arcology owner, impressed by your work, rewarded you with a night you'll never forget.">>
			<<set $activeSlave.custom.tattoo = "$He has the geometric symbol of your old arcology engineering firm laser tattooed into the nape of $his neck.">>
		<<elseif $activeSlave.mother == -1>>
			<<set $activeSlave.origin = "You conceived $him after a male arcology owner, impressed by your work, rewarded you with a night you'll never forget.">>
			<<set $activeSlave.custom.tattoo = "$He has the geometric symbol of your old arcology engineering firm laser tattooed into the nape of $his neck.">>
		<<elseif $activeSlave.father == -1>>
			<<set $activeSlave.origin = "You sired $him after a female arcology owner, impressed by your work, rewarded you with a night you'll never forget.">>
			<<set $activeSlave.custom.tattoo = "$He has the geometric symbol of your old arcology engineering firm laser tattooed into the nape of $his neck.">>
		<<else>>
			<<set $activeSlave.origin = "You received $him as a gift from an arcology owner impressed by your work.">>
			<<set $activeSlave.custom.tattoo = "$He has the geometric symbol of your old arcology engineering firm laser tattooed into the nape of $his neck.">>
		<</if>>
	<<elseif $PC.career == "escort">>
		<<if $activeSlave.mother == -1 && $activeSlave.father == -1>>
			<<set $activeSlave.origin = "A client paid you a large sum of credits to prove you could literally fuck yourself. $He is the result of that lucrative night.">>
			<<set $activeSlave.custom.tattoo = "$He has your custom emblem tattooed on $his left breast.">>
		<<elseif $activeSlave.mother == -1>>
			<<set $activeSlave.origin = "$He was the result of unprotected sex with a client. He paid you quite well to enjoy your body as you grew heavy with his child.">>
			<<set $activeSlave.custom.tattoo = "$He has the number of times $his father came in you while you were pregnant with $him tattooed down $his back.">>
		<<elseif $activeSlave.father == -1>>
			<<set $activeSlave.origin = "$He was the result of unprotected sex with a client. $His mother tracked you down years after $his birth to force $him upon you.">>
			<<set $activeSlave.custom.tattoo = "$He has your name angrily tattooed on $his right shoulder.">>
		<<else>>
			<<set $activeSlave.origin = "$He was a fellow escort you were popular with.">>
			<<set $activeSlave.custom.tattoo = "$He has your custom emblem tattooed on $his left breast. $He got the tattoo after starring in a porno with you.">>
		<</if>>
		<<if $activeSlave.preg > 0>>
			<<if $activeSlave.pregSource != -1>>
				<<set $activeSlave.pregSource = -5>>
			<</if>>
		<</if>>
	<<elseif $PC.career == "gang">>
		<<if $activeSlave.mother == -1 && $activeSlave.father == -1>>
			<<set $activeSlave.origin = "$He was the result of a night of hard drugs and unprotected sex after a big score. It took quite a bit of alcohol to come to terms with drunkenly knocking yourself up.">>
			<<set $activeSlave.custom.tattoo = "$He has your former gang's sign tattooed on $his neck.">>
		<<elseif $activeSlave.mother == -1>>
			<<set $activeSlave.origin = "$He was the result of a night of hard drugs and unprotected sex after a big score.">>
			<<set $activeSlave.custom.tattoo = "$He has your former gang's sign tattooed on $his neck.">>
		<<elseif $activeSlave.father == -1>>
			<<set $activeSlave.origin = "$He was born from one of your sex toys you knocked up.">>
			<<set $activeSlave.custom.tattoo = "$He has your former gang's sign tattooed on $his neck.">>
		<<else>>
			<<set $activeSlave.origin = "You captured $him during your transition to the arcology">>
			<<set $activeSlave.custom.tattoo = "$He has your former gang's sign tattooed on $his neck.">>
		<</if>>
	<<elseif $PC.career == "servant">>
		<<if $activeSlave.mother == -1 && $activeSlave.father == -1>>
			<<set $activeSlave.origin = "Your late Master took pleasure in using his servants in creative ways. He inseminated you with your own sperm, and nine months later, your $daughter was born.">>
			<<set $activeSlave.custom.tattoo = "$He has your Master's brand on $his left breast.">>
		<<elseif $activeSlave.mother == -1>>
			<<set $activeSlave.origin = "$He was another of your late Master's servants. $He spent nine months in your womb, courtesy of your Master.">>
			<<set $activeSlave.custom.tattoo = "$He has your Master's brand on $his left breast.">>
		<<elseif $activeSlave.father == -1>>
			<<set $activeSlave.origin = "$He was another of your late Master's servants. Your Master permitted you to knock up $his mother.">>
			<<set $activeSlave.custom.tattoo = "$He has your Master's brand on $his left breast.">>
		<<elseif $PC.vagina != -1>>
			<<set $activeSlave.origin = "$He was another of your late Master's servants. $He helped you give birth to his child.">>
			<<set $activeSlave.custom.tattoo = "$He has your Master's brand on $his left breast.">>
		<<else>>
			<<set $activeSlave.origin = "$He was another of your late Master's servants.">>
			<<set $activeSlave.custom.tattoo = "$He has your Master's brand on $his left breast.">>
		<</if>>
		<<if $activeSlave.preg > 0>>
			<<if $activeSlave.pregSource != -1>>
				<<set $activeSlave.pregSource = -3>>
			<</if>>
		<</if>>
	<<elseif $PC.career == "medicine">>
		<<if $activeSlave.mother == -1 && $activeSlave.father == -1>>
			<<set $activeSlave.origin = "$He was conceived after a successful experiment in hermaphrodite self-reproduction.">>
			<<set $activeSlave.custom.tattoo = "$He has your personal symbol tattooed on the back of $his neck: it's invisible to the naked eye, but shows up starkly on medical imaging.">>
		<<elseif $activeSlave.mother == -1>>
			<<set $activeSlave.origin = "$He was conceived after a botched birth control experiment early in your career.">>
			<<set $activeSlave.custom.tattoo = "$He has your personal symbol tattooed on the back of $his neck: it's invisible to the naked eye, but shows up starkly on medical imaging.">>
		<<elseif $activeSlave.father == -1>>
			<<set $activeSlave.origin = "$He is the product of an affair with a cute nurse who assisted you in more ways than one.">>
			<<set $activeSlave.custom.tattoo = "$He has your personal symbol tattooed on the back of $his neck: it's invisible to the naked eye, but shows up starkly on medical imaging.">>
		<<else>>
			<<set $activeSlave.origin = "You kept $him after $his owner failed to pay your bill for performing surgery on $him.">>
			<<set $activeSlave.custom.tattoo = "$He has your personal symbol tattooed on the back of $his neck: it's invisible to the naked eye, but shows up starkly on medical imaging.">>
		<</if>>
	<<elseif $PC.career == "celebrity">>
		<<if $activeSlave.mother == -1 && $activeSlave.father == -1>>
			<<set $activeSlave.origin = "$He was conceived after a night of partying and a drunken bet. $He nearly killed your career.">>
			<<set $activeSlave.custom.tattoo = "$He has your signature, surrounded by hearts, tattooed on the back of $his neck.">>
		<<elseif $activeSlave.mother == -1>>
			<<set $activeSlave.origin = "$He was conceived after a night of partying and a torn condom. $He nearly killed your career.">>
			<<set $activeSlave.custom.tattoo = "$He has your signature, surrounded by hearts, tattooed on the back of $his neck.">>
		<<elseif $activeSlave.father == -1>>
			<<set $activeSlave.origin = "$He was conceived after a night of partying and a torn condom.">>
			<<set $activeSlave.custom.tattoo = "$He has your signature, surrounded by hearts, tattooed on the back of $his neck.">>
		<<else>>
			<<set $activeSlave.origin = "$He was one of your groupies during your celebrity career.">>
			<<set $activeSlave.custom.tattoo = "$He has your signature, surrounded by hearts, tattooed on the back of $his neck. $He got the tattoo when $he was still free.">>
		<</if>>
	<<elseif $PC.career == "wealth">>
		<<if $activeSlave.mother == -1 && $activeSlave.father == -1>>
			<<set $activeSlave.origin = "You bet your body on a sure hand, only to lose. It turns out you could fuck yourself, and not only that, get yourself pregnant.">>
			<<set $activeSlave.custom.tattoo = "$He has a small tattoo of a losing hand of cards on the nape of $his neck.">>
		<<elseif $activeSlave.mother == -1>>
			<<set $activeSlave.origin = "You bet your body on a sure hand, only to lose. Nine months later, your $daughter was born.">>
			<<set $activeSlave.custom.tattoo = "$He has a small tattoo of a losing hand of cards on the nape of $his neck.">>
		<<elseif $activeSlave.father == -1>>
			<<set $activeSlave.origin = "You won a sexual fling with $his mother after winning at cards, a gamble that ultimately burdened you.">>
			<<set $activeSlave.custom.tattoo = "$He has a small tattoo of a poor hand of cards on the nape of $his neck.">>
		<<else>>
			<<set $activeSlave.origin = "You won $him at cards, a memento from your life as one of the idle rich before you became an arcology owner.">>
			<<set $activeSlave.custom.tattoo = "$He has a small tattoo of a winning hand of cards on the nape of $his neck.">>
		<</if>>
	<<elseif $PC.career == "BlackHat">>
		<<if $activeSlave.mother == -1 && $activeSlave.father == -1>>
			<<set $activeSlave.origin = "$He was the result of a night of hard celebration after a big score under the glow of monitors and the calming hum of 750 RPM fans. It took quite a bit of alcohol to come to terms with drunkenly knocking yourself up.">>
			<<set $activeSlave.custom.tattoo = "$He has your former digital calling card tattooed on $his neck.">>
		<<elseif $activeSlave.mother == -1>>
			<<set $activeSlave.origin = "$He was the result of an intruder brute forcing your firewall, overloading your pleasure sensors, and allowing a corrupted packet to slip by. With a quick wipe of your RAM and cache with some powerful liquor, you have no idea who planted $him in your womb.">>
			<<set $activeSlave.custom.tattoo = "$He has your former digital calling card tattooed on $his neck.">>
		<<elseif $activeSlave.father == -1>>
			<<set $activeSlave.origin = "$He was born out of a trade for secure data access. Nine months later, your $daughter was born.">>
			<<set $activeSlave.custom.tattoo = "$He has your former digital calling card tattooed on $his neck.">>
		<<else>>
			<<set $activeSlave.origin = "$He was a case officer you captured after going dark.">>
			<<set $activeSlave.custom.tattoo = "$He has your former digital calling card tattooed on $his neck.">>
		<</if>>
	<<else>>
		<<set $activeSlave.origin = "You won $him at cards, a memento from your life as one of the idle rich before you became an arcology owner.">>
		<<set $activeSlave.custom.tattoo = "$He has the silhouette of an arcology tattooed on the nape of $his neck.">>
	<</if>>
	<<if $activeSlave.fetish == "mindbroken">>
		<<if !isAmputee($activeSlave)>>
			<<set $activeSlave.origin = "You brought $him into the arcology mindbroken, little more than a walking collection of fuckable holes.">>
		<<else>>
			<<set $activeSlave.origin = "You brought $him into the arcology mindbroken, little more than a human onahole.">>
		<</if>>
	<</if>>
<</if>>

<h2>You are customizing this slave:</h2> <<include "Long Slave Description">>

<div class="tabbar">
	<button class="tablinks" onclick="App.UI.tabbar.openTab(event, 'Overview')" id="tab Overview">Overview</button>
	<button class="tablinks" onclick="App.UI.tabbar.openTab(event, 'Physical')" id="tab Physical">Physical</button>
	<button class="tablinks" onclick="App.UI.tabbar.openTab(event, 'Mental')" id="tab Mental">Mental</button>
	<button class="tablinks" onclick="App.UI.tabbar.openTab(event, 'Skills')" id="tab Skills">Skills</button>
	<button class="tablinks" onclick="App.UI.tabbar.openTab(event, 'Family', App.StartingGirls.uncommittedFamilyTree(V.activeSlave))" id="tab Family">Family</button>
	<button class="tablinks" onclick="App.UI.tabbar.openTab(event, 'Customization')" id="tab Customization">Customization</button>
	<<if $cash >= _slaveCost>>
		<button class="tablinks" onclick="App.UI.tabbar.openTab(event, 'assignRemove')" id="tab assignRemove">Finalize</button>
	<<else>>
		<button class="tablinks, show-warning" onclick="App.UI.tabbar.openTab(event, 'assignRemove')" id="tab assignRemove">Finalize</button>
	<</if>>
</div>

<<setLocalPronouns $activeSlave>>

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

	<<set _options = new App.UI.OptionsGroup()>>

	<<set _option = _options.addOption("Devotion", "devotion", $activeSlave).showTextBox()
	.addRange(-100, -95, "<", "Utterly hateful")
	.addRange(-70, -50, "<", "Hateful")
	.addRange(-35, -20, "<", "Resistant")
	.addRange(0, 20, "<", "Ambivalent")
	.addRange(35, 50, "<", "Accepting")
	.addRange(70, 95, "<", "Devoted")
	.addRange(100, 95, ">=", "Worshipful")>>
	<<if $activeSlave.devotion > 20>>
		<<set _comment = "Starting slaves incur">>
		<<if $activeSlave.devotion > 50>>
			<<run _comment += " severe cost penalty at very high">>
		<<else>>
			<<run _comment += " an additional cost penalty at high">>
		<</if>>
		<<run _comment += " levels of devotion. This slave's">>
		<<if $activeSlave.actualAge >= 25>>
			<<if $activeSlave.actualAge > 35>>advanced	<</if>>
			<<run _comment += " age decreases the penalty.">>
		<<else>>
			<<run _comment += " young age requires paying the full penalty.">>
		<</if>>
		<<run _option.addComment(`<span class=warning>${_comment}</span>`)>>
	<</if>>

	<<run _options.addOption("Trust", "trust", $activeSlave).showTextBox()
	.addRange(-100, -95, "<", "Abjectly terrified")
	.addRange(-70, -50, "<", "Terrified")
	.addRange(-35, -20, "<", "Frightened")
	.addRange(0, 20, "<", "Fearful")
	.addRange(35, 50, "<", "Careful")
	.addRange(70, 95, "<", "Trusting")
	.addRange(100, 95, ">=", "Absolute trust")>>

	<<run _options.addOption("Legal status", "indenture", $activeSlave)
	.addValue("Slave", -1, () => V.activeSlave.indentureRestrictions = 0)
	.addRange(52, 0, ">=", "Indentured Servant")>>
	<<if $activeSlave.indenture > -1>>
		<<run _options.addOption("Remaining weeeks", "indenture", $activeSlave).showTextBox()>>

		<<run _options.addOption("Indenture restrictions", "indentureRestrictions", $activeSlave)
		.addValueList([["None", 0], ["Protective", 1], ["Restrictive", 2]])>>
	<</if>>

	<<run _options.addOption("Age", "actualAge", $activeSlave).showTextBox()
	.customButton("Resync characteristics to age", () => resyncSlaveToAge(V.activeSlave))
	.customButton("Resync only height to age", () => V.activeSlave.height = Height.random(V.activeSlave))
	.addComment("It is recommended to resync if you change age significantly")>>

	<<run _options.addOption("Birth week", "birthWeek", $activeSlave).showTextBox()>>

	<<run _options.addOption("Genes", "genes", $activeSlave)
	.addValue("XX (Female)", "XX", () => {
		V.activeSlave.dick = 0;
		V.activeSlave.balls = 0;
		V.activeSlave.clit = 0;
		V.activeSlave.pubertyXY = 0;
		V.activeSlave.pubertyAgeXY = V.potencyAge;
		V.activeSlave.pubertyXX = (V.activeSlave.pubertyAgeXX < V.activeSlave.actualAge ? 1 : 0);
		V.activeSlave.vagina = Math.max(0, V.activeSlave.vagina);
		V.activeSlave.boobs = Math.max(500, V.activeSlave.boobs);
		V.activeSlave.balls = 0;
		V.activeSlave.scrotum = 0;
		V.activeSlave.prostate = 0;
		V.activeSlave.shoulders = either(-2,-1,0);
		V.activeSlave.hips = either(-2,-1,0);
	}).addValue("XY (Male)", "XY", () => {
		V.activeSlave.dick = 3;
		V.activeSlave.vagina = -1;
		WombFlush(V.activeSlave);
		V.activeSlave.belly = 0;
		V.activeSlave.bellyPreg = 0;
		V.activeSlave.pubertyXY = (V.activeSlave.pubertyAgeXY < V.activeSlave.actualAge ? 1 : 0);
		V.activeSlave.pubertyXX = 0;
		V.activeSlave.pubertyAgeXX = V.fertilityAge;
		V.activeSlave.ovaries = 0;
		V.activeSlave.boobs = 0;
		V.activeSlave.balls = 3;
		V.activeSlave.scrotum = 3;
		V.activeSlave.prostate = 1;
		V.activeSlave.shoulders = either(0,1,2);
		V.activeSlave.hips = either(0,1,2);
	})>>

	<<run _options.addOption("Condition", "condition", $activeSlave.health)
	.addValueList([["Unhealthy", -40], ["Healthy", 0], ["Very healthy", 40], ["Extremely healthy", 80]])>>

	<<set _option = _options.addOption("Prestige", "prestige", $activeSlave)
	.addValueList([["None", 0], ["Locally known", 1], ["Regionally famous", 2], ["World renowned", 3]])>>
	<<if $activeSlave.prestige > 0>>
		<<set _comment = "Starting slaves incur an extreme cost penalty for prestige. This slave's">>
		<<if $activeSlave.actualAge >= 25>>
			<<if $activeSlave.actualAge > 35>>
				<<set _comment += " advanced">>
			<</if>>
			<<set _comment += " age decreases the penalty.">>
		<<else>>
			<<set _comment += " young age requires paying the full penalty.">>
		<</if>>
		<<run _option.addComment(`<span class=warning>${_comment}</span>`)>>
	<</if>>

	<<run _options.addOption("$His nationality is", "nationality", $activeSlave).showTextBox()>>

	<<if $seeRace == 1>>
		<<run _options.addOption("$His ethnicity is", "race", $activeSlave).showTextBox()
		.addValueList([["White", "white"], ["Asian", "asian"], ["Latina", "latina"], ["Middle Eastern", "middle eastern"],
			["Black", "black"], ["Semetic", "semetic"], ["Southern European", "southern european"], ["Indo-Aryan", "indo-aryan"],
			["Amerindian", "amerindian"], ["Pacific Islander", "pacific islander"], ["Malay", "malay"], ["Mixed Race", "mixed race"]])>>
	<</if>>

	<<run _options.addOption("$His skin color is", "origSkin", $activeSlave).showTextBox()
	.addValueList([["Pure White", "pure white"], ["Ivory", "ivory"], ["White", "white"], ["Extremely Pale", "extremely pale"],
			["Very Pale", "very pale"], ["Pale", "pale"], ["Extremely Fair", "extremely fair"], ["Very Fair", "very fair"],
			["Fair", "fair"], ["Light", "light"], ["Light Olive", "light olive"], ["Tan", "tan"], ["Olive", "olive"], ["Bronze", "bronze"],
			["Dark Olive", "dark olive"], ["Dark", "dark"], ["Light Beige", "light beige"], ["Beige", "beige"],
			["Dark Beige", "dark beige"], ["Light Brown", "light brown"], ["Brown", "brown"], ["Dark Brown", "dark brown"],
			["Black", "black"], ["Ebony", "ebony"], ["Pure Black", "pure black"]])>>

	<<run _options.addOption("Intelligence", "intelligence", $activeSlave)
	.addValueList([["Moronic", -100], ["Very stupid", -60], ["Stupid", -30], ["Average", 0], ["Smart", 30], ["Very smart", 60], ["Brilliant", 100]])>>

	<<run _options.addOption("Education", "intelligenceImplant", $activeSlave)
	.addValueList([["Uneducated", 0], ["Educated", 15], ["Well educated", 30]])>>

	<<includeDOM _options.render()>>
	</div>
</div>

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

	<<set _options = new App.UI.OptionsGroup()>>

	<<run _options.addOption("Height: <<= heightToEitherUnit($activeSlave.height)>>", "height", $activeSlave).showTextBox("cm")
	.addRange(145, 150, "<", "Petite")
	.addRange(155, 160, "<", "Short")
	.addRange(165, 170, "<", "Average")
	.addRange(180, 185, "<", "Tall")
	.addRange(190, 185, ">=", "Very tall")>>
	<<set _option = _options.addOption(`Average height for a ${$activeSlave.actualAge} year old """is ${heightToEitherUnit(Math.round(Height.mean(V.activeSlave)))}"""`)
	.customButton("Make average", () => resyncSlaveHight($activeSlave))>>
	<<if $cheatMode === 1>>
		<<run _option.customButton("Make dwarf", () => V.activeSlave.height = Height.random(V.activeSlave, {limitMult:	[-4, -1], spread: 0.15}))
		.customButton("Make giant", () => V.activeSlave.height = Height.random(V.activeSlave, {limitMult:	[3, 10], spread: 0.15}))>>
	<</if>>

	<<run _options.addOption("Weight", "weight", $activeSlave)
	.addRange(-100, -95, "<", "Emaciated")
	.addRange(-50, -30, "<", "Skinny")
	.addRange(-20, -10, "<", "Thin")
	.addRange(0, 10, "<", "Average")
	.addRange(20, 30, "<", "Plush")
	.addRange(50, 95, "<", "Chubby")
	.addRange(100, 130, "<", "Fat")
	.addRange(140, 160, "<", "Obese")
	.addRange(180, 190, "<", "Super obese")
	.addRange(200, 190, ">=", "Dangerously obese")>>

	<<run _options.addOption("Muscles", "muscles", $activeSlave)
	.addRange(-100, -96, "<", "Frail")
	.addRange(-66, -51, "<", "Very weak")
	.addRange(-41, -6, "<", "Weak")
	.addRange(0, 5, "<", "Normal")
	.addRange(20, 30, "<", "Toned")
	.addRange(40, 50, "<", "Well built")
	.addRange(65, 95, "<", "Quite muscular")
	.addRange(100, 95, ">=", "Ripped")>>

	<<run _options.addOption("Waist", "waist", $activeSlave)
	.addRange(-100, -95, "<", "	Absurd")
	.addRange(-55, -40, "<", "Hourglass")
	.addRange(-25, -15, "<", "Feminine")
	.addRange(0, 10, "<", "Average")
	.addRange(15, 40, "<", "Unattractive")
	.addRange(55, 95, "<", "Ugly")
	.addRange(100, 10, ">=", "Masculine")>>

	<<set _option = _options.addOption("Facial appearance", "faceShape", $activeSlave)
	.addValue("Normal", "normal")>>
	<<if $seeDicks !== 0>>
		<<run _option.addValue("Masculine", "masculine")>>
	<</if>>
	<<run _option.addValueList([["Androgynous", "androgynous"], ["Cute", "cute"], ["Sensual", "sensual"], ["Exotic", "exotic"]])>>

	<<run _options.addOption("Facial attractiveness", "face", $activeSlave)
	.addRange(-100, -95, "<", "Very ugly")
	.addRange(-55, -40, "<", "Ugly")
	.addRange(-15, -10, "<", "Unattractive")
	.addRange(0, 10, "<", "Average")
	.addRange(15, 40, "<", "Attractive")
	.addRange(55, 95, "<", "Beautiful")
	.addRange(100, 95, ">=", "Very beautiful")>>

	<<set _option = _options.addOption("Lips", "lips", $activeSlave)
	.addRange(5, 10, "<", "Thin")
	.addRange(15, 20, "<", "Normal")
	.addRange(25, 40, "<", "Pretty")
	.addRange(55, 70, "<", "Plush")>>
	<<if $seeExtreme == 1>>
		<<run _option.addRange(85, 95, "<", "Huge")
			.addRange(100, 95, ">=", "Facepussy")>>
	<<else>>
		<<run _option.addRange(85, 70, ">=", "Huge")>>
	<</if>>

	<<run _options.addOption("Voice", "voice", $activeSlave)
	.addValueList([["Mute", 0], ["Deep", 1], ["Normal", 2], ["High", 3]])>>

	<<if $activeSlave.voice !== 0>>
		<<run _options.addOption("$language", "accent", $activeSlave)
		.addValueList([["Unaccented", 0], [`Pretty ${aNational($activeSlave.nationality)} accent`, 1],
		[`Thick ${aNational($activeSlave.nationality)} accent`, 2], ["Not fluent", 3]])>>
	<</if>>

	<<set _option = _options.addOption("Teeth", "teeth", $activeSlave)
	.addValueList([["Croooked", "crooked"], ["Gapped", "gapped"], ["Braces", "straightening braces"]])>>
	<<if $activeSlave.physicalAge >= 12>>
		<<if $activeSlave.teeth == "baby" || $activeSlave.teeth == "mixed">>
			<<set $activeSlave.teeth = "normal">>
		<</if>>
		<<run _option.addValue("Straight", "normal")>>
	<<elseif $activeSlave.physicalAge >= 6>>
		<<if $activeSlave.teeth == "baby" || $activeSlave.teeth == "normal" || $activeSlave.teeth == "">>
			<<set $activeSlave.teeth = "mixed">>
		<</if>>
		<<run _option.addValue("Mixed adult & child", "mixed")>>
	<<else>>
		<<if $activeSlave.teeth == "mixed" || $activeSlave.teeth == "normal" || $activeSlave.teeth == "">>
			<<set $activeSlave.teeth = "mixed">>
		<</if>>
		<<run _option.addValue("Baby", "baby")>>
	<</if>>

	<<run _options.addOption("Breasts", "boobs", $activeSlave).showTextBox("CCs")
	.addRange(200, 200, "<=", "Flat (AA-cup)")
	.addRange(300, 300, "<=", "Small (A-cup)")
	.addRange(400, 400, "<=", "Medium (B-cup)")
	.addRange(500, 500, "<=", "Healthy (C-cup)")
	.addRange(800, 800, "<=", "Large (DD-cup)")
	.addRange(1200, 1200, "<=", "Very Large (G-cup)")
	.addRange(2050, 2050, "<=", "Huge (K-cup)")
	.addRange(3950, 3950, "<=", "Massive (Q-cup)")
	.addRange(6000, 6000, "<=", "Monstrous")
	.addRange(8000, 6000, ">", "Science Experiment")>>

	<<run _options.addOption("Lactation", "lactation", $activeSlave)
	.addValue("Artificial", 2, () => V.activeSlave.lactationDuration = 2)
	.addValue("Natural", 1, () => V.activeSlave.lactationDuration = 2)
	.addValue("None", 0)>>

	<<run _options.addOption("Nipples", "nipples", $activeSlave)
	.addValueList([["Tiny", "tiny"], ["Cute", "cute"], ["Puffy", "puffy"], ["Inverted", "inverted"], ["Huge", "huge"]])>>

	<<run _options.addOption("Areolae", "areolae", $activeSlave)
	.addValueList([["Normal", 0], ["Large", 1], ["Wide", 2], ["Huge", 3], ["Massive", 4]])>>

	<<run _options.addOption("Shoulders", "shoulders", $activeSlave)
	.addValueList([["Very narrow", -2], ["Narrow", -1], ["Feminine", 0], ["Broad", 1], ["Very broad", 2]])>>

	<<run _options.addOption("Hips", "hips", $activeSlave)
	.addValueList([["Very narrow", -2], ["Narrow", -1], ["Normal", 0], ["Broad", 1], ["Very broad", 2]])>>

	<<run _options.addOption("Butt", "butt", $activeSlave)
	.addValueList([["Flat", 0], ["Small", 1], ["Plumb", 2], ["Big", 3], ["Huge", 4], ["Enormous", 5], ["Gigantic", 6], ["Massive", 7]])>>

	<<run _options.addOption("Anus", "anus", $activeSlave)
	.addValueList([["Virgin", 0], ["Normal", 1], ["Veteran", 2], ["Gaping", 3]])>>

	<<run _options.addOption("Vagina", "vagina", $activeSlave)
	.addValue("No vagina", -1, () => {
		V.activeSlave.preg = 0;
		WombFlush(V.activeSlave);
		V.activeSlave.belly = 0;
		V.activeSlave.bellyPreg = 0;
		V.activeSlave.pubertyXX = 0;
		V.activeSlave.pubertyAgeXX = V.fertilityAge;
		V.activeSlave.ovaries = 0;
	}).addValue("Virgin", 0, () => {
		V.activeSlave.preg = -1;
		V.activeSlave.belly = 0;
		V.activeSlave.bellyPreg = 0;
		V.activeSlave.ovaries = 1
	}).addValue("Normal", 1, () => {
		V.activeSlave.preg = -1;
		V.activeSlave.belly = 0;
		V.activeSlave.bellyPreg = 0;
		V.activeSlave.ovaries = 1
	}).addValue("Veteran", 2, () => {
		V.activeSlave.preg = -1;
		V.activeSlave.belly = 0;
		V.activeSlave.bellyPreg = 0;
		V.activeSlave.ovaries = 1
	}).addValue("Gaping", 3, () => {
		V.activeSlave.preg = -1;
		V.activeSlave.belly = 0;
		V.activeSlave.bellyPreg = 0;
		V.activeSlave.ovaries = 1
	})>>

	<<if $activeSlave.vagina > -1>>
		<<if $activeSlave.dick === 0>>
			<<run _options.addOption("Clit", "clit", $activeSlave)
			.addValueList([["Normal", 0], ["Large", 1], ["Huge", 2]])>>
		<</if>>

		<<run _options.addOption("Labia", "labia", $activeSlave)
		.addValueList([["Normal", 0], ["Large", 1], ["Huge", 2]])>>

		<<run _options.addOption("Vaginal wetness", "vaginaLube", $activeSlave)
		.addValueList([["Dry", 0], ["Normal", 1], ["Excessive", 2]])>>

		<<if $seePreg !== 0>>
			/* This is only shown if slave has vagina */
			<<run _options.addOption("Puberty", "pubertyXX", $activeSlave)
			.addValue("Prepubescent", 0, () => {
				V.activeSlave.pubertyAgeXX = V.fertilityAge;
				V.activeSlave.belly = 0;
				V.activeSlave.bellyPreg = 0;
				WombFlush(V.activeSlave)
			}).addValue("Postpubescent", 1)>>

			<<run _options.addOption("Age of puberty", "pubertyAgeXX", $activeSlave).showTextBox()>>

			<<if $activeSlave.pubertyXX === 1>>
				<<set _option = _options.addOption("Pregnancy", "preg", $activeSlave)>>
				<<if $seeHyperPreg === 1 && $cheatMode === 1>>
					<<run _option.addValue("Bursting at the seams", 43, () => {
						V.activeSlave.pregType = 150;
						V.activeSlave.pregWeek = 43;
						V.activeSlave.pregKnown = 1;
						V.activeSlave.belly = 2700000;
						V.activeSlave.bellyPreg = 2700000;
						V.activeSlave.pubertyXX = 1;
					})>>
					<<if $activeSlave.preg === 43>>
						<<run _option.addComment("Extreme hyper pregnancy!")>>
					<</if>>
				<</if>>
				<<run _option.addValue("Completely Filled", 42, () => {
					V.activeSlave.pregType = 8;
					V.activeSlave.pregWeek = 42;
					V.activeSlave.pregKnown = 1;
					V.activeSlave.belly = 120000;
					V.activeSlave.bellyPreg = 120000;
					V.activeSlave.pubertyXX = 1;
				}).addValue("Ready to drop", 40, () => {
					V.activeSlave.pregType = 1;
					V.activeSlave.pregWeek = 40;
					V.activeSlave.pregKnown = 1;
					V.activeSlave.belly = 15000;
					V.activeSlave.bellyPreg = 15000;
					V.activeSlave.pubertyXX = 1;
				}).addValue("Advanced", 34, () => {
					V.activeSlave.pregType = 1;
					V.activeSlave.pregWeek = 34;
					V.activeSlave.pregKnown = 1;
					V.activeSlave.belly = 10000;
					V.activeSlave.bellyPreg = 10000;
					V.activeSlave.pubertyXX = 1;
				}).addValue("Showing", 27, () => {
					V.activeSlave.pregType = 1;
					V.activeSlave.pregWeek = 27;
					V.activeSlave.pregKnown = 1;
					V.activeSlave.belly = 5000;
					V.activeSlave.bellyPreg = 5000;
					V.activeSlave.pubertyXX = 1;
				}).addValue("Early", 12, () => {
					V.activeSlave.pregType = 1;
					V.activeSlave.pregWeek = 12;
					V.activeSlave.pregKnown = 1;
					V.activeSlave.belly = 100;
					V.activeSlave.bellyPreg = 100;
					V.activeSlave.pubertyXX = 1;
				}).addValue("None", 0, () => {
					V.activeSlave.pregType = 0;
					V.activeSlave.belly = 0;
					V.activeSlave.bellyPreg = 0;
					V.activeSlave.pregSource = 0;
					V.activeSlave.pregWeek = 0;
					V.activeSlave.pregKnown = 0;
				}).addValue("Barren", -2, () => {
					V.activeSlave.pregType = 0;
					V.activeSlave.belly = 0;
					V.activeSlave.bellyPreg = 0;
					V.activeSlave.pregSource = 0;
					V.activeSlave.pregWeek = 0;
					V.activeSlave.pregKnown = 0;
				})>>
			<</if>>

			<<if $PC.dick > 0 && $activeSlave.preg > 0>>
				<<run _options.addOption("Father of child", "pregSource", $activeSlave)
				.addValueList([["My child", -1], ["Not me", 0]])>>
			<</if>>
		<</if>>
	<</if>>

	<<if $seeDicks !== 0 || $makeDicks === 1>>
		<<run _options.addOption("Penis", "dick", $activeSlave)
		.addValue("None", 0, () => {
			V.activeSlave.balls = 0;
			V.activeSlave.pubertyXY = 0;
			V.activeSlave.pubertyAgeXY = V.potencyAge;
		}).addValue("Tiny", 1, () => {V.activeSlave.clit = 0})
		.addValue("Small", 2, () => {V.activeSlave.clit = 0})
		.addValue("Normal", 3, () => {V.activeSlave.clit = 0})
		.addValue("Large", 4, () => {V.activeSlave.clit = 0})
		.addValue("Massive", 5, () => {V.activeSlave.clit = 0})>>

		<<if $activeSlave.dick > 0>>
			<<set _option = _options.addOption("Foreskin", "foreskin", $activeSlave)>>
			<<if $seeCircumcision === 1>>
				<<run _option.addValue("Circumcised", 0)>>
			<<elseif $activeSlave.foreskin === 0>>
				<<set $activeSlave.foreskin = 3>>
			<</if>>
			<<run _option.addValueList([["Tiny", 1], ["Small", 2], ["Normal", 3], ["Large", 4], ["Massive", 5]])>>
		<</if>>

		<<run _options.addOption("Testicles", "balls", $activeSlave)
		.addValue("None", 0, () => {
			V.activeSlave.pubertyXY = 0;
			V.activeSlave.pubertyAgeXY = V.potencyAge;
			V.activeSlave.scrotum = 0;
		}).addValueList([["Vestigial", 1], ["Small", 2], ["Normal", 3], ["Large", 4], ["Massive", 5]])>>

		<<run _options.addOption("Age of Male Puberty", "pubertyAgeXY", $activeSlave).showTextBox()>>

		<<if $activeSlave.balls > 0>>
			<<run _options.addOption("Ballsack", "scrotum", $activeSlave)
			.addValueList([["None", 0], ["Tiny", 1], ["Small", 2], ["Normal", 3], ["Large", 4], ["Massive", 5]])>>

			<<run _options.addOption("Male Puberty", "pubertyXY", $activeSlave)
			.addValue("Prepubescent", 0, () => {V.activeSlave.pubertyAgeXY = V.potencyAge})
			.addValue("Postpubescent", 1)>>
		<</if>>
	<</if>>

	<<run _options.addOption("Prostate", "prostate", $activeSlave)
	.addValueList([["No prostate", 0], ["Has a prostate", 1]])>>

	<<set _optionLeft = _options.addOption("Left eye", "vision", $activeSlave.eye.left)>>
	<<set _optionRight = _options.addOption("Right eye", "vision", $activeSlave.eye.right)>>
	<<if $seeExtreme === 1>>
		<<run _optionLeft.addValue("Blind", 0),  _optionRight.addValue("Blind", 0)>>
	<<else>>
		<<if $activeSlave.eye.left.vision === 0>>
			<<set $activeSlave.eye.left.vision = 2>>
		<</if>>
		<<if $activeSlave.eye.right.vision === 0>>
			<<set $activeSlave.eye.right.vision = 2>>
		<</if>>
	<</if>>
	<<run _optionLeft.addValueList([["Nearsighted", 1], ["Normal", 2]]), _optionRight.addValueList([["Nearsighted", 1], ["Normal", 2]])>>

	<<set _option = _options.addOption("Hearing", "hears", $activeSlave)>>
	<<if $seeExtreme == 1>>
		<<run _option.addValue("Deaf", -2)>>
	<<elseif $activeSlave.hears === 0>>
		<<set $activeSlave.hears = 2>>
	<</if>>
	<<run _option.addValueList([["Hard of hearing", -1], ["Normal", 0]])>>

	<<if $seeExtreme == 1>>
		<<run _options.addOption("Smell ability", "smells", $activeSlave)
		.addValueList([["Normal", 0], ["None", -1]])>>

		<<run _options.addOption("Taste ability", "tastes", $activeSlave)
		.addValueList([["Normal", 0], ["None", -1]])>>

		<<set _LA = hasLeftArm($activeSlave)>>
		<<run _options.addOption("Left arm", "LA", State.temporary)
		.addValue("Healthy", true, () => V.activeSlave.arm.left = new App.Entity.LimbState())
		.addValue("Amputated", false, () => V.activeSlave.arm.left = null)>>

		<<set _RA = hasRightArm($activeSlave)>>
		<<run _options.addOption("Right arm", "RA", State.temporary)
		.addValue("Healthy", true, () => V.activeSlave.arm.right = new App.Entity.LimbState())
		.addValue("Amputated", false, () => V.activeSlave.arm.right = null)>>

		<<set _LL = hasLeftLeg($activeSlave)>>
		<<run _options.addOption("Left leg", "LL", State.temporary)
		.addValue("Healthy", true, () => V.activeSlave.leg.left = new App.Entity.LimbState())
		.addValue("Amputated", false, () => V.activeSlave.leg.left = null)>>

		<<set _RL = hasRightLeg($activeSlave)>>
		<<run _options.addOption("Right leg", "RL", State.temporary)
		.addValue("Healthy", true, () => V.activeSlave.leg.right = new App.Entity.LimbState())
		.addValue("Amputated", false, () => V.activeSlave.leg.right = null)>>
	<</if>>

	<<includeDOM _options.render()>>
	</div>
</div>

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

	<<set _options = new App.UI.OptionsGroup()>>
	<<if $activeSlave.fetishKnown === 0>>
		<<run _options.addOption("Fetish", "fetishKnown", $activeSlave)
		.addValueList([["Unknown", 0], ["Known", 1]])>>
	<<else>>
		<<set _option = _options.addOption("Fetish", "fetish", $activeSlave)
		.addValue("Unknown", "", () => {
			V.activeSlave.fetish = either("boobs", "buttslut", "cumslut", "dom", "humiliation", "masochist", "pregnancy", "sadist",
				"submissive", "none", "none", "none", "none", "none", "none", "none", "none", "none", "none");
			V.activeSlave.fetishKnown = 0
		}).addValueList([["None", "none"], ["Sub", "submissive"], ["Dom", "dom"], ["Cumslut", "cumslut"], ["Humilation", "humilation"],
		["Buttslut", "buttslut"], ["Breasts", "breasts"], ["Pregnancy", "pregnancy"], ["Sadism", "sadism"], ["Masochism", "masochism"]])>>
		<<if $seeExtreme === 1>>
			<<run _option.addValue("Mindbroken", "mindbroken", () => {
				V.activeSlave.fetishStrength = 10;
				V.activeSlave.sexualFlaw = "none";
				V.activeSlave.sexualQuirk = "none";
				V.activeSlave.behavioralFlaw = "none";
				V.activeSlave.behavioralQuirk = "none";
			})>>
		<</if>>

		<<if $activeSlave.fetish !== "none" && $activeSlave.fetish !== "mindbroken">>
			<<run _options.addOption("Fetish strength", "fetishStrength", $activeSlave)
			.addRange(15, 30, "<=", "Very Low")
			.addRange(45, 60, "<=", "Low")
			.addRange(75, 85, "<=", "Normal")
			.addRange(90, 95, "<=", "High")
			.addRange(100, 95, ">", "Extremely High")>>
		<</if>>
	<</if>>

	<<run _options.addOption("Sexuality", "attrKnown", $activeSlave)
	.addValue("Unknown", 0).addValue("Known", 1, () => {
		V.activeSlave.attrXX = random(0, 100);
		V.activeSlave.attrXY = random(0, 100);
		V.activeSlave.energy = random(1, 90);
	})>>
	<<if $activeSlave.attrKnown === 1>>
		<<run _options.addOption("Attraction to men", "attrXY", $activeSlave)
		.addRange(0, 5, "<=", "Disgusted").off()
		.addRange(10, 15, "<=", "Turned off").off()
		.addRange(25, 35, "<=", "Not attracted").off()
		.addRange(50, 65, "<=", "Indifferent").neutral()
		.addRange(75, 85, "<=", "Attracted").on()
		.addRange(90, 95, "<=", "Aroused").on()
		.addRange(100, 95, ">", "Passionate").on()>>
		<<run _options.addOption("Attraction to women", "attrXX", $activeSlave)
		.addRange(0, 5, "<=", "Disgusted").off()
		.addRange(10, 15, "<=", "Turned off").off()
		.addRange(25, 35, "<=", "Not attracted").off()
		.addRange(50, 65, "<=", "Indifferent").neutral()
		.addRange(75, 85, "<=", "Attracted").on()
		.addRange(90, 95, "<=", "Aroused").on()
		.addRange(100, 95, ">", "Passionate").on()>>

		<<run _options.addOption("Sex drive", "energy", $activeSlave)
		.addRange(5, 10, "<=", "Frigid").off()
		.addRange(25, 40, "<=", "Poor").off()
		.addRange(45, 60, "<=", "Average").neutral()
		.addRange(65, 80, "<=", "Powerful").on()
		.addRange(85, 99, "<=", "Sex addict").on()
		.addRange(100, 99, ">", "Nympho").on()>>
	<</if>>

	<<if $activeSlave.fetish !== "mindbroken">>
		<<run _options.addOption("Behavioral Flaw", "behavioralFlaw", $activeSlave)
		.addValueList([["None", "none"], ["Arrogant", "arrogant"], ["Bitchy", "bitchy"], ["Odd", "odd"], ["Hates Men", "hates men"],
		["Hates Women", "hates women"], ["Anorexic", "anorexic"], ["Gluttonous", "gluttonous"], ["Devout", "devout"],
		["Liberated", "liberated"]])>>

		<<run _options.addOption("Behavioral Quirk", "behavioralQuirk", $activeSlave)
		.addValueList([["None", "none"], ["Confident", "confident"], ["Cutting", "cutting"], ["Funny", "funny"],
		["Adores Men", "adores men"], ["Adores Women", "adores women"], ["Insecure", "insecure"], ["Fitness", "fitness"],
		["Sinful", "sinful"], ["Advocate", "advocate"]])>>

		<<run _options.addOption("Sexual Flaw", "sexualFlaw", $activeSlave)
		.addValueList([["None", "none"], ["Hates Oral", "hates oral"], ["Hates Anal", "hates anal"],
		["Hates Penetration", "hates penetration"], ["Repressed", "repressed"], ["Shamefast", "shamefast"], ["Apathetic", "apathetic"],
		["Crude", "crude"], ["Judgemental", "judgemental"], ["Sexually idealistic", "idealistic"]])>>

		<<run _options.addOption("Sexual Quirk", "sexualQuirk", $activeSlave)
		.addValueList([["None", "none"], ["Oral", "gagfuck queen"], ["Anal", "painal queen"], ["Penetration", "strugglefuck queen"],
		["Perverted", "perverted"], ["Tease", "tease"], ["Caring", "caring"], ["Unflinching", "unflinching"], ["Size queen", "size queen"],
		["Romantic", "romantic"]])>>
	<</if>>

	<<includeDOM _options.render()>>
	</div>
</div>

<div id="Skills" class="tabcontent">
	<div class="content">
	<<set _options = new App.UI.OptionsGroup()>>

	<<run _options.addOption("Oral sex", "oral", $activeSlave.skill)
	.addRange(0, 10, "<=", "Unskilled")
	.addRange(15, 30, "<=", "Basic")
	.addRange(35, 60, "<=", "Skilled")
	.addRange(65, 60, ">", "Expert")>>

	<<set _option = _options.addOption("Anal sex", "anal", $activeSlave.skill)>>
	<<if $activeSlave.anus === 0>>
		<<run _option.addComment("Anal virgins cannot be given anal skills.")>>
	<<else>>
		<<run _option.addRange(0, 10, "<=", "Unskilled")
		.addRange(15, 30, "<=", "Basic")
		.addRange(35, 60, "<=", "Skilled")
		.addRange(65, 60, ">", "Expert")>>
	<</if>>

	<<set _option = _options.addOption("Vaginal sex", "vaginal", $activeSlave.skill)>>
	<<if $activeSlave.vagina === 0>>
		<<run _option.addComment("Virgins cannot be given anal skills.")>>
	<<elseif $activeSlave.vagina === -1>>
		<<run _option.addComment("Must have a vagina to have vaginal skills.")>>
	<<else>>
		<<run _option.addRange(0, 10, "<=", "Unskilled")
		.addRange(15, 30, "<=", "Basic")
		.addRange(35, 60, "<=", "Skilled")
		.addRange(65, 60, ">", "Expert")>>
	<</if>>

	<<run _options.addOption("Prostitution", "whoring", $activeSlave.skill)
	.addRange(0, 10, "<=", "Unskilled")
	.addRange(15, 30, "<=", "Basic")
	.addRange(35, 60, "<=", "Skilled")
	.addRange(65, 60, ">", "Expert")>>

	<<run _options.addOption("Entertainment", "entertainment", $activeSlave.skill)
	.addRange(0, 10, "<=", "Unskilled")
	.addRange(15, 30, "<=", "Basic")
	.addRange(35, 60, "<=", "Skilled")
	.addRange(65, 60, ">", "Expert")>>

	<<run _options.addOption("Combat", "combat", $activeSlave.skill)
	.addValueList([["Unskilled", 0], ["Skilled", 1]])>>

	<<set _totalSkill = $activeSlave.skill.whoring + $activeSlave.skill.entertainment + $activeSlave.skill.vaginal
		+ $activeSlave.skill.anal + $activeSlave.skill.oral + ($activeSlave.skill.combat * 100)>>
	<<if _totalSkill > 200>>
		<<set _comment = "Starting slaves incur">>
		<<if _totalSkill > 400>>
			<<set _comment += " a severe cost penalty for being highly">>
		<<else>>
			<<set _comment += " an additional cost penalty for being">>
		<</if>>
		<<set _comment += " skilled. This slave's">>
		<<if $activeSlave.actualAge >= 25>>
			<<if $activeSlave.actualAge > 35>>
				<<set _comment += " advanced">>
			<</if>>
			<<set _comment += " age decreases the penalty.">>
		<<else>>
			<<set _comment += " young age requires paying the full penalty.">>
		<</if>>
		<<run _options.addOption("").addComment(`<span class="warning">${_comment}</span>`)>>
	<</if>>

	<<includeDOM _options.render()>>
	</div>
</div>

<div id="Family" class="tabcontent">
	<div class="content">
	<<editFamily>>
	</div>
</div>

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

	''Birth name:'' <<textbox "$activeSlave.birthName" $activeSlave.birthName "Starting Girls">>
	| ''Slave name:'' <<textbox "$activeSlave.slaveName" $activeSlave.slaveName "Starting Girls">>
	<br>''Birth surname:'' <<textbox "$activeSlave.birthSurname" $activeSlave.birthSurname "Starting Girls">>
	| ''Slave surname:'' <<textbox "$activeSlave.slaveSurname" $activeSlave.slaveSurname "Starting Girls">>
	<br>''Career:'' <span id="careerTextbox"><<textbox "$activeSlave.career" $activeSlave.career "Starting Girls">></span>
	<span id="careers"></span>
	<script>jQuery('#careers').empty().append(App.StartingGirls.career(V.activeSlave));</script>
	<br>''Hair color:'' <<textbox "$activeSlave.origHColor" $activeSlave.origHColor "Starting Girls">> //This will also set eyebrow, pubic, and underarm hair color.//
	<br>''Hair Style:'' <<textbox "$activeSlave.hStyle" $activeSlave.hStyle "Starting Girls">>
	<br>''Hair Length:'' <<textbox "$activeSlave.hLength" $activeSlave.hLength "Starting Girls">>
	<br>''Eye color:'' <<textbox "$activeSlave.eye.origColor" $activeSlave.eye.origColor "Starting Girls">>
	<<if def $pupil_temp>>
		<<set $activeSlave.eye.left.pupil = $pupil_temp, $activeSlave.eye.right.pupil = $pupil_temp, delete $pupil_temp>>
	<</if>>
	<br>''Pupil shape:'' <<textbox "$pupil_temp" $activeSlave.eye.left.pupil "Starting Girls">>
	<<if def $sclerae_temp>>
		<<set $activeSlave.eye.left.sclera = $sclerae_temp, $activeSlave.eye.right.sclera = $sclerae_temp, delete $sclerae_temp>>
	<</if>>
	<br>''Sclera color:'' <<textbox "$sclerae_temp" $activeSlave.eye.left.sclera "Starting Girls">>
	<br>Custom tattoo: <<textbox "$activeSlave.custom.tattoo" $activeSlave.custom.tattoo "Starting Girls">> //Use complete, capitalized and punctuated sentences.//
	<br>Custom origin story: <<textbox "$activeSlave.origin" $activeSlave.origin "Starting Girls">> //Use complete, capitalized and punctuated sentences.//
	<br>Origin override:
	<<if $originOveride == 0>>
		@@.red;Disabled@@ [[Enable|Starting Girls][$originOveride = 1]] //Enabling will keep your custom origin and tattoo from being overwritten by Starting Girls.//
	<<else>>
		@@.green;Enabled@@ [[Disable|Starting Girls][$originOveride = 0]] //Disabling will allow Starting Girls to overwrite origins and tattoos with its defaults.//
	<</if>>
	<<if $activeSlave.prestige>>
		<br>Reason for prestigiousness: <<textbox "$activeSlave.prestigeDesc" $activeSlave.prestigeDesc>> //Use complete, capitalized and punctuated sentences.//
	<</if>>
	<br>Custom description: <<textbox "$activeSlave.custom.desc" $activeSlave.custom.desc "Starting Girls">> //Use complete, capitalized and punctuated sentences.//
	<br>Custom label: <<textbox "$activeSlave.custom.label" $activeSlave.custom.label "Starting Girls">> //Use a short phrase.//

	<br><br>
	''Eyebrow hair style:'' $activeSlave.eyebrowHStyle.
	[[Natural|Starting Girls][$activeSlave.eyebrowHStyle = "natural"]]
	| [[Curved|Starting Girls][$activeSlave.eyebrowHStyle = "curved"]]
	| [[Elongated|Starting Girls][$activeSlave.eyebrowHStyle = "elongated"]]
	| [[High-Arched|Starting Girls][$activeSlave.eyebrowHStyle = "high-arched"]]
	| [[Rounded|Starting Girls][$activeSlave.eyebrowHStyle = "rounded"]]
	| [[Shaved|Starting Girls][$activeSlave.eyebrowHStyle = "shaved"]]
	| [[Shortened|Starting Girls][$activeSlave.eyebrowHStyle = "shortened"]]
	| [[Slanted Inwards|Starting Girls][$activeSlave.eyebrowHStyle = "slanted inwards"]]
	| [[Slanted Outwards|Starting Girls][$activeSlave.eyebrowHStyle = "slanted outwards"]]
	| [[Straight|Starting Girls][$activeSlave.eyebrowHStyle = "straight"]]

	<br>
	''Eyebrow hair maintenance:'' $activeSlave.eyebrowFullness
	[[Natural|Starting Girls][$activeSlave.eyebrowFullness = "natural"]]
	| [[Bushy|Starting Girls][$activeSlave.eyebrowFullness = "bushy"]]
	| [[Thick|Starting Girls][$activeSlave.eyebrowFullness = "thick"]]
	| [[Tapered|Starting Girls][$activeSlave.eyebrowFullness = "tapered"]]
	| [[Threaded|Starting Girls][$activeSlave.eyebrowFullness = "threaded"]]
	| [[Thin|Starting Girls][$activeSlave.eyebrowFullness = "thin"]]
	| [[Pencil-Thin|Starting Girls][$activeSlave.eyebrowFullness = "pencil-thin"]]

	<br><br>
	''Pubic hair maintenance:'' $activeSlave.pubicHStyle.
	[[Waxed|Starting Girls][$activeSlave.pubicHStyle = "waxed"]]
	| [[Naturally hairless|Starting Girls][$activeSlave.pubicHStyle = "hairless"]]
	| [[Landing strip|Starting Girls][$activeSlave.pubicHStyle = "in a strip"]]
	| [[Neat|Starting Girls][$activeSlave.pubicHStyle = "neat"]]
	| [[Bushy in the front|Starting Girls][$activeSlave.pubicHStyle = "bushy in the front and neat in the rear"]]
	| [[Bushy|Starting Girls][$activeSlave.pubicHStyle = "bushy"]]
	| [[Very Bushy|Starting Girls][$activeSlave.pubicHStyle = "very bushy"]]

	<br><br>
	''Under arm hair maintenance:'' $activeSlave.underArmHStyle.
	[[Waxed|Starting Girls][$activeSlave.underArmHStyle = "waxed"]]
	| [[Naturally hairless|Starting Girls][$activeSlave.underArmHStyle = "hairless"]]
	| [[Shaved|Starting Girls][$activeSlave.underArmHStyle = "shaved"]]
	| [[Neat|Starting Girls][$activeSlave.underArmHStyle = "neat"]]
	| [[Bushy|Starting Girls][$activeSlave.underArmHStyle = "bushy"]]

	<br><br>
	''Natural skin distinctiveness:'' $activeSlave.markings.
	[[None|Starting Girls][$activeSlave.markings = "none"]]
	| [[Freckles|Starting Girls][$activeSlave.markings = "freckles"]]
	| [[Heavily freckled|Starting Girls][$activeSlave.markings = "heavily freckled"]]
	| [[Beauty mark|Starting Girls][$activeSlave.markings = "beauty mark"]]
	| [[Birthmark|Starting Girls][$activeSlave.markings = "birthmark"]]

	<<if $activeSlave.anus > 0>>
		<br><br>
		''External appearance of anus:''
		<<if $activeSlave.analArea <= $activeSlave.anus>>
			Recently stretched to current size.
		<<elseif $activeSlave.analArea - $activeSlave.anus == 1>>
			Used to current size.
		<<else>>
			Very broad.
		<</if>>
		[[Recently stretched|Starting Girls][$activeSlave.analArea = $activeSlave.anus]]
		| [[Used to current size|Starting Girls][$activeSlave.analArea = $activeSlave.anus+1]]
		| [[Very broad|Starting Girls][$activeSlave.analArea = $activeSlave.anus+2]]
	<</if>>

	<br><br>
	''Natural breast shape:'' $activeSlave.boobShape.
	[[Normal|Starting Girls][$activeSlave.boobShape = "normal"]]
	| [[Perky|Starting Girls][$activeSlave.boobShape = "perky"]]
	| [[Torpedo-shaped|Starting Girls][$activeSlave.boobShape = "torpedo-shaped"]]
	| [[Wide-set|Starting Girls][$activeSlave.boobShape = "wide-set"]]
	| [[Downward-facing|Starting Girls][$activeSlave.boobShape = "downward-facing"]]
	| [[Saggy|Starting Girls][$activeSlave.boobShape = "saggy"]]

	<br><br>
	''Births:'' <<textbox "$activeSlave.counter.birthsTotal" $activeSlave.counter.birthsTotal "Starting Girls">> //How many times $he has already given birth, not necessarily while owned by you.//

	</div>
</div>

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

	<<if $cash >= _slaveCost>>
		<<if $activeSlave.prestige>>
			<<set $activeSlave.prestige = Math.clamp($activeSlave.prestige,0,3)>>
		<<else>>
			<<set $activeSlave.prestigeDesc = 0>>
		<</if>>
		<<set $activeSlave.actualAge = Number($activeSlave.actualAge) || 18>>
		<<set $activeSlave.visualAge = $activeSlave.actualAge>>
		<<set $activeSlave.physicalAge = $activeSlave.actualAge>>
		<<set $activeSlave.devotion = Number($activeSlave.devotion) || 0>>
		<<set $activeSlave.trust = Number($activeSlave.trust) || 0>>
		<<if $activeSlave.indenture >= 0>>
			<<set $activeSlave.indenture = Math.clamp($activeSlave.indenture, 26, 208) || 26>>
		<</if>>
		<<set $activeSlave.height = Math.clamp($activeSlave.height, 85, 274) || 140>>
		<<set $activeSlave.boobs = Math.clamp(Math.trunc($activeSlave.boobs/50)*50, 0, 50000) || 200>>
		<<if $PC.career != "engineer">>
			<div class="indent">
				<<link "Add this slave">>
					<<set $applyCareerBonus = 1>>
					<<goto "Commit Starting Girl">>
				<</link>>
				<span class="note">
					This will apply your @@.springgreen;career bonus@@ to her:
					<<if $PC.career == "capitalist">>
						one free level of @@.cyan;prostitution skill.@@
					<<elseif $PC.career == "mercenary">>
						@@.mediumaquamarine;+10 trust.@@
					<<elseif $PC.career == "slaver">>
						@@.hotpink;+10 devotion.@@
					<<elseif $PC.career == "medicine">>
						free @@.lime;basic implants.@@
					<<elseif $PC.career == "celebrity">>
						one free level of @@.cyan;entertainment skill.@@
					<<elseif $PC.career == "escort">>
						two free levels of @@.cyan;sex skills,@@ one free level of @@.cyan;prostitution skill,@@ and one free level of @@.cyan;entertainment skill.@@
					<<elseif $PC.career == "servant">>
						@@.mediumaquamarine;+10 trust@@ and @@.hotpink;+10 devotion.@@
					<<elseif $PC.career == "gang">>
						@@.green;+5 health@@ and one free level of @@.cyan;combat skill.@@
					<<elseif $PC.career == "wealth">>
						two free levels of @@.cyan;sex skills.@@
					<<elseif $PC.career == "BlackHat">>
						one free level of @@.cyan;intelligence.@@
					<<else>>
						@@.hotpink;+10 devotion,@@ one free level of @@.cyan;prostitution skill@@ and @@.cyan;entertainment skill,@@ and two free levels of @@.cyan;sex skills.@@
					<</if>>
				</span>
			</div>
		<</if>>
		<<set _text = $PC.career != "engineer" ? "Add this slave without career bonus" : "Add this slave">>
		<div class="indent">
			<<link _text>>
				<<set $applyCareerBonus = 0>>
				<<goto "Commit Starting Girl">>
			<</link>>
		</div>
	<</if>>

	</div>
</div>

src/npc/startingGirls/startingGirls.tw