code:
:: Wardeness Select [nobr]

<<set $nextButton = "Back", $nextLink = "Cellblock", $showEncyclopedia = 1, $encyclopedia = "Wardeness">>

<<if ($Wardeness != 0)>>
	''__@@.pink;$slaves[_i].slaveName@@__'' is serving as your Wardeness.

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

''Appoint a Wardeness from your devoted slaves:''
<<include "Slave Summary">>

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

repo_name: samhradh/fc


code:
:: Wardeness Workaround [silently]

<<if $Wardeness != 0>>
	<<set _ID = $Wardeness.ID, _SL = $slaves.length>>
	<<for _i = 0; _i < _SL; _i++>>
		<<if (_ID == $slaves[_i].ID)>><<break>><</if>>
	<</for>>
	<<set $slaves[_i].assignment = "rest", $slaves[_i].assignmentVisible = 1>>
<</if>>
<<if $i > -1>>
	<<if $slaves[$i].ID == $HeadGirl.ID>>
		<<set $HeadGirl = 0>>
	<</if>>
	<<if $slaves[$i].ID == $Recruiter.ID>>
		<<set $Recruiter = 0>>
	<</if>>
	<<if $slaves[$i].ID == $Bodyguard.ID>>
		<<set $Bodyguard = 0>>
	<</if>>
	<<if $slaves[$i].ID == $personalAttention>>
		<<if $PC.career == "escort">>
		<<set $personalAttention = "whoring">>
		<<elseif $PC.career == "servant">>
		<<set $personalAttention = "upkeep">>
		<<else>>
		<<set $personalAttention = "business">>
		<</if>>
	<</if>>
	<<set $slaves[$i].assignment = "be the Wardeness", $slaves[$i].assignmentVisible = 0, $slaves[$i].choosesOwnAssignment = 0, $slaves[$i].sentence = 0, $slaves[$i].livingRules = "luxurious">>
	<<if $slaves[$i].choosesOwnClothes == 1>><<include "SA chooses own clothes">><</if>>
	<<set $Wardeness = $slaves[$i]>>
<<else>>
	<<set $Wardeness = 0>>
<</if>>

<<goto "Cellblock">>


code:
:: Whore Workaround [silently]

<<set $slaves[$i].assignment = "whore", $slaves[$i].choosesOwnAssignment = 0>>
<<goto "Main">>


code:
:: art widgets [nobr widget]

/%
Call as <<AssistantArt>>
Displays assistant images. Currently passage-based.
$args[0]: Image size/center.
	3: Large, right. Example: description.
	2: Medium, right. Example: random events.
%/
<<widget "AssistantArt">>

<<if $imageChoice == 0>> /* RENDERED IMAGES BY SHOKUSHU */

<<switch $assistantAppearance>>
<<case "monstergirl">>
	<<set _fileName = "'resources/renders/assistant monstergirl.png' ">>
<<case "shemale">>
	<<set _fileName = "'resources/renders/assistant shemale.png' ">>
<<case "amazon">>
	<<set _fileName = "'resources/renders/assistant amazon.png' ">>
<<case "businesswoman">>
	<<set _fileName = "'resources/renders/assistant businesswoman.png' ">>
<<case "goddess">>
	<<set _fileName = "'resources/renders/assistant goddess.png' ">>
<<case "schoolgirl">>
	<<set _fileName = "'resources/renders/assistant schoolgirl.png' ">>
<<default>>
	<<set _fileName = "'resources/renders/assistant default.png' ">>
<</switch>>
<<if $args[1] == 3>>
	<<print "">>
<<else>>
	<<print "">>
<</if>>

<</if>> /* CLOSES IMAGE CHOICE */

<</widget>>

/%
Call as <<SlaveArt>>
Displays slave images. Currently passage-based.
$args[0]: Slave.
$args[1]: Image size/center.
	3: Large, right. Example: long slave description.
	2: Medium, right. Example: random events.
	1: Small, left. Example: lists.
	0: Tiny, left. Example: facilities
$args[2]: icon UI Display for vector art, 1 for on.
%/
<<widget "SlaveArt">>

<<if ndef $args[0].customImage>><<set $args[0].customImage = 0>><</if>>
<<if $args[0].customImage != 0>>

<<set _fileName = "'resources/" + $args[0].customImage + ".png' ">>

<<if $args[1] == 3>>
	<<print "">>
<<elseif $args[1] == 2>>
	<<print "">>
<<elseif $args[1] == 1>>
	<<print "">>
<<else>>
	<<print "">>
<</if>>

<<elseif $imageChoice == 1>> /* VECTOR ART BY NOX */

<<if $args[1] != 0>> /* IMAGE DOES NOT HAVE TO BE TINY */
<<if $args[1] != 1>> /* IMAGE IS NOT PART OF A LIST, OR IMAGES ARE TO BE DISPLAYED IN LISTS */

/* 000-250-006 */
/*
 */
/* 000-250-006 */

<<set _folderLoc = "'resources/vector">>

<<if $args[2] == 1>>
	<<print "<object type='image/svg+xml' data=" + _folderLoc + "/test ui.svg'" + "/></object>">>
<</if>>

/% Set skin colour %/
<<set _imgSkinLoc = _folderLoc + "/body/">>
<<switch $args[0].skin>>
<<case "light" "white" "fair" "lightened" "extremely pale" "pale">>
	<<set _imgSkinLoc = _imgSkinLoc + "white">>
<<case "light brown" "dark">>
	<<set _imgSkinLoc = _imgSkinLoc + "brown">>
<<case "brown" "black">>
	<<set _imgSkinLoc = _imgSkinLoc + "dark brown">>
<<default>>
	<<set _imgSkinLoc = _imgSkinLoc + "tanned">>
<</switch>>

/% Shoulder width and arm or no arm %/
<<if $args[0].amp != 1>>
<<if $args[0].fuckdoll == 0>>
	<<if $args[0].devotion > 50>>
		<<set _leftArmType = "high">>
		<<set _rightArmType = "high">>
	<<elseif $args[0].trust >= -20>>
		<<if $args[0].devotion < -20>>
			<<set _leftArmType = "rebel">>
			<<set _rightArmType = "low">>
		<<elseif $args[0].devotion <= 20>>
			<<set _leftArmType = "low">>
			<<set _rightArmType = "low">>
		<<else>>
			<<set _leftArmType = "mid">>
			<<set _rightArmType = "high">>
		<</if>>
	<<else>>
		<<set _leftArmType = "mid">>
		<<set _rightArmType = "mid">>
	<</if>>
	<<print "<object type='image/svg+xml' data=" + _imgSkinLoc + "/arm left " + _leftArmType + ".svg'" + "/></object>">>
	<<print "<object type='image/svg+xml' data=" + _imgSkinLoc + "/arm right " + _rightArmType + ".svg'" + "/></object>">>
<<else>>
	<<set _leftArmType = "mid latex">>
	<<set _rightArmType = "mid latex">>
	<<print "<object type='image/svg+xml' data=" + _folderLoc + "/outfit/arm left " + _leftArmType + ".svg'" + "/></object>">>
	<<print "<object type='image/svg+xml' data=" + _folderLoc + "/outfit/arm right " + _rightArmType + ".svg'" + "/></object>">>
<</if>>
<</if>>

/% Hair Aft %/
<<if $args[0].hStyle != "shaved">>
<<if $args[0].fuckdoll == 0>>
	<<print "<object type='image/svg+xml' data=" + _folderLoc + "/body/addon/hair aft neat " + $args[0].hColor + ".svg'" + "/></object>">>
<</if>>
<</if>>

/% Butt %/
<<if $args[0].amp != 1>>
<<if $args[0].butt > 5>>
	<<set _buttSize = 3>>
<<elseif $args[0].butt > 4>>
	<<set _buttSize = 2>>
<<elseif $args[0].butt > 3>>
	<<set _buttSize = 1>>
<<elseif $args[0].butt > 2>>
	<<set _buttSize = 0>>
<</if>>
<<if $args[0].fuckdoll != 0>>
	<<set _buttSize = _buttSize + " latex">>
<</if>>
<<print "<object type='image/svg+xml' data=" + _imgSkinLoc + "/butt " + _buttSize + ".svg'" + "/></object>">>
<</if>>

/% Leg + 1 size up when chubby or fat%/
<<if $args[0].hips < 0>>
	<<if $args[0].weight <= 95>>/%Chubby%/
		<<set _legSize = "normal">>
	<<else>>
		<<set _legSize = "narrow">>
	<</if>>
<<elseif $args[0].hips == 0>>
	<<if $args[0].weight <= 95>>/%Chubby%/
		<<set _legSize = "wide">>
	<<else>>
		<<set _legSize = "normal">>
	<</if>>
<<elseif $args[0].hips > 0>>
	<<set _legSize = "wide">>
<</if>>
<<if $args[0].amp != 0>>
	<<set _legSize = "stump " + _legSize>>
<</if>>
<<if $args[0].fuckdoll != 0 && $args[0].amp != 1>>
	<<set _legSize = _legSize + " latex">>
	<<print "<object type='image/svg+xml' data=" + _folderLoc + "/outfit/leg " + _legSize + ".svg'" + "/></object>">>
<<else>>
	<<print "<object type='image/svg+xml' data=" + _imgSkinLoc + "/leg " + _legSize + ".svg'" + "/></object>">>
<</if>>

/% Feet %/
<<if $args[0].amp != 1>>
<<if $args[0].shoes == "heels">>
	<<set _shoesType = "heel">>
<<elseif $args[0].shoes == "extreme heels">>
	<<if $args[0].weight <= 95>>/%Chubby%/
		<<set _shoesType = "extreme heel wide">>
	<<else>>
		<<set _shoesType = "extreme heel">>
	<</if>>
<<elseif $args[0].shoes == "boots">>
	<<if $args[0].weight <= 95>>/%Chubby%/
		<<set _shoesType = "boot wide">>
	<<else>>
		<<set _shoesType = "boot">>
	<</if>>
<<elseif $args[0].shoes == "flats">>
	<<set _shoesType = "flat">>
<<else>>
	<<print "<object type='image/svg+xml' data=" + _imgSkinLoc + "/feet.svg'" + "/></object>">>
<</if>>
<<if $args[0].shoes == "extreme heels" or $args[0].shoes == "boots">>
	<<if $args[0].fuckdoll != 0>>
		<<set _shoesType = _shoesType + " latex">>
	<</if>>
	<<print "<object type='image/svg+xml' data=" + _folderLoc + "/outfit/" + _shoesType + ".svg'" + "/></object>">>
<</if>>
<<if $args[0].shoes == "heels" or $args[0].shoes == "flats">>
	<<if $args[0].fuckdoll != 0>>
		<<set _shoesType = _shoesType + " latex">>
		<<print "<object type='image/svg+xml' data=" + _folderLoc + "/outfit/" + _shoesType + ".svg'" + "/></object>">>
	<<else>>
		<<print "<object type='image/svg+xml' data=" + _imgSkinLoc + "/" + _shoesType + ".svg'" + "/></object>">>
	<</if>>
<</if>>
<</if>>

/% Torso %/
<<if $args[0].waist < -40>>/*Unnatural*/
	<<if $args[0].weight <= 30>>/%Chubby%/
		<<set _torsoSize = "hourglass">>
	<<else>>
		<<set _torsoSize = "unnatural">>
	<</if>>
<<elseif $args[0].waist <= 10>>/%Hour glass%/
	<<if $args[0].weight <= 30>>/%Chubby%/
		<<set _torsoSize = "normal">>
	<<else>>
		<<set _torsoSize = "hourglass">>
	<</if>>
<<else>>/*Normal*/
	<<set _torsoSize = "normal">>
<</if>>
<<print "<object type='image/svg+xml' data=" + _imgSkinLoc + "/torso " + _torsoSize + ".svg'" + "/></object>">>
<<if $args[0].fuckdoll != 0>>
	<<set _torsoSize = _torsoSize + " latex">>
	<<print "<object type='image/svg+xml' data=" + _folderLoc + "/outfit/torso " + _torsoSize + ".svg'" + "/></object>">>
<</if>>

/*Navel Piercing*/
<<if $args[0].navelPiercing >= 1>>
	<<print "<object type='image/svg+xml' data=" + _folderLoc + "/body/addon/navel piercing.svg'" + "/></object>">>
<</if>>
<<if $args[0].navelPiercing == 2>>
	<<print "<object type='image/svg+xml' data=" + _folderLoc + "/body/addon/navel piercing heavy.svg'" + "/></object>">>
<</if>>

/% Vagina %/
<<if $args[0].vagina >= 0>>
	<<print "<object type='image/svg+xml' data=" + _imgSkinLoc + "/vagina.svg'" + "/></object>">>
	<<if $args[0].clitPiercing == 1>>
		<<print "<object type='image/svg+xml' data=" + _folderLoc + "/body/addon/clit piercing.svg'" + "/></object>">>
	<<elseif $args[0].clitPiercing == 2>>
		<<print "<object type='image/svg+xml' data=" + _folderLoc + "/body/addon/clit piercing heavy.svg'" + "/></object>">>
	<<elseif $args[0].clitPiercing == 3>>
		<<print "<object type='image/svg+xml' data=" + _folderLoc + "/body/addon/clit piercing smart.svg'" + "/></object>">>
	<</if>>
	<<if $args[0].vaginaPiercing == 1>>
		<<print "<object type='image/svg+xml' data=" + _folderLoc + "/body/addon/pussy piercing.svg'" + "/></object>">>
	<<elseif $args[0].vaginaPiercing == 2>>
		<<print "<object type='image/svg+xml' data=" + _folderLoc + "/body/addon/pussy piercing heavy.svg'" + "/></object>">>
	<</if>>
<</if>>

/% Collar %/
<<switch $args[0].collar>>
<<case "bowtie">>
<<case "ancient Egyptian">>
<<case "nice retirement counter" "cruel retirement counter" "leather with cowbell" "pretty jewelry" "heavy gold" "satin choker" "stylish leather" "neck corset" "shock punishment" "tight steel" "uncomfortable leather" "dildo gag">>
	<<print "<object type='image/svg+xml' data=" + _folderLoc + "/outfit/" + $args[0].collar + ".svg'" + "/></object>">>
<</switch>>

/% Head base image %/
<<if $args[0].fuckdoll != 0>>
	<<print "<object type='image/svg+xml' data=" + _folderLoc + "/outfit/head latex.svg'" + "/></object>">>
<<else>>
	<<print "<object type='image/svg+xml' data=" +_imgSkinLoc + "/head.svg'" + "/></object>">>
<</if>>

/% Glasses %/
<<if $args[0].eyewear == "corrective glasses" or $args[0].eyewear == "glasses" or $args[0].eyewear == "blurring glasses">>
	<<print "<object type='image/svg+xml' data=" + _folderLoc + "/outfit/glasses.svg'" + "/></object>">>
<</if>>

/% Pubic hair %/
<<if $args[0].pubicHStyle != "waxed">>
	<<switch $args[0].pubicHColor>>
	<<case "black">>
		<<set _pubicHColor = "black">>
	<<case "blonde">>
		<<set _pubicHColor = "blonde">>
	<<case "blue">>
		<<set _pubicHColor = "blue">>
	<<case "brown">>
		<<set _pubicHColor = "brown">>
	<<case "green">>
		<<set _pubicHColor = "green">>
	<<case "pink">>
		<<set _pubicHColor = "pink">>
	<<case "red">>
		<<set _pubicHColor = "red">>
	<<default>>
		<<set _pubicHColor = "brown">>
	<</switch>>
	<<if $args[0].pubicHStyle == "in a strip">>
		<<set _pubicHStyle = "strip">>
	<<else>>
		<<set _pubicHStyle = $args[0].pubicHStyle>>
	<</if>>
	<<print "<object type='image/svg+xml' data=" + _folderLoc + "/body/addon/" + _pubicHStyle + " " + _pubicHColor +".svg'" + "/></object>">>
