:: 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 is -1>>
	<<set $XY += 1>>
<<else>>
	<<set $XX += 1>>
<</if>>
<<if $args[0].visualAge >= 30>>
	<<set $old += 1>>
<<else>>
	<<set $young += 1>>
<</if>>

<<set $beauty to 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) + (2*$args[0].waist) - ($args[0].muscles/30) +($args[0].lips/10) + (6*$args[0].face) +(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 is "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 is "masculine">>
	<<if ($arcologies[0].FSGenderRadicalist != "unset")>>
	<<set $beauty -= (2-($arcologies[0].FSGenderRadicalist/25))*$args[0].face>>
	<<elseif ($arcologies[0].FSGenderFundamentalist != "unset")>>
	<<set $beauty -= (2+($arcologies[0].FSGenderFundamentalist/25))*$args[0].face>>
	<<else>>
	<<set $beauty -= 2*$args[0].face>>
	<</if>>
<<elseif $args[0].faceShape is "androgynous">>
	<<if ($arcologies[0].FSGenderRadicalist != "unset")>>
	<<set $beauty -= (0-($arcologies[0].FSGenderRadicalist/25))*$args[0].face>>
	<<elseif ($arcologies[0].FSGenderFundamentalist != "unset")>>
	<<set $beauty -= ($arcologies[0].FSGenderFundamentalist/25)*$args[0].face>>
	<<else>>
	<<set $beauty += $args[0].face>>
	<</if>>
<<elseif $args[0].faceShape is "exotic">>
	<<set $beauty += 2*$args[0].face>>
<<elseif $args[0].faceShape is "sensual">>
	<<set $beauty += 2+$args[0].face>>
<<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 is $arcologies[0].FSSubjugationistRace>>
	<<set $beauty += ($arcologies[0].FSSubjugationist/20)+$arcologies[0].FSSubjugationistLawME>>
<</if>>
<</if>>
<<if $arcologies[0].FSEdoRevivalist != "unset">>
<<if ($args[0].nationality is "Japanese") || ($args[0].nationality is "Edo Revivalist")>>
	<<set $beauty += ($arcologies[0].FSEdoRevivalist/20)>>
<</if>>
<</if>>
<<if $arcologies[0].FSChineseRevivalist != "unset">>
<<if ($args[0].nationality is "Chinese") || ($args[0].nationality is "Chinese Revivalist")>>
	<<set $beauty += ($arcologies[0].FSChineseRevivalist/20)>>
<</if>>
<</if>>

<<if $args[0].race is "white">>
	<<set $beauty += 4>>
<<elseif $args[0].race is "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 > 1)>>
		<<set $beauty += 2>>
	<<elseif ($args[0].face < 1)>>
		<<set $beauty -= 2>>
	<</if>>
	<<elseif ($args[0].markings is "birthmark")>>
	<<if ($args[0].prestige > 0)>>
		<<set $beauty += 2>>
	<<else>>
		<<set $beauty -= 2>>
	<</if>>
	<<else>>
	<<if ($args[0].skin is "pale") || ($args[0].skin is "fair")>>
		<<set $beauty += 1>>
		<<if ($args[0].hColor is "red")>>
		<<set $beauty += 1>>
		<</if>>
	<</if>>
	<</if>>
<</if>>

<<if $entertainmentCareers.contains($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 + (2*$args[0].waist) - ($args[0].muscles/30) +($args[0].lips/10) + (3*$args[0].face) +(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 is "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 is "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 is "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 is "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 is "perky">>
	<<set $beauty += 1>>
<<elseif $args[0].boobShape is "torpedo-shaped">>
	<<set $beauty += 1>>
<<elseif $args[0].boobShape is "downward-facing">>
	<<set $beauty -= 1>>
<<elseif $args[0].boobShape is "saggy">>
	<<set $beauty -= 1>>
<</if>>
<</if>>

<<if $args[0].nipples is "huge">>
	<<set $beauty += 2>>
<<elseif $args[0].nipples is "inverted">>
	<<set $beauty += 1>>
<<elseif $args[0].nipples is "puffy">>
	<<set $beauty += 1>>
<<elseif $args[0].nipples is "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 > 1)>>
	<<if ($args[0].weight >= 95)>>
	<<set $beauty -= (2*Math.abs($args[0].weight))/15>>
	<<elseif ($args[0].weight < -30)>>
	<<set $beauty -= (2*Math.abs($args[0].weight))/10>>
	<</if>>
<<elseif ($args[0].hips < -1)>>
	<<if ($args[0].weight <= -95) || ($args[0].weight > 30)>>
	<<set $beauty -= (2*Math.abs($args[0].weight))/10>>
	<</if>>
<<else>>
	<<if Math.abs($args[0].weight) > 30>>
	<<set $beauty -= (2*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 is "unset" && $arcologies[0].FSRestart is "unset">>
	<<set $beauty to ($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 is "unset" && $arcologies[0].FSRestart is "unset">>
		<<set $beauty to ($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].FSGenderRadicalistLawDicks == 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 is "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 is -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 to ($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 is "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 is 3>>
		<<set $beauty += ($arcologies[0].FSAssetExpansionist/40)>>
	<</if>>
	<</if>>
	<</if>>
<</if>>

<<if ($args[0].boobs < 500) && ($args[0].butt < 3) && ($args[0].weight <= 10) && ($args[0].muscles <= 95)>>
	<<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 is 3>>
		<<set $beauty += ($arcologies[0].FSSlimnessEnthusiast/40)>>
	<</if>>
	<</if>>
	<</if>>
<</if>>

<<if ($args[0].boobsImplant == 0) && ($args[0].buttImplant == 0) && ($args[0].waist < 2) && ($args[0].lipsImplant == 0) && ($args[0].faceImplant < 2)>>
	<<set $pure += 1>>
	<<if $arcologies[0].FSBodyPurist != "unset">>
	<<set $beauty += ($arcologies[0].FSBodyPurist/20)>>
	<</if>>
	<<if $arcologies[0].FSTransformationFetishist is "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 is "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 is -3>>
<<elseif $args[0].amp is -5>>
<<else>>
	<<set $beauty -= 2>>
<</if>>

<<if $arcologies[0].FSGenderFundamentalistLawBeauty + $arcologies[0].FSGenderRadicalistLawBeauty > 0>>
<<if ($args[0].boobs >= 500)>>
<<if ($args[0].boobs <= 800)>>
<<if ($args[0].butt >= 3)>>
<<if ($args[0].butt <= 4)>>
<<if (Math.abs($args[0].weight) <= 30)>>
<<if ($args[0].muscles <= 30)>>
	<<set $beauty += 3>>
<</if>>
<</if>>
<</if>>
<</if>>
<</if>>
<</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 to $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 to 1>>
<<else>>
	<<set $beauty = Math.trunc($beauty*0.5)>>
<</if>>

<</widget>>

<<widget "FResult">>

<<set $FResult to (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 to $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>>

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

<<if $familyTesting == 1>>
	<<if totalRelatives($args[0]) > 0>>
	<<for $j to 0; $j < $slaves.length; $j++>>
		<<if $args[0].mother == $slaves[$j].ID>>
			<<if $slaves[$j].assignment is $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 is $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 is $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 is $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 to 0; $j < $slaves.length; $j++>>
		<<if $slaves[$j].ID is $args[0].relationTarget>>
			<<if $slaves[$j].assignment is $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 to 0; $j < $slaves.length; $j++>>
	<<if $slaves[$j].ID is $args[0].relationshipTarget>>
		<<if $slaves[$j].assignment is $args[0].assignment>>
		<<set $FResult += 1>>
		<</if>>
		<<break>>
	<</if>>
	<</for>>
<<elseif $args[0].relationship is -1>>
	<<set $FResult += 2>>
<</if>>
<<if $args[0].rivalry != 0>>
	<<for $j to 0; $j < $slaves.length; $j++>>
	<<if $slaves[$j].ID is $args[0].rivalryTarget>>
		<<if $slaves[$j].assignment is $args[0].assignment>>
		<<set $FResult -= 1>>
		<</if>>
		<<break>>
	<</if>>
	<</for>>
<</if>>

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

<<if $args[0].diet is "XXY">>
	<<set $FResult += 2>>
<<elseif $args[0].diet is "XY" || $args[0].diet is "XX">>
	<<set $FResult += 1>>
<<elseif $args[0].diet is "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.contains($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 is "blurring glasses">>
	<<set $FResult -= 1>>
<<elseif $args[0].eyewear is "blurring contacts">>
	<<set $FResult -= 1>>
<</if>>

<<if $arcologies[0].FSEgyptianRevivalist != "unset">>
	<<if ndef $racialVarieties>>
	<<set $racialVarieties to []>>
	<</if>>
	<<set $seed to 0>>
	<<for $j to 0; $j < $racialVarieties.length; $j++>>
	<<if $args[0].race is $racialVarieties[$j]>>
		<<set $seed to 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].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 is "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 is -2>>
<<elseif $args[0].amp is -5>>
<<else>>
	<<set $FResult -= 1>>
<</if>>

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

<</widget>>

<<widget "Deadliness">>

<<set $deadliness to 2>>

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

<<if $bodyguardCareers.contains($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 is -1 and ($args[0].eyewear != "corrective glasses" or $args[0].eyewear != "corrective contacts")) || ($args[0].eyes == 1 and ($args[0].eyewear is "blurring glasses" or $args[0].eyewear is "blurring contacts"))>>
	<<set $deadliness -= 1>>
<</if>>

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

<</widget>>

<<widget "SexualRelease">>

<<set $release to 0>>

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

<</widget>>

<<widget "SlaveTitle">>

<<if $newDescriptions == 1>>

<<if $args[0].dick > 0 and $args[0].balls > 0 and $args[0].boobs > 300 and $args[0].vagina > -1 and $args[0].ovaries == 1>>
	<<if random(1,100) > 50>>
		<<set $desc to "futanari">>
	<<else>>
		<<set $desc to "herm">>
	<</if>>
<<elseif $args[0].dick > 0 and $args[0].balls == 0 and $args[0].boobs > 300 and $args[0].vagina > -1 and $args[0].ovaries == 1>>
	<<set $desc to "dickgirl">>
<<elseif $args[0].dick > 0 and $args[0].vagina > -1 and $args[0].ovaries == 0>>
	<<set $desc to "shemale">>
<<elseif $args[0].dick > 0 and $args[0].balls == 0 and $args[0].vagina == -1 and $args[0].ovaries == 0>>
	<<set $desc to "eunuch">>
<<elseif $args[0].dick > 0 and $args[0].balls > 0 and $args[0].vagina > -1 and $args[0].ovaries == 1 and $args[0].voice < 2  and $args[0].boobs < 300 and ($args[0].faceType is "masculine" or $args[0].faceType is "androgynous")>>
	<<set $desc to "cunt boy">>
<<elseif $args[0].dick > 0 and $args[0].balls > 0 and $args[0].vagina == -1 and $args[0].ovaries == 0>>
	<<if $args[0].face > -1 and $args[0].hips > -1 and $args[0].shoulders < 1 and $args[0].faceType != "masculine">>
		<<set $desc to "trap">>
	<<elseif $args[0].boobs > 800>>
		<<set $desc to "titty boy">>
	<<elseif $args[0].dick == 1 and $args[0].balls == 1>>
		<<set $desc to "sissy">>
	<<elseif $args[0].dick > 1 and $args[0].balls > 1 and $args[0].height < 160 and $args[0].muscles < 5 and $args[0].visualAge < 19>>
		<<set $desc to "boy toy">>
	<<elseif $args[0].muscles > 95 and $args[0].height >= 185>>
		<<set $desc to "titan">>
	<<elseif $args[0].muscles > 30>>
		<<set $desc to "muscle boy">>
	<<else>>
		<<set $desc to "slave boy">>
	<</if>>
<<elseif $args[0].dick == 0 and $args[0].balls == 0 and $args[0].vagina > -1 and $args[0].ovaries == 1>>
	<<if $args[0].weight > 10 and $args[0].boobs > 800 and $args[0].birthsTotal > 0 and $args[0].physicalAge > 59>>
		<<set $desc to "GMILF">>
	<<elseif $args[0].weight > 10 and $args[0].boobs > 800 and $args[0].birthsTotal > 0 and $args[0].physicalAge > 35>>
		<<set $desc to "MILF">>
	<<elseif $args[0].lips > 70 and $args[0].boobs > 2000 and $args[0].butt > 3>>
		<<set $desc to "bimbo">>
	<<elseif $args[0].hips > 1 and $args[0].boobs > 2000 and $args[0].butt > 3 and $args[0].waist > 0>>
		<<set $desc to "hourglass">>
	<<elseif $args[0].muscles > 95 and $args[0].height >= 185>>
		<<set $desc to "amazon">>
	<<elseif $args[0].muscles > 30>>
		<<set $desc to "muscle girl">>
	<<else>>
		<<set $desc to "slave girl">>
	<</if>>
<<elseif $args[0].dick == 0 and $args[0].balls == 0 and $args[0].vagina == -1>>
	<<set $desc to "neuter">>
<<else>>
	<<set $desc to "slave">>
<</if>>

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

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

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

<<if $args[0].dick > 5 and $args[0].balls > 5 and $args[0].boobs > 5000>>
  <<set $desc to "hyper " + $desc>>
<<elseif $args[0].dick > 5 and $args[0].balls > 5>>
  <<set $desc to "baby maker " + $desc>>
<<elseif $args[0].dick > 5>>
  <<set $desc to "well hung " + $desc>>
<</if>>

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

<<if $args[0].indenture > -1>>
  <<set $desc to "indentured " + $desc>>
<</if>>
	
<<if $args[0].preg > 10>>
  <<set $desc to "pregnant " + $desc>>
<</if>>

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

<<else>>

<<if $args[0].vagina > -1>>
	<<if $args[0].dick > 0>>
		<<if $args[0].balls > 0>>
			<<if $args[0].ovaries == 1>>
				<<if $args[0].visualAge > 59>>
					<<set $desc to "futanari GMILF">>
				<<elseif $args[0].visualAge > 35>>
					<<set $desc to "futanari MILF">>
				<<elseif $args[0].visualAge >= 25>>
					<<set $desc to "futanari">>
				<<else>>
					<<set $desc to "futanari girl">>
				<</if>>
			<<else>>
				<<if $args[0].visualAge > 59>>
					<<set $desc to "true herm GMILF">>
				<<elseif $args[0].visualAge > 35>>
					<<set $desc to "true herm MILF">>
				<<elseif $args[0].visualAge >= 25>>
					<<set $desc to "true herm">>
				<<else>>
					<<set $desc to "true hermgirl">>
				<</if>>
			<</if>>
		<<else>>
			<<if $args[0].ovaries == 1>>
				<<if $args[0].visualAge > 59>>
					<<set $desc to "futa GMILF">>
				<<elseif $args[0].visualAge > 35>>
					<<set $desc to "futa MILF">>
				<<elseif $args[0].visualAge >= 25>>
					<<set $desc to "futa">>
				<<else>>
					<<set $desc to "futagirl">>
				<</if>>
			<<else>>
				<<if $args[0].visualAge > 59>>
					<<set $desc to "herm GMILF">>
				<<elseif $args[0].visualAge > 35>>
					<<set $desc to "herm MILF">>
				<<elseif $args[0].visualAge >= 25>>
					<<set $desc to "herm">>
				<<else>>
					<<set $desc to "hermgirl">>
				<</if>>
			<</if>>
		<</if>>
		<<if $args[0].dick > 5 and $args[0].balls > 5 and $args[0].boobs > 5000>>
			<<set $desc to "hyper " + $desc>>
		<</if>>
	<<else>>
		<<if $args[0].visualAge > 59>>
			<<if $args[0].muscles > 95>>
				<<if $args[0].height > 185>>
					<<set $desc to "GMILF amazon">>
				<<else>>
					<<set $desc to "muscle GMILF">>
				<</if>>
			<<elseif ($args[0].lactation > 0) && ($args[0].boobs > 2000)>>
				<<set $desc to "GMILF cow">>
			<<elseif ($args[0].boobsImplant > 0) && ($args[0].buttImplant > 0)>>
				<<set $desc to "GMILF bimbo">>
			<<elseif ($args[0].boobs > 6000)>>
				<<set $desc to "boob GMILF">>
			<<else>>
				<<set $desc to "GMILF">>
			<</if>>
		<<elseif $args[0].visualAge > 35>>
			<<if $args[0].muscles > 95>>
				<<if $args[0].height > 185>>
					<<set $desc to "MILF amazon">>
				<<else>>
					<<set $desc to "muscle MILF">>
				<</if>>
			<<elseif ($args[0].lactation > 0) && ($args[0].boobs > 2000)>>
				<<set $desc to "MILF cow">>
			<<elseif ($args[0].boobsImplant > 0) && ($args[0].buttImplant > 0)>>
				<<set $desc to "MILF bimbo">>
			<<elseif ($args[0].boobs > 6000)>>
				<<set $desc to "boob MILF">>
			<<else>>
				<<set $desc to "MILF">>
			<</if>>
		<<elseif $args[0].visualAge >= 25>>
			<<if $args[0].muscles > 95>>
				<<if $args[0].height > 185>>
					<<set $desc to "amazon">>
				<<else>>
					<<set $desc to "muscle slave">>
				<</if>>
			<<elseif ($args[0].lactation > 0) && ($args[0].boobs > 2000)>>
				<<set $desc to "cow">>
			<<elseif ($args[0].boobsImplant > 0) && ($args[0].buttImplant > 0)>>
				<<set $desc to "bimbo">>
			<<elseif ($args[0].boobs > 6000)>>
				<<set $desc to "boob slave">>
			<<else>>
				<<set $desc to "slave">>
			<</if>>
		<<else>>
			<<if $args[0].muscles > 95>>
				<<if $args[0].height > 185>>
					<<set $desc to "amazon slavegirl">>
				<<else>>
					<<set $desc to "musclegirl">>
				<</if>>
			<<elseif ($args[0].lactation > 0) && ($args[0].boobs > 2000)>>
				<<set $desc to "cowgirl">>
			<<elseif ($args[0].boobsImplant > 0) && ($args[0].buttImplant > 0)>>
				<<set $desc to "bimbogirl">>
			<<elseif ($args[0].boobs > 6000)>>
				<<set $desc to "boobgirl">>
			<<else>>
				<<set $desc to "slavegirl">>
			<</if>>
		<</if>>
	<</if>>
<<else>>
	<<if $args[0].balls > 0>>
		<<if ($args[0].boobs > 300) && ($args[0].butt > 2)>>
			<<if $args[0].visualAge > 59>>
				<<set $desc to "shemale GMILF">>
			<<elseif $args[0].visualAge > 35>>
				<<set $desc to "shemale MILF">>
			<<else>>
				<<set $desc to "shemale">>
			<</if>>
		<<else>>
			<<if ($args[0].shoulders < 1) && ($args[0].muscles < 2)>>
				<<if ($args[0].faceShape is "masculine") || ($args[0].faceShape is "androgynous")>>
					<<if $args[0].visualAge > 59>>
						<<set $desc to "sissy GMILF">>
					<<elseif $args[0].visualAge > 35>>
						<<set $desc to "sissy MILF">>
					<<else>>
						<<set $desc to "sissy">>
					<</if>>
				<<else>>
					<<if $args[0].visualAge > 59>>
						<<set $desc to "trap GMILF">>
					<<elseif $args[0].visualAge > 35>>
						<<set $desc to "trap MILF">>
					<<elseif $args[0].visualAge >= 25>>
						<<set $desc to "trap">>
					<<else>>
						<<set $desc to "trapgirl">>
					<</if>>
				<</if>>
			<<else>>
				<<set $desc to "bitch">>
			<</if>>
		<</if>>
	<<else>>
		<<if ($args[0].faceShape is "masculine") || ($args[0].faceShape is "androgynous")>>
			<<if $args[0].visualAge > 59>>
				<<set $desc to "gelded GMILF">>
			<<elseif $args[0].visualAge > 35>>
				<<set $desc to "gelded MILF">>
			<<else>>
				<<set $desc to "gelded bitch">>
			<</if>>
		<<else>>
			<<if $args[0].visualAge > 59>>
				<<set $desc to "dickGMILF">>
			<<elseif $args[0].visualAge > 35>>
				<<set $desc to "dickMILF">>
			<<elseif $args[0].visualAge >= 25>>
				<<set $desc to "dickslave">>
			<<else>>
				<<set $desc to "dickgirl">>
			<</if>>
		<</if>>
	<</if>>
<</if>>

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

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

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

<<if $args[0].fuckdoll > 0>>
	<<set $desc to $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 to $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 is "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 is $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 is "a slave">>
	<<set $slaveMultiplier += 0.1>>
	<<elseif $bodyguardCareers.contains($args[0].career)>>
	<<set $slaveMultiplier += 0.1>>
	<<elseif $wardenessCareers.contains($args[0].career)>>
	<<set $slaveMultiplier += 0.1>>
	<<elseif $attendantCareers.contains($args[0].career)>>
	<<set $slaveMultiplier += 0.1>>
	<<elseif $schoolteacherCareers.contains($args[0].career)>>
	<<set $slaveMultiplier += 0.1>>
	<<elseif $stewardessCareers.contains($args[0].career)>>
	<<set $slaveMultiplier += 0.1>>
	<<elseif $milkmaidCareers.contains($args[0].career)>>
	<<set $slaveMultiplier += 0.1>>
	<<elseif $madamCareers.contains($args[0].career)>>
	<<set $slaveMultiplier += 0.1>>
	<<elseif $DJCareers.contains($args[0].career)>>
	<<set $slaveMultiplier += 0.1>>
	<<elseif $HGCareers.contains($args[0].career)>>
	<<set $slaveMultiplier += 0.1>>
	<<elseif $recruiterCareers.contains($args[0].career)>>
	<<set $slaveMultiplier += 0.1>>
	<<elseif $entertainmentCareers.contains($args[0].career)>>
	<<set $slaveMultiplier += 0.05>>
	<<elseif $whoreCareers.contains($args[0].career)>>
	<<set $slaveMultiplier += 0.05>>
	<<elseif $gratefulCareers.contains($args[0].career)>>
	<<set $slaveMultiplier += 0.05>>
	<<elseif $menialCareers.contains($args[0].career)>>
	<<set $slaveMultiplier += 0.05>>
	<</if>>
<</if>>
<<if ($week-$args[0].weekAcquired >= 20) && ($args[0].entertainSkill >= 100)>>
<<if $entertainmentCareers.contains($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.contains($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 is -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 to 52*($retirementAge-$args[0].actualAge)>>
	<<set $slaveMultiplier to $slaveMultiplier*($seed/260)>>
<</if>>
<<if $args[0].physicalAge >= ($retirementAge-5) && $PhysicalRetirementAgePolicy == 1>>
	<<set $seed to 52*($retirementAge-$args[0].physicalAge)>>
	<<set $slaveMultiplier to $slaveMultiplier*($seed/260)>>
<</if>>
<</if>>

<<set $slaveCost to ($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 to 500*Math.trunc($slaveCost/500)>>

<</widget>>