<</if>>

/%if pregnant%/
<<if $args[0].preg > 0>>
	<<print "<object type='image/svg+xml' data=" + _imgSkinLoc + "/preg belly.svg'" + "/></object>">>
	<<if $args[0].navelPiercing >= 1>>/*Navel Piercing*/
		<<print "<object type='image/svg+xml' data=" + _folderLoc + "/body/addon/preg navel piercing.svg'" + "/></object>">>
	<</if>>
	<<if $args[0].navelPiercing == 2>>
		<<print "<object type='image/svg+xml' data=" + _folderLoc + "/body/addon/preg navel piercing heavy.svg'" + "/></object>">>
	<</if>>
<</if>>

/% Boob %/
<<if $args[0].boobs < 100>>
	<<set _boobSize = 0>>
<<elseif $args[0].boobs < 400>>
	<<set _boobSize = 1>>
<<elseif $args[0].boobs < 800>>
	<<set _boobSize = 2>>
<<elseif $args[0].boobs < 1600>>
	<<set _boobSize = 3>>
<<elseif $args[0].boobs < 3200>>
	<<set _boobSize = 4>>
<<elseif $args[0].boobs < 6400>>
	<<set _boobSize = 5>>
<<elseif $args[0].boobs < 12000>>
	<<set _boobSize = 6>>
<<else>>
	<<set _boobSize = 7>>
<</if>>
<<if $args[0].fuckdoll != 0>>
	<<print "<object type='image/svg+xml' data=" + _folderLoc + "/outfit/boob " +_boobSize +" latex.svg'" + "/></object>">>
	<<if $args[0].lactation > 0>><<print "<object type='image/svg+xml' data=" + _imgSkinLoc + "/boob " +_boobSize + " areola.svg'" + "/></object>">><</if>>
<<else>>
	<<print "<object type='image/svg+xml' data=" + _imgSkinLoc + "/boob " +_boobSize +".svg'" + "/></object>">>
	<<print "<object type='image/svg+xml' data=" + _imgSkinLoc + "/boob " +_boobSize + " areola.svg'" + "/></object>">>
<</if>>

/% Scrotum %/
<<if $args[0].scrotum > 0>>
	<<if $args[0].scrotum >= 6>>
		<<set _ballSize = 4>>
	<<elseif $args[0].scrotum >= 4>>
		<<set _ballSize = 3>>
	<<elseif $args[0].scrotum >= 3>>
		<<set _ballSize = 2>>
	<<elseif $args[0].scrotum >= 2>>
		<<set _ballSize = 1>>
	<<else>>
		<<set _ballSize = 0>>
	<</if>>
<</if>>

/% Penis %/
<<if $args[0].dick > 0>>
	<<if $args[0].dick >= 8>>
		<<set _penisSize = 6>>
	<<elseif $args[0].dick >= 7>>
		<<set _penisSize = 5>>
	<<elseif $args[0].dick >= 6>>
		<<set _penisSize = 4>>
	<<elseif $args[0].dick >= 5>>
		<<set _penisSize = 3>>
	<<elseif $args[0].dick >= 4>>
		<<set _penisSize = 2>>
	<<elseif $args[0].dick >= 2>>
		<<set _penisSize = 1>>
	<<else>>
		<<set _penisSize = 0>>
	<</if>>
<</if>>

<<if _boobSize <= 5>>
<<if $args[0].vagina > 0>>
	<<if $args[0].dick > 0>>

		<<print "<object type='image/svg+xml' data=" + _imgSkinLoc + "/penis " + _penisSize + ".svg'" + "/></object>">>

/* 000-250-006 */
/*
 */
/* 000-250-006 */

	<</if>>
	<<if $args[0].scrotum > 0>>
		<<print "<object type='image/svg+xml' data=" + _imgSkinLoc + "/ball " + _ballSize + ".svg'" + "/></object>">>
	<</if>>
<<else>>
	<<if $args[0].dick > 0>>
		/*
*/
		<<print "<object type='image/svg+xml' data=" + _imgSkinLoc + "/penis " + _penisSize + ".svg'" + "/></object>">>

/* 000-250-006 */
/*
 */
/* 000-250-006 */

	<</if>>
	<<if $args[0].scrotum > 0>>
		<<print "<object type='image/svg+xml' data=" + _imgSkinLoc + "/ball " + _ballSize + ".svg'" + "/></object>">>
	<</if>>
<</if>>
<</if>>

/% piercings %/
<<if $args[0].nipplesPiercing == 1>>
	<<print "<object type='image/svg+xml' data=" + _folderLoc + "/body/addon/boob " +_boobSize +" piercing.svg'" + "/></object>">>
<<elseif $args[0].nipplesPiercing == 2>>
	<<print "<object type='image/svg+xml' data=" + _folderLoc + "/body/addon/boob " +_boobSize +" piercing heavy.svg'" + "/></object>">>
<</if>>
<<if $args[0].areolaePiercing == 1>>
	<<print "<object type='image/svg+xml' data=" + _folderLoc + "/body/addon/boob " +_boobSize +" areola piercing.svg'" + "/></object>">>
<</if>>

/% clavicle %/
<<print "<object type='image/svg+xml' data=" + _folderLoc + "/body/addon/clavicle.svg'" + "/></object>">>

/% Hair Foreground%/
<<if $args[0].hStyle != "shaved">>
<<if $args[0].fuckdoll == 0>>
<<print "<object type='image/svg+xml' data=" + _folderLoc + "/body/addon/hair fore neat " + $args[0].hColor + ".svg'" + "/></object>">>
<</if>>
<</if>>

/* 000-250-006 */
/*
 */
/* 000-250-006 */

<</if>>
<</if>> /* CLOSES EXEMPTIONS FOR IMAGE SIZES NOT CURRENTLY SUPPORTED BY VECTOR ART */

<<else>> /* RENDERED IMAGES BY SHOKUSHU */

<<if $args[0].vagina > -1>>
	<<if $args[0].dick > 0>>
		<<if $args[0].balls > 0>>
			<<set _fileName = "futanari">>
		<<else>>
			<<set _fileName = "herm">>
		<</if>>
	<<else>>
		<<set _fileName = "female">>
	<</if>>
<<else>>
	<<if $args[0].balls > 0>>
		<<set _fileName = "shemale">>
	<<else>>
		<<set _fileName = "gelding">>
	<</if>>
<</if>>
<<if $args[0].preg > 10>>
	<<set _fileName = "preg " + _fileName>>
<</if>>
<<if $args[0].boobs < 400>>
	<<set _fileName = _fileName + " small">>
<<elseif $args[0].boobs < 800>>
	<<set _fileName = _fileName + " big">>
<<elseif $args[0].boobs < 6000>>
	<<set _fileName = _fileName + " huge">>
<<else>>
	<<set _fileName = _fileName + " hyper">>
<</if>>
<<if $args[0].muscles > 30>>
	<<set _fileName = _fileName + " muscle">>
<<else>>
	<<set _fileName = _fileName + " soft">>
<</if>>
<<if $args[0].fuckdoll > 0>>
	<<set _fileName = _fileName + " rebellious">>
<<elseif $args[0].devotion <= 20>>
	<<if $args[0].trust < -20>>
		<<set _fileName = _fileName + " reluctant">>
	<<else>>
		<<set _fileName = _fileName + " rebellious">>
	<</if>>
<<elseif $args[0].fetish == "mindbroken">>
	<<set _fileName = _fileName + " reluctant">>
<<elseif $args[0].devotion <= 50 || $args[0].fetishKnown != 1 || ($seeMainFetishes == 0 && $args[1] < 2)>>
	<<set _fileName = _fileName + " obedient">>
<<else>>
	<<if $args[0].fetish == "none">>
		<<set _fileName = _fileName + " obedient">>
	<<else>>
		<<set _fileName = _fileName + " " + $args[0].fetish>>
	<</if>>
<</if>>

<<set _fileName = "'resources/renders/" + _fileName + ".png' ">>
<<if $args[1] == 3>>
	<<print "">>
<<elseif $args[1] == 2>>
	<<print "">>
<<elseif $args[1] == 1>>
	<<print "">>
<<else>>
	<<print "">>
<</if>>

<</if>> /* CLOSES IMAGE CHOICE */

<</widget>>


code:
:: assay widgets [widget nobr]

<<widget "Beauty">>

<<modScore $args[0]>>
<<if $modScore > 15 || ($piercingScore > 8 && $tatScore > 5)>>
	<<set $modded += 1>>
<<elseif $args[0].corsetPiercing == 0 && $piercingScore < 3 && $tatScore < 2>>
	<<set $unmodded += 1>>
<</if>>
<<if $args[0].vagina == -1>>
	<<set $XY += 1>>
<<else>>
	<<set $XX += 1>>
<</if>>
<<if $args[0].visualAge >= 30>>
	<<set $old += 1>>
<<else>>
	<<set $young += 1>>
<</if>>

<<set $beauty = 0>>

<<if $args[0].fuckdoll == 0>> /* NOT A FUCKDOLL */

<<set $beauty += 150 - ($args[0].visualAge*3) + (5*$args[0].ageImplant) + (Math.min($args[0].health,100)/5) - ($args[0].waist/20) - ($args[0].muscles/30) +($args[0].lips/10) + ($args[0].face/5) +(1.5*$args[0].butt) + ($args[0].clit) + (($args[0].height-160)/10) + ($args[0].voice) + (3*$args[0].intelligence) + ($args[0].entertainSkill/10) + ($args[0].whoreSkill/10) + (2*$args[0].hips)>>

<<if $arcologies[0].FSDegradationist != "unset">>
	<<set $beauty -= ($arcologies[0].FSDegradationist/10)*$args[0].intelligence>>
<</if>>

<<if $arcologies[0].FSGenderFundamentalistLawBimbo == 1>>
	<<set $beauty -= 6*$args[0].intelligence>>
<</if>>

<<if $args[0].teeth == "crooked">>
	<<set $beauty -= 3>>
<<elseif ($args[0].teeth == "braces" || $args[0].teeth == "cosmetic braces") && $args[0].visualAge > 14>>
	<<set $beauty += 1>>
<<elseif $args[0].teeth != "normal">>
	<<set $beauty -= 1>>
<</if>>

<<if $arcologies[0].FSAssetExpansionist != "unset" && $arcologies[0].FSGenderFundamentalist == "unset">>
	<<if $args[0].dick > 6>>
		<<set $beauty += Math.trunc($args[0].dick)>>
	<</if>>
	<<if $args[0].balls > 10>>
		<<set $beauty += Math.trunc($args[0].balls/4)>>
	<</if>>
<<else>>
<<set $beauty -= (2*$args[0].dick) + ($args[0].balls)>>
<</if>>

<<if $args[0].faceShape == "masculine">>
	<<if ($arcologies[0].FSGenderRadicalist != "unset")>>
	<<set $beauty -= (2-($arcologies[0].FSGenderRadicalist/25))*($args[0].face/30)>>
	<<elseif ($arcologies[0].FSGenderFundamentalist != "unset")>>
	<<set $beauty -= (2+($arcologies[0].FSGenderFundamentalist/25))*($args[0].face/30)>>
	<<else>>
	<<set $beauty -= 2*($args[0].face/30)>>
	<</if>>
<<elseif $args[0].faceShape == "androgynous">>
	<<if ($arcologies[0].FSGenderRadicalist != "unset")>>
	<<set $beauty -= (0-($arcologies[0].FSGenderRadicalist/25))*($args[0].face/30)>>
	<<elseif ($arcologies[0].FSGenderFundamentalist != "unset")>>
	<<set $beauty -= ($arcologies[0].FSGenderFundamentalist/25)*($args[0].face/30)>>
	<<else>>
	<<set $beauty -= $args[0].face/30>>
	<</if>>
<<elseif $args[0].faceShape is "exotic">>
	<<set $beauty += 2*($args[0].face/30)>>
<<elseif $args[0].faceShape is "sensual">>
	<<set $beauty += 2+($args[0].face/30)>>
<<elseif $args[0].faceShape is "cute">>
	<<set $beauty += 4>>
<</if>>

<<if $args[0].brand != 0>>
	<<if $rep > 10000>>
	<<set $beauty += 1>>
	<<elseif $rep < 5000>>
	<<set $beauty -= 1>>
	<</if>>
<</if>>

<<if $args[0].minorInjury != 0>>
	<<set $beauty -= 2>>
<</if>>

<<if $args[0].cSec == 1>>
	<<set $beauty -= 2>>
<</if>>

<<if $args[0].nails > 0>><<set $beauty += 1>><</if>>
<<if $args[0].makeup > 0>><<set $beauty += 1>><</if>>

<<if ($arcologies[0].FSTransformationFetishist > 20) || ($arcologies[0].FSDegradationist > 20)>>
	<<if $modScore > 15 || ($piercingScore > 8 && $tatScore > 5)>>
	<<set $beauty += 8+($modScore*0.25)>>
	<<elseif $modScore > 7>>
	<<set $beauty += $modScore-7>>
	<</if>>
<<elseif ($arcologies[0].FSBodyPurist > 20) || ($arcologies[0].FSPaternalist > 20)>>
	<<if $modScore <= 7>>
	<<set $beauty += 10>>
	<<else>>
	<<set $beauty += 15-$modScore>>
	<</if>>
<<else>>
	<<if $modScore <= 7>>
	<<set $beauty += $modScore>>
	<<elseif $modScore > 15 || ($piercingScore > 8 && $tatScore > 5)>>
	<<set $beauty += 11>>
	<<else>>
	<<set $beauty += 7+(0.5*($modScore-7))>>
	<</if>>
<</if>>

<<if $arcologies[0].FSSupremacist != "unset">>
<<if $args[0].race != $arcologies[0].FSSupremacistRace>>
	<<set $beauty += ($arcologies[0].FSSupremacist/30)+$arcologies[0].FSSupremacistLawME>>
<</if>>
<</if>>
<<if $arcologies[0].FSSubjugationist != "unset">>
<<if $args[0].race == $arcologies[0].FSSubjugationistRace>>
	<<set $beauty += ($arcologies[0].FSSubjugationist/20)+$arcologies[0].FSSubjugationistLawME>>
<</if>>
<</if>>
<<if $arcologies[0].FSEdoRevivalist != "unset">>
<<if ($args[0].nationality == "Japanese") || ($args[0].nationality == "Edo Revivalist")>>
	<<set $beauty += ($arcologies[0].FSEdoRevivalist/20)>>
<</if>>
<</if>>
<<if $arcologies[0].FSChineseRevivalist != "unset">>
<<if ($args[0].nationality == "Chinese") || ($args[0].nationality == "Chinese Revivalist")>>
	<<set $beauty += ($arcologies[0].FSChineseRevivalist/20)>>
<</if>>
<</if>>

<<if $args[0].race == "white">>
	<<set $beauty += 4>>
<<elseif $args[0].race == "surgically altered to look white">>
	<<set $beauty += 2>>
<</if>>

<<if $args[0].visualAge >= 30>>
	<<if $arcologies[0].FSYouthPreferentialist != "unset">>
		<<set $beauty -= ($arcologies[0].FSYouthPreferentialist/30)+$arcologies[0].FSYouthPreferentialistLaw>>
	<<elseif $arcologies[0].FSMaturityPreferentialist != "unset">>
		<<set $beauty += ($arcologies[0].FSMaturityPreferentialist/20)+$arcologies[0].FSMaturityPreferentialistLaw>>
	<</if>>
<<else>>
	<<if $arcologies[0].FSMaturityPreferentialist != "unset">>
		<<set $beauty -= ($arcologies[0].FSMaturityPreferentialist/30)-$arcologies[0].FSMaturityPreferentialistLaw>>
	<<elseif $arcologies[0].FSYouthPreferentialist != "unset">>
		<<set $beauty += ($arcologies[0].FSYouthPreferentialist/20)-$arcologies[0].FSYouthPreferentialistLaw>>
	<</if>>
<</if>>

<<if ($args[0].markings != "none")>>
	<<if ($args[0].markings is "beauty mark")>>
	<<if ($args[0].face > 40)>>
		<<set $beauty += 2>>
	<<elseif ($args[0].face < -10)>>
		<<set $beauty -= 2>>
	<</if>>
	<<elseif ($args[0].markings == "birthmark")>>
	<<if ($args[0].prestige > 0)>>
		<<set $beauty += 2>>
	<<else>>
		<<set $beauty -= 2>>
	<</if>>
	<<else>>
	<<if ($args[0].skin == "pale") || ($args[0].skin == "fair")>>
		<<set $beauty += 1>>
		<<if ($args[0].hColor == "red")>>
		<<set $beauty += 1>>
		<</if>>
	<</if>>
	<</if>>
<</if>>

<<if $entertainmentCareers.includes($args[0].career)>>
	<<set $beauty += 1>>
<<elseif ($week-$args[0].weekAcquired >= 20) && ($args[0].entertainSkill >= 100)>>
	<<set $beauty += 1>>
<</if>>

<<if $seeAge == 1>>
<<if $args[0].physicalAge == 18>>
	<<set $beauty += 1>>
	<<if $args[0].birthWeek == 0>>
	<<set $beauty += 0.8*$beauty>>
	<<elseif $args[0].birthWeek < 4>>
	<<set $beauty += 0.1*$beauty>>
	<</if>>
<</if>>
<</if>>

<<else>> /* FUCKDOLL */

<<set $beauty += 100 + ($args[0].waist/20) - ($args[0].muscles/30) +($args[0].lips/10) + ($args[0].face/10) +(1.5*$args[0].butt) + ($args[0].clit) + (($args[0].height-160)/10) + (2*$args[0].hips)>>

<<if $arcologies[0].FSAssetExpansionist != "unset" && $arcologies[0].FSGenderFundamentalist == "unset">>
	<<if $args[0].dick > 6>>
		<<set $beauty += Math.trunc($args[0].dick)>>
	<</if>>
	<<if $args[0].balls > 10>>
		<<set $beauty += Math.trunc($args[0].balls/4)>>
	<</if>>
<<else>>
<<set $beauty -= (2*$args[0].dick) + ($args[0].balls)>>
<</if>>

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

<<if ($arcologies[0].FSTransformationFetishist > 20) || ($arcologies[0].FSAssetExpansionist > 20)>>
	<<if $args[0].boobs <= 500>>
	<<set $beauty += (0.02*($args[0].boobs-250))>>
	<<elseif $args[0].boobs <= 1500>>
	<<set $beauty += 5+(0.015*($args[0].boobs-500))>>
	<<elseif $args[0].boobs <= 3000>>
	<<set $beauty += 20+(0.01*($args[0].boobs-1500))>>
	<<else>>
	<<set $beauty += 50+(0.005*($args[0].boobs-3000))>>
	<</if>>
	<<if $args[0].butt <= 2>>
	<<set $beauty += (2*($args[0].butt-1))>>
	<<elseif $args[0].butt <= 4>>
	<<set $beauty += 2+(1.5*($args[0].butt-2))>>
	<<else>>
	<<set $beauty += 5+(1*($args[0].butt-4))>>
	<</if>>
<<elseif ($arcologies[0].FSSlimnessEnthusiast > 20)>>
	<<if $args[0].boobs <= 500>>
	<<set $beauty += (0.05*($args[0].boobs))>>
	<<elseif $args[0].boobs <= 1000>>
	<<set $beauty += 25+(0.01*($args[0].boobs-500))>>
	<<elseif $args[0].boobs <= 3000>>
	<<set $beauty += 30>>
	<<else>>
	<<set $beauty += 30-(0.005*($args[0].boobs-3000))>>
	<</if>>
	<<if $args[0].butt <= 3>>
	<<set $beauty += (3*($args[0].butt-1))>>
	<<elseif $args[0].butt <= 5>>
	<<set $beauty += 9>>
	<<else>>
	<<set $beauty += 9-(1*($args[0].butt-5))>>
	<</if>>
<<else>>
	<<if $args[0].boobs <= 1200>>
	<<set $beauty += (0.02*($args[0].boobs-200))>>
	<<elseif $args[0].boobs <= 2400>>
	<<set $beauty += 20+(0.01*($args[0].boobs-1200))>>
	<<elseif $args[0].boobs <= 3600>>
	<<set $beauty += 32+(0.005*($args[0].boobs-2400))>>
	<<else>>
	<<set $beauty += 38>>
	<</if>>
	<<if $args[0].butt <= 2>>
	<<set $beauty += (2*($args[0].butt-1))>>
	<<elseif $args[0].butt <= 4>>
	<<set $beauty += 2+(1.5*($args[0].butt-2))>>
	<<elseif $args[0].butt <= 8>>
	<<set $beauty += 2+(1.5*($args[0].butt-2))>>
	<<else>>
	<<set $beauty += 9>>
	<</if>>
<</if>>

<<if ($arcologies[0].FSTransformationFetishist > 20)>>
	<<if $args[0].hips >= 3>>
		<<set $beauty += 1>>
	<</if>>
<</if>>

<<if $args[0].hips < -1>>
	<<if $args[0].butt > 2>>
	<<if $arcologies[0].FSTransformationFetishist == "unset">>
		<<set $beauty += 2-$args[0].butt>>
	<<else>>
		<<set $beauty += 1>>
	<</if>>
	<<else>>
	<<set $beauty += 1>>
	<</if>>
<<elseif $args[0].hips < 0>>
	<<if $args[0].butt > 4>>
	<<if $arcologies[0].FSTransformationFetishist == "unset">>
		<<set $beauty += 4-$args[0].butt>>
	<<else>>
		<<set $beauty += 1>>
	<</if>>
	<<else>>
	<<set $beauty += 1>>
	<</if>>
<<elseif $args[0].hips > 2>>
	<<if $args[0].butt <= 8>>
	<<set $beauty += $args[0].butt-8>>
	<<else>>
	<<set $beauty += 1>>
	<</if>>
<<elseif $args[0].hips > 1>>
	<<if $args[0].butt <= 3>>
	<<set $beauty += $args[0].butt-4>>
	<<else>>
	<<set $beauty += 1>>
	<</if>>
<<elseif $args[0].hips > 0>>
	<<if $args[0].butt > 8>>
	<<if $arcologies[0].FSTransformationFetishist == "unset">>
		<<set $beauty += 8-$args[0].butt>>
	<<else>>
		<<set $beauty += 1>>
	<</if>>
	<<elseif $args[0].butt <= 2>>
	<<set $beauty += $args[0].butt-3>>
	<<else>>
	<<set $beauty += 1>>
	<</if>>
<<else>>
	<<if $args[0].butt > 6>>
	<<if $arcologies[0].FSTransformationFetishist == "unset">>
		<<set $beauty += 6-$args[0].butt>>
	<<else>>
		<<set $beauty += 1>>
	<</if>>
	<<elseif $args[0].butt <= 1>>
	<<set $beauty += $args[0].butt-2>>
	<<else>>
	<<set $beauty += 1>>
	<</if>>
<</if>>

<<if $args[0].boobs > 250>>
<<if $args[0].boobShape == "perky">>
	<<set $beauty += 1>>
<<elseif $args[0].boobShape == "torpedo-shaped">>
	<<set $beauty += 1>>
<<elseif $args[0].boobShape == "downward-facing">>
	<<set $beauty -= 1>>
<<elseif $args[0].boobShape == "saggy">>
	<<set $beauty -= 1>>
<</if>>
<</if>>

<<if $args[0].nipples == "huge">>
	<<set $beauty += 2>>
<<elseif $args[0].nipples == "inverted">>
	<<set $beauty += 1>>
<<elseif $args[0].nipples == "puffy">>
	<<set $beauty += 1>>
<<elseif $args[0].nipples == "tiny">>
	<<set $beauty -= 1>>
<</if>>

<<if $args[0].anus > 3>>
	<<set $beauty -= 1>>
<</if>>
<<if $args[0].vagina > 3>>
	<<set $beauty -= 1>>
<</if>>

<<if ($args[0].hips > 2)>>
	<<if ($args[0].weight < -10)>>
		<<set $beauty -= Math.abs($args[0].weight)/10>>
	<</if>>
<<elseif ($args[0].hips > 1)>>
	<<if ($args[0].weight > 95)>>
		<<set $beauty -= Math.abs($args[0].weight)/15>>
	<<elseif ($args[0].weight < -30)>>
		<<set $beauty -= Math.abs($args[0].weight)/10>>
	<</if>>
<<elseif ($args[0].hips < -1)>>
	<<if ($args[0].weight < -95) || ($args[0].weight > 30)>>
		<<set $beauty -= Math.abs($args[0].weight)/10>>
	<</if>>
<<else>>
	<<if Math.abs($args[0].weight) > 30>>
		<<set $beauty -= Math.abs($args[0].weight)/10>>
	<</if>>
<</if>>

<<if ($arcologies[0].FSGenderRadicalist > 20) || ($arcologies[0].FSSlimnessEnthusiast > 20)>>
	<<if $args[0].hips < 0>>
	<<set $beauty += Math.abs($args[0].hips)>>
	<</if>>
<</if>>
<<if $arcologies[0].FSRestart != "unset">>
	<<if $args[0].balls > 0>>
	<<set $beauty -= $args[0].balls*(1+($arcologies[0].FSRestart/100))>>
	<</if>>
<</if>>
<<if $arcologies[0].FSGenderRadicalist != "unset">>
	<<if $args[0].dick > 0>>
	<<set $beauty += $args[0].dick*(1+($arcologies[0].FSGenderRadicalist/100))>>
	<</if>>
	<<if $args[0].scrotum > 0>>
	<<set $beauty += $args[0].balls*(1+($arcologies[0].FSGenderRadicalist/200))>>
	<</if>>
	<<if $args[0].preg > 5 && $arcologies[0].FSRepopulationFocus == "unset" && $arcologies[0].FSRestart == "unset">>
	<<set $beauty = ($beauty*0.7)>>
	<</if>>
<<elseif $arcologies[0].FSGenderFundamentalist != "unset">>
	<<if $args[0].scrotum > 0>>
	<<set $beauty -= $args[0].balls*(1+($arcologies[0].FSGenderFundamentalist/200))>>
	<<if $args[0].pubertyXY == 0>>
	<<set $beauty += 5>>
	<</if>>
	<</if>>
	<<if $args[0].shoulders > $args[0].hips>>
	<<if $args[0].boobs <= 2000*($args[0].shoulders-$args[0].hips)>>
		<<set $beauty -= ($args[0].shoulders-$args[0].hips)*(1+($arcologies[0].FSGenderFundamentalist/200))>>
	<</if>>
	<</if>>
<<else>>
	<<if $args[0].shoulders > $args[0].hips>>
	<<if $args[0].boobs <= 2000*($args[0].shoulders-$args[0].hips)>>
		<<set $beauty -= $args[0].shoulders-$args[0].hips>>
	<</if>>
	<</if>>
	<<if $args[0].dick > 4>>
		<<set $beauty += $args[0].dick - 4>>
	<</if>>
	<<if $args[0].scrotum > 4>>
		<<set $beauty += $args[0].balls - 4>>
	<</if>>
	<<if $args[0].preg > 10 && $arcologies[0].FSRepopulationFocus == "unset" && $arcologies[0].FSRestart == "unset">>
		<<set $beauty = ($beauty*0.8)>>
	<</if>>
<</if>>

<<if $arcologies[0].FSPhysicalIdealist != "unset">>
<<if $args[0].muscles > 30>>
	<<set $beauty += ($args[0].muscles*($arcologies[0].FSPhysicalIdealist/40))>>
<</if>>
<</if>>
<<if $arcologies[0].FSGenderRadicalistLawFuta != 0>>
<<if $arcologies[0].FSGenderRadicalistLawFuta == 1>>
	<<if $args[0].dick > 0>>
	<<if $args[0].vagina > -1>>
		<<set $beauty += 2*$args[0].dick>>
	<</if>>
	<</if>>
<<elseif $arcologies[0].FSGenderRadicalistLawFuta == 2>>
	<<if $args[0].dick > 0>>
	<<if $args[0].balls > 0>>
		<<set $beauty += $args[0].dick+$args[0].balls>>
	<</if>>
	<</if>>
<<else>>
	<<if $args[0].butt >= 5>>
	<<if $args[0].anus >= 2>>
	<<if $args[0].hips >= 1>>
	<<if $args[0].analSkill > 60>>
		<<set $beauty += ($args[0].butt-5) + 2*($args[0].anus-2) + 4*($args[0].hips-1)>>
	<</if>>
	<</if>>
	<</if>>
	<</if>>
<</if>>
<</if>>

<<if $args[0].vagina == 10>>
	<<set $beauty -= 10>>
<</if>>

<<if $args[0].customDesc == "She has a massive scar down her front from where her body exploded under the pressure of her bloated womb.">>
	<<if $arcologies[0].FSDegradationist != "unset">>
		<<set $beauty += 15>>
	<<else>>
		<<set $beauty -= 15>>
	<</if>>
<</if>>

<<if $arcologies[0].FSRepopulationFocus > 40>>
<<if $args[0].preg > 30>>
	<<if $args[0].pregType >= 20>>
		<<set $beauty += 10>>
	<<elseif $args[0].pregType >= 10>>
		<<set $beauty += 9>>
	<<else>>
		<<set $beauty += 8>>
	<</if>>
<<elseif $args[0].preg > 20>>
	<<if $args[0].pregType >= 20>>
		<<set $beauty += 6>>
	<<elseif $args[0].pregType >= 10>>
		<<set $beauty += 5>>
	<<else>>
		<<set $beauty += 4>>
	<</if>>
<<elseif $args[0].preg > 10>>
	<<if $args[0].pregType >= 20>>
		<<set $beauty += 3>>
	<<elseif $args[0].pregType >= 10>>
		<<set $beauty += 2>>
	<<else>>
		<<set $beauty += 1>>
	<</if>>
<<else>>
	<<set $beauty -= 3>>
<</if>>
<<if $args[0].births > 50>>
	<<set $beauty += 50>>
<<else>>
	<<set $beauty += $args[0].births>>
<</if>>
<<elseif $arcologies[0].FSRestart > 40>>
<<if $args[0].breedingMark == 1>>
	<<if $args[0].preg > 5 && $args[0].pregSource == -1>>
		<<set $beauty += 5>>
	<</if>>
<<else>>
<<if $args[0].preg > 30>>
	<<if $args[0].pregType >= 20>>
		<<set $beauty -= 50>>
	<<elseif $args[0].pregType >= 10>>
		<<set $beauty -= 40>>
	<<else>>
		<<set $beauty -= 30>>
	<</if>>
<<elseif $args[0].preg > 20>>
	<<if $args[0].pregType >= 20>>
		<<set $beauty -= 40>>
	<<elseif $args[0].pregType >= 10>>
		<<set $beauty -= 30>>
	<<else>>
		<<set $beauty -= 20>>
	<</if>>
<<elseif $args[0].preg > 10>>
	<<if $args[0].pregType >= 20>>
		<<set $beauty -= 30>>
	<<elseif $args[0].pregType >= 10>>
		<<set $beauty -= 20>>
	<<else>>
		<<set $beauty -= 10>>
	<</if>>
<<elseif $args[0].preg == -2>>
	<<set $beauty += 5>>
<<else>>
	<<set $beauty += 3>>
<</if>>
<<if $args[0].births > 50>>
	<<set $beauty -= 50>>
<<else>>
	<<set $beauty -= $args[0].births>>
<</if>>
<</if>>
<</if>>

<<if $args[0].bellyImplant > 1000>>
	<<if $arcologies[0].FSTransformationFetishist > 20>>
		<<set $beauty += Math.trunc($args[0].bellyImplant/10)>>
	<<elseif $arcologies[0].FSRepopulationFocus > 60>>
		<<if ($args[0].ovaries == 0 && $args[0].mpreg == 0) || $args[0].preg < -1>>
			<<set $beauty += 2>>
		<</if>>
	<<else>>
		<<set $beauty = ($beauty*0.9)>>
	<</if>>
<</if>>

<<if ($args[0].preg > 10) || ($args[0].bellyImplant >= 4000)>>
	<<set $pregYes += 1>>
<<elseif ($args[0].pregType < 10) && ($args[0].preg < 1) && ($args[0].weight < 2) && ($args[0].bellyImplant == 0) && ($args[0].inflation == 0)>>
	<<set $pregNo -= 1>>
<</if>>

<<if $args[0].bellySag > 0>>
<<if $args[0].preg < 10 && $args[0].inflation == 0 && $args[0].bellyImplant < 2000>>
<<if $arcologies[0].FSRepopulationFocus != "unset">>
<<else>>
	<<set $beauty -= 10>>
<</if>>
<</if>>
<</if>>

<<if $args[0].pubertyXX == 1>>
	<<set $beauty += 1>>
<</if>>
<<if $args[0].pubertyXY == 0 && $args[0].physicalAge > $potencyAge && $args[0].balls > 0>>
	<<set $beauty += 1>>
<</if>>

<<if ($args[0].butt > 4) && ($args[0].boobs > 800)>>
	<<if $arcologies[0].FSSlimnessEnthusiast == "unset">>
	<<set $beauty += 1>>
	<</if>>
	<<set $stacked += 1>>
	<<if $arcologies[0].FSAssetExpansionist != "unset">>
	<<set $beauty += ($arcologies[0].FSAssetExpansionist/20)>>
	<<if canTalk($args[0])>>
	<<if $args[0].voice == 3>>
		<<set $beauty += ($arcologies[0].FSAssetExpansionist/40)>>
	<</if>>
	<</if>>
	<</if>>
<</if>>

<<if ($args[0].boobs < 500) && ($args[0].butt < 3) && ($args[0].weight <= 10)>>
	<<if ($args[0].muscles <= 30) && $arcologies[0].FSPhysicalIdealist == "unset">>
		<<set $beauty += 3>>
		<<set $slim += 1>>
		<<if $arcologies[0].FSSlimnessEnthusiast > 20>>
		<<set $beauty += ($arcologies[0].FSSlimnessEnthusiast/20)>>
		<<if canTalk($args[0])>>
		<<if $args[0].voice == 3>>
			<<set $beauty += ($arcologies[0].FSSlimnessEnthusiast/40)>>
		<</if>>
		<</if>>
		<</if>>
	<<elseif $arcologies[0].FSPhysicalIdealist != "unset">> /* no muscle malus for muscle loving societies */
		<<set $beauty += 3>>
		<<set $slim += 1>>
		<<if $arcologies[0].FSSlimnessEnthusiast > 20>>
		<<set $beauty += ($arcologies[0].FSSlimnessEnthusiast/20)>>
		<<if canTalk($args[0])>>
		<<if $args[0].voice == 3>>
			<<set $beauty += ($arcologies[0].FSSlimnessEnthusiast/40)>>
		<</if>>
		<</if>>
		<</if>>
	<</if>>
<</if>>

<<if $arcologies[0].FSSlimnessEnthusiastLaw == 1>>
	<<if ($args[0].boobs <= 300) && ($args[0].butt <= 1) && ($args[0].weight <= 10) && ($args[0].waist <= 10)>>
		<<if $arcologies[0].FSPhysicalIdealist != "unset">>
			<<set _slimPass = 1>>
		<<elseif $arcologies[0].FSPhysicalIdealist == "unset" && $args[0].muscles <= 30>>
			<<set _slimPass = 1>>
		<<else>>
			<<set _slimPass = 0>>
		<</if>>
		<<if _slimPass == 1>>
			<<set $beauty += ($arcologies[0].FSSlimnessEnthusiast/20)>>
		<<else>>
			<<set $beauty -= ($arcologies[0].FSSlimnessEnthusiast/20)>>
		<</if>>
	<</if>>
<</if>>

<<if ($args[0].boobsImplant == 0) && ($args[0].buttImplant == 0) && ($args[0].waist >= -95) && ($args[0].lipsImplant == 0) && ($args[0].faceImplant < 2) && ($args[0].bellyImplant == 0)>>
	<<set $pure += 1>>
	<<if $arcologies[0].FSBodyPurist != "unset">>
	<<set $beauty += ($arcologies[0].FSBodyPurist/20)>>
	<</if>>
	<<if $arcologies[0].FSTransformationFetishist == "unset">>
	<<set $beauty += 2>>
	<</if>>
<<else>>
	<<set $implanted += 1>>
	<<if $arcologies[0].FSTransformationFetishist != "unset">>
	<<set $beauty += ($arcologies[0].FSTransformationFetishist/40)>>
	<</if>>
<</if>>

<<if canTalk($args[0]) == false>>
	<<set $beauty -= 2>>
<<else>>
	<<if ($args[0].accent >= 3)>>
	<<set $beauty -= 1>>
	<<elseif ($args[0].accent == 1)>>
	<<set $beauty += 1>>
	<</if>>
<</if>>

<<if ($args[0].physicalAge < 13)>>
<<elseif $args[0].underArmHStyle == "neat">>
<<elseif $args[0].underArmHStyle == "hairless">>
	<<set $beauty += 1>>
<<elseif ($args[0].underArmHStyle == "waxed")>>
	<<set $beauty += 1>>
<<elseif $args[0].underArmHStyle == "shaved">>
	<<set $beauty += 1>>
<<elseif $args[0].underArmHStyle == "bushy">>
	<<set $beauty -= 1>>
<</if>>

<<if $args[0].amp == 0>>
<<elseif $args[0].amp == 1>>
	<<set $beauty -= 3>>
<<elseif $args[0].amp == -3>>
<<elseif $args[0].amp == -5>>
<<else>>
	<<set $beauty -= 2>>
<</if>>

<<if $arcologies[0].FSGenderFundamentalistLawBeauty + $arcologies[0].FSGenderRadicalistLawBeauty > 0>>
	<<if (Math.abs($args[0].weight) <= 30)>>
		<<if $arcologies[0].FSPhysicalIdealist != "unset">>
			<<set _genderLawPass = 1>>
		<<elseif $arcologies[0].FSPhysicalIdealist == "unset" && $args[0].muscles <= 30>>
			<<set _genderLawPass = 1>>
		<<else>>
			<<set _genderLawPass = 0>>
		<</if>>
		<<if _genderLawPass == 1>>
			<<if $arcologies[0].FSAssetExpansionist != "unset">>
				<<if $args[0].boobs >= 500 && $args[0].boobs <= 1600 && $args[0].butt >= 3 && $args[0].butt <= 6>>
					<<set _genderLawPass = 1>>
				<<else>>
					<<set _genderLawPass = 0>>
				<</if>>
			<<elseif $args[0].boobs >= 500 && $args[0].boobs <= 800 && $args[0].butt >= 3 && $args[0].butt <= 4>>
				<<set _genderLawPass = 1>>
			<<else>>
				<<set _genderLawPass = 0>>
			<</if>>
		<</if>>
	<<else>>
		<<set _genderLawPass = 0>>
	<</if>>
	<<if _genderLawPass == 1>>
		<<set $beauty += 3>>
	<</if>>
<</if>>

<<if $arcologies[0].FSChattelReligionistCreed == 1>>
<<if $nicaeaAssignment == $args[0].assignment>>
	<<set $beauty += $nicaeaPower*2>>
<</if>>
<</if>>

<<if $args[0].prestige > 0>>
	<<set $beauty = $beauty+($beauty*$args[0].prestige*0.1)>>
<</if>>

<<if $args[0].breedingMark == 1>>
	<<set $beauty = Math.trunc($beauty*2)>>
<</if>>

<<if $beauty < 1>>
	<<set $beauty = 1>>
<<else>>
	<<set $beauty = Math.trunc($beauty*0.5)>>
<</if>>

<</widget>>

<<widget "FResult">>

<<set $FResult = (3-$args[0].anus)+($args[0].muscles/30)>>

<<if $args[0].muscles < -95>>
	<<set $FResult -= 5>>
<<elseif $args[0].muscles < -30>>
	<<set $FResult -= 2>>
<</if>>

<<set $seed = $oralUseWeight + $vaginalUseWeight + $analUseWeight>>

<<if $seed > 0>>
<<set $FResult += (6+$args[0].tonguePiercing)*($oralUseWeight/$seed)*($args[0].oralSkill/30)>>
<<if $args[0].sexualFlaw == "cum addict">>
	<<set $FResult += ($oralUseWeight/$seed)*($args[0].oralSkill/30)>>
<</if>>
<<if $args[0].vagina > -1>>
<<if $args[0].vaginalAccessory != "chastity belt">>
	<<set $FResult += 6*($vaginalUseWeight/$seed)*($args[0].vaginalSkill/30)>>
	<<set $FResult += (3-$args[0].vagina)>>
	<<set $FResult += ($args[0].vaginaLube)>>
<</if>>
<</if>>
	<<set $FResult += 6*($analUseWeight/$seed)*($args[0].analSkill/30)>>
<<if $args[0].sexualFlaw == "anal addict">>
	<<set $FResult += ($analUseWeight/$seed)*($args[0].analSkill/30)>>
<</if>>
<<if $args[0].inflationType == "aphrodisiac">>
	<<set $FResult += ($analUseWeight/$seed)*($args[0].inflation*3)>>
<</if>>
<</if>>

<<if $args[0].fuckdoll == 0>> /* NOT A FUCKDOLL */

<<if $familyTesting == 1>>
	<<if totalRelatives($args[0]) > 0>>
	<<for $j = 0; $j < $slaves.length; $j++>>
		<<if $args[0].mother == $slaves[$j].ID>>
			<<if $slaves[$j].assignment == $args[0].assignment>>
			<<set $FResult += 1>>
				<<if $arcologies[0].FSEgyptianRevivalist > 20>>
					<<set $FResult += 1>>
				<</if>>
			<</if>>
		<</if>>
		<<if $args[0].father == $slaves[$j].ID>>
			<<if $slaves[$j].assignment == $args[0].assignment>>
			<<set $FResult += 1>>
				<<if $arcologies[0].FSEgyptianRevivalist > 20>>
					<<set $FResult += 1>>
				<</if>>
			<</if>>
		<</if>>
		<<if $slaves[$j].mother == $args[0].ID || $slaves[$j].father == $args[0].ID>>
			<<if $slaves[$j].assignment == $args[0].assignment>>
			<<set $FResult += 1>>
				<<if $arcologies[0].FSEgyptianRevivalist > 20>>
					<<set $FResult += 1>>
				<</if>>
			<</if>>
		<</if>>
		<<if areSisters($args[0], $slaves[$j]) > 0>>
			<<if $slaves[$j].assignment == $args[0].assignment>>
			<<set $FResult += 1>>
				<<if $arcologies[0].FSEgyptianRevivalist > 20>>
					<<set $FResult += 1>>
				<</if>>
			<</if>>
		<</if>>
	<</for>>
	<</if>>
<<else>>
	<<if $args[0].relation != 0>>
	<<for $j = 0; $j < $slaves.length; $j++>>
		<<if $slaves[$j].ID == $args[0].relationTarget>>
			<<if $slaves[$j].assignment == $args[0].assignment>>
			<<set $FResult += 2>>
				<<if $arcologies[0].FSEgyptianRevivalist > 20>>
					<<set $FResult += 2>>
				<</if>>
			<</if>>
			<<break>>
		<</if>>
	<</for>>
	<</if>>
<</if>>
<<if $args[0].relationship > 0>>
	<<for $j = 0; $j < $slaves.length; $j++>>
	<<if $slaves[$j].ID == $args[0].relationshipTarget>>
		<<if $slaves[$j].assignment == $args[0].assignment>>
		<<set $FResult += 1>>
		<</if>>
		<<break>>
	<</if>>
	<</for>>
<<elseif $args[0].relationship == -1>>
	<<set $FResult += 2>>
<</if>>
<<if $args[0].rivalry != 0>>
	<<for $j = 0; $j < $slaves.length; $j++>>
	<<if $slaves[$j].ID == $args[0].rivalryTarget>>
		<<if $slaves[$j].assignment == $args[0].assignment>>
		<<set $FResult -= 1>>
		<</if>>
		<<break>>
	<</if>>
	<</for>>
<</if>>

<<if $args[0].drugs == "male hormone injections" || $args[0].drugs == "female hormone injections">>
	<<set $FResult -= 10>>
<</if>>

<<if $args[0].diet == "XXY">>
	<<set $FResult += 2>>
<<elseif $args[0].diet == "XY" || $args[0].diet == "XX">>
	<<set $FResult += 1>>
<<elseif $args[0].diet == "cum production">>
	<<set $FResult += 1>>
<</if>>

<<if $arcologies[0].FSRepopulationFocus > 20>>
	<<if $args[0].preg > 10>>
	<<set $FResult += 2>>
	<<else>>
	<<set $FResult -= 2>>
	<</if>>
<<elseif $arcologies[0].FSRestart > 20>>
	<<if $args[0].preg > 5 && $args[0].breedingMark == 1>>
		<<set $FResult += 1>>
	<<elseif $args[0].preg > 10>>
		<<set $FResult -= 10>>
	<<else>>
		<<set $FResult += 0>>
	<</if>>
<</if>>

<<if ($args[0].clitPiercing > 2)>>
	<<set $FResult += 1>>
<</if>>

<<if ($args[0].fetishKnown == 1)>>
<<if ($args[0].fetishStrength > 60)>>
<<if ($args[0].fetish != "none")>>
	<<set $FResult += $args[0].fetishStrength/5>>
<</if>>
<</if>>
<</if>>
<<if ($args[0].attrKnown == 1)>>
<<set $FResult += Math.trunc($args[0].attrXX/20)>>
<<set $FResult += Math.trunc($args[0].attrXY/20)>>
<<if ($args[0].energy > 95)>>
	<<set $FResult += 3>>
<<elseif ($args[0].energy > 80)>>
	<<set $FResult += 2>>
<<elseif ($args[0].energy > 60)>>
	<<set $FResult += 1>>
<<elseif ($args[0].energy <= 40)>>
	<<set $FResult -= 1>>
<<elseif ($args[0].energy <= 20)>>
	<<set $FResult -= 2>>
<</if>>
<</if>>

<<if ($args[0].sexualFlaw != "none")>>
	<<set $FResult -= 2>>
<</if>>
<<if ($args[0].sexualQuirk != "none")>>
	<<set $FResult += 2>>
<</if>>
<<if ($args[0].behavioralFlaw != "none")>>
	<<set $FResult -= 2>>
<</if>>
<<if ($args[0].behavioralQuirk != "none")>>
	<<set $FResult += 2>>
<</if>>

<<if $whoreCareers.includes($args[0].career)>>
	<<set $FResult += 1>>
<<elseif ($args[0].oralCount + $args[0].analCount + $args[0].vaginalCount + $args[0].mammaryCount + $args[0].penetrativeCount > 1000)>>
	<<set $FResult += 1>>
<</if>>

<<if !canSee($args[0])>>
	<<set $FResult -= 3>>
<<elseif $args[0].eyes <= -1>>
	<<if $args[0].eyewear != "corrective glasses">>
	<<if $args[0].eyewear != "corrective contacts">>
	<<set $FResult -= 1>>
	<</if>>
	<</if>>
<<elseif $args[0].eyewear == "blurring glasses">>
	<<set $FResult -= 1>>
<<elseif $args[0].eyewear == "blurring contacts">>
	<<set $FResult -= 1>>
<</if>>

<<if $arcologies[0].FSEgyptianRevivalist != "unset">>
	<<if ndef $racialVarieties>>
	<<set $racialVarieties = []>>
	<</if>>
	<<set $seed = 0>>
	<<for $j = 0; $j < $racialVarieties.length; $j++>>
	<<if $args[0].race == $racialVarieties[$j]>>
		<<set $seed = 1>>
	<</if>>
	<</for>>
	<<if $seed == 0>>
	<<set $racialVarieties.push($args[0].race)>>
	<</if>>
<</if>>

<<else>> /* FUCKDOLL */

<<set $FResult += $args[0].fuckdoll/10>>

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

<<set $FResult += $args[0].aphrodisiacs*2>>
<<if $args[0].inflationType == "aphrodisiac">>
	<<set $FResult += $args[0].inflation*4>>
<</if>>

<<if ($args[0].lactation > 0)>>
	<<set $FResult += 1>>
<</if>>

<<if $seeAge == 1>>
<<if $args[0].physicalAge == 18>>
	<<set $FResult += 1>>
	<<if $args[0].birthWeek == 0>>
	<<set $FResult += 0.5*$FResult>>
	<<elseif $args[0].birthWeek < 4>>
	<<set $FResult += 0.1*$FResult>>
	<</if>>
<</if>>
<</if>>

<<if ($args[0].fetish == "mindbroken")>>
	<<set $FResult = Math.trunc($FResult*0.4)>>
<<else>>
	<<set $FResult = Math.trunc($FResult*0.7)>>
<</if>>

<<if $args[0].amp == 0>>
<<elseif $args[0].amp == 1>>
	<<set $FResult -= 2>>
<<elseif $args[0].amp == -2>>
<<elseif $args[0].amp == -5>>
<<else>>
	<<set $FResult -= 1>>
<</if>>

<<if $FResult < 2>>
	<<set $FResult = 2>>
<</if>>

<</widget>>

<<widget "Deadliness">>

<<set $deadliness = 2>>

<<if $args[0].combatSkill > 0>>
	<<set $deadliness += 2>>
<</if>>

<<if $bodyguardCareers.includes($Bodyguard.career)>>
	<<set $deadliness += 1>>
<</if>>

<<if ($args[0].muscles > 30) && ($args[0].muscles <= 95)>>
	<<set $deadliness += 1>>
<<elseif ($args[0].muscles > 95) && ($args[0].height >= 185)>>
	<<set $deadliness += 2>>
<<elseif ($args[0].muscles > 95)>>
	<<set $deadliness -= 1>>
<<elseif ($args[0].muscles < -95)>>
	<<set $deadliness -= 20>>
<<elseif ($args[0].muscles < -30)>>
	<<set $deadliness -= 7>>
<<elseif ($args[0].muscles < -5)>>
	<<set $deadliness -= 3>>
<</if>>

<<if $args[0].height >= 170>>
	<<set $deadliness += 1>>
<</if>>

<<if $args[0].health > 50>>
	<<set $deadliness += 1>>
<</if>>

<<if $args[0].boobs > 4000>>
	<<set $deadliness -= 2>>
<<elseif $args[0].boobs > 2000>>
	<<set $deadliness -= 1>>
<</if>>

<<if $args[0].butt > 6>>
	<<set $deadliness -= 1>>
<</if>>

<<if $args[0].hips > 2>>
	<<set $deadliness -= 1>>
<</if>>

<<if Math.abs($args[0].weight) > 30>>
	<<set $deadliness -= 1>>
<</if>>

<<if $args[0].health < -50>>
	<<set $deadliness -= 1>>
<</if>>

<<if $args[0].inflation == 3>>
	<<set $deadliness -= 3>>
<<elseif $args[0].inflation == 2>>
	<<set $deadliness -= 2>>
<<elseif $args[0].inflation == 1>>
	<<set $deadliness -= 1>>
<</if>>

<<if $args[0].bellyImplant >= 32000>>
	<<set $deadliness -= 5>>
<<elseif $args[0].bellyImplant >= 16000>>
	<<set $deadliness -= 4>>
<<elseif $args[0].bellyImplant >= 8000>>
	<<set $deadliness -= 3>>
<<elseif $args[0].bellyImplant >= 4000>>
	<<set $deadliness -= 2>>
<<elseif $args[0].bellyImplant >= 2000>>
	<<set $deadliness -= 1>>
<</if>>

<<if $args[0].preg > 10>>
	<<if $args[0].pregType >= 20 && $args[0].preg > 30>>
		<<set $deadliness -= 15>>
	<<elseif $args[0].pregType >= 20>>
		<<set $deadliness -= 3>>
	<<elseif $args[0].pregType >= 10>>
		<<set $deadliness -= 2>>
	<<else>>
		<<set $deadliness -= 1>>
	<</if>>
<</if>>
<<if $args[0].balls >= 15>>
	<<set $deadliness -= 1>>
<</if>>
<<if $args[0].dick >= 10>>
	<<set $deadliness -= 1>>
<</if>>

<<if $args[0].amp == 0>>
  <<if !canWalk($args[0])>>
	<<set $deadliness -= 20>>
  <</if>>
<<elseif $args[0].amp == 1>>
	<<set $deadliness -= 20>>
<<elseif $args[0].amp == -5>>
	<<set $deadliness += 10>>
<<elseif $args[0].amp == -4>>
<<else>>
	<<set $deadliness -= 1>>
<</if>>

<<if !canSee($args[0])>>
	<<set $deadliness -= 8>>
<<elseif ($args[0].eyes == -1 && ($args[0].eyewear != "corrective glasses" || $args[0].eyewear != "corrective contacts")) || ($args[0].eyes == 1 && ($args[0].eyewear == "blurring glasses" || $args[0].eyewear == "blurring contacts"))>>
	<<set $deadliness -= 1>>
<</if>>

<<if $deadliness < 1>>
	<<set $deadliness = 1>>
<</if>>

<</widget>>

<<widget "SexualRelease">>

<<set $release = 0>>

<<if ($args[0].assignment == "serve the public")>>
	<<set $release = 1>>
<<elseif ($args[0].assignment == "serve in the club")>>
	<<set $release = 1>>
<<elseif ($args[0].assignment == "whore")>>
	<<set $release = 1>>
<<elseif ($args[0].assignment == "work in the brothel")>>
	<<set $release = 1>>
<<elseif ($args[0].assignment == "please you")>>
	<<set $release = 1>>
<<elseif ($args[0].assignment == "serve in the master suite")>>
	<<set $release = 1>>
<<elseif ($args[0].assignment == "be a subordinate slave")>>
	<<set $release = 1>>
<<elseif ($args[0].assignment == "work a glory hole")>>
	<<set $release = 1>>
<<elseif ($args[0].assignment == "be confined in the arcade")>>
	<<set $release = 1>>
<<elseif ($args[0].assignment == "get milked") && (($args[0].fetish == "boobs") || ($args[0].energy > 95))>>
	<<set $release = 1>>
<<elseif ($args[0].assignment == "work in the dairy") && (($args[0].fetish == "boobs") || ($args[0].energy > 95))>>
	<<set $release = 1>>
<<elseif ($args[0].assignment == "get cockmilked")>>
	<<set $release = 1>>
<<elseif ($args[0].assignment == "work in the collection facility")>>
	<<set $release = 1>>
<<elseif ($args[0].assignment == "be your Head Girl") && ($HGRelease == 1)>>
	<<set $release = 1>>
<</if>>

<</widget>>

<<widget "SlaveTitle">>

<<if $newDescriptions == 1>>

<<if $args[0].dick > 0 && $args[0].balls > 0 && $args[0].boobs > 300 && $args[0].vagina > -1 && $args[0].ovaries == 1>>
	<<if random(1,100) > 50>>
		<<set $desc = "futanari">>
	<<else>>
		<<set $desc = "herm">>
	<</if>>
<<elseif $args[0].dick > 0 && $args[0].balls == 0 && $args[0].boobs > 300 && $args[0].vagina > -1 && $args[0].ovaries == 1>>
	<<set $desc = "dickgirl">>
<<elseif $args[0].dick > 0 && $args[0].vagina > -1 && $args[0].ovaries == 0>>
	<<set $desc = "shemale">>
<<elseif $args[0].dick > 0 && $args[0].balls == 0 && $args[0].vagina == -1 && $args[0].ovaries == 0>>
	<<set $desc = "eunuch">>
<<elseif $args[0].dick > 0 && $args[0].balls > 0 && $args[0].vagina == -1 && $args[0].ovaries == 0>>
	<<if $args[0].face > -1 && $args[0].hips > -1 && $args[0].shoulders < 1 && $args[0].faceShape != "masculine">>
		<<set $desc = "trap">>
	<<elseif $args[0].boobs > 800>>
		<<set $desc = "tittyboy">>
	<<elseif $args[0].dick == 1 && $args[0].balls == 1>>
		<<set $desc = "sissy">>
	<<elseif $args[0].dick > 1 && $args[0].balls > 1 && $args[0].height < 165 && $args[0].muscles < 5 && $args[0].visualAge < 19 && $args[0].faceShape != "masculine">>
		<<set $desc = "twink">>
	<<elseif $args[0].dick > 1 && $args[0].balls > 1 && $args[0].height < 160 && $args[0].muscles < 5 && $args[0].visualAge < 19>>
		<<set $desc = "boytoy">>
	<<elseif $args[0].muscles > 95 && $args[0].height >= 185>>
		<<set $desc = "titan">>
	<<elseif $args[0].muscles > 30>>
		<<set $desc = "muscleboy">>
	<<else>>
		<<set $desc = "slaveboy">>
	<</if>>
<<elseif $args[0].dick == 0 && $args[0].balls == 0 && $args[0].vagina > -1>>
	<<if ($args[0].shoulders > $args[0].hips || $args[0].faceShape == "masculine") && $args[0].boobs < 400 && $args[0].genes == "XY">>
		<<set $desc = "cuntboy">>
	<<elseif $args[0].ovaries == 0 && $args[0].genes == "XY">>
		<<set $desc = "tranny">>
	<<elseif $args[0].weight > 10 && $args[0].boobs > 800 && $args[0].birthsTotal > 0 && $args[0].physicalAge > 59>>
		<<set $desc = "GMILF">>
	<<elseif $args[0].weight > 10 && $args[0].boobs > 800 && $args[0].birthsTotal > 0 && $args[0].physicalAge > 35>>
		<<set $desc = "MILF">>
	<<elseif $args[0].lips > 70 && $args[0].boobs > 2000 && $args[0].butt > 3>>
		<<set $desc = "bimbo">>
	<<elseif $args[0].hips > 1 && $args[0].boobs > 2000 && $args[0].butt > 3 && $args[0].waist < 50>>
		<<set $desc = "hourglass">>
	<<elseif $args[0].muscles > 95 && $args[0].height >= 185>>
		<<set $desc = "amazon">>
	<<elseif $args[0].muscles > 30>>
		<<set $desc = "musclegirl">>
	<<else>>
		<<set $desc = "slavegirl">>
	<</if>>
<<elseif $args[0].dick == 0 && $args[0].balls == 0 && $args[0].vagina == -1>>
	<<set $desc = "neuter">>
<<elseif $args[0].dick == 0 && $args[0].vagina == -1>>
	<<set $desc = "ballslave">>
<<else>>
	<<set $desc = "slave">>
<</if>>

<<if $args[0].visualAge < 13>>
	<<if $args[0].vagina > -1>>
		<<set $desc = "loli " + $desc>>
	<<else>>
		<<set $desc = "shota " + $desc>>
	<</if>>
<</if>>

<<if $args[0].dick > 5 && $args[0].balls > 5 && $args[0].boobs > 5000>>
	<<set $desc = "hyper " + $desc>>
<</if>>

<<if $args[0].boobs > 4000 && $args[0].lactation > 0>>
	<<if $args[0].physicalAge < 13>>
		<<set $desc = $desc + " calf">>
	<<else>>
		<<set $desc = $desc + " cow">>
	<</if>>
<<elseif $args[0].lactation > 0>>
	<<set $desc = "milky " + $desc>>
<</if>>

<<if $args[0].boobs > 7500>>
	<<set $desc = "supermassive titted " + $desc>>
<<elseif $args[0].boobs > 4000>>
	<<set $desc = "huge titted " + $desc>>
<<elseif $args[0].boobs > 1000>>
	<<set $desc = "busty " + $desc>>
<</if>>

<<if $args[0].dick > 5 && $args[0].balls > 5>>
	<<set $desc = "womb filling " + $desc>>
<<elseif $args[0].dick > 5>>
	<<set $desc = "well hung " + $desc>>
<</if>>

<<if $args[0].butt >= 12>>
	<<set $desc = "colossal assed " + $desc>>
<<elseif $args[0].butt >= 12>>
	<<set $desc = "massive assed " + $desc>>
<<elseif $args[0].butt >= 8>>
	<<set $desc = "fat assed " + $desc>>
<<elseif $args[0].butt >= 6>>
	<<set $desc = "bottom heavy " + $desc>>
<<elseif $args[0].butt >= 4>>
	<<set $desc = "big bottomed " + $desc>>
<</if>>

<<if $args[0].births >= 10>>
	<<set $desc = $desc + " broodmother">>
<<elseif $args[0].births >= 3>>
	<<set $desc = $desc + " breeder">>
<</if>>

<<if $args[0].indenture > -1>>
	<<set $desc = "indentured " + $desc>>
<</if>>

<<if $args[0].preg > 10>>
	<<set $desc = "pregnant " + $desc>>
<</if>>

<<if $args[0].fuckdoll > 0>>
	<<set $desc = $desc + " fuckdoll">>
<</if>>

<<else>>

<<if $args[0].dick == 0>>
	<<if $args[0].vagina == -1>> /* NULLS */
		<<if $args[0].visualAge > 55>>
			<<if $args[0].muscles > 30>>
				<<if $args[0].height > 185>>
					<<set $desc = "null GILF amazon">>
				<<else>>
					<<set $desc = "null muscleGILF">>
				<</if>>
			<<elseif ($args[0].lactation > 0) && ($args[0].boobs > 2000)>>
				<<set $desc = "null GILFcow">>
			<<elseif ($args[0].boobsImplant > 0) && ($args[0].buttImplant > 0)>>
				<<set $desc = "GILF bimbonull">>
			<<elseif $args[0].boobs > 6000>>
				<<set $desc = "null boobGILF">>
			<<elseif $args[0].butt > 6>>
				<<set $desc = "null assGILF">>
			<<else>>
				<<set $desc = "GILFnull">>
			<</if>>
		<<elseif $args[0].visualAge > 35>>
			<<if $args[0].muscles > 30>>
				<<if $args[0].height > 185>>
					<<set $desc = "null MILF amazon">>
				<<else>>
					<<set $desc = "null muscleMILF">>
				<</if>>
			<<elseif ($args[0].lactation > 0) && ($args[0].boobs > 2000)>>
				<<set $desc = "null MILFcow">>
			<<elseif ($args[0].boobsImplant > 0) && ($args[0].buttImplant > 0)>>
				<<set $desc = "MILF bimbonull">>
			<<elseif $args[0].boobs > 6000>>
				<<set $desc = "null boobMILF">>
			<<elseif $args[0].butt > 6>>
				<<set $desc = "null assMILF">>
			<<else>>
				<<set $desc = "MILFnull">>
			<</if>>
		<<elseif $args[0].visualAge >= 25>>
			<<if $args[0].muscles > 30>>
				<<if $args[0].height > 185>>
					<<set $desc = "null amazon">>
				<<else>>
					<<set $desc = "null muscleslave">>
				<</if>>
			<<elseif ($args[0].lactation > 0) && ($args[0].boobs > 2000)>>
				<<set $desc = "nullcow">>
			<<elseif ($args[0].boobsImplant > 0) && ($args[0].buttImplant > 0)>>
				<<set $desc = "bimbonull">>
			<<elseif $args[0].boobs > 6000>>
				<<set $desc = "null boobslave">>
			<<elseif $args[0].butt > 6>>
				<<set $desc = "null buttslave">>
			<<else>>
				<<set $desc = "null">>
			<</if>>
		<<else>>
			<<if $args[0].muscles > 30>>
				<<if $args[0].height > 185>>
					<<set $desc = "null amazon slavegirl">>
				<<else>>
					<<set $desc = "null musclegirl">>
				<</if>>
			<<elseif ($args[0].lactation > 0) && ($args[0].boobs > 2000)>>
				<<set $desc = "null girlcow">>
			<<elseif ($args[0].boobsImplant > 0) && ($args[0].buttImplant > 0)>>
				<<set $desc = "null bimbogirl">>
			<<elseif $args[0].boobs > 6000>>
				<<set $desc = "null boobgirl">>
			<<elseif $args[0].butt > 6>>
				<<set $desc = "null assgirl">>
			<<else>>
				<<set $desc = "nullgirl">>
			<</if>>
		<</if>>
	<<else>> /* FEMALES */
		<<if $args[0].visualAge > 55>>
			<<if $args[0].muscles > 30>>
				<<if $args[0].height > 185>>
					<<set $desc = "GILF amazon">>
				<<else>>
					<<set $desc = "muscleGILF">>
				<</if>>
			<<elseif ($args[0].lactation > 0) && ($args[0].boobs > 2000)>>
				<<set $desc = "GILFcow">>
			<<elseif ($args[0].boobsImplant > 0) && ($args[0].buttImplant > 0)>>
				<<set $desc = "GILF bimbo">>
			<<elseif $args[0].boobs > 6000>>
				<<set $desc = "boobGILF">>
			<<elseif $args[0].butt > 6>>
				<<set $desc = "assGILF">>
			<<else>>
				<<set $desc = "GILF">>
			<</if>>
		<<elseif $args[0].visualAge > 35>>
			<<if $args[0].muscles > 30>>
				<<if $args[0].height > 185>>
					<<set $desc = "MILF amazon">>
				<<else>>
					<<set $desc = "muscleMILF">>
				<</if>>
			<<elseif ($args[0].lactation > 0) && ($args[0].boobs > 2000)>>
				<<set $desc = "MILFcow">>
			<<elseif ($args[0].boobsImplant > 0) && ($args[0].buttImplant > 0)>>
				<<set $desc = "MILF bimbo">>
			<<elseif $args[0].boobs > 6000>>
				<<set $desc = "boobMILF">>
			<<elseif $args[0].butt > 6>>
				<<set $desc = "assMILF">>
			<<else>>
				<<set $desc = "MILF">>
			<</if>>
		<<elseif $args[0].visualAge >= 25>>
			<<if $args[0].muscles > 30>>
				<<if $args[0].height > 185>>
					<<set $desc = "amazon">>
				<<else>>
					<<set $desc = "muscleslave">>
				<</if>>
			<<elseif ($args[0].lactation > 0) && ($args[0].boobs > 2000)>>
				<<set $desc = "cow">>
			<<elseif ($args[0].boobsImplant > 0) && ($args[0].buttImplant > 0)>>
				<<set $desc = "bimbo">>
			<<elseif $args[0].boobs > 6000>>
				<<set $desc = "boobslave">>
			<<elseif $args[0].butt > 6>>
				<<set $desc = "buttslave">>
			<<else>>
				<<set $desc = "slave">>
			<</if>>
		<<else>>
			<<if $args[0].muscles > 30>>
				<<if $args[0].height > 185>>
					<<set $desc = "amazon slavegirl">>
				<<else>>
					<<set $desc = "musclegirl">>
				<</if>>
			<<elseif ($args[0].lactation > 0) && ($args[0].boobs > 2000)>>
				<<set $desc = "girlcow">>
			<<elseif ($args[0].boobsImplant > 0) && ($args[0].buttImplant > 0)>>
				<<set $desc = "bimbogirl">>
			<<elseif $args[0].boobs > 6000>>
				<<set $desc = "boobgirl">>
			<<elseif $args[0].butt > 6>>
				<<set $desc = "assgirl">>
			<<else>>
				<<set $desc = "slavegirl">>
			<</if>>
		<</if>>
	<</if>>
<<else>>
	<<if $args[0].vagina != -1>>
		<<if $args[0].balls > 0>> /* FUTANARI: cock & balls & vagina */
			<<if $args[0].visualAge > 55>>
				<<if $args[0].muscles > 30>>
					<<if $args[0].height > 185>>
						<<set $desc = "futanari GILF amazon">>
					<<else>>
						<<set $desc = "futanari muscleGILF">>
					<</if>>
				<<elseif ($args[0].lactation > 0) && ($args[0].boobs > 2000)>>
					<<set $desc = "futanari GILFcow">>
				<<elseif ($args[0].boobsImplant > 0) && ($args[0].buttImplant > 0)>>
					<<set $desc = "futanari GILF bimbo">>
				<<elseif $args[0].boobs > 6000>>
					<<set $desc = "futanari boobGILF">>
				<<elseif $args[0].butt > 6>>
					<<set $desc = "futanari assGILF">>
				<<else>>
					<<set $desc = "futanari GILF">>
				<</if>>
			<<elseif $args[0].visualAge > 35>>
				<<if $args[0].muscles > 30>>
					<<if $args[0].height > 185>>
						<<set $desc = "futanari MILF amazon">>
					<<else>>
						<<set $desc = "futanari muscleMILF">>
					<</if>>
				<<elseif ($args[0].lactation > 0) && ($args[0].boobs > 2000)>>
					<<set $desc = "futanari MILFcow">>
				<<elseif ($args[0].boobsImplant > 0) && ($args[0].buttImplant > 0)>>
					<<set $desc = "futanari MILF bimbo">>
				<<elseif $args[0].boobs > 6000>>
					<<set $desc = "futanari boobMILF">>
				<<elseif $args[0].butt > 6>>
					<<set $desc = "futanari assMILF">>
				<<else>>
					<<set $desc = "futanari MILF">>
				<</if>>
			<<elseif $args[0].visualAge >= 25>>
				<<if $args[0].muscles > 30>>
					<<if $args[0].height > 185>>
						<<set $desc = "futanari amazon">>
					<<else>>
						<<set $desc = "muscle futanari">>
					<</if>>
				<<elseif ($args[0].lactation > 0) && ($args[0].boobs > 2000)>>
					<<set $desc = "futanari cow">>
				<<elseif ($args[0].boobsImplant > 0) && ($args[0].buttImplant > 0)>>
					<<set $desc = "futanari bimbo">>
				<<elseif $args[0].boobs > 6000>>
					<<set $desc = "boob futanari">>
				<<elseif $args[0].butt > 6>>
					<<set $desc = "butt futanari">>
				<<else>>
					<<set $desc = "futanari">>
				<</if>>
			<<else>>
				<<if $args[0].muscles > 30>>
					<<if $args[0].height > 185>>
						<<set $desc = "young futanari amazon">>
					<<else>>
						<<set $desc = "young muscle futanari">>
					<</if>>
				<<elseif ($args[0].lactation > 0) && ($args[0].boobs > 2000)>>
					<<set $desc = "futanari girlcow">>
				<<elseif ($args[0].boobsImplant > 0) && ($args[0].buttImplant > 0)>>
					<<set $desc = "futanari bimbogirl">>
				<<elseif $args[0].boobs > 6000>>
					<<set $desc = "futanari boobgirl">>
				<<elseif $args[0].butt > 6>>
					<<set $desc = "futanari assgirl">>
				<<else>>
					<<set $desc = "futanari girl">>
				<</if>>
			<</if>>
		<<else>> /* FUTANARI: cock & vagina */
			<<if $args[0].visualAge > 55>>
				<<if $args[0].muscles > 30>>
					<<if $args[0].height > 185>>
						<<set $desc = "futaGILF amazon">>
					<<else>>
						<<set $desc = "muscle futaGILF">>
					<</if>>
				<<elseif ($args[0].lactation > 0) && ($args[0].boobs > 2000)>>
					<<set $desc = "futaGILF cow">>
				<<elseif ($args[0].boobsImplant > 0) && ($args[0].buttImplant > 0)>>
					<<set $desc = "futaGILF bimbo">>
				<<elseif $args[0].boobs > 6000>>
					<<set $desc = "futa boobGILF">>
				<<elseif $args[0].butt > 6>>
					<<set $desc = "futa assGILF">>
				<<else>>
					<<set $desc = "futaGILF">>
				<</if>>
			<<elseif $args[0].visualAge > 35>>
				<<if $args[0].muscles > 30>>
					<<if $args[0].height > 185>>
						<<set $desc = "futaMILF amazon">>
					<<else>>
						<<set $desc = "muscle futaMILF">>
					<</if>>
				<<elseif ($args[0].lactation > 0) && ($args[0].boobs > 2000)>>
					<<set $desc = "futaMILF cow">>
				<<elseif ($args[0].boobsImplant > 0) && ($args[0].buttImplant > 0)>>
					<<set $desc = "futaMILF bimbo">>
				<<elseif $args[0].boobs > 6000>>
					<<set $desc = "futa boobMILF">>
				<<elseif $args[0].butt > 6>>
					<<set $desc = "futa assMILF">>
				<<else>>
					<<set $desc = "futaMILF">>
				<</if>>
			<<elseif $args[0].visualAge >= 25>>
				<<if $args[0].muscles > 30>>
					<<if $args[0].height > 185>>
						<<set $desc = "futa amazon">>
					<<else>>
						<<set $desc = "muscle futa">>
					<</if>>
				<<elseif ($args[0].lactation > 0) && ($args[0].boobs > 2000)>>
					<<set $desc = "futacow">>
				<<elseif ($args[0].boobsImplant > 0) && ($args[0].buttImplant > 0)>>
					<<set $desc = "futa bimbo">>
				<<elseif $args[0].boobs > 6000>>
					<<set $desc = "boobfuta">>
				<<elseif $args[0].butt > 6>>
					<<set $desc = "assfuta">>
				<<else>>
					<<set $desc = "futa">>
				<</if>>
			<<else>>
				<<if $args[0].muscles > 30>>
					<<if $args[0].height > 185>>
						<<set $desc = "futagirl amazon">>
					<<else>>
						<<set $desc = "muscle futagirl">>
					<</if>>
				<<elseif ($args[0].lactation > 0) && ($args[0].boobs > 2000)>>
					<<set $desc = "futa girlcow">>
				<<elseif ($args[0].boobsImplant > 0) && ($args[0].buttImplant > 0)>>
					<<set $desc = "futa bimbogirl">>
				<<elseif $args[0].boobs > 6000>>
					<<set $desc = "futa boobgirl">>
				<<elseif $args[0].butt > 6>>
					<<set $desc = "futa assgirl">>
				<<else>>
					<<set $desc = "futagirl">>
				<</if>>
			<</if>>
		<</if>>
		<<if $args[0].dick > 5 && $args[0].balls > 5 && $args[0].boobs > 5000>>
			<<set $desc = "hyper " + $desc>>
		<</if>>
	<<else>>
		<<if $args[0].balls > 0>>
			<<if ($args[0].boobs > 300) && ($args[0].butt > 2)>> /* SHEMALES: cock & balls, T&A above minimum */
				<<if $args[0].visualAge > 55>>
					<<set $desc = "sheGILF">>
				<<elseif $args[0].visualAge > 35>>
					<<set $desc = "sheMILF">>
				<<elseif $args[0].visualAge >= 25>>
					<<set $desc = "shemale">>
				<<else>>
					<<set $desc = "tgirl">>
				<</if>>
				<<if $args[0].muscles > 30>>
					<<if $args[0].height > 185>>
						<<set $desc = $desc+" amazon">>
					<<else>>
						<<set $desc = "muscle "+$desc>>
					<</if>>
				<<elseif ($args[0].lactation > 0) && ($args[0].boobs > 2000)>>
					<<set $desc = $desc+" cow">>
				<<elseif ($args[0].boobsImplant > 0) && ($args[0].buttImplant > 0)>>
					<<set $desc = $desc+" bimbo">>
				<<elseif $args[0].boobs > 6000>>
					<<set $desc = "topheavy "+$desc>>
				<<elseif $args[0].butt > 6>>
					<<set $desc = "bottomheavy "+$desc>>
				<</if>>
			<<else>>
				<<if ($args[0].shoulders < 1) && ($args[0].muscles <= 30)>>
					<<if ($args[0].faceShape == "masculine") || ($args[0].faceShape == "androgynous")>> /* SISSIES: feminine shoulders or muscles, masculine faces */
						<<if $args[0].visualAge > 55>>
							<<set $desc = "sissyGILF">>
						<<elseif $args[0].visualAge > 35>>
							<<set $desc = "sissyMILF">>
						<<else>>
							<<set $desc = "sissy">>
						<</if>>
					<<else>> /* TRAPS: feminine shoulders or muscles, feminine faces */
						<<if $args[0].visualAge > 55>>
							<<set $desc = "trapGILF">>
						<<elseif $args[0].visualAge > 35>>
							<<set $desc = "trapMILF">>
						<<elseif $args[0].visualAge >= 25>>
							<<set $desc = "trap">>
						<<else>>
							<<set $desc = "trapgirl">>
						<</if>>
					<</if>>
					<<if $args[0].lactation > 0>>
						<<set $desc = $desc+" cow">>
					<<elseif ($args[0].boobsImplant > 0) && ($args[0].buttImplant > 0)>>
						<<set $desc = $desc+" bimbo">>
					<</if>>
				<<else>> /* BITCHES: masculine shoulders or muscles */
					<<if $args[0].muscles > 30>>
						<<if $args[0].height > 185>>
							<<set $desc = "amazon bitch">>
						<<else>>
							<<set $desc = "muscle bitch">>
						<</if>>
					<<elseif $args[0].lactation > 0>>
						<<set $desc = "bitchcow">>
					<<elseif ($args[0].boobsImplant > 0) && ($args[0].buttImplant > 0)>>
						<<set $desc = "bimbo bitch">>
					<<else>>
						<<set $desc = "bitch">>
					<</if>>
					<<if $args[0].visualAge > 55>>
						<<set $desc = "verteren "+$desc>>
					<<elseif $args[0].visualAge > 35>>
						<<set $desc = "mature "+$desc>>
					<<elseif $args[0].visualAge < 25>>
						<<set $desc = "young "+$desc>>
					<</if>>
				<</if>>
			<</if>>
		<<else>>
			<<if $args[0].visualAge > 55>>
				<<if $args[0].muscles > 30>>
					<<if $args[0].height > 185>>
						<<set $desc = "dickGILF amazon">>
					<<else>>
						<<set $desc = "muscle dickGILF">>
					<</if>>
				<<elseif ($args[0].lactation > 0) && ($args[0].boobs > 2000)>>
					<<set $desc = "dickGILF cow">>
				<<elseif ($args[0].boobsImplant > 0) && ($args[0].buttImplant > 0)>>
					<<set $desc = "dickGILF bimbo">>
				<<elseif $args[0].boobs > 6000>>
					<<set $desc = "boob dickGILF">>
				<<elseif $args[0].butt > 6>>
					<<set $desc = "ass dickGILF">>
				<<else>>
					<<set $desc = "dickGILF">>
				<</if>>
			<<elseif $args[0].visualAge > 35>>
				<<if $args[0].muscles > 30>>
					<<if $args[0].height > 185>>
						<<set $desc = "dickMILF amazon">>
					<<else>>
						<<set $desc = "muscle dickMILF">>
					<</if>>
				<<elseif ($args[0].lactation > 0) && ($args[0].boobs > 2000)>>
					<<set $desc = "dickMILF cow">>
				<<elseif ($args[0].boobsImplant > 0) && ($args[0].buttImplant > 0)>>
					<<set $desc = "dickMILF bimbo">>
				<<elseif $args[0].boobs > 6000>>
					<<set $desc = "boob dickMILF">>
				<<elseif $args[0].butt > 6>>
					<<set $desc = "ass dickMILF">>
				<<else>>
					<<set $desc = "dickMILF">>
				<</if>>
			<<elseif $args[0].visualAge >= 25>>
				<<if $args[0].muscles > 30>>
					<<if $args[0].height > 185>>
						<<set $desc = "dickslave amazon">>
					<<else>>
						<<set $desc = "muscle dickslave">>
					<</if>>
				<<elseif ($args[0].lactation > 0) && ($args[0].boobs > 2000)>>
					<<set $desc = "dickcow">>
				<<elseif ($args[0].boobsImplant > 0) && ($args[0].buttImplant > 0)>>
					<<set $desc = "dickbimbo">>
				<<elseif $args[0].boobs > 6000>>
					<<set $desc = "boob dickslave">>
				<<elseif $args[0].butt > 6>>
					<<set $desc = "ass dickslave">>
				<<else>>
					<<set $desc = "dickslave">>
				<</if>>
			<<else>>
				<<if $args[0].muscles > 30>>
					<<if $args[0].height > 185>>
						<<set $desc = "dickgirl amazon">>
					<<else>>
						<<set $desc = "muscle dickgirl">>
					<</if>>
				<<elseif ($args[0].lactation > 0) && ($args[0].boobs > 2000)>>
					<<set $desc = "dickgirl cow">>
				<<elseif ($args[0].boobsImplant > 0) && ($args[0].buttImplant > 0)>>
					<<set $desc = "dickgirl bimbo">>
				<<elseif $args[0].boobs > 6000>>
					<<set $desc = "boob dickgirl">>
				<<elseif $args[0].butt > 6>>
					<<set $desc = "ass dickgirl">>
				<<else>>
					<<set $desc = "dickslave">>
				<</if>>
			<</if>>
		<</if>>
	<</if>>
<</if>>

<<if $args[0].births >= 5>>
	<<set $desc = $desc + " broodmother">>
<<elseif $args[0].births >= 2>>
	<<set $desc = $desc + " breeder">>
<</if>>

<<if $args[0].indenture > -1>>
	<<set $desc = "indentured " + $desc>>
<</if>>

<<if $args[0].preg > 10>>
	<<set $desc = "pregnant " + $desc>>
<</if>>

<<if $args[0].fuckdoll > 0>>
	<<set $desc = $desc + " fuckdoll">>
<</if>>

<</if>>

<</widget>>

<<widget "modScore">>
/* Use is <<modScore $someSlave>> where $someSlave is any variable that points to a valid slave */
<<set $piercingScore = 0>>
<<set $tatScore = 0>>
<<if $args[0].earPiercing > 0>><<set $piercingScore += $args[0].earPiercing*0.75-0.5>><</if>>
<<if $args[0].nosePiercing > 0>><<set $piercingScore += $args[0].nosePiercing*0.75-0.5>><</if>>
<<if $args[0].eyebrowPiercing > 0>><<set $piercingScore += $args[0].eyebrowPiercing*0.75-0.5>><</if>>
<<if $args[0].navelPiercing > 0>><<set $piercingScore += $args[0].navelPiercing*0.75-0.5>><</if>>
<<if $args[0].corsetPiercing > 0>><<set $piercingScore += $args[0].corsetPiercing*0.75+0.5>><</if>>
<<if $args[0].nipplesPiercing > 0>><<set $piercingScore += $args[0].nipplesPiercing*0.75-0.25>><</if>>
<<if $args[0].areolaePiercing > 0>><<set $piercingScore += $args[0].areolaePiercing*0.75+0.5>><</if>>
<<if $args[0].lipsPiercing > 0>><<set $piercingScore += $args[0].lipsPiercing*0.75-0.25>><</if>>
<<if $args[0].tonguePiercing > 0 >><<set $piercingScore += $args[0].tonguePiercing*0.75-0.25>><</if>>
<<if $args[0].clitPiercing == 3>><<set $piercingScore += 1.25>> /* smart piercing */
	<<elseif $args[0].clitPiercing > 0>><<set $piercingScore += $args[0].clitPiercing*0.75-0.25>><</if>>
<<if $args[0].vaginaPiercing > 0>><<set $piercingScore += $args[0].vaginaPiercing*0.75-0.25>><</if>>
<<if $args[0].dickPiercing > 0>><<set $piercingScore += $args[0].dickPiercing*0.75-0.25>><</if>>
<<if $args[0].anusPiercing > 0>><<set $piercingScore += $args[0].anusPiercing*0.75-0.25>><</if>>
<<if $args[0].boobsTat != 0>><<set $tatScore += 1.25>><</if>>
<<if $args[0].buttTat != 0>><<set $tatScore += 1.25>><</if>>
<<if $args[0].lipsTat != 0>><<set $tatScore += 1.25>><</if>>
<<if $args[0].shouldersTat != 0>><<set $tatScore += 1>><</if>>
<<if $args[0].backTat != 0>><<set $tatScore += 1.25>><</if>>
<<if $args[0].armsTat != 0>><<set $tatScore += 1>><</if>>
<<if $args[0].legsTat != 0>><<set $tatScore += 1>><</if>>
<<if $args[0].stampTat != 0>><<set $tatScore += 1>><</if>>
<<if $args[0].vaginaTat != 0>><<set $tatScore += 1>><</if>>
<<if $args[0].dickTat != 0>><<set $tatScore += 1>><</if>>
<<if $args[0].bellyTat != 0>>
<<if (($args[0].preg > 30) && ($args[0].pregType >= 20)) || ($args[0].bellyImplant >= 32000)>>
	<<set $tatScore += 0.75>>
<<elseif (($args[0].preg > 20) && ($args[0].pregType >= 20)) || (($args[0].preg > 30) && ($args[0].pregType >= 10)) || ($args[0].bellyImplant >= 16000)>>
	<<set $tatScore += 1>>
<<elseif (($args[0].preg > 10) && ($args[0].pregType >= 20)) || (($args[0].preg > 20) && ($args[0].pregType >= 10)) || ($args[0].preg > 30) || ($args[0].inflation == 3) || ($args[0].bellyImplant >= 8000)>>
	<<set $tatScore += 1>>
<<elseif (($args[0].preg > 0) && ($args[0].pregType >= 20)) || (($args[0].preg > 10) && ($args[0].pregType >= 10)) || ($args[0].preg > 20) || ($args[0].inflation == 2) || ($args[0].bellyImplant >= 4000)>>
	<<set $tatScore += 0.5>>
<<elseif (($args[0].preg > 0) && ($args[0].pregType >= 10)) || ($args[0].preg > 10) || ($args[0].inflation == 1) || ($args[0].bellyImplant >= 2000)>>
	<<set $tatScore += 0.25>>
<<else>>
	<<set $tatScore += 0.1>>
<</if>>
<</if>>
<<if $args[0].anusTat == "bleached">><<set $tatScore += 0.5>>
	<<elseif $args[0].anusTat != 0>><<set $tatScore += 1.25>><</if>>
<<set $modScore = $piercingScore+$tatScore>> /* note: always overwrites previous $modScore */
<</widget>>

<<widget "fetishChangeChance">>

<<if $args[0].clitSetting != $args[0].fetish>>
	<<set $fetishChangeChance = Math.trunc(Math.clamp(($args[0].devotion/4)-($args[0].fetishStrength/4), 0, 100))>>
<<else>>
	<<set $fetishChangeChance = 0>>
<</if>>

<</widget>>

<<widget "slaveCost">>

<<Beauty $args[0]>>
<<FResult $args[0]>>

<<set $slaveCost = ($beauty*$FResult)>>

<<set $slaveMultiplier = $slaveCostFactor>>

<<if $args[0].behavioralFlaw != "none">>
	<<set $slaveMultiplier -= 0.1>>
<</if>>
<<if $args[0].behavioralQuirk != "none">>
	<<set $slaveMultiplier += 0.1>>
<</if>>
<<if $args[0].sexualFlaw == "breeder" && $arcologies[0].FSRepopulationFocus != "unset">>
	<<set $slaveMultiplier += 0.3>>
<<elseif $args[0].sexualFlaw != "none">>
	<<set $slaveMultiplier -= 0.1>>
<</if>>
<<if $args[0].sexualQuirk != "none">>
	<<set $slaveMultiplier += 0.1>>
<</if>>

<<if $args[0].fetishKnown == 1>>
	<<if $args[0].fetish == "mindbroken">>
		<<set $slaveMultiplier -= 0.3>>
	<<elseif $args[0].fetish != "none">>
		<<set $slaveMultiplier += $args[0].fetishStrength/1000>>
	<</if>>
<<else>>
	<<set $slaveMultiplier -= 0.1>>
<</if>>

<<if $args[0].attrKnown == 1>>
	<<if $args[0].energy > 95>>
	<<set $slaveMultiplier += 0.2>>
	<</if>>
<</if>>

<<if $args[0].vagina == 0>>
	<<set $slaveMultiplier += 0.1>>
<</if>>
<<if $args[0].mpreg == 1>>
	<<set $slaveMultiplier += 0.2>>
<</if>>
<<if $arcologies[0].FSRepopulationFocusSMR == 1>>
	<<if $args[0].preg < -1>>
		<<set $slaveMultiplier -= 0.5>>
	<<elseif ($args[0].pregType >= 10) && ($args[0].preg > 20)>>
		<<set $slaveMultiplier += 0.5>>
	<<elseif $args[0].preg > 10>>
		<<set $slaveMultiplier += 0.1>>
	<</if>>
<<elseif $arcologies[0].FSRestartSMR == 1>>
	<<if $args[0].preg < -1>>
		<<set $slaveMultiplier += 0.5>>
	<<elseif ($args[0].pregType >= 10) && ($args[0].preg > 20)>>
		<<set $slaveMultiplier -= 1.5>>
	<<elseif $args[0].preg > 10>>
		<<set $slaveMultiplier -= 1.0>>
	<</if>>
<<else>>
	<<if $args[0].preg < -1>>
		<<set $slaveMultiplier -= 0.1>>
	<<elseif ($args[0].pregType >= 10) && ($args[0].preg > 20)>>
		<<set $slaveMultiplier -= 0.5>>
	<<elseif $args[0].preg > 10>>
		<<set $slaveMultiplier -= 0.1>>
	<</if>>
<</if>>
<<set $slaveMultiplier += 0.05*$args[0].intelligence>>
<<if $args[0].intelligenceImplant == 1>>
	<<set $slaveMultiplier += 0.1-($args[0].intelligence*0.02)>>
<</if>>

<<if $args[0].vagina > -1 && $arcologies[0].FSRestartSMR == 1>>
	<<if $args[0].dick > 0>>
	<<if $args[0].ovaries == 0 && $args[0].balls == 0>>
		<<set $slaveMultiplier += 0.8>>
	<</if>>
	<</if>>
<<elseif $args[0].vagina > -1>>
	<<if $args[0].dick > 0>>
		<<if ($ui != "start") || ($PC.dick == 0) || ($PC.vagina == 0)>>
			<<set $slaveMultiplier += 0.2>>
			<<if $args[0].ovaries > 0>>
			<<if $args[0].balls > 0>>
				<<set $slaveMultiplier += 0.8>>
			<</if>>
			<</if>>
		<<else>>
			<<set $slaveMultiplier += 0.1>>
			<<if $args[0].ovaries > 0>>
			<<if $args[0].balls > 0>>
				<<set $slaveMultiplier += 0.2>>
			<</if>>
			<</if>>
		<</if>>
	<</if>>
<</if>>

<<if $args[0].pubertyXY == 0 && $args[0].physicalAge >= $potencyAge && $arcologies[0].FSGenderRadicalist == "unset">>
	<<set $slaveMultiplier += 0.5>>
<</if>>

<<if $args[0].prestige > 0>>
	<<set $slaveMultiplier += 0.7*$args[0].prestige>>
<</if>>

<<if $specialSlavesPriceOverride == 1>>
	<<if $args[0].devotion >= 50>>
		<<set $slaveMultiplier += $args[0].devotion/200>>
	<</if>>
	<<if $args[0].trust >= 50>>
		<<set $slaveMultiplier += $args[0].trust/200>>
	<</if>>
<<else>>
<<set $slaveMultiplier += $args[0].devotion/200>>
<<if $args[0].devotion <= 50>>
	<<set $slaveMultiplier += $args[0].trust/200>>
<<else>>
	<<if $args[0].trust > 0>>
		<<set $slaveMultiplier += $args[0].trust/200>>
	<</if>>
<</if>>
<</if>>

<<if $args[0].brand != 0>>
	<<if $rep > 10000>>
	<<set $slaveMultiplier += 0.1>>
	<<elseif $rep < 5000>>
	<<set $slaveMultiplier -= 0.1>>
	<</if>>
<</if>>

<<if $arcologies[0].FSSupremacistLawME != 0>>
	<<if $args[0].race != $arcologies[0].FSSupremacistRace>>
	<<set $slaveMultiplier -= 0.1>>
	<</if>>
<</if>>
<<if $arcologies[0].FSSubjugationistLawME != 0>>
	<<if $args[0].race == $arcologies[0].FSSubjugationistRace>>
	<<set $slaveMultiplier -= 0.2>>
	<</if>>
<</if>>
<<if $arcologies[0].FSRestartSMR != 0>>
	<<if $args[0].dick > 0>>
	<<set $slaveMultiplier -= 0.1>>
	<</if>>
	<<if $args[0].balls > 0>>
	<<set $slaveMultiplier -= 0.2>>
	<</if>>
	<<if $args[0].vagina > 0>>
	<<set $slaveMultiplier -= 0.1>>
	<</if>>
	<<if $args[0].ovaries > 0>>
	<<set $slaveMultiplier -= 0.5>>
	<</if>>
<</if>>
<<if $arcologies[0].FSGenderFundamentalistSMR != 0>>
	<<if $args[0].dick > 0>>
	<<set $slaveMultiplier -= 0.1>>
	<</if>>
	<<if $args[0].balls > 0>>
	<<set $slaveMultiplier -= 0.1>>
	<</if>>
<</if>>
<<if $arcologies[0].FSGenderRadicalistLaw != 0>>
	<<if $args[0].dick > 0>>
	<<set $slaveMultiplier += 0.1>>
	<</if>>
	<<if $args[0].balls > 0>>
	<<set $slaveMultiplier -= 0.1>>
	<</if>>
<</if>>
<<if $arcologies[0].FSArabianRevivalist > 50>>
	<<set $slaveMultiplier += 0.1>>
<</if>>

<<if $args[0].career != 0>>
	<<if $args[0].career == "a slave">>
	<<set $slaveMultiplier += 0.1>>
	<<elseif $bodyguardCareers.includes($args[0].career)>>
	<<set $slaveMultiplier += 0.1>>
	<<elseif $wardenessCareers.includes($args[0].career)>>
	<<set $slaveMultiplier += 0.1>>
	<<elseif $attendantCareers.includes($args[0].career)>>
	<<set $slaveMultiplier += 0.1>>
	<<elseif $schoolteacherCareers.includes($args[0].career)>>
	<<set $slaveMultiplier += 0.1>>
	<<elseif $stewardessCareers.includes($args[0].career)>>
	<<set $slaveMultiplier += 0.1>>
	<<elseif $milkmaidCareers.includes($args[0].career)>>
	<<set $slaveMultiplier += 0.1>>
	<<elseif $madamCareers.includes($args[0].career)>>
	<<set $slaveMultiplier += 0.1>>
	<<elseif $DJCareers.includes($args[0].career)>>
	<<set $slaveMultiplier += 0.1>>
	<<elseif $HGCareers.includes($args[0].career)>>
	<<set $slaveMultiplier += 0.1>>
	<<elseif $recruiterCareers.includes($args[0].career)>>
	<<set $slaveMultiplier += 0.1>>
	<<elseif $entertainmentCareers.includes($args[0].career)>>
	<<set $slaveMultiplier += 0.05>>
	<<elseif $whoreCareers.includes($args[0].career)>>
	<<set $slaveMultiplier += 0.05>>
	<<elseif $gratefulCareers.includes($args[0].career)>>
	<<set $slaveMultiplier += 0.05>>
	<<elseif $menialCareers.includes($args[0].career)>>
	<<set $slaveMultiplier += 0.05>>
	<</if>>
<</if>>
<<if ($week-$args[0].weekAcquired >= 20) && ($args[0].entertainSkill >= 100)>>
<<if $entertainmentCareers.includes($args[0].career)>>
<<else>>
	<<set $slaveMultiplier += 0.05>>
<</if>>
<</if>>
<<if ($args[0].oralCount + $args[0].analCount + $args[0].vaginalCount + $args[0].mammaryCount + $args[0].penetrativeCount > 1000)>>
<<if $whoreCareers.includes($args[0].career)>>
<<else>>
	<<set $slaveMultiplier += 0.05>>
<</if>>
<</if>>

<<if $seeAge == 1>>
<<if $args[0].physicalAge == 18>>
	<<if $args[0].birthWeek == 0>>
	<<set $slaveMultiplier -= 0.2>>
	<<elseif $args[0].birthWeek < 4>>
	<<set $slaveMultiplier -= 0.05>>
	<</if>>
<</if>>
<</if>>

<<if $args[0].amp == 1>>
	<<set $slaveMultiplier -= 0.2>>
<</if>>

<<if $args[0].eyes == -2>>
	<<set $slaveMultiplier -= 0.2>>
<</if>>

<<if $args[0].indenture > -1>>
	<<set $slaveMultiplier -= 0.1*$args[0].indentureRestrictions>>
	<<set $slaveMultiplier -= (260-$args[0].indenture)/260>>
<<elseif $seeAge == 1>>
<<if $args[0].actualAge >= ($retirementAge-5) && $PhysicalRetirementAgePolicy != 1>>
	<<set $seed = 52*($retirementAge-$args[0].actualAge)>>
	<<set $slaveMultiplier = $slaveMultiplier*($seed/260)>>
<</if>>
<<if $args[0].physicalAge >= ($retirementAge-5) && $PhysicalRetirementAgePolicy == 1>>
	<<set $seed = 52*($retirementAge-$args[0].physicalAge)>>
	<<set $slaveMultiplier = $slaveMultiplier*($seed/260)>>
<</if>>
<</if>>

<<set $slaveCost = ($slaveCost*$slaveMultiplier*50)>>

<<if $slaveCost < $minimumSlaveCost>>
	<<set $slaveCost = $minimumSlaveCost>>
<<elseif $slaveCost <= 100000>>
<<elseif $slaveCost <= 200000>>
	<<set $slaveCost -= (($slaveCost-100000)*0.1)>>
<<elseif $slaveCost <= 300000>>
	<<set $slaveCost -= 10000 + (($slaveCost-200000)*0.2)>>
<<elseif $slaveCost <= 400000>>
	<<set $slaveCost -= 30000 + (($slaveCost-300000)*0.3)>>
<<elseif $slaveCost <= 500000>>
	<<set $slaveCost -= 60000 + (($slaveCost-400000)*0.4)>>
<<else>>
	<<set $slaveCost -= 100000 + (($slaveCost-500000)*0.5)>>
<</if>>
<<if $slaveCost < 1000>>
	<<set $slaveCost = 1000>>
<</if>>

<<set $slaveCost = 500*Math.trunc($slaveCost/500)>>

<</widget>>


code:
:: Assign Widgets [widget nobr]

/%
	Call as <<assignJob slaveObject $returnto | _currentRule.facilityRemove | "serve in the master suite"
	$args[0] slave object. *MUST be present*
	$args[1] Job to assign slave to. Will accept the $returnto vars and the _currentRule.assignFacility vars and the actual job assignments "serve in the master suite" etc.

	This is basically a Widget version of assign but will work anywhere, and saves to the slaves[..] array, and changes your $args[0] var sent.
%/
<<widget assignJob>>
<<if ($args[1] != "Pit") && ($args[1] != "Coursing Association")>>
<<removeJob $args[0] $args[0].assignment>>
<<set _wID = $args[0].ID, _SL = $slaves.length>>

/% Get slaves[_wi] index # %/
<<if $i < _SL && _wID == $slaves[$i].ID>>
	<<set _wi = $i>>
<<else>>
	<<for _wi = 0; _wi < _SL; _wi++>>
	<<if _wID == $slaves[_wi].ID>>
		<<break>>
	<</if>>
	<</for>>
<</if>>

/% use .toLowerCase() to get rid of a few dupe conditions. %/
<<switch $args[1].toLowerCase()>>
<<case "clinic" "get treatment in the clinic">>
	<<set $args[0].assignment = "get treatment in the clinic", $clinicSlaves++, $CliniciIDs.push({ID: _wID, Index: _wi})>>
<<case "schoolroom" "learn in the schoolroom">>
	<<set $args[0].assignment = "learn in the schoolroom", $schoolroomSlaves++, $SchlRiIDs.push({ID: _wID, Index: _wi})>>
<<case "spa" "rest in the spa">>
	<<set $args[0].assignment = "rest in the spa", $spaSlaves++, $SpaiIDs.push({ID: _wID, Index: _wi})>>
<<case "cellblock" "be confined in the cellblock">>
	<<set $args[0].assignment = "be confined in the cellblock", $cellblockSlaves++, $CellBiIDs.push({ID: _wID, Index: _wi})>>
<<case "arcade" "be confined in the arcade">>
	<<set $args[0].assignment = "be confined in the arcade", $arcadeSlaves++, $ArcadeiIDs.push({ID: _wID, Index: _wi})>>
<<case "brothel" "work in the brothel">>
	<<set $args[0].assignment = "work in the brothel", $brothelSlaves++, $BrothiIDs.push({ID: _wID, Index: _wi})>>
<<case "club" "serve in the club">>
	<<set $args[0].assignment = "serve in the club", $clubSlaves++, $ClubiIDs.push({ID: _wID, Index: _wi})>>
<<case "dairy" "work in the dairy">>
	<<set $args[0].assignment = "work in the dairy", $dairySlaves++, $DairyiIDs.push({ID: _wID, Index: _wi})>>
<<case "hgsuite" "head girl suite" "live with your head girl">>
	<<set $args[0].assignment = "live with your Head Girl", $HGSuiteSlaves++, $HGSuiteiIDs.push({ID: _wID, Index: _wi})>>
<<case "servantsquarters" "servants' quarters" "work as a servant">>
	<<set $args[0].assignment = "work as a servant", $servantsQuartersSlaves++, $ServQiIDs.push({ID: _wID, Index: _wi})>>
<<case "mastersuite" "master suite" "serve in the master suite">>
	<<set $args[0].assignment = "serve in the master suite", $masterSuiteSlaves++, $MastSiIDs.push({ID: _wID, Index: _wi})>>
<</switch>>

<<set $args[0].assignmentVisible = 0, $args[0].choosesOwnAssignment = 0>>

/% Stop creating Starving/overweight deaths?, Endless drug supply etc. %/
<<set $args[0].diet = "healthy", $args[0].drugs = "no drugs", $args[0].curatives = 0, $args[0].hormones = 0, $args[0].aphrodisiacs = 0>>

<<if _wID == $personalAttention>>
	<<if $PC.career == "escort">>
		<<set $personalAttention = "whoring">>
	<<elseif $PC.career == "servant">>
		<<set $personalAttention = "upkeep">>
	<<else>>
		<<set $personalAttention = "business">>
	<</if>>
<</if>>

<<set $slaves[_wi] = $args[0], $i = _wi>>
<<if $slaves[_wi].choosesOwnClothes == 1>><<include "SA chooses own clothes">><<set $args[0] = $slaves[_wi]>><</if>>
<</if>>
<</widget>>

/%
	Call as <<removeJob slaveObject $returnto | _currentRule.facilityRemove | "serve in the master suite"
	$args[0] slave object. *MUST be present*
	$args[1] Job to remove slave from. Will accept the $returnto vars and the _currentRule.assignFacility vars and the actual job assignments "serve in the master suite" etc.

	This is basically a Widget version of Retrieve but will work anywhere, And it changes the assignment to "rest", and saves to the slaves[..] array, and changes your $args[0] var sent.
	Retrieve overrides the 'rest' in most cases.
%/
<<widget removeJob>>
<<if ($args[1] != "Pit") && ($args[1] != "Coursing Association")>>
<<set _wID = $args[0].ID, _SL = $slaves.length>>

/% use .toLowerCase() to get rid of a few dupe conditions. %/
<<switch $args[1].toLowerCase()>>
<<case "clinic" "get treatment in the clinic">>
	<<set _Tcount = $CliniciIDs.length>>
	<<for _wi = 0; _wi < _Tcount; _wi++>>
		<<if _wID == $CliniciIDs[_wi].ID>>
			<<set _dump = $CliniciIDs.deleteAt(_wi), $clinicSlaves-->>
			<<break>>
		<</if>>
	<</for>>
<<case "schoolroom" "learn in the schoolroom">>
	<<set _Tcount = $SchlRiIDs.length>>
	<<for _wi = 0; _wi < _Tcount; _wi++>>
		<<if _wID == $SchlRiIDs[_wi].ID>>
			<<set _dump = $SchlRiIDs.deleteAt(_wi), $schoolroomSlaves-->>
			<<break>>
		<</if>>
	<</for>>
<<case "spa" "rest in the spa">>
	<<set _Tcount = $SpaiIDs.length>>
	<<for _wi = 0; _wi < _Tcount; _wi++>>
		<<if _wID == $SpaiIDs[_wi].ID>>
			<<set _dump = $SpaiIDs.deleteAt(_wi), $spaSlaves-->>
			<<break>>
		<</if>>
	<</for>>
<<case "cellblock" "be confined in the cellblock">>
	<<set _Tcount = $CellBiIDs.length>>
	<<for _wi = 0; _wi < _Tcount; _wi++>>
		<<if _wID == $CellBiIDs[_wi].ID>>
			<<set _dump = $CellBiIDs.deleteAt(_wi), $cellblockSlaves-->>
			<<break>>
		<</if>>
	<</for>>
<<case "arcade" "be confined in the arcade">>
	<<set _Tcount = $ArcadeiIDs.length>>
	<<for _wi = 0; _wi < _Tcount; _wi++>>
		<<if _wID == $ArcadeiIDs[_wi].ID>>
			<<set _dump = $ArcadeiIDs.deleteAt(_wi), $arcadeSlaves-->>
			<<break>>
		<</if>>
	<</for>>
<<case "brothel" "work in the brothel">>
	<<set _Tcount = $BrothiIDs.length>>
	<<for _wi = 0; _wi < _Tcount; _wi++>>
		<<if _wID == $BrothiIDs[_wi].ID>>
			<<set _dump = $BrothiIDs.deleteAt(_wi), $brothelSlaves-->>
			<<break>>
		<</if>>
	<</for>>
<<case "club" "serve in the club">>
	<<set _Tcount = $ClubiIDs.length>>
	<<for _wi = 0; _wi < _Tcount; _wi++>>
		<<if _wID == $ClubiIDs[_wi].ID>>
			<<set _dump = $ClubiIDs.deleteAt(_wi), $clubSlaves-->>
			<<break>>
		<</if>>
	<</for>>
<<case "dairy" "work in the dairy">>
	<<set _Tcount = $DairyiIDs.length>>
	<<for _wi = 0; _wi < _Tcount; _wi++>>
		<<if _wID == $DairyiIDs[_wi].ID>>
			<<set _dump = $DairyiIDs.deleteAt(_wi), $dairySlaves-->>
			<<break>>
		<</if>>
	<</for>>
<<case "hgsuite" "head girl suite" "live with your head girl">>
	<<set _Tcount = $HGSuiteiIDs.length>>
	<<for _wi = 0; _wi < _Tcount; _wi++>>
		<<if _wID == $HGSuiteiIDs[_wi].ID>>
			<<set _dump = $HGSuiteiIDs.deleteAt(_wi), $HGSuiteSlaves-->>
			<<break>>
		<</if>>
	<</for>>
<<case "servantsquarters" "servants' quarters" "work as a servant">>
	<<set _Tcount = $ServQiIDs.length>>
	<<for _wi = 0; _wi < _Tcount; _wi++>>
		<<if _wID == $ServQiIDs[_wi].ID>>
			<<set _dump = $ServQiIDs.deleteAt(_wi), $servantsQuartersSlaves-->>
			<<break>>
		<</if>>
	<</for>>
<<case "mastersuite" "master suite" "serve in the master suite">>
	<<set _Tcount = $MastSiIDs.length>>
	<<for _wi = 0; _wi < _Tcount; _wi++>>
		<<if _wID == $MastSiIDs[_wi].ID>>
			<<set _dump = $MastSiIDs.deleteAt(_wi), $masterSuiteSlaves-->>
			<<break>>
		<</if>>
	<</for>>
<</switch>>

<<set $args[0].assignmentVisible = 1, $args[0].assignment = "rest", $args[0].choosesOwnAssignment = 0>>
<<for _wi = 0; _wi < _SL; _wi++>>
<<if _wID == $slaves[_wi].ID>>
	<<set $slaves[_wi] = $args[0]>>
	<<break>>
<</if>>
<</for>>
<</if>>
<</widget>>