:: Remote Surgery [nobr]

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

<<set $surgeryType = 0, $showEncyclopedia = 1, $encyclopedia = "The Remote Surgery">>
<<set _belly = bellyAdjective($activeSlave)>>

<h1>The Remote Surgery</h1>

//$activeSlave.slaveName is lying strapped down on the table in your <<if $surgeryUpgrade == 1>>heavily upgraded and customized remote surgery.<<else>>remote surgery.<</if>> The surgical equipment reads <<if $activeSlave.health < -20>>@@.red;SLAVE UNHEALTHY, SURGERY NOT RECOMMENDED.@@<<elseif $activeSlave.health <= 20>>@@.yellow;SLAVE HEALTHY, SURGERY SAFE.@@<<else>>@@.green;SLAVE HEALTHY, SURGERY ENCOURAGED.@@<</if>><<if $PC.medicine >= 100>> The remote surgery mechanisms that allow a surgeon to be brought in by telepresence are inactive, and the autosurgery is ready for your control inputs. Surgery on your slaves is a challenge and a pleasure you wouldn't dream of sharing.<</if>>//
<br><br>

/* 000-250-006 */
<<if $seeImages == 1>>
	<<if $imageChoice == 1>>
		<div class="imageRef lrgVector"><div class="mask">&nbsp;</div><<SlaveArt $activeSlave 3 0>></div>
	<<else>>
		<div class="imageRef lrgRender"><div class="mask">&nbsp;</div><<SlaveArt $activeSlave 3 0>></div>
	<</if>>
<</if>>
/* 000-250-006 */

<<if $activeSlave.indentureRestrictions >= 1>>
	@@.yellow;This slave is subject to a restrictive indenture which forbids many invasive surgeries.@@
	<br><br>
<</if>>

Work on $his face:
<br>&nbsp;&nbsp;&nbsp;&nbsp;

$His $activeSlave.faceShape face is
<<if $activeSlave.face < -95>>
	very ugly.
<<elseif $activeSlave.face < -40>>
	ugly.
<<elseif $activeSlave.face < -10>>
	unattractive.
<<elseif ($activeSlave.face <= 10)>>
	quite average.
<<elseif ($activeSlave.face <= 40)>>
	attractive.
<<elseif ($activeSlave.face <= 95)>>
	beautiful.
<<elseif ($activeSlave.face > 95)>>
	very beautiful.
<</if>>

<<if $activeSlave.faceImplant == 0>>
	It is entirely natural.
<<elseif $activeSlave.faceImplant > 5>>
	It has seen some work.
<<elseif $activeSlave.faceImplant > 30>>
	It has been totally reworked.
<</if>>

<<if $activeSlave.indentureRestrictions >= 2>>
	//$His indenture forbids elective surgery//
<<elseif $activeSlave.faceImplant > 95>>
	//$His face cannot sustain further cosmetic surgery//
<<else>>
	<<set _artificiality = 25-5*Math.trunc($PC.medicine/50)-5*$surgeryUpgrade>>
	//Facial surgery can either rework it and improve its attractiveness, or simply make it more attractive. No facial surgery is perfect and each surgery will make it look less natural.
	<<if $PC.medicine >= 100 && $surgeryUpgrade>>
		Your surgical skills and the advanced surgical suite will minimize this effect as much as possible.
	<<elseif $PC.medicine >= 100>>
		Your surgical skills will reduce this effect.
	<<elseif $surgeryUpgrade>>
		The advanced surgical suite will reduce this effect.
	<</if>>
	<<if $activeSlave.faceImplant+_artificiality > 95>>
		@@.yellow;<<if $activeSlave.faceImplant != 0>>Further f<<else>>F<</if>>acial surgery will create a severe uncanny valley effect.@@
	<<elseif $activeSlave.faceImplant+_artificiality > 60 && $activeSlave.faceImplant <= 60>>
		@@.yellow;<<if $activeSlave.faceImplant != 0>>Further f<<else>>F<</if>>acial surgery will be extremely obvious.@@
	<<elseif $activeSlave.faceImplant+_artificiality > 30 && $activeSlave.faceImplant <= 30>>
		@@.yellow;<<if $activeSlave.faceImplant != 0>>Further f<<else>>F<</if>>acial surgery will eliminate a natural appearance.@@
	<<elseif $activeSlave.faceImplant+_artificiality > 10 && $activeSlave.faceImplant <= 10>>
		@@.yellow;<<if $activeSlave.faceImplant != 0>>Further f<<else>>F<</if>>acial surgery will disturb a perfectly natural appearance.@@
	<<else>>
		A single facial surgery is not projected to significantly impact artificiality.
	<</if>>//
	<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	<<if $activeSlave.faceShape != "normal">>
		[[Make conventionally feminine|Surgery Degradation][$activeSlave.faceShape = "normal",$activeSlave.faceImplant = Math.clamp($activeSlave.faceImplant+_artificiality,0,100),$cash -= $surgeryCost,$activeSlave.health -= 10,$surgeryType = "face"]] |
	<</if>>
	<<if $activeSlave.faceShape == "masculine">>
		[[Soften to androgynous|Surgery Degradation][$activeSlave.faceShape = "androgynous",$activeSlave.faceImplant = Math.clamp($activeSlave.faceImplant+_artificiality,0,100),$cash -= $surgeryCost,$activeSlave.health -= 10,$surgeryType = "face"]] |
	<<else>>
		<<if $activeSlave.faceShape != "cute">>
			[[Cute|Surgery Degradation][$activeSlave.faceShape = "cute",$activeSlave.faceImplant = Math.clamp($activeSlave.faceImplant+_artificiality,0,100),$cash -= $surgeryCost,$activeSlave.health -= 10,$surgeryType = "face"]] |
		<</if>>
		<<if $activeSlave.faceShape != "exotic">>
			[[Exotic|Surgery Degradation][$activeSlave.faceShape = "exotic",$activeSlave.faceImplant = Math.clamp($activeSlave.faceImplant+_artificiality,0,100),$cash -= $surgeryCost,$activeSlave.health -= 10,$surgeryType = "face"]] |
		<</if>>
		<<if $activeSlave.faceShape != "sensual">>
			[[Sensual|Surgery Degradation][$activeSlave.faceShape = "sensual",$activeSlave.faceImplant = Math.clamp($activeSlave.faceImplant+_artificiality,0,100),$cash -= $surgeryCost,$activeSlave.health -= 10,$surgeryType = "face"]] |
		<</if>>
		<<if $activeSlave.faceShape != "androgynous">>
			[[Androgynous|Surgery Degradation][$activeSlave.faceShape = "androgynous",$activeSlave.faceImplant = Math.clamp($activeSlave.faceImplant+_artificiality,0,100),$cash -= $surgeryCost,$activeSlave.health -= 10,$surgeryType = "face"]] |
		<<else>>
			[[Masculine|Surgery Degradation][$activeSlave.faceShape = "masculine",$activeSlave.faceImplant = Math.clamp($activeSlave.faceImplant+_artificiality,0,100),$cash -= $surgeryCost,$activeSlave.health -= 10,$surgeryType = "face"]] |
		<</if>>
	<</if>>
	[[Just improve attractiveness|Surgery Degradation][$activeSlave.faceImplant = Math.clamp($activeSlave.faceImplant+_artificiality,0,100),$cash -= $surgeryCost,$activeSlave.health -= 10,$surgeryType = "face"]]
	<<if ($activeSlave.ageImplant > 1)>>
		<br>&nbsp;&nbsp;&nbsp;&nbsp;
		//$He's had a multiple facelifts and other cosmetic procedures in an effort to preserve $his youth.//
	<<elseif ($activeSlave.ageImplant > 0)>>
		<br>&nbsp;&nbsp;&nbsp;&nbsp;
		//$He's had a face lift and other minor cosmetic procedures to make $him look younger.//
	<<elseif ($activeSlave.physicalAge >= 25) && ($activeSlave.visualAge >= 25)>>
		<br>&nbsp;&nbsp;&nbsp;&nbsp;
		//$He's old enough that a face lift and other minor cosmetic procedures could make $him look younger.//
		[[Age lift|Surgery Degradation][$activeSlave.ageImplant = 1,$activeSlave.faceImplant = Math.clamp($activeSlave.faceImplant+_artificiality,0,100),$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "age"]]
	<</if>>
<</if>>

<<if $activeSlave.origEye == "implant">>
	<br>&nbsp;&nbsp;&nbsp;&nbsp;
	$He has artificial eyes.
<<elseif ($activeSlave.eyes <= -2)>>
	<br>&nbsp;&nbsp;&nbsp;&nbsp;
	$He is blind.
<<else>>
	<br>&nbsp;&nbsp;&nbsp;&nbsp;
	$He has working
	<<if $activeSlave.eyes == -1>>
		 eyes, but is nearsighted.
		<<if ($activeSlave.origEye != "implant")>>
			[[Correct eyesight|Surgery Degradation][$activeSlave.eyes = 1, $cash -= $surgeryCost, $activeSlave.health -= 10, $surgeryType = "eyeFix"]]
		<</if>>
	<<elseif $activeSlave.eyes == 1>>
		eyes and good vision.
		<<if ($seeExtreme == 1) && ($activeSlave.origEye != "implant") && $activeSlave.indentureRestrictions < 1>>
			[[Blur vision|Surgery Degradation][$activeSlave.eyes = -1, $cash -= $surgeryCost, $activeSlave.health -= 10, $surgeryType = "eyeBlur"]]
		<</if>>
	<</if>>	
<</if>>

<<if ($seeExtreme == 1)>>
	<<if $activeSlave.indentureRestrictions < 1>>
		<<if $activeSlave.origEye != "implant">>
			<<if ($activeSlave.eyes > -2)>>
				| [[Blind|Surgery Degradation][$activeSlave.eyes = -2,$activeSlave.eyeColor = "dulled " + $activeSlave.origEye,$activeSlave.eyeColor = $activeSlave.origEye,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "blind"]]
			<</if>>
			/*<<if ($activeSlave.eyes != -3)>>
				<<if ($activeSlave.eyes >= -2)>> | <</if>>
				| [[Remove eyes|Surgery Degradation][$activeSlave.eyeColor = "empty",$activeSlave.origEye = "none",$cash -= $surgeryCost, $activeSlave.health -= 20,$surgeryType = "remove eyes"]]
				<<if ($activeSlave.eyes != -2)>>//This will greatly restrict $him//<</if>>
			<</if>>*/
		<</if>>
		<<if ($cyberMod == 1) && ($stockpile.ocularImplant > 0) && ($activeSlave.origEye != "implant")>>
			<<if ($activeSlave.eyes != -3)>> <</if>>
			| [[Give her ocular implants|Surgery Degradation][$activeSlave.origEye = "implant", $stockpile.ocularImplant--,$cash -= $surgeryCost, $activeSlave.health -= 20,$surgeryType = "ocular implant"]]
		<</if>>
	<</if>>
<</if>>

<<if $activeSlave.earImplant == 1>>
	<br>&nbsp;&nbsp;&nbsp;&nbsp;
	$He has cochlear implants.
<<elseif ($activeSlave.hears <= -2)>>
	<br>&nbsp;&nbsp;&nbsp;&nbsp;
	$He is deaf.
<<else>>
	<br>&nbsp;&nbsp;&nbsp;&nbsp;
	$He has working
	<<if $activeSlave.hears == -1>>
		ears, but is hearing impaired.
		<<if ($activeSlave.earImplant != 1)>>
			[[Correct hearing|Surgery Degradation][$activeSlave.hears = 0, $cash -= $surgeryCost, $activeSlave.health -= 10, $surgeryType = "earFix"]]
		<</if>>
	<<elseif $activeSlave.hears == 0>>
		ears and good hearing.
		<<if ($seeExtreme == 1) && ($activeSlave.earImplant != 1) && $activeSlave.indentureRestrictions < 1>>
			[[Muffle hearing|Surgery Degradation][$activeSlave.hears = -1, $cash -= $surgeryCost, $activeSlave.health -= 10, $surgeryType = "earMuffle"]]
		<</if>>
	<</if>>	
<</if>>

<<if ($seeExtreme == 1)>>
	<<if $activeSlave.indentureRestrictions < 1>>
		<<if $activeSlave.earImplant != 1>>
			<<if ($activeSlave.hears > -2)>>
				| [[Deafen|Surgery Degradation][$activeSlave.hears = -2,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "deafen"]]
			<</if>>
		<</if>>
		<<if ($cyberMod == 1) && ($stockpile.cochlearImplant > 0) && ($activeSlave.earImplant != 1)>>
			| [[Give her cochlear implants|Surgery Degradation][$activeSlave.earImplant = 1, $stockpile.cochlearImplant--,$cash -= $surgeryCost, $activeSlave.health -= 20,$surgeryType = "cochlear implant"]]
		<</if>>
	<</if>>
<</if>>

<br>&nbsp;&nbsp;&nbsp;&nbsp;
$He has
<<if $activeSlave.lips <= 10>>
	thin, unattractive lips.
<<elseif $activeSlave.lips <= 20>>
	normal lips.
<<elseif $activeSlave.lips <= 40>>
	full, attractive lips.
<<elseif $activeSlave.lips <= 70>>
	plump, beestung lips.
<<elseif $activeSlave.lips <= 95>>
	huge, obviously augmented lips.
<<else>>
	a facepussy: $his lips are so huge that they're always a bit parted in the middle, forming a moist, inviting hole for cock.
<</if>>
<<if $activeSlave.lipsImplant == 0>>
<<elseif $activeSlave.lipsImplant <= 10>>
	$He has moderate lip implants.
<<elseif $activeSlave.lipsImplant <= 20>>
	$He has large lip implants.
<<else>>
	$He has enormous lip implants.
<</if>>
<<if $activeSlave.indentureRestrictions >= 2>>
	//$His indenture forbids elective surgery//
<<elseif ($activeSlave.lips <= 75) || (($activeSlave.lips <= 95) && ($seeExtreme == 1))>>
	<<if $activeSlave.lipsImplant > 0>>
		[[Replace with the next size up|Surgery Degradation][$activeSlave.lipsImplant += 20,$activeSlave.lips += 20,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "lips"]] //This will reduce $his oral skills//
	<<else>>
		[[Lip implants|Surgery Degradation][$activeSlave.lipsImplant = 20,$activeSlave.lips += 20,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "lips"]] //This will reduce $his oral skills//
	<</if>>
<</if>>
<<if $activeSlave.lipsImplant != 0>>
	<<if $activeSlave.indentureRestrictions < 2>>
	| [[Remove lip implants|Surgery Degradation][$activeSlave.lips = ($activeSlave.lips-$activeSlave.lipsImplant),$activeSlave.lipsImplant = 0,$cash -= $surgeryCost, $surgeryType = "lips"]]
	<</if>>
<</if>>
<<if ($activeSlave.lips >= 10) && ($activeSlave.lipsImplant == 0)>>
	<<if $activeSlave.indentureRestrictions < 2>>
	| [[Reduce lips|Surgery Degradation][$activeSlave.lips -= 10,$cash -= $surgeryCost, $surgeryType = "lips"]]
	<</if>>
<</if>>

<br>&nbsp;&nbsp;&nbsp;&nbsp;
<<switch $activeSlave.teeth>>
<<case "crooked">>
	$He has crooked teeth.
	[[Apply braces|Surgery Degradation][$activeSlave.teeth = "straightening braces",$cash -= $surgeryCost,$surgeryType = "braces"]]
	<<if ($seeExtreme == 1) && ($activeSlave.indentureRestrictions < 1)>>
	| [[Replace them with removable prosthetics|Surgery Degradation][$activeSlave.teeth = "removable",$cash -= $surgeryCost, $activeSlave.health -= 20,$surgeryType = "teeth"]] | [[Replace them with sharp teeth|Surgery Degradation][$activeSlave.teeth = "pointy",$cash -= $surgeryCost, $activeSlave.health -= 20,$surgeryType = "sharp"]]
	<</if>>
<<case "straightening braces">>
	$His crooked teeth are in braces.
	[[Remove braces|Remote Surgery][$activeSlave.teeth = "crooked",$surgeryType = "removeBraces"]]
	<<if ($seeExtreme == 1) && ($activeSlave.indentureRestrictions < 1)>>
	| [[Replace them with removable prosthetics|Surgery Degradation][$activeSlave.teeth = "removable",$cash -= $surgeryCost, $activeSlave.health -= 20,$surgeryType = "teeth"]] | [[Replace them with sharp teeth|Surgery Degradation][$activeSlave.teeth = "pointy",$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "sharp"]]
	<</if>>
<<case "cosmetic braces">>
	$He has braces on $his straight teeth.
	[[Remove braces|Remote Surgery][$activeSlave.teeth = "normal"]]
	<<if ($seeExtreme == 1) && ($activeSlave.indentureRestrictions < 1)>>
	| [[Replace them with removable prosthetics|Surgery Degradation][$activeSlave.teeth = "removable",$cash -= $surgeryCost, $activeSlave.health -= 20,$surgeryType = "teeth"]] | [[Replace them with sharp teeth|Surgery Degradation][$activeSlave.teeth = "pointy",$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "sharp"]]
	<</if>>
<<case "removable">>
	$He has prosthetic teeth that can be removed for extreme oral sex.
	<<if ($seeExtreme == 1) && ($activeSlave.indentureRestrictions < 1)>>
	[[Replace them with sharp teeth|Surgery Degradation][$activeSlave.teeth = "pointy",$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "sharp"]] | [[Normal dental implants|Surgery Degradation][$activeSlave.teeth = "normal",$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "oral"]]
	<</if>>
<<case "pointy">>
	$His teeth have been replaced with sturdy, realistic implants that mimic the dentition of a predator.
	<<if ($seeExtreme == 1) && ($activeSlave.indentureRestrictions < 1)>>
	[[Replace them with removable prosthetics|Surgery Degradation][$activeSlave.teeth = "removable",$cash -= $surgeryCost, $activeSlave.health -= 20,$surgeryType = "teeth"]] | [[Normal dental implants|Surgery Degradation][$activeSlave.teeth = "normal",$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "oral"]]
	<</if>>
<<case "baby">>
	$He has baby teeth.
	<<if ($seeExtreme == 1) && ($activeSlave.indentureRestrictions < 1)>>
	[[Replace them with removable prosthetics|Surgery Degradation][$activeSlave.teeth = "removable",$cash -= $surgeryCost, $activeSlave.health -= 20,$surgeryType = "teeth"]] | [[Replace them with sharp teeth|Surgery Degradation][$activeSlave.teeth = "pointy",$cash -= $surgeryCost, $activeSlave.health -= 20,$surgeryType = "sharp"]] | [[Normal dental implants|Surgery Degradation][$activeSlave.teeth = "normal",$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "oral"]]
	<</if>>
<<case "mixed">>
	$He has a mix of baby and normal teeth.
	<<if ($seeExtreme == 1) && ($activeSlave.indentureRestrictions < 1)>>
	[[Replace them with removable prosthetics|Surgery Degradation][$activeSlave.teeth = "removable",$cash -= $surgeryCost, $activeSlave.health -= 20,$surgeryType = "teeth"]] | [[Replace them with sharp teeth|Surgery Degradation][$activeSlave.teeth = "pointy",$cash -= $surgeryCost, $activeSlave.health -= 20,$surgeryType = "sharp"]] | [[Normal dental implants|Surgery Degradation][$activeSlave.teeth = "normal",$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "oral"]]
	<</if>>
<<default>>
	$He has normal, healthy teeth.
	[[Unnecessary braces|Surgery Degradation][$activeSlave.teeth = "cosmetic braces",$cash -= $surgeryCost,$surgeryType = "braces"]]
	<<if ($seeExtreme == 1) && ($activeSlave.indentureRestrictions < 1)>>
	| [[Replace them with removable prosthetics|Surgery Degradation][$activeSlave.teeth = "removable",$cash -= $surgeryCost, $activeSlave.health -= 20,$surgeryType = "teeth"]] | [[Replace them with sharp teeth|Surgery Degradation][$activeSlave.teeth = "pointy",$cash -= $surgeryCost, $activeSlave.health -= 20,$surgeryType = "sharp"]]
	<</if>>
<</switch>>

<br>&nbsp;&nbsp;&nbsp;&nbsp;
<<if $activeSlave.electrolarynx == 1>>
	$He has an artificial larynx.
<<else>>
	<<if $activeSlave.voice == 0>>
		$He is mute.
	<<elseif $activeSlave.voice == 1>>
		$He has a deep voice.
	<<elseif $activeSlave.voice == 2>>
		$He has a feminine voice.
	<<elseif $activeSlave.voice == 3>>
		$He has a high, girly voice.
	<</if>>
	<<if $activeSlave.voiceImplant >= 1>>
		$He has had surgery on $his voice box to raise $his voice.
	<<elseif $activeSlave.voiceImplant <= -1>>
		$He has had surgery on $his voice box to lower $his voice.
	<</if>>
<</if>>
<<if ($activeSlave.indentureRestrictions < 1) && ($activeSlave.electrolarynx != 1)>>
	<<if $activeSlave.voice != 0>>
		<<if $activeSlave.voice < 3>>
			[[Perform surgery to raise voice|Surgery Degradation][$activeSlave.voice += 1, $activeSlave.voiceImplant += 1, $cash -= $surgeryCost, $activeSlave.health -= 10, $surgeryType = "voice"]]
		<</if>>
		<<if $activeSlave.voice == 2>>
			|
		<</if>>
		<<if $activeSlave.voice > 1>>
			[[Perform surgery to lower voice|Surgery Degradation][$activeSlave.voice -= 1, $activeSlave.voiceImplant -= 1, $cash -= $surgeryCost, $activeSlave.health -= 10, $surgeryType = "voice2"]]
		<</if>>
		<<if $seeExtreme == 1>>
			| [[Remove vocal cords|Surgery Degradation][$activeSlave.voice = 0, $activeSlave.voiceImplant = 0, $cash -= $surgeryCost, $activeSlave.health -= 10, $surgeryType = "mute"]]
		<</if>>
	<<elseif $activeSlave.voice == 0 && $cyberMod == 1 && $stockpile.electrolarynx > 0>>
		[["Give " + $him + " an electrolarynx"|Surgery Degradation][$activeSlave.electrolarynx = 1, $activeSlave.voice = 2, $stockpile.electrolarynx--, $cash -= $surgeryCost, $activeSlave.health -= 20, $surgeryType = "electrolarynx"]]
	<</if>>
<</if>>

<<if $activeSlave.scars > 0>>
	<br>&nbsp;&nbsp;&nbsp;&nbsp;
	$He has notable facial scarring.
	[[Remove scars|Surgery Degradation][$activeSlave.scars = 0, $cash -= $surgeryCost, $activeSlave.health -= 5, $surgeryType = "scarRemov"]]
<<elseif $activeSlave.scars == 0>>
	<br>&nbsp;&nbsp;&nbsp;&nbsp;
	$His face is unscarred. [[Give a menacing scar|Surgery Degradation][$activeSlave.scars = 5, $cash -= $surgeryCost, $activeSlave.health -= 5, $surgeryType = "scarFear"]] |
	[[Give an exotic scar|Surgery Degradation][$activeSlave.scars = 6, $cash -= $surgeryCost, $activeSlave.health -= 5, $surgeryType = "scarExo"]]
<</if>>

<br><br>

Work on her chest:

<br>&nbsp;&nbsp;&nbsp;&nbsp;
	$His
	<<if $activeSlave.boobs < 300>><<print either("androgynous", "flat")>> chest is barely there.
	<<elseif $activeSlave.boobs < 400>><<print either("pointy", "tiny")>>, <<print $activeSlave.boobs>>cc chest only fills an A-cup.
	<<elseif $activeSlave.boobs < 500>><<print either("perky", "small")>>, <<print $activeSlave.boobs>>cc <<print either("tits", "breasts", "boobs", "bosom")>> would fill a B-cup.
	<<elseif $activeSlave.boobs < 650>><<print either("healthy", "curved")>>, <<print $activeSlave.boobs>>cc <<print either("tits", "breasts", "boobs", "bust", "bosom")>> would fill a C-cup.
	<<elseif $activeSlave.boobs < 800>><<print either("big", "sizeable")>>, <<print $activeSlave.boobs>>cc <<print either("tits", "breasts", "boobs", "bust", "bosom")>> would fill a D-cup.
	<<elseif $activeSlave.boobs < 1000>><<print either("large", "big")>>, <<print $activeSlave.boobs>>cc <<print either("tits", "breasts", "boobs", "bust", "bosom")>> would fill a DD-cup.
	<<elseif $activeSlave.boobs < 1200>><<print either("proud", "hefty")>>, <<print $activeSlave.boobs>>cc <<print either("tits", "breasts", "mammaries", "udders", "boobs")>> would fill an F-cup.
	<<elseif $activeSlave.boobs < 1400>><<print either("hefty", "huge")>>, <<print $activeSlave.boobs>>cc <<print either("tits", "breasts", "mammaries", "udders")>> would fill a G-cup.
	<<elseif $activeSlave.boobs < 1600>><<print either("massive", "huge")>>, <<print $activeSlave.boobs>>cc <<print either("tits", "breasts", "mammaries", "udders")>> would fill an H-cup.
	<<elseif $activeSlave.boobs < 1800>><<print either("enormous", "massive")>>, <<print $activeSlave.boobs>>cc <<print either("tits", "breasts", "mammaries", "udders")>> would fill an I-cup.
	<<elseif $activeSlave.boobs < 2050>><<print either("titanic", "enormous")>>, <<print $activeSlave.boobs>>cc <<print either("tits", "breasts", "mammaries", "udders")>> would fill a J-cup.
	<<elseif $activeSlave.boobs < 2300>><<print either("stupendous", "titanic")>>, <<print $activeSlave.boobs>>cc <<print either("tits", "breasts", "mammaries", "udders")>> would fill a K-cup.
	<<elseif $activeSlave.boobs < 2600>><<print either("magnificent", "stupendous")>>, <<print $activeSlave.boobs>>cc <<print either("tits", "breasts", "mammaries", "udders")>> would fill an L-cup.
	<<elseif $activeSlave.boobs < 2900>><<print either("tremendous", "magnificent")>>, <<print $activeSlave.boobs>>cc <<print either("tits", "breasts", "mammaries", "udders")>> would fill an M-cup.
	<<elseif $activeSlave.boobs < 3250>><<print either("awe-inspiring", "tremendous")>>, <<print $activeSlave.boobs>>cc <<print either("tits", "breasts", "mammaries", "udders")>> would fill an N-cup.
	<<elseif $activeSlave.boobs < 3600>><<print either("absurd", "awe-inspiring")>>, <<print $activeSlave.boobs>>cc <<print either("tits", "breasts", "mammaries", "udders")>> would fill an O-cup.
	<<elseif $activeSlave.boobs < 3950>><<print either("disproportionate", "attention-grabbing")>>, <<print $activeSlave.boobs>>cc <<print either("tits", "breasts", "mammaries", "udders")>> would fill a P-cup.
	<<elseif $activeSlave.boobs < 4300>><<print either("shocking", "massive")>>, <<print $activeSlave.boobs>>cc <<print either("tits", "breasts", "mammaries", "udders")>> would fill a Q-cup.
	<<elseif $activeSlave.boobs < 4700>><<print either("unreal", "jaw-dropping")>>, <<print $activeSlave.boobs>>cc <<print either("tits", "breasts", "mammaries", "udders")>> would fill an R-cup.
	<<elseif $activeSlave.boobs < 5100>><<print either("tremendous", "astounding")>>, <<print $activeSlave.boobs>>cc <<print either("tits", "breasts", "mammaries", "udders")>> would fill an S-cup.
	<<elseif ($activeSlave.amp == 1)>><<print $activeSlave.boobs>>cc <<print either("tits", "breasts", "mammaries", "udders")>> fill out an enormous custom bra; $his tits dominate $his entire frame.
	<<else>><<print $activeSlave.boobs>>cc <<print either("tits", "breasts", "mammaries", "udders")>> fill out an enormous custom bra; $his tits dominate $his entire frame.
	<</if>>
	<<if $activeSlave.boobsImplant > 600>>
		$He has <<print $activeSlave.boobsImplant>>cc fillable breast implants.
	<<elseif $activeSlave.boobsImplant > 400>>
		$He has large, <<print $activeSlave.boobsImplant>>cc breast implants.
	<<elseif $activeSlave.boobsImplant > 200>>
		$He has moderate, <<print $activeSlave.boobsImplant>>cc breast implants.
	<<elseif $activeSlave.boobsImplant > 0>>
		$He has small, <<print $activeSlave.boobsImplant>>cc breast implants.
	<</if>>

<br>&nbsp;&nbsp;&nbsp;&nbsp;
<<if $activeSlave.boobs > 50000>>
	//$His breasts are as large as $he can physically support//
<<elseif $activeSlave.boobsImplant > 10000 && $arcologies[0].FSTransformationFetishistResearch != 1 && $activeSlave.boobsImplantType != 1>>
	//$His implants are filled to capacity//
<<elseif $activeSlave.indentureRestrictions >= 2>>
	//$His indenture forbids elective surgery//
<<elseif $activeSlave.breastMesh == 1>>
	//$His supportive mesh implant blocks implantation//
<<elseif $activeSlave.boobsImplant == 0>>
	[[String implants|Surgery Degradation][$activeSlave.boobsImplant = 400, $activeSlave.boobsImplantType = 1,$activeSlave.boobs += 400,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "boobs"]] |
	<<if $surgeryUpgrade == 1>>[[Large implants|Surgery Degradation][$activeSlave.boobsImplant = 600,$activeSlave.boobs += 600,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "boobs"]] |<</if>>
	[[Standard implants|Surgery Degradation][$activeSlave.boobsImplant = 400,$activeSlave.boobs += 400,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "boobs"]] |
	[[Small implants|Surgery Degradation][$activeSlave.boobsImplant = 200,$activeSlave.boobs += 200,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "boobs"]]
<<elseif $activeSlave.boobsImplant > 10000 && $activeSlave.boobsImplantType != 1 && $ImplantProductionUpgrade == 1>>
	[[Add inert filler|Surgery Degradation][$activeSlave.boobsImplant += 1000,$activeSlave.boobs += 1000,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "boobs"]]
<<elseif $activeSlave.boobsImplant > 9800 && $activeSlave.boobsImplantType != 1 && $ImplantProductionUpgrade == 1>>
	[[Hyper fillable implants|Surgery Degradation][$activeSlave.boobsImplant = 11000,$activeSlave.boobs += 800,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "boobs"]]
<<elseif $activeSlave.boobsImplant > 2000 && $activeSlave.boobsImplantType != 1>>
	[[Add inert filler|Surgery Degradation][$activeSlave.boobsImplant += 400,$activeSlave.boobs += 400,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "boobs"]]
<<elseif $activeSlave.boobsImplant > 1800 && $activeSlave.boobsImplantType != 1>>
	$His implants are filled to capacity.
	<<if $ImplantProductionUpgrade == 1>>
		[[Advanced fillable implants|Surgery Degradation][$activeSlave.boobsImplant = 2200,$activeSlave.boobs += 200,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "boobs"]]
	<<else>>
		[[Special order advanced fillable implants|Surgery Degradation][$activeSlave.boobsImplant = 2200,$activeSlave.boobs += 200,$cash -= $surgeryCost+10000, $activeSlave.health -= 10,$surgeryType = "boobs"]] //Will cost an additional <<= cashFormat(10000)>>//
	<</if>>
<<elseif $activeSlave.boobsImplant > 600 && $activeSlave.boobsImplantType != 1>>
	[[Add inert filler|Surgery Degradation][$activeSlave.boobsImplant += 200,$activeSlave.boobs += 200,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "boobs"]]
<<elseif $activeSlave.boobsImplant > 400 && $activeSlave.boobsImplantType != 1>>
	[[Fillable implants|Surgery Degradation][$activeSlave.boobsImplant = 800,$activeSlave.boobs += 200,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "boobs"]]
<<elseif $activeSlave.boobsImplant > 200 && $activeSlave.boobsImplantType != 1>>
	[[Large implants|Surgery Degradation][$activeSlave.boobsImplant = 600,$activeSlave.boobs += 200,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "boobs"]]
<<elseif $activeSlave.boobsImplant > 0 && $activeSlave.boobsImplantType != 1>>
	[[Standard implants|Surgery Degradation][$activeSlave.boobsImplant = 400,$activeSlave.boobs += 200,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "boobs"]] | [[Large implants|Surgery Degradation][$activeSlave.boobsImplant = 600,$activeSlave.boobs += 400,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "boobs"]]
<</if>>
<<if $activeSlave.boobsImplant != 0>>
	<<if $activeSlave.boobsImplantType == 1 && $activeSlave.boobsImplant > 400>>
		<<if $activeSlave.boobsImplant > 8000>>
			| [[Drain 1000cc|Surgery Degradation][$activeSlave.boobs = ($activeSlave.boobs-1000),$activeSlave.boobsImplant = ($activeSlave.boobsImplant-1000), $activeSlave.health -= 5,$cash -= $surgeryCost, $surgeryType = "boobsLoss"]]
		<<elseif $activeSlave.boobsImplant > 5000>>
			| [[Drain 750cc|Surgery Degradation][$activeSlave.boobs = ($activeSlave.boobs-750),$activeSlave.boobsImplant = ($activeSlave.boobsImplant-750), $activeSlave.health -= 5,$cash -= $surgeryCost, $surgeryType = "boobsLoss"]]
		<<elseif $activeSlave.boobsImplant > 2000>>
			| [[Drain 500cc|Surgery Degradation][$activeSlave.boobs = ($activeSlave.boobs-500),$activeSlave.boobsImplant = ($activeSlave.boobsImplant-500), $activeSlave.health -= 5,$cash -= $surgeryCost, $surgeryType = "boobsLoss"]]
		<<elseif $activeSlave.boobsImplant > 1000>>
			| [[Drain 250cc|Surgery Degradation][$activeSlave.boobs = ($activeSlave.boobs-250),$activeSlave.boobsImplant = ($activeSlave.boobsImplant-250), $activeSlave.health -= 5,$cash -= $surgeryCost, $surgeryType = "boobsLoss"]]
		<<elseif $activeSlave.boobsImplant > 500>>
			| [[Drain 100cc|Surgery Degradation][$activeSlave.boobs = ($activeSlave.boobs-100),$activeSlave.boobsImplant = ($activeSlave.boobsImplant-100), $activeSlave.health -= 5,$cash -= $surgeryCost, $surgeryType = "boobsLoss"]]
		<</if>>
	<</if>>
	| [[Remove breast implants|Surgery Degradation][$activeSlave.boobs = ($activeSlave.boobs-$activeSlave.boobsImplant),$activeSlave.boobsImplant = 0,$activeSlave.boobsImplantType = 0, $activeSlave.health -= 5,$cash -= $surgeryCost, $surgeryType = "boobsLoss"]]
<</if>>
<<if ($activeSlave.boobs > 300) && ($activeSlave.boobsImplant == 0)>>
	<<if $activeSlave.indentureRestrictions >= 2>>
	<<else>>
	| [[Reduce breasts|Surgery Degradation][$activeSlave.boobs -= 200, $activeSlave.health -= 5,$cash -= $surgeryCost, $surgeryType = "boobsLoss"]]
	<</if>>
<</if>>
<<if ($activeSlave.boobs >= 7000) && ($activeSlave.boobsImplant == 0)>>
	<<if $activeSlave.indentureRestrictions >= 2 || ($activeSlave.breedingMark == 1 && $propOutcome == 1)>>
	<<else>>
	| [[Mastectomy|Surgery Degradation][$activeSlave.boobs = 300, $activeSlave.breastMesh = 0, $activeSlave.health -= 30,$cash -= $surgeryCost, $surgeryType = "mastectomy+"]]
	<</if>>
<<elseif ($activeSlave.boobs >= 2000) && ($activeSlave.boobsImplant == 0)>>
	<<if $activeSlave.indentureRestrictions >= 2 || ($activeSlave.breedingMark == 1 && $propOutcome == 1)>>
	<<else>>
	| [[Mastectomy|Surgery Degradation][$activeSlave.boobs = 300, $activeSlave.breastMesh = 0, $activeSlave.health -= 30,$cash -= $surgeryCost, $surgeryType = "mastectomy"]]
	<</if>>
<</if>>

<br>&nbsp;&nbsp;&nbsp;&nbsp;
<<if $activeSlave.boobsImplant != 0>>
	The shape of $his breasts is determined by $his implants.
<<else>>
<<if $activeSlave.boobs <= 250>>
	$He's so flat-chested that $his breasts don't have much shape.
<<else>>
	<<switch $activeSlave.boobShape>>
	<<case "perky">>
		They're perky, with nipples that point slightly upwards.
	<<case "downward-facing">>
		They're not attractively shaped; $his nipples pointing downward.
	<<case "torpedo-shaped">>
		They're torpedo-shaped, projecting some way from $his chest.
	<<case "wide-set">>
		They're wide-set, with nipples pointing away from $his sternum.
	<<case "saggy">>
		They're not attractively shaped, with $his nipples pointing down.
	<<default>>
		They're nicely rounded and rest naturally.
	<</switch>>
	<<if $activeSlave.indentureRestrictions >= 2>>
		//$His indenture does not allow breast restructuring//
	<<elseif $activeSlave.breastMesh == 1>>
		//$His supportive mesh implant prevents reconstruction//
	<<else>>
		<<if ($activeSlave.boobShape == "saggy") || ($activeSlave.boobShape == "downward-facing")>>
			[[Breast lift|Surgery Degradation][$activeSlave.boobShape = "normal", $activeSlave.health -= 20,$cash -= $surgeryCost, $surgeryType = "breastLift"]]<<if $activeSlave.preg > 20 || ($activeSlave.boobs >= 5000 && $activeSlave.boobs < 8000)>>//$His current state may result in $his breasts becoming saggy again//<</if>>
		<<else>>
			<<if ($activeSlave.boobShape == "normal")>>
				[[Reshape them to be perkier|Surgery Degradation][$activeSlave.boobShape = "perky",$cash -= $surgeryCost,$activeSlave.health -= 10,$surgeryType = "breastReconstruction"]]
				| [[Make them torpedo-shaped|Surgery Degradation][$activeSlave.boobShape = "torpedo-shaped",$cash -= $surgeryCost,$activeSlave.health -= 10,$surgeryType = "breastReconstruction"]]
			<<else>>
				[[Reshape them to be more normal|Surgery Degradation][$activeSlave.boobShape = "normal",$cash -= $surgeryCost,$activeSlave.health -= 10,$surgeryType = "breastReconstruction"]]
			<</if>>
			<<if ($activeSlave.boobShape != "saggy") && ($activeSlave.boobShape != "downward-facing") && ($activeSlave.boobs >= 2000) && ($activeSlave.boobsImplant == 0) && ($meshImplants == 1) && ($surgeryUpgrade == 1)>>
				| [[Implant a supportive mesh to preserve their shape|Surgery Degradation][$activeSlave.breastMesh = 1,$cash -= ($surgeryCost*($activeSlave.boobs/100)),$activeSlave.health -= 10,$surgeryType = "breastShapePreservation"]]
			<</if>>
		<</if>>
	<</if>>
<</if>>
<</if>>

<<if $surgeryUpgrade == 1>>
	<br>&nbsp;&nbsp;&nbsp;&nbsp;
	$He has $activeSlave.nipples nipples.
	<<if $activeSlave.indentureRestrictions >= 2>>
		//$His indenture forbids elective surgery//
	<<elseif $activeSlave.indentureRestrictions == 1>>
		//$His indenture forbids extreme body modification//
	<<else>> /* split for possible dicknips later on, should lcd wish to attempt it again. */
		<<if $activeSlave.nipples == "fuckable">>
			[[Restore their shape and function|Surgery Degradation][$activeSlave.nipples = "huge",$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "areolae"]]
		<<else>>
			<<if $activeSlave.boobs < 500>>
				//$His breasts are too small to support reshaping $his nipples to be penetratable//
			<<elseif $activeSlave.boobs-$activeSlave.boobsImplant < 500>>
				//$His implants are too large to support reshaping $his nipples to be penetratable//
			<<elseif $activeSlave.nipples != "huge">>
				//$His nipples are too small to be made fuckable//
			<<else>>
				[[Reshape them to support being penetrated|Surgery Degradation][$activeSlave.nipples = "fuckable",$activeSlave.nipplesPiercing = 0,$cash -= $surgeryCost, $activeSlave.health -= 20,$surgeryType = "nippleCunts"]]<<if $activeSlave.nipplesPiercing > 0>> //Will remove piercings.//<</if>>
			<</if>>
		<</if>>
	<</if>>
<</if>>

<br>&nbsp;&nbsp;&nbsp;&nbsp;
<<if $activeSlave.areolae == 0>>
	$His areolae are small <<if $activeSlave.areolaeShape != "circle">>and have been surgically altered to be $activeSlave.areolaeShape-shaped<<else>>and fairly normal<</if>>.
<<elseif $activeSlave.areolae == 1>>
	$His areolae are large <<if $activeSlave.areolaeShape != "circle">>and have been surgically altered to be $activeSlave.areolaeShape-shaped<<else>>but still fairly normal<</if>>.
<<elseif $activeSlave.areolae > 1>>
	$He has <<if $activeSlave.areolae == 2>>huge<<elseif $activeSlave.areolae == 3>>massive<</if>> areolae<<if $activeSlave.areolaeShape != "circle">>, which have been surgically altered to be $activeSlave.areolaeShape-shaped<</if>>.
	<<if ($activeSlave.indentureRestrictions < 2) && ($activeSlave.areolaeShape == "circle")>>
	They are big enough that they could be reshaped into a pattern. Graft skin to make $his areolae:
		[[Heart-shaped|Surgery Degradation][$activeSlave.areolaeShape = "heart",$activeSlave.areolae -= 1,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "areolae"]]
		| [[Star-shaped|Surgery Degradation][$activeSlave.areolaeShape = "star",$activeSlave.areolae -= 1,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "areolae"]] |
	<</if>>
	<<if $activeSlave.indentureRestrictions < 2>>
		[[Reduce areolae|Surgery Degradation][$activeSlave.areolae -= 1,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "areolae"]]
	<</if>>
<</if>>

<br>&nbsp;&nbsp;&nbsp;&nbsp;
<<if $activeSlave.lactation == 0>>
	$He is not lactating.
<<elseif $activeSlave.lactation == 2>>
	$He is implanted with slow-release pro-lactation drugs.
<<else>>
	$He is lactating naturally.
<</if>>
<<if $activeSlave.lactation < 2>>
	<<if $activeSlave.indentureRestrictions < 2>>
	[[Implant slow-release pro-lactation drugs|Surgery Degradation][$activeSlave.lactation = 2,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "lactation"]] //This may increase $his natural breast size//
	<</if>>
<</if>>
<<if $activeSlave.lactation > 1>>
	| [[Remove lactation implant|Surgery Degradation][$activeSlave.lactation = 0,$cash -= $surgeryCost, $surgeryType = "endlac"]]
<</if>>

<br><br>

Work on her midriff:

<<if $activeSlave.indentureRestrictions >= 2 && $activeSlave.weight > 30>>
	<br>&nbsp;&nbsp;&nbsp;&nbsp;
	//$His indenture forbids elective surgery//
<<elseif $activeSlave.weight > 30>>
	<br>&nbsp;&nbsp;&nbsp;&nbsp;
	<<if $activeSlave.weight > 190>>
		$He is extremely fat. [[Major liposuction|Surgery Degradation][$activeSlave.health -= 40, $cash -= $surgeryCost, $surgeryType = "liposuction"]]
	<<elseif $activeSlave.weight > 130>>
		$He is fat. [[Heavy liposuction|Surgery Degradation][$activeSlave.health -= 20, $cash -= $surgeryCost, $surgeryType = "liposuction"]]
	<<elseif $activeSlave.weight > 30>>
		$He is overweight. [[Liposuction|Surgery Degradation][$activeSlave.health -= 10, $cash -= $surgeryCost, $surgeryType = "liposuction"]]
	<</if>>
	<<if $surgeryUpgrade == 1>>
		| [[Fat grafting|fat grafting workaround][$activeSlave.health -= 40, $cash -= $surgeryCost*2, $availabeFat = Math.round($activeSlave.weight/10), $boobFat = 0, $buttFat = 0, $surgeryType = "fat graft"]]
	<</if>>
<</if>>

<br>&nbsp;&nbsp;&nbsp;&nbsp;
$He has
<<if $activeSlave.waist > 95>>a masculine
<<elseif $activeSlave.waist > 40>>an ugly
<<elseif $activeSlave.waist > 10>>an unattractive
<<elseif $activeSlave.waist >= -10>>an average
<<elseif $activeSlave.waist >= -40>>a feminine
<<elseif $activeSlave.waist >= -95>>an hourglass
<<else>>an absurd
<</if>>
waist.
<<if $activeSlave.waist >= -75>>
	<<if $activeSlave.indentureRestrictions < 2>>
	[[Liposuction|Surgery Degradation][$activeSlave.waist -= 20,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "lipo"]]
	<</if>>
<</if>>
<<if ($activeSlave.waist >= -95) && ($activeSlave.waist < -75) && ($seeExtreme == 1)>>
	<<if $activeSlave.indentureRestrictions < 1 && ($activeSlave.breedingMark != 1 || $propOutcome == 0)>>
	[[Remove ribs to severely narrow her waist|Surgery Degradation][$activeSlave.waist = -100,$cash -= $surgeryCost, $activeSlave.health -= 40,$surgeryType = "ribs"]]
	<</if>>
<</if>>

<br>&nbsp;&nbsp;&nbsp;&nbsp;
$He's
<<if $activeSlave.pregKnown > 0>>
	pregnant.
<<elseif $activeSlave.womb.length == 0 && $activeSlave.broodmother > 0>>
	got a dormant broodmother implant in $his womb.
<<elseif $activeSlave.preg > 0>>
	showing unusual discomfort as $his stomach is inspected. A quick test reveals that @@.lime;$he is pregnant.@@
	<<set $activeSlave.pregKnown = 1>>
<<elseif $activeSlave.bellyImplant > 0>>
	got a <<print $activeSlave.bellyImplant>>cc implant filled implant located in $his abdomen.
	<<if $activeSlave.cervixImplant == 1 >>
		$He also has micropump filter installed in $his cervix feeding into the implant.
	<</if>>
<<elseif $activeSlave.bellyFluid >= 1500>>
	got a <<print $activeSlave.inflationType>>-filled implant located in $his abdomen.
	<<if $activeSlave.cervixImplant == 1 >>
		$He also has micropump filter installed in $his cervix feeding into the implant.
	<</if>>
<<elseif $activeSlave.bellyImplant == 0>>
	got an empty fillable implant located in $his abdomen.
	<<if $activeSlave.cervixImplant == 1 >>
		$He also has micropump filter installed in $his cervix feeding into the implant.
	<</if>>
<<else>>
	got a normal stomach.
<</if>>

<<if $activeSlave.indentureRestrictions >= 2>>
	//$His indenture forbids elective surgery//
<<elseif $activeSlave.breedingMark == 1 && $propOutcome == 1>>
	//You are forbidden from affecting $his fertility//
<<elseif $activeSlave.preg > 0 || $activeSlave.inflation > 0 || $activeSlave.broodmother > 0>>
	//$He is unable to support an abdominal implant at this time//
<<elseif $activeSlave.bellyImplant >= 750000>>
	//$His abdominal implant is so far beyond its maximum limit it is at risk of rupturing//
<<elseif $activeSlave.bellyImplant >= 600000>>
	//$His abdominal implant is greatly beyond its maximum limit//
<<elseif $activeSlave.bellyImplant >= 450000>>
	//$His abdominal implant is over-filled//
<<elseif $activeSlave.bellyImplant >= 400000>>
	//$His abdominal implant is at its capacity//
<<elseif $activeSlave.bellyImplant > 130000 && $arcologies[0].FSTransformationFetishistResearch != 1>>
	//$His abdominal implant is at its capacity//
<<elseif $activeSlave.bellyImplant == -1 && ($activeSlave.ovaries == 1 || $activeSlave.mpreg == 1) && $bellyImplants == 1>>
	[[Implant fillable abdominal implant|Surgery Degradation][$activeSlave.bellyImplant = 0,$activeSlave.preg = -2, $activeSlave.bellyPain += 1,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "bellyIn"]]
<<elseif $activeSlave.bellyImplant == -1 && $bellyImplants == 1>>
	[[Implant a fillable abdominal implant|Surgery Degradation][$activeSlave.bellyImplant = 0, $cash -= $surgeryCost, $activeSlave.bellyPain += 2, $activeSlave.health -= 50, $surgeryType = "bellyInMale"]]
<<elseif $activeSlave.bellyPain == 2>>
	//$His body cannot handle more filler this week//
<<elseif $activeSlave.bellyImplant > -1 && $activeSlave.bellyPain == 0>>
	[[Add inert filler|Surgery Degradation][$activeSlave.bellyImplant += 200, $activeSlave.bellyPain += 1,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "bellyUp"]]
	| [[Add a considerable amount of inert filler|Surgery Degradation][$activeSlave.bellyImplant += 500, $activeSlave.bellyPain += 1,$cash -= $surgeryCost, $activeSlave.health -= 20,$surgeryType = "bellyUp"]]
<<elseif $activeSlave.bellyImplant > -1 && $activeSlave.bellyPain == 1>>
	[[Add more inert filler|Surgery Degradation][$activeSlave.bellyImplant += 200, $activeSlave.bellyPain += 1,$cash -= $surgeryCost, $activeSlave.health -= 30,$surgeryType = "bellyUp"]]
	| [[Add a considerable amount of inert filler|Surgery Degradation][$activeSlave.bellyImplant += 500, $activeSlave.bellyPain += 1,$cash -= $surgeryCost, $activeSlave.health -= 40,$surgeryType = "bellyUp"]]<<if $activeSlave.health < 0>>//@@.red;This may cause severe health issues//<</if>>
<</if>>
<<if $activeSlave.bellyImplant > -1>>
	<<if $activeSlave.indentureRestrictions < 2>>
	| [[Drain implant|Surgery Degradation][$activeSlave.bellyImplant -= 200,$cash -= $surgeryCost, $activeSlave.health -= 5, $surgeryType = "bellyDown"]]
	 <<if $activeSlave.bellyImplant >= 500>>
		| [[Greatly drain implant|Surgery Degradation][$activeSlave.bellyImplant -= 500, $activeSlave.health -= 5,$cash -= $surgeryCost, $surgeryType = "bellyDown"]]
	 <</if>>
	| [[Remove implant|Surgery Degradation][$activeSlave.bellyImplant = -1, $activeSlave.cervixImplant = 0, $cash -= $surgeryCost, $activeSlave.health -= 10, $surgeryType = "bellyOut"]]
	<</if>>
	<<if $activeSlave.cervixImplant != 1 && $cervixImplants == 1 && $activeSlave.vagina > -1>> /* slave should have vagina */
		<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		[[Install cervix micropump filter|Surgery Degradation][$activeSlave.cervixImplant = 1, $activeSlave.health -= 5, $cash -= $surgeryCost, $surgeryType = "cervixPump"]]<br>
		//Will allow $his belly implant to slowly swell as people cum in $his vagina//
	<</if>>
<</if>>

<<if $activeSlave.bellySagPreg > 0>>
	<br>&nbsp;&nbsp;&nbsp;&nbsp;
	<<if $activeSlave.belly >= 1500>>
		$He has a sagging midriff, ruined from excessive pregnancy. It is currently filled out by $his swollen belly and cannot safely be worked on.
	<<else>>
		$He has a sagging midriff, ruined from excessive pregnancy.
		[[Tummy tuck|Surgery Degradation][$activeSlave.bellySag = 0,$activeSlave.bellySagPreg = 0,$cash -= $surgeryCost, $activeSlave.health -= 20,$surgeryType = "tummyTuck"]]
	<</if>>
<<elseif $activeSlave.bellySag > 0>>
	<br>&nbsp;&nbsp;&nbsp;&nbsp;
	<<if $activeSlave.belly >= 1500>>
		$He has a sagging midriff, ruined from excessive distention. It is currently filled out by $his swollen belly and cannot safely be worked on.
	<<else>>
		$He has a sagging midriff, ruined from excessive distention.
		[[Tummy tuck|Surgery Degradation][$activeSlave.bellySag = 0,$activeSlave.bellySagPreg = 0,$cash -= $surgeryCost, $activeSlave.health -= 20,$surgeryType = "tummyTuck"]]
	<</if>>
<</if>>

<<if ($activeSlave.cSec == 1)>>
	<br>&nbsp;&nbsp;&nbsp;&nbsp;
	$He has an unsightly c-section scar.
	[[Remove Caesarean scar|Surgery Degradation][$activeSlave.cSec = 0,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "bellyscar"]]
<</if>>

<br><br>

Work on her butt:
<br>&nbsp;&nbsp;&nbsp;&nbsp;
$He's got a
<<if $activeSlave.butt <= 1>>flat and <<print either("skinny", "slim", "taut")>> ass.
<<elseif $activeSlave.butt <= 2>><<print either("small, sleek", "small but rounded", "rounded, small")>> rear end.
<<elseif $activeSlave.butt <= 3>><<print either("big and healthy", "curved and plump", "healthy and plump")>> derriere.
<<elseif $activeSlave.butt <= 4>><<print either("juicy and large butt", "big bubble butt", "curvy and enticing butt")>>.
<<elseif $activeSlave.butt <= 5>><<print either("juicy and huge", "a huge", "massive and undeniable")>> rear end.
<<elseif ($activeSlave.amp == 1)>>ridiculous ass. It's so big it would jiggle as $he walked - if $he could walk.
<<else>>ridiculous ass. It's so big it jiggles as $he walks.
<</if>>

<<if $activeSlave.buttImplant == 1>>
	$He has moderate butt implants.
<<elseif $activeSlave.buttImplant == 2>>
	$He has enormous butt implants.
<<elseif $activeSlave.buttImplant > 2>>
	$He has 
	<<if $activeSlave.buttImplantType == 1>>
		massively engorged butt implants
	<<else>>
		<<if $activeSlave.buttImplant > 8>>hyper <<elseif $activeSlave.buttImplant > 4>>advanced <</if>>fillable butt implants.
	<</if>>
<</if>>

<<if $activeSlave.indentureRestrictions >= 2>>
	//$His indenture forbids elective surgery//
<<elseif $activeSlave.butt > 19>>
	//$His butt is as large as it can possibly get//
<<elseif $activeSlave.butt > 7 && $arcologies[0].FSTransformationFetishistResearch != 1 && $arcologies[0].FSAssetExpansionist == "unset" && $activeSlave.buttImplantType != 1>>
	//$His butt is as large as $he can physically support//
<<elseif $activeSlave.buttImplant > 7 && $arcologies[0].FSTransformationFetishistResearch != 1 && $activeSlave.buttImplantType != 1>>
	//$His butt implants are filled to capacity//
<<elseif $activeSlave.buttImplant == 0>>
	[[Implants|Surgery Degradation][$activeSlave.buttImplant = 1,$activeSlave.butt += 1,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "butt"]]
	| [[String implants|Surgery Degradation][$activeSlave.buttImplant = 1,$activeSlave.butt += 1,$activeSlave.buttImplantType = 1,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "butt"]]
<<elseif $activeSlave.buttImplant == 1 && $activeSlave.buttImplantType != 1>>
	[[Bigger implants|Surgery Degradation][$activeSlave.buttImplant = 2,$activeSlave.butt += 1,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "butt"]]
<<elseif $activeSlave.buttImplant == 2 && $activeSlave.buttImplantType != 1>>
	[[Fillable implants|Surgery Degradation][$activeSlave.buttImplant = 3,$activeSlave.butt += 1,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "butt"]]
<<elseif $activeSlave.buttImplant == 4 && $activeSlave.buttImplantType != 1>>
	$His implants are filled to capacity.
	<<if $ImplantProductionUpgrade == 1>>
		[[Advanced fillable implants|Surgery Degradation][$activeSlave.buttImplant = 5,$activeSlave.butt += 1,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "butt"]]
	<<else>>
		[[Special order advanced fillable implants|Surgery Degradation][$activeSlave.buttImplant = 5,$activeSlave.butt += 1,$cash -= $surgeryCost+10000, $activeSlave.health -= 10,$surgeryType = "butt"]] //Will cost an additional <<= cashFormat(10000)>>//
	<</if>>
<<elseif $activeSlave.buttImplant == 8 && $activeSlave.buttImplantType != 1 && $ImplantProductionUpgrade == 1>>
	[[Hyper fillable implants|Surgery Degradation][$activeSlave.buttImplant = 9,$activeSlave.butt += 1,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "butt"]]
<<elseif $activeSlave.buttImplant > 2 && $activeSlave.buttImplantType != 1>>
	[[Add inert filler|Surgery Degradation][$activeSlave.buttImplant += 1,$activeSlave.butt += 1,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "butt"]]
<</if>>
<<if $activeSlave.buttImplant != 0>>
	<<if $activeSlave.indentureRestrictions < 2>>
		<<if $activeSlave.buttImplantType == 1 && $activeSlave.buttImplant > 1>>
			| [[Drain implants|Surgery Degradation][$activeSlave.butt = ($activeSlave.butt-1),$activeSlave.buttImplant = ($activeSlave.buttImplant-1), $activeSlave.health -= 5,$cash -= $surgeryCost, $surgeryType = "buttLoss"]]
		<</if>>
		| [[Remove implants|Surgery Degradation][$activeSlave.butt = ($activeSlave.butt-$activeSlave.buttImplant),$activeSlave.buttImplant = 0, $activeSlave.health -= 10,$activeSlave.buttImplantType = 0,$cash -= $surgeryCost, $surgeryType = "buttLoss"]]
	<</if>>
<</if>>
<<if ($activeSlave.butt > 1) && ($activeSlave.buttImplant == 0)>>
	<<if $activeSlave.indentureRestrictions < 2>>
		| [[Reduce ass|Surgery Degradation][$activeSlave.butt -= 1, $activeSlave.health -= 10,$cash -= $surgeryCost, $surgeryType = "buttLoss"]]
	<</if>>
<</if>>

<br><br>
Work on her sex:

<<if $activeSlave.vagina > -1>>
<br>&nbsp;&nbsp;&nbsp;&nbsp;
<<if $activeSlave.labia == 0>>
	$He has minimal pussylips.
<<elseif $activeSlave.labia == 1>>
	$He has pretty, noticeable pussylips.
<<elseif $activeSlave.labia == 2>>
	$He has large pussylips.
<<elseif $activeSlave.labia > 2>>
	$He has extremely large pussylips.
<</if>>
<<if $activeSlave.labia > 0>>
	<<if $activeSlave.indentureRestrictions < 2>>
	[[Apply labiaplasty|Surgery Degradation][$activeSlave.labia = 0,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "labiaplasty"]]
	<</if>>
<</if>>
<<if ($activeSlave.labia < 3) && ($surgeryUpgrade == 1)>>
	<<if $activeSlave.indentureRestrictions < 1>>
	<<if $activeSlave.labia > 0>> | <</if>>
		[[Increase labia|Surgery Degradation][$activeSlave.labia += 1,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "labiaplasty"]]
	<</if>>
<</if>>
<<if $activeSlave.dick == 0>>
	<br>&nbsp;&nbsp;&nbsp;&nbsp;
	$He has
	<<if $activeSlave.clit == 0>>
		a small clit<<if ($seeCircumcision == 1) && $activeSlave.foreskin > 0>> with a hood<</if>>.
	<<elseif $activeSlave.clit == 1>>
		a big clit<<if ($seeCircumcision == 1) && $activeSlave.foreskin > 0>> with a hood<</if>>.
	<<elseif $activeSlave.clit == 2>>
		a huge clit<<if ($seeCircumcision == 1) && $activeSlave.foreskin > 0>> with a hood<</if>>.
	<<elseif $activeSlave.clit > 2>>
		 an enormous clit<<if ($seeCircumcision == 1) && $activeSlave.foreskin > 0>> with a hood<</if>>.
	<</if>>
	<<if $activeSlave.clit > 0>>
		<<if $activeSlave.indentureRestrictions < 2>>
		[[Apply clitoral reduction|Surgery Degradation][$activeSlave.clit = 0,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "clitoral reduction"]]
		<</if>>
	<</if>>
	<<if ($activeSlave.clit < 3) && ($surgeryUpgrade == 1)>>
		<<if $activeSlave.indentureRestrictions < 1>>
		<<if $activeSlave.clit > 0>> | <</if>>
		[[Increase clit|Surgery Degradation][$activeSlave.clit += 1,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "clitoral enlargement"]]
		<</if>>
	<</if>>
	<<if ($activeSlave.foreskin > 0) && $activeSlave.clit > 0>>
		<<if $seeCircumcision == 1>>
			<<if $activeSlave.indentureRestrictions < 2>>
				| [[Remove clitoral hood|Surgery Degradation][$activeSlave.foreskin = 0,$cash -= $surgeryCost, $activeSlave.health -= 10, $surgeryType = "circumcision"]]
			<</if>>
		<</if>>
	<</if>>
<</if>>
<</if>> /*closes vag check */

<<if ($activeSlave.preg > -2) && ($activeSlave.preg < 1) && ($activeSlave.vagina > -1) && ($activeSlave.ovaries != 0) && ($activeSlave.pubertyXX == 0)>>
	<br>&nbsp;&nbsp;&nbsp;&nbsp;
	$He has not had $his first period.
<<elseif ($activeSlave.preg > -2) && ($activeSlave.preg < 1) && ($activeSlave.vagina > -1) && ($activeSlave.ovaries != 0)>>
	<br>&nbsp;&nbsp;&nbsp;&nbsp;
	$He has a working womb.
<<elseif ($activeSlave.preg <= -2) && ($activeSlave.vagina > -1) && ($activeSlave.ovaries != 0)>>
	<br>&nbsp;&nbsp;&nbsp;&nbsp;
	$He has a sterile womb.
<</if>>

<<if isFertile($activeSlave) && $activeSlave.preg == 0>>
	[[Artificially inseminate|Artificial Insemination]] |
<</if>>

<<if ($activeSlave.preg > -2) && ($activeSlave.preg < 1) && ($activeSlave.vagina > -1) && ($activeSlave.ovaries != 0)>>
	<<if $activeSlave.indentureRestrictions < 1 && ($activeSlave.breedingMark != 1 || $propOutcome == 0)>>
	[[Sterilize|Surgery Degradation][$activeSlave.preg = -2,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "ster"]]
	<</if>>
<<elseif ($activeSlave.preg < 1) && ($activeSlave.vagina > -1) && ($activeSlave.ovaries != 0) && ($activeSlave.preg != -3)>>
	[[Restore fertility|Surgery Degradation][$activeSlave.preg = 0,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "fert"]]
<</if>>

<<if ($activeSlave.ovaries == 1) && ($activeSlave.preg < 1)>>
	<<if $activeSlave.indentureRestrictions < 1 && ($activeSlave.breedingMark != 1 || $propOutcome == 0)>>
		<<if ($activeSlave.pubertyXX == 0)>>
			<br>&nbsp;&nbsp;&nbsp;&nbsp;
			$He has ovaries but has not had $his first period.
		<<else>>
			<br>&nbsp;&nbsp;&nbsp;&nbsp;
			$He has working ovaries.
		<</if>>
	[[Oophorectomy|Surgery Degradation][$activeSlave.ovaries = 0,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "ster"]]
	<</if>>
<</if>>

<<if $seeExtreme == 1 && $seeHyperPreg == 1 && $seePreg != 0 && $permaPregImplant == 1>>
	<br>&nbsp;&nbsp;&nbsp;&nbsp;
	<<if $activeSlave.assignment == "work in the dairy" && $dairyPregSetting > 0>>
		$His womb is already rented out for the production of calves.
	<<else>>
		<<if isFertile($activeSlave) && $activeSlave.ovaryAge <= 46>>
			$He could be made into a broodmother.
		<<elseif $activeSlave.broodmother > 0>>
			$He has been made into a <<if $activeSlave.broodmother > 1>>hyper-<</if>>broodmother.
			<<if $activeSlave.womb.length == 0 >>
				[[Remove a pregnancy generator|Surgery Degradation][$activeSlave.preg = 0,$activeSlave.pregWeek = -2,$activeSlave.pregSource = 0,$activeSlave.pregWeek = 0,$activeSlave.pregKnown = 0,$activeSlave.pregType = 0,$activeSlave.broodmother = 0,$activeSlave.broodmotherFetuses = 0,$activeSlave.broodmotherOnHold = 0,$cash -= $surgeryCost,$activeSlave.pregControl = "none",$activeSlave.health -= 10,$surgeryType = "pregRemove"]] 
			<<else>>
				$He is pregnant right now, so $his broodmother implant can't be safely extracted.
			<</if>>
		<<else>>
			$His body cannot support being a broodmother.
		<</if>>
		<<if $activeSlave.indentureRestrictions < 1 && ($activeSlave.breedingMark != 1 || $propOutcome == 0)>>
			<<if isFertile($activeSlave)>>
				[[Implant a pregnancy generator|Surgery Degradation][$activeSlave.preg = 1,$activeSlave.pregWeek = 1,$activeSlave.pregKnown = 1,$activeSlave.pregType = 1,$activeSlave.broodmother = 1,$activeSlave.broodmotherFetuses = 1,$cash -= $surgeryCost,$activeSlave.pregControl = "none",$activeSlave.health -= 10,$surgeryType = "preg"]] //This will have severe effects on $his health and mind//
			<</if>>
		<</if>>
	<</if>>
<</if>>

<<if $activeSlave.mpreg == 1>>
	<<if $activeSlave.preg > 0>>
		<br>&nbsp;&nbsp;&nbsp;&nbsp;
		$His anal womb cannot be removed while $he is pregnant.
	<<else>>
		<<if $activeSlave.indentureRestrictions < 1 && ($activeSlave.breedingMark != 1 || $propOutcome == 0)>>
		<br>&nbsp;&nbsp;&nbsp;&nbsp;
		[[Remove anal reproductive organs|Surgery Degradation][$activeSlave.mpreg = 0,$cash -= $surgeryCost, $activeSlave.health -= 30,$surgeryType = "mpreg removed"]]
		<</if>>
	<</if>>
<</if>>

<<if $activeSlave.vagina > -1>>
	<br>&nbsp;&nbsp;&nbsp;&nbsp;
	$He has a
	<<if $activeSlave.vagina == 0>>
		virgin pussy.
	<<elseif $activeSlave.vagina == 1>>
		tight pussy.
	<<elseif $activeSlave.vagina == 2>>
		used pussy.
	<<elseif $activeSlave.vagina == 3>>
		loose pussy.
	<<elseif $activeSlave.vagina == 10>>
		ruined cunt.
	<<else>>
		gaping cunt.
	<</if>>
<</if>>
<<if ($activeSlave.vagina > 3)>>
	<br>&nbsp;&nbsp;&nbsp;&nbsp;
	$His vagina could benefit from surgical repair.
	[[Repair pussy|Surgery Degradation][$activeSlave.vagina = 3,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "vagina"]] //This will reduce $his vaginal skills//
<<elseif ($surgeryUpgrade == 1) && ($activeSlave.indentureRestrictions < 2)>>
	<<if ($activeSlave.vagina > 1)>>
		<br>&nbsp;&nbsp;&nbsp;&nbsp;
		$His vaginal muscles could benefit from microsurgical rejuvenation.
		[[Tighten pussy|Surgery Degradation][$activeSlave.vagina = 1,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "vagina"]] //This will reduce $his vaginal skills//
	<<elseif ($activeSlave.vagina > 0)>>
		<br>&nbsp;&nbsp;&nbsp;&nbsp;
		$His pussy is as tight as a virgin's, and $his hymen could be restored.
		[[Restore virginity|Surgery Degradation][$activeSlave.vagina = 0,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "vagina"]] //This will reduce $his vaginal skills//
	<</if>>
<</if>>

<<if ($activeSlave.vagina > -1) && ($activeSlave.dick > 0)>>
	<<if $activeSlave.indentureRestrictions < 1 && ($activeSlave.breedingMark != 1 || $propOutcome == 0)>>
		<br>&nbsp;&nbsp;&nbsp;&nbsp;
		Since $he has both a penis and a vagina, it's possible to remove $his pussy and leave $his sexually functional.
		[[Remove pussy|Surgery Degradation][$activeSlave.vagina = -1,$activeSlave.ovaries = 0,$activeSlave.preg = -2,$activeSlave.pregSource = 0,$activeSlave.vaginalSkill = 0,$activeSlave.vaginalAccessory = "none",$cash -= $surgeryCost,$activeSlave.health -= 20,$surgeryType = "vaginaRemoval"]] <<if $activeSlave.ovaries == 1>>//This will remove $his ovaries as well//<</if>>
	<</if>>
<<elseif $activeSlave.vagina > -1>>
	<<if $activeSlave.indentureRestrictions < 1 && ($activeSlave.breedingMark != 1 || $propOutcome == 0)>>
		<br>&nbsp;&nbsp;&nbsp;&nbsp;
		$His pussy can be removed at the cost of $his sexual functionality, leaving $him a null.
		[[Remove pussy|Surgery Degradation][$activeSlave.vagina = -1,$activeSlave.ovaries = 0,$activeSlave.preg = -2,$activeSlave.pregSource = 0,$activeSlave.vaginalSkill = 0,$activeSlave.vaginalAccessory = "none",$cash -= $surgeryCost,$activeSlave.health -= 20,$surgeryType = "vaginaRemoval"]] <<if $activeSlave.ovaries == 1>>//This will remove $his ovaries as well//<</if>>
	<</if>>
<</if>>

<<if ($activeSlave.dick == 0) && ($activeSlave.vagina == -1)>>
	<br>&nbsp;&nbsp;&nbsp;&nbsp;
	$He is a null, possessing neither penis nor vagina.
<<elseif ($seeCircumcision == 1) && ($activeSlave.indentureRestrictions < 2)>>
	<<if ($activeSlave.dick != 0) && ($activeSlave.vagina == -1) && ($activeSlave.foreskin == 0)>>
		<br>&nbsp;&nbsp;&nbsp;&nbsp;
		$He has a circumcised penis.
	<<elseif ($activeSlave.dick != 0) && ($activeSlave.vagina == -1) && ($activeSlave.foreskin >= 1)>>
		<br>&nbsp;&nbsp;&nbsp;&nbsp;
		$He has an uncircumcised penis.
	<<elseif ($activeSlave.dick != 0) && ($activeSlave.ovaries != 0) && ($activeSlave.foreskin == 0)>>
		<br>&nbsp;&nbsp;&nbsp;&nbsp;
		$He has a circumcised penis and a vagina.
	<<elseif ($activeSlave.dick != 0) && ($activeSlave.ovaries != 0) && ($activeSlave.foreskin >= 1)>>
		<br>&nbsp;&nbsp;&nbsp;&nbsp;
		$He has an uncircumcised penis and a vagina.
	<<elseif ($activeSlave.dick != 0) && ($activeSlave.vagina != -1) && ($activeSlave.foreskin == 0)>>
		<br>&nbsp;&nbsp;&nbsp;&nbsp;
		$He has a circumcised penis and a<<if $activeSlave.genes == "XY">>n artificial<</if>> vagina.
	<<elseif ($activeSlave.dick != 0) && ($activeSlave.vagina != -1) && ($activeSlave.foreskin >= 1)>>
		<br>&nbsp;&nbsp;&nbsp;&nbsp;
		$He has an uncircumcised penis and a<<if $activeSlave.genes == "XY">>n artificial<</if>> vagina.
	<</if>>
<<else>>
	<<if ($activeSlave.dick != 0) && ($activeSlave.vagina == -1)>>
		<br>&nbsp;&nbsp;&nbsp;&nbsp;
		$He has a penis.
	<<elseif ($activeSlave.dick != 0) && ($activeSlave.ovaries != 0)>>
		<br>&nbsp;&nbsp;&nbsp;&nbsp;
		$He has a penis and a vagina.
	<<elseif ($activeSlave.dick != 0) && ($activeSlave.vagina != -1)>>
		<br>&nbsp;&nbsp;&nbsp;&nbsp;
		$He has a penis and a<<if $activeSlave.genes == "XY">>n artificial<</if>> vagina.
	<</if>>
<</if>>

<<if $activeSlave.indentureRestrictions < 1 && ($activeSlave.breedingMark != 1 || $propOutcome == 0)>>
	<<if ($activeSlave.vagina == -1) && ($activeSlave.dick != 0)>>
		[[Convert genitalia to female|Surgery Degradation][$activeSlave.dick = 0,$activeSlave.dickAccessory = "none",$activeSlave.dickTat = 0,$activeSlave.foreskin = 0,$activeSlave.scrotum = 0,$activeSlave.balls = 0,$activeSlave.ballType = "human",$activeSlave.vasectomy = 0,$activeSlave.vagina = 0,$activeSlave.preg = -2,$activeSlave.vaginalSkill = 0,$cash -= $surgeryCost, $activeSlave.health -= 40, $surgeryType = "mtf"]]
	<</if>>
	<<if ($activeSlave.vagina == -1) && ($activeSlave.dick == 0) && ($surgeryUpgrade == 1)>>	
		| [[Create a vagina|Surgery Degradation][$activeSlave.vagina = 0,$activeSlave.vaginalSkill = 0,$cash -= $surgeryCost, $activeSlave.health -= 40, $surgeryType = "mtf"]]
	<</if>>
	<<if ($activeSlave.dick > 0) && ($seeExtreme == 1)>>
		| [[Remove penis|Surgery Degradation][$activeSlave.dick = 0,$activeSlave.dickAccessory = "none",$activeSlave.dickTat = 0,$activeSlave.foreskin = 0,$activeSlave.vaginalSkill = 0,$cash -= $surgeryCost, $activeSlave.health -= 20, $surgeryType = "chop"]]
	<</if>>
	<<if ($activeSlave.foreskin > 0) && $activeSlave.dick > 0>>
		<<if $seeCircumcision == 1>>
			<<if $activeSlave.indentureRestrictions < 2>>
				| [[Remove foreskin|Surgery Degradation][$activeSlave.foreskin = 0,$cash -= $surgeryCost, $activeSlave.health -= 10, $surgeryType = "circumcision"]]
			<</if>>
		<</if>>
	<</if>>
<</if>>

<<if ($activeSlave.dick != 0) && ($activeSlave.vagina == -1) && ($surgeryUpgrade == 1)>>
	<<if $activeSlave.indentureRestrictions < 1>>
		| [[Create surgical hermaphrodite|Surgery Degradation][$activeSlave.vagina = 0,$activeSlave.vaginalSkill = 0,$cash -= $surgeryCost, $activeSlave.health -= 40, $surgeryType = "herm"]]
	<</if>>
<</if>>

<<if ($activeSlave.balls > 0)>>
	<<if ($activeSlave.balls == 1)>>
		<br>&nbsp;&nbsp;&nbsp;&nbsp;
		$His testicles are vestigial, but $he has balls. Technically. They are 
	<<elseif ($activeSlave.balls > 1)>>
		<br>&nbsp;&nbsp;&nbsp;&nbsp;
		$He has testicles 
	<</if>>
	<<if ($activeSlave.scrotum > 0)>>
		located in $his scrotum.
		<br>&nbsp;&nbsp;&nbsp;&nbsp;
		<<if $activeSlave.indentureRestrictions < 1>>
		[[Move them inside abdomen and remove scrotum|Surgery Degradation][$activeSlave.scrotum = 0,$cash -= $surgeryCost, $activeSlave.health -= 20, $surgeryType = "relocate"]]
		<</if>>
		//This will have a negative impact on cum production//
	<<else>>
		<<if ($activeSlave.genes == "XY")>>
			relocated inside $his abdomen, and $his scrotum has been removed.
		<<else>>
			implanted inside $his abdomen.
		<</if>>
	<</if>>	
	<<if ($seeExtreme == 1)>>
		<<if ($activeSlave.scrotum > 0)>>
			| 
		<</if>>
		[[Geld|Surgery Degradation][$activeSlave.balls = 0,$activeSlave.ballType = "human",$activeSlave.scrotum = 0,$activeSlave.vasectomy = 0,$cash -= $surgeryCost, $activeSlave.health -= 40, $surgeryType = "geld"]]
	<</if>>
	<<if $activeSlave.ballType != "sterile">>
		<<if ($activeSlave.scrotum > 0)>>
			| 
		<</if>>
		[[Chemically castrate|Surgery Degradation][$activeSlave.ballType = "sterile",$cash -= $surgeryCost, $surgeryType = "chem castrate"]]
	<</if>>
	<<if ($activeSlave.vasectomy == 1)>>
		<br>&nbsp;&nbsp;&nbsp;&nbsp;
		$He has had a vasectomy and shoots blanks when $he cums<<if $activeSlave.pubertyXY == 0 || $activeSlave.ballType == "sterile">>, or would, if $he were potent<</if>>.
		[[Reverse vasectomy|Surgery Degradation][$activeSlave.vasectomy = 0,$cash -= $surgeryCost, $activeSlave.health -= 10, $surgeryType = "vasectomy undo"]]
	<<else>>
		<br>&nbsp;&nbsp;&nbsp;&nbsp;
		<<if $activeSlave.ballType == "sterile">>
			$He has non-functional testicles.
			<<if $activeSlave.indentureRestrictions < 1>>
				[[Clamp vas deferens|Surgery Degradation][$activeSlave.vasectomy = 1,$cash -= $surgeryCost, $activeSlave.health -= 10, $surgeryType = "vasectomy"]]
			<</if>>
		<<else>>
			$He has working testicles<<if $activeSlave.pubertyXY == 0>>, though $he isn't potent<</if>>.
			<<if $activeSlave.indentureRestrictions < 1>>
				[[Clamp vas deferens to cull potency|Surgery Degradation][$activeSlave.vasectomy = 1,$cash -= $surgeryCost, $activeSlave.health -= 10, $surgeryType = "vasectomy"]]
			<</if>>
		<</if>>
	<</if>>
<</if>>

<<if $activeSlave.prostate>>
	<br>&nbsp;&nbsp;&nbsp;&nbsp;
	$He has a <<if $activeSlave.prostate > 2>>hyperactive, ejaculation enhancing<<elseif $activeSlave.prostate > 1>>hyperactive<<else>>normal<</if>> prostate.
	<<if $activeSlave.prostate >= 2 && $prostateImplants == 1>>
		<<if $activeSlave.prostate < 3>>
			<<if $activeSlave.indentureRestrictions < 2>>
			[[Implant prostate with an ejaculation boosting implant|Surgery Degradation][$activeSlave.prostate = 3,$cash -= $surgeryCost, $activeSlave.health -= 20,$surgeryType = "ejaculation"]] //This will thin $his ejaculate but greatly increase its quantity//
			<</if>>
		<</if>>
		<<if $activeSlave.prostate == 3>>
			| [[Remove ejaculation implant|Surgery Degradation][$activeSlave.prostate = 2,$cash -= $surgeryCost, $activeSlave.health -= 10, $surgeryType = "endejac"]]
		<<elseif $activeSlave.prostate == 2>>
			| [[Remove drug implant|Surgery Degradation][$activeSlave.prostate=1,$cash-=$surgeryCost,$surgeryType="endprecum"]]
		<</if>>
	<<else>>
		<<if $activeSlave.prostate > 1>>
			[[Remove drug implant|Surgery Degradation][$activeSlave.prostate=1,$cash-=$surgeryCost,$surgeryType="endprecum"]]
		<</if>>
		<<if $activeSlave.prostate < 2>>
			<<if $activeSlave.indentureRestrictions < 2>>
				| [[Implant slow-release productivity drugs|Surgery Degradation][$activeSlave.prostate=2,$cash-=$surgeryCost,$activeSlave.health-=10,$surgeryType="precum"]] //This may cause some leaking//
			<</if>>
		<</if>>
	<</if>>
	<<if ($seeExtreme == 1)>>
		<<if $activeSlave.indentureRestrictions < 1>>
			| [[Remove prostate|Surgery Degradation][$activeSlave.prostate = 0,$cash -= $surgeryCost, $activeSlave.health -= 40, $surgeryType = "prostate"]]
		<</if>>
	<</if>>
<</if>>

<br><br>

Work on her asshole:
<br>&nbsp;&nbsp;&nbsp;&nbsp;
$He has
<<if $activeSlave.anus == 0>>
	a virgin asshole.
<<elseif $activeSlave.anus == 1>>
	a tight asshole.
<<elseif $activeSlave.anus == 2>>
	a loose asshole.
<<elseif $activeSlave.anus == 3>>
	a very loose asshole.
<<else>>
	a permanently gaping asshole.
<</if>>
<<if ($activeSlave.anus > 3)>>
	<br>&nbsp;&nbsp;&nbsp;&nbsp;
	$His anal sphincter could benefit from surgical repair.
	[[Repair asshole|Surgery Degradation][$activeSlave.anus = 3,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "anus"]] //This will reduce $his anal skills//
<<elseif ($surgeryUpgrade == 1) && ($activeSlave.indentureRestrictions < 2)>>
	<<if ($activeSlave.anus > 1)>>
		<br>&nbsp;&nbsp;&nbsp;&nbsp;
		$His anal sphincter could benefit from microsurgical rejuvenation.
		[[Tighten asshole|Surgery Degradation][$activeSlave.anus = 1,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "anus"]] //This will reduce $his anal skills//
	<<elseif ($activeSlave.anus > 0)>>
		<br>&nbsp;&nbsp;&nbsp;&nbsp;
		$His butthole is fairly narrow, but could be tightened to virgin status.
		[[Restore anal virginity|Surgery Degradation][$activeSlave.anus = 0,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "anus"]] //This will reduce $his anal skills//
	<</if>>
<</if>>

<br><br>

<<if $arcologies[0].childhoodFertilityInducedNCSResearch == 1>>
Apply a retro-virus treatment:
<br>&nbsp;&nbsp;&nbsp;&nbsp;
		<<if $activeSlave.inducedNCS == 0>>
			<<if ($activeSlave.indentureRestrictions >= 1)>>
					//$His indenture forbids induced NCS as it is both extreme body modification and elective surgery//
				<<elseif $activeSlave.health < 0>>
					$He's too unhealthy for the Induced @@.orange;NCS@@ Treatment
				<<else>>
				[[Induced NCS Treatment|Surgery Degradation][$activeSlave.inducedNCS = 1,$cash -= $surgeryCost * 4, $activeSlave.health -= 80,$surgeryType = "retrograde virus injection NCS"]] //This will induce @@.orange;NCS@@ in $his genetic code//
				<</if>>
		<<else>>
				//$He already has Induced @@.orange;NCS@@//
		<</if>>
<br><br>

<</if>>

Deal with $his hair:

<br>&nbsp;&nbsp;&nbsp;&nbsp;
<<if $activeSlave.bald == 0 && $activeSlave.hStyle != "bald">>
	$He naturally grows $activeSlave.origHColor hair from $his head.
	[["Surgically remove " + $his + " ability to grow hair"|Surgery Degradation][$cash -= $surgeryCost,$activeSlave.bald = 1,$surgeryType = "hair removal"]]
<<else>>
	$He is no longer capable of growing hair on $his head.
<</if>>
<br>&nbsp;&nbsp;&nbsp;&nbsp;
<<if ($activeSlave.eyebrowStyle != "bald" && $activeSlave.eyebrowStyle != "hairless")>>
	$He has $activeSlave.origHColor eyebrows.
	[["Surgically remove " + $his + " ability to grow eyebrows"|Surgery Degradation][$cash -= $surgeryCost,$surgeryType = "eyebrow removal"]]
<<else>>
	$He is no longer capable of growing eyebrow hair.
<</if>>
<br>&nbsp;&nbsp;&nbsp;&nbsp;
<<if ($activeSlave.underArmHStyle != "bald" && $activeSlave.underArmHStyle != "hairless") || ($activeSlave.pubicHStyle != "bald" && $activeSlave.pubicHStyle != "hairless")>>
	$He <<if $activeSlave.physicalAge >= 12>>naturally grows<<else>>will someday grow<</if>> $activeSlave.origHColor body hair.
	[["Surgically remove " + $his + " ability to grow body hair"|Surgery Degradation][$cash -= $surgeryCost,$surgeryType = "body hair removal"]]
<<else>>
	$His $activeSlave.skin skin is silky smooth and hair free from $his neck to $his <<if $activeSlave.amp == 1>>hips<<else>>toes<</if>>.
<</if>>

<br><br>

Alter $his race:
<br>&nbsp;&nbsp;&nbsp;&nbsp;
<<if $activeSlave.indentureRestrictions < 1>>
	$He is $activeSlave.race<<if $activeSlave.race != $activeSlave.origRace>>, but was originally $activeSlave.origRace<</if>>. Surgically alter $him to look more:
	<<if $activeSlave.race != "white">>
		[[White|Surgery Degradation][$activeSlave.race = "white",$activeSlave.skin = either("pale", "light", "fair"),$activeSlave.eyeColor = either("blue", "brown", "green"),$activeSlave.hColor = either("black", "blonde", "red", "brown"),$cash -= $surgeryCost, $activeSlave.health -= 20,$surgeryType = "race"]] |
	<</if>>
	<<if $activeSlave.race != "latina">>
		[[Latina|Surgery Degradation][$activeSlave.race = "latina",$activeSlave.skin = either("light olive", "brown", "dark brown", "tanned", "dark olive"),$activeSlave.hColor = either("black", "black", "brown", "brown"),$cash -= $surgeryCost, $activeSlave.health -= 20,$surgeryType = "race"]] |
	<</if>>
	<<if $activeSlave.race != "black">>
		[[Black|Surgery Degradation][$activeSlave.race = "black",$activeSlave.skin = either("black", "dark brown", "brown"),$activeSlave.hColor = either("black", "black", "black", "brown"),$cash -= $surgeryCost, $activeSlave.health -= 20,$surgeryType = "race"]] |
	<</if>>
	<<if $activeSlave.race != "asian">>
		[[Asian|Surgery Degradation][$activeSlave.race = "asian",$activeSlave.skin = either("light olive", "dark olive", "light"),$activeSlave.hColor = either("black"),$cash -= $surgeryCost, $activeSlave.health -= 20,$surgeryType = "race"]] |
	<</if>>
	<<if $activeSlave.race != "middle eastern">>
		[[Middle Eastern|Surgery Degradation][$activeSlave.race = "middle eastern",$activeSlave.skin = either("fair", "light olive", "tanned", "light"),$activeSlave.hColor = either("black"),$cash -= $surgeryCost, $activeSlave.health -= 20,$surgeryType = "race"]] |
	<</if>>
	<<if $activeSlave.race != "indo-aryan">>
		[[Indo-Aryan|Surgery Degradation][$activeSlave.race = "indo-aryan",$activeSlave.skin = either("dark", "light"),$activeSlave.hColor = either("black"),$cash -= $surgeryCost, $activeSlave.health -= 20,$surgeryType = "race"]] |
	<</if>>
	<<if $activeSlave.race != "pacific islander">>
		[[Pacific Islander|Surgery Degradation][$activeSlave.race = "pacific islander",$activeSlave.skin = either("dark", "light"),$activeSlave.hColor = either("black"),$cash -= $surgeryCost, $activeSlave.health -= 20,$surgeryType = "race"]] |
	<</if>>
	<<if $activeSlave.race != "malay">>
		[[Malay|Surgery Degradation][$activeSlave.race = "malay",$activeSlave.skin = either("dark", "light"),$activeSlave.hColor = either("black"),$cash -= $surgeryCost, $activeSlave.health -= 20,$surgeryType = "race"]] |
	<</if>>
	<<if $activeSlave.race != "amerindian">>
		[[Amerindian|Surgery Degradation][$activeSlave.race = "amerindian",$activeSlave.skin = either("dark", "light"),$activeSlave.hColor = either("black"),$cash -= $surgeryCost, $activeSlave.health -= 20,$surgeryType = "race"]] |
	<</if>>
	<<if $activeSlave.race != "southern european">>
		[[Southern European|Surgery Degradation][$activeSlave.race = "southern european",$activeSlave.skin = either("fair", "light olive", "tanned", "light"),$activeSlave.hColor = either("black"),$cash -= $surgeryCost, $activeSlave.health -= 20,$surgeryType = "race"]] |
	<</if>>
	<<if $activeSlave.race != "semitic">>
		[[Semitic|Surgery Degradation][$activeSlave.race = "semitic",$activeSlave.skin = either("fair", "light olive", "tanned", "light"),$activeSlave.hColor = either("black"),$cash -= $surgeryCost, $activeSlave.health -= 20,$surgeryType = "race"]] |
	<</if>>
	<<if $activeSlave.race != "mixed race">>
		[[Mixed Race|Surgery Degradation][$activeSlave.race = "mixed race",$activeSlave.skin = either("pale", "dark", "light"),$activeSlave.hColor = either("black", "black", "black", "black", "brown", "brown", "blonde", "red"),$cash -= $surgeryCost, $activeSlave.health -= 20,$surgeryType = "race"]]
	<</if>>
<<else>>
	//$His indenture forbids elective surgery//
<</if>>

<br><br>
Work on $him structurally:
<br>&nbsp;&nbsp;&nbsp;&nbsp;
<<if $activeSlave.indentureRestrictions < 1>>
	<<if ($activeSlave.shoulders < -1)>>
		$He has very narrow shoulders. 
	<<elseif ($activeSlave.shoulders < 0)>>
		$He has narrow shoulders. 
	<<elseif ($activeSlave.shoulders < 1)>>
		$He has average shoulders. 
	<<elseif ($activeSlave.shoulders < 2)>>
		$He has broad shoulders. 
	<<elseif ($activeSlave.shoulders == 2)>>
		$He has very broad shoulders. 
	<</if>>
	<<if ($activeSlave.shouldersImplant == 0)>>
		$He has a natural shoulder structure.
	<<elseif ($activeSlave.shouldersImplant > 3)>>
		$His shoulders have been completely rebuilt to be massively wider.
	<<elseif ($activeSlave.shouldersImplant > 2)>>
		$His shoulders have been heavily restructured to broaden them.
	<<elseif ($activeSlave.shouldersImplant > 1)>>
		$His shoulders have been repeatedly restructured to broaden them.
	<<elseif ($activeSlave.shouldersImplant > 0)>>
		$His shoulders have been restructured to broaden them.
	<<elseif ($activeSlave.shouldersImplant < -3)>>
		$His shoulders have been completely rebuilt to be massively narrower.
	<<elseif ($activeSlave.shouldersImplant < -2)>>
		$His shoulders have been heavily restructured to narrow them.
	<<elseif ($activeSlave.shouldersImplant < -1)>>
		$His shoulders have been repeatedly restructured to narrow them.
	<<elseif ($activeSlave.shouldersImplant < 0)>>
		$His shoulders have been restructured to narrow them.
	<</if>>
	<<if ($activeSlave.shouldersImplant == 0)>>
		<<if $activeSlave.shoulders > -2 && $activeSlave.shoulders < 2>>
			[[Restructure shoulders more broadly|Surgery Degradation][$activeSlave.shouldersImplant++,$activeSlave.shoulders++,$cash -= $surgeryCost, $activeSlave.health -= 40,$surgeryType = "shoulders"]] | [[Restructure shoulders more narrowly|Surgery Degradation][$activeSlave.shouldersImplant--,$activeSlave.shoulders--,$cash -= $surgeryCost, $activeSlave.health -= 40,$surgeryType = "shoulders"]]
		<<elseif $activeSlave.shoulders <= -1>>
			[[Restructure shoulders more broadly|Surgery Degradation][$activeSlave.shouldersImplant++,$activeSlave.shoulders++,$cash -= $surgeryCost, $activeSlave.health -= 40,$surgeryType = "shoulders"]]
		<<elseif $activeSlave.shoulders >= 2>>
			[[Restructure shoulders more narrowly|Surgery Degradation][$activeSlave.shouldersImplant--,$activeSlave.shoulders--,$cash -= $surgeryCost, $activeSlave.health -= 40,$surgeryType = "shoulders"]]
		<</if>>
	<<elseif $surgeryUpgrade == 1>>
		<<if $activeSlave.shoulders > -2 && $activeSlave.shoulders < 2>>
			[[Advanced shoulder broadening surgery|Surgery Degradation][$activeSlave.shouldersImplant++,$activeSlave.shoulders++,$cash -= $surgeryCost, $activeSlave.health -= 40,$surgeryType = "shoulders"]] | [[Advanced shoulder narrowing surgery|Surgery Degradation][$activeSlave.shouldersImplant--,$activeSlave.shoulders--,$cash -= $surgeryCost, $activeSlave.health -= 40,$surgeryType = "shoulders"]]
		<<elseif $activeSlave.shoulders <= -1>>
			[[Advanced shoulder broadening surgery|Surgery Degradation][$activeSlave.shouldersImplant++,$activeSlave.shoulders++,$cash -= $surgeryCost, $activeSlave.health -= 40,$surgeryType = "shoulders"]]
		<<elseif $activeSlave.shoulders >= 2>>
			[[Advanced shoulder narrowing surgery|Surgery Degradation][$activeSlave.shouldersImplant--,$activeSlave.shoulders--,$cash -= $surgeryCost, $activeSlave.health -= 40,$surgeryType = "shoulders"]]
		<</if>>
	<</if>>
	<br>&nbsp;&nbsp;&nbsp;&nbsp;
<</if>>

<<if $activeSlave.indentureRestrictions < 1>>
	<<if ($activeSlave.hips < -1)>>
		$He has very narrow hips.
	<<elseif ($activeSlave.hips < 0)>>
		$He has narrow hips.
	<<elseif ($activeSlave.hips < 1)>>
		$He has average hips.
	<<elseif ($activeSlave.hips < 2)>>
		$He has broad hips.
	<<elseif ($activeSlave.hips < 3)>>
		$He has very broad hips.
	<<elseif ($activeSlave.hips == 3)>>
		$He has doorway-jamming hips.
	<</if>>
	<<if ($activeSlave.hipsImplant == 0)>>
		They have not been altered.
	<<elseif ($activeSlave.hipsImplant > 3)>>
		$His pelvis has been completely rebuilt to be massively wider.
	<<elseif ($activeSlave.hipsImplant > 2)>>
		$His pelvis has been heavily broadened.
	<<elseif ($activeSlave.hipsImplant > 1)>>
		$His pelvis has been repeatedly broadened.
	<<elseif ($activeSlave.hipsImplant > 0)>>
		$His pelvis has been broadened.
	<<elseif ($activeSlave.hipsImplant < -3)>>
		$His pelvis has been completely rebuilt to be massively narrower.
	<<elseif ($activeSlave.hipsImplant < -2)>>
		$His pelvis has heavily narrowed.
	<<elseif ($activeSlave.hipsImplant < -1)>>
		$His pelvis has been repeatedly narrowed.
	<<elseif ($activeSlave.hipsImplant < 0)>>
		$His pelvis has been narrowed.
	<</if>>
	<<if ($activeSlave.hipsImplant == 0)>>
		<<if $activeSlave.hips > -2 && $activeSlave.hips < 3 && $surgeryUpgrade == 1>>
			[[Broaden pelvis|Surgery Degradation][$activeSlave.hipsImplant++,$activeSlave.hips++,$cash -= $surgeryCost, $activeSlave.health -= 40,$surgeryType = "hips"]] | [[Narrow pelvis|Surgery Degradation][$activeSlave.hipsImplant--,$activeSlave.hips--,$cash -= $surgeryCost, $activeSlave.health -= 40,$surgeryType = "hips"]]
		<<elseif $activeSlave.hips > -2 && $activeSlave.hips < 2>>
			[[Broaden pelvis|Surgery Degradation][$activeSlave.hipsImplant++,$activeSlave.hips++,$cash -= $surgeryCost, $activeSlave.health -= 40,$surgeryType = "hips"]] | [[Narrow pelvis|Surgery Degradation][$activeSlave.hipsImplant--,$activeSlave.hips--,$cash -= $surgeryCost, $activeSlave.health -= 40,$surgeryType = "hips"]]
		<<elseif $activeSlave.hips <= -1>>
			[[Broaden pelvis|Surgery Degradation][$activeSlave.hipsImplant++,$activeSlave.hips++,$cash -= $surgeryCost, $activeSlave.health -= 40,$surgeryType = "hips"]]
		<<elseif $activeSlave.hips >= 2>>
			[[Narrow pelvis|Surgery Degradation][$activeSlave.hipsImplant--,$activeSlave.hips--,$cash -= $surgeryCost, $activeSlave.health -= 40,$surgeryType = "hips"]]
		<</if>>
	<<elseif $surgeryUpgrade == 1>>
		<<if $activeSlave.hips > -2 && $activeSlave.hips < 3>>
			[[Advanced pelvis broadening|Surgery Degradation][$activeSlave.hipsImplant++,$activeSlave.hips++,$cash -= $surgeryCost, $activeSlave.health -= 40,$surgeryType = "hips"]] | [[Advanced pelvis narrowing|Surgery Degradation][$activeSlave.hipsImplant--,$activeSlave.hips--,$cash -= $surgeryCost, $activeSlave.health -= 40,$surgeryType = "hips"]]
		<<elseif $activeSlave.hips <= -1>>
			[[Advanced pelvis broadening|Surgery Degradation][$activeSlave.hipsImplant++,$activeSlave.hips++,$cash -= $surgeryCost, $activeSlave.health -= 40,$surgeryType = "hips"]]
		<<elseif $activeSlave.hips >= 3>>
			[[Advanced pelvis narrowing|Surgery Degradation][$activeSlave.hipsImplant--,$activeSlave.hips--,$cash -= $surgeryCost, $activeSlave.health -= 40,$surgeryType = "hips"]]
		<</if>>
	<</if>>
	<br>&nbsp;&nbsp;&nbsp;&nbsp;
<</if>>

<<if ($activeSlave.amp == 0)>>
	<<if ($activeSlave.heightImplant == 0)>>
		$He has normal femurs and humeri.
	<<elseif ($activeSlave.heightImplant > 0)>>
		$His femurs, humeri, and other major bones have been lengthened.
	<<elseif ($activeSlave.heightImplant < 0)>>
		$His femurs, humeri, and other major bones have been shortened.
	<</if>>
<<if ($activeSlave.heightImplant == 0)>>
	<<if $activeSlave.indentureRestrictions < 1>>
	[[Lengthen major bones|Surgery Degradation][$activeSlave.heightImplant = 1,$activeSlave.height += 10,$cash -= $surgeryCost, $activeSlave.health -= 40,$surgeryType = "height"]] | [[Shorten major bones|Surgery Degradation][$activeSlave.heightImplant = -1,$activeSlave.height -= 10,$cash -= $surgeryCost, $activeSlave.health -= 40,$surgeryType = "height"]]
	<</if>>
<<elseif ($activeSlave.height < (Height.mean($activeSlave)+15)) && ($activeSlave.height >= (Height.mean($activeSlave)-15)) && ($surgeryUpgrade == 1)>>
	<<if $activeSlave.indentureRestrictions < 1>>
	[[Advanced height gain surgery|Surgery Degradation][$activeSlave.heightImplant = 1,$activeSlave.height += 10,$cash -= $surgeryCost, $activeSlave.health -= 40,$surgeryType = "height"]] | [[Advanced height reduction surgery|Surgery Degradation][$activeSlave.heightImplant = -1,$activeSlave.height -= 10,$cash -= $surgeryCost, $activeSlave.health -= 40,$surgeryType = "height"]]
	<</if>>
<<elseif ($activeSlave.height < (Height.mean($activeSlave)+15)) && ($surgeryUpgrade == 1)>>
	<<if $activeSlave.indentureRestrictions < 1>>
	[[Advanced height gain surgery|Surgery Degradation][$activeSlave.heightImplant = 1,$activeSlave.height += 10,$cash -= $surgeryCost, $activeSlave.health -= 40,$surgeryType = "height"]]
	<</if>>
<<elseif ($activeSlave.height >= (Height.mean($activeSlave)-15)) && ($surgeryUpgrade == 1)>>
	<<if $activeSlave.indentureRestrictions < 1>>
	[[Advanced height reduction surgery|Surgery Degradation][$activeSlave.heightImplant = -1,$activeSlave.height -= 10,$cash -= $surgeryCost, $activeSlave.health -= 40,$surgeryType = "height"]]
	<</if>>
<</if>>
<br>&nbsp;&nbsp;&nbsp;&nbsp;
<<if ($activeSlave.heels == 0) && ($activeSlave.amp == 0)>>
	$He has healthy calves.
<<elseif ($activeSlave.heels == 1) && ($activeSlave.amp == 0)>>
	$His calves have been altered so that $he cannot walk in anything but very high heels.
<</if>>
<<if ($activeSlave.heels == 0) && ($seeExtreme == 1)>>
	<<if $activeSlave.indentureRestrictions < 1>>
	[[Shorten tendons|Surgery Degradation][$activeSlave.heels = 1,$activeSlave.shoes = "heels",$cash -= $surgeryCost, $activeSlave.health -= 20,$surgeryType = "heels"]] //Prevents $his from walking in anything but very high heels//
	<</if>>
<</if>>
<<if ($activeSlave.heels == 1)>>
	[[Replace tendons|Surgery Degradation][$activeSlave.heels = 0,$activeSlave.shoes = "none",$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "heelsRestoration"]]
<</if>>
<br>&nbsp;&nbsp;&nbsp;&nbsp;
<</if>>


<<if ($activeSlave.amp == 0)>>
	$He has healthy limbs.
<<else>>
	$He is a quadruple amputee
	<<if $activeSlave.PLimb == 1 && $activeSlave.amp == 1>>
		and has been implanted with a <<if $cyberMod>>basic<</if>> PLimb interface.
	<<elseif $activeSlave.PLimb == 2 && $activeSlave.amp == 1>>
		and has been implanted with an advanced PLimb interface.
	<<elseif $activeSlave.amp == -1>>
		and has been equipped with modern prosthetics.
	<<elseif $activeSlave.amp == -2>>
		and has been equipped with advanced, sex-focused prosthetics.
	<<elseif $activeSlave.amp == -3>>
		and has been equipped with advanced, beauty-focused prosthetics.
	<<elseif $activeSlave.amp == -4>>
		and has been equipped with advanced, combat-focused prosthetics.
	<<elseif $activeSlave.amp == -5>>
		and has been equipped with highly advanced cybernetic prosthetics.
	<<else>>
		and has not been equipped with prosthetics.
	<</if>>
<</if>>

<<if $cyberMod == 0>>
	<<if $activeSlave.amp == 0>>
		<<if ($activeSlave.indentureRestrictions < 1) && ($seeExtreme == 1)>>
			[[Remove arms and legs|Surgery Degradation][$activeSlave.amp = 1,$activeSlave.heels = 0,$activeSlave.shoes = "none",$activeSlave.legAccessory = "none",$activeSlave.heightImplant = 0,$activeSlave.legsTat = 0,$activeSlave.armsTat = 0,$cash -= $surgeryCost,$activeSlave.health -= 40,$activeSlave.nails = 0,$activeSlave.PLimb = 0,$surgeryType = "amp1"]] //This will greatly restrict $him//
		<</if>>
	<<elseif $activeSlave.PLimb != 1 && $activeSlave.amp == 1>>
		<<if ($activeSlave.indentureRestrictions < 1) && ($seeExtreme == 1)>>
			[[Implant prosthetic interface|Surgery Degradation][$activeSlave.PLimb = 1,$cash -= $surgeryCost,$activeSlave.health -= 20,$surgeryType = "prostheticInterface"]] //This will allow $his to use prosthetic limbs//
		<</if>>
	<</if>>
<<else>>
	<<if $activeSlave.amp == 0>>
		<<if ($activeSlave.indentureRestrictions < 1) && ($seeExtreme == 1) && (($stockpile.basicPLimbInterface + $stockpile.advPLimbInterface) == 0)>>
			[[Remove arms and legs|Surgery Degradation][$activeSlave.amp = 1,$activeSlave.heels = 0,$activeSlave.shoes = "none",$activeSlave.legAccessory = "none",$activeSlave.heightImplant = 0,$activeSlave.legsTat = 0,$activeSlave.armsTat = 0,$activeSlave.releaseRules = "restrictive",$cash -= $surgeryCost, $activeSlave.health -= 40,$activeSlave.nails = 0,$surgeryType = "amp"]] //This will greatly restrict $him//
		<<elseif ($activeSlave.indentureRestrictions < 1) && ($seeExtreme == 1)>>
			[[Remove arms and legs|Surgery Degradation][$activeSlave.amp = 1,$activeSlave.heels = 0,$activeSlave.shoes = "none",$activeSlave.legAccessory = "none",$activeSlave.heightImplant = 0,$activeSlave.legsTat = 0,$activeSlave.armsTat = 0,$activeSlave.releaseRules = "restrictive",$cash -= $surgeryCost, $activeSlave.health -= 40,$activeSlave.nails = 0,$surgeryType = "amp1"]] //This will greatly restrict $him//
		<</if>>
	<<elseif ($activeSlave.amp == 1) && ($activeSlave.PLimb == 0)>>
		<<if ($stockpile.basicPLimbInterface > 0)>> |
			[[Install basic prosthetic interface|Surgery Degradation][$activeSlave.PLimb = 1,$stockpile.basicPLimbInterface -= 1,$cash -= $surgeryCost, $activeSlave.health -= 20,$surgeryType = "PLimb interface1"]]
		<</if>>
		<<if $stockpile.advPLimbInterface > 0>> |
			[[Install advanced prosthetic interface|Surgery Degradation][$activeSlave.PLimb = 2,$stockpile.advPLimbInterface -= 1,$cash -= $surgeryCost, $activeSlave.health -= 20,$surgeryType = "PLimb interface2"]]
		<</if>>
	<<elseif $activeSlave.amp == 1 && $activeSlave.PLimb == 1 && $stockpile.advPLimbInterface > 0>> |
		[[Upgrade = advanced prosthetic interface|Surgery Degradation][$activeSlave.PLimb = 2,$stockpile.advPLimbInterface -= 1,$cash -= $surgeryCost, $activeSlave.health -= 5,$surgeryType = "PLimb interface3"]]
	<</if>>
<</if>>


<<if $organFarmUpgrade >= 1>> /* ORGAN FARM */
	<<if $activeSlave.indentureRestrictions < 2>>
		<br><br>
		<<include "organFarmOptions">>
	<</if>>
<</if>> /* CLOSES ORGAN FARM */

<<if ndef $limbs>>
	<<set $limbs = []>>
<</if>>

<<if $cyberMod == 0>> /* CyberMod Toggle */
<<if $prostheticsUpgrade > 0>> /* PROSTHESIS FACTORY */
<<if $activeSlave.indentureRestrictions < 2>>

<br><br>

<<set $activeLimbs = 0>>
<<set _i = $limbs.findIndex(function(s) { return s.ID == $activeSlave.ID; })>>
<<if _i != -1>>
	<<set $activeLimbs = $limbs[_i]>>
<</if>>

<<if $activeLimbs == 0>>
	<<if ($activeSlave.readyLimbs.length < 5 && $activeSlave.amp >= 0) || ($activeSlave.readyLimbs.length < 4 && $activeSlave.amp < 0)>> /* missing at least one type of limb */
		The prosthesis facility is not currently building a set of artificial limbs for $him.
		<br>&nbsp;&nbsp;&nbsp;&nbsp;
		Construct prosthetics:
		
		<<if $activeSlave.amp != -1>>
			<<set _rems = $activeSlave.readyLimbs.findIndex(function(s) { return s.type == -1; })>>
			<<if _rems == -1>>
				<<link "Basic prosthetic limbs">>
					<<set $cash -= 10000>>
					<<set $activeLimbs = {weeksToCompletion: 4, ID: 0, type: "simple"}>>
					<<set $activeLimbs.ID = $activeSlave.ID>>
					<<set $limbs.push($activeLimbs)>>
					<<goto "Remote Surgery">>
				<</link>> //Costs <<print cashFormat(10000)>> and will take 4 weeks//
			<</if>>
		<</if>>
		
		<<if $prostheticsUpgrade > 1>>
			<<if $activeSlave.amp != -2>>
				<<set _rems = $activeSlave.readyLimbs.findIndex(function(s) { return s.type == -2; })>>
				<<if _rems == -1>>
					|
					<<link "Sexual functions">>
						<<set $cash -= 15000>>
						<<set $activeLimbs = {weeksToCompletion: 6, ID: 0, type: "sex"}>>
						<<set $activeLimbs.ID = $activeSlave.ID>>
						<<if $activeSlave.amp == 1>>
							<<set $activeLimbs.weeksToCompletion += 3>>
						<</if>>
						<<set $limbs.push($activeLimbs)>>
						<<goto "Remote Surgery">>
					<</link>> //Costs <<print cashFormat(15000)>> and will take 6 weeks//
				<</if>>
			<</if>>
			
			<<if $activeSlave.amp != -3>>
				<<set _rems = $activeSlave.readyLimbs.findIndex(function(s) { return s.type == -3; })>>
				<<if _rems == -1>>
					|
					<<link "Beauty and grace">>
						<<set $cash -= 15000>>
						<<set $activeLimbs = {weeksToCompletion: 6, ID: 0, type: "beauty"}>>
						<<set $activeLimbs.ID = $activeSlave.ID>>
						<<if $activeSlave.amp == 1>>
							<<set $activeLimbs.weeksToCompletion += 3>>
						<</if>>
						<<set $limbs.push($activeLimbs)>>
						<<goto "Remote Surgery">>
					<</link>> //Costs <<print cashFormat(15000)>> and will take 6 weeks//
				<</if>>
			<</if>>
			
			<<if $activeSlave.amp != -4>>
				<<set _rems = $activeSlave.readyLimbs.findIndex(function(s) { return s.type == -4; })>>
				<<if _rems == -1>>
					|
					<<link "Combat effectiveness">>
						<<set $cash -= 15000>>
						<<set $activeLimbs = {weeksToCompletion: 6, ID: 0, type: "combat"}>>
						<<set $activeLimbs.ID = $activeSlave.ID>>
						<<if $activeSlave.amp == 1>>
							<<set $activeLimbs.weeksToCompletion += 3>>
						<</if>>
						<<set $limbs.push($activeLimbs)>>
						<<goto "Remote Surgery">>
					<</link>> //Costs <<print cashFormat(15000)>> and will take 6 weeks//
				<</if>>
			<</if>>
		<</if>>
		<<if $prostheticsUpgrade > 2>>
			<<if $activeSlave.amp != -5>>
				<<set _rems = $activeSlave.readyLimbs.findIndex(function(s) { return s.type == -5; })>>
				<<if _rems == -1>>
					|
					<<link "Highly advanced cybernetics">>
						<<set $cash -= 25000>>
						<<set $activeLimbs = {weeksToCompletion: 8, ID: 0, type: "cyber"}>>
						<<set $activeLimbs.ID = $activeSlave.ID>>
						<<if $activeSlave.amp == 1>>
							<<set $activeLimbs.weeksToCompletion += 6>>
						<</if>>
						<<set $limbs.push($activeLimbs)>>
						<<goto "Remote Surgery">>
					<</link>> //Costs <<print cashFormat(25000)>> and will take 8 weeks//
				<</if>>
			<</if>>
		<</if>>
	<<else>>
		The prosthesis facility has already built a complete set of artificial limbs of every type for $him.
	<</if>>
<<elseif $activeLimbs.weeksToCompletion > 0>>
	The prosthesis facility is currently building a set of
	<<switch $activeLimbs.type>>
	<<case "cyber">>
		highly advanced cybernetic
	<<case "sex">>
		advanced sex-focus artificial
	<<case "beauty">>
		advanced beauty-focus artificial
	<<case "combat">>
		advanced combat-focus artificial
	<<default>>
		standard artificial
	<</switch>>
	limbs for $him, which is projected to be ready for attachment in $activeLimbs.weeksToCompletion <<if $activeLimbs.weeksToCompletion == 1>>week<<else>>weeks<</if>>.
	<<link "Discard">>
		<<set _i = $limbs.findIndex(function(s) { return s.ID == $activeSlave.ID; })>>
		<<set $limbs.deleteAt(_i)>>
		<<goto "Remote Surgery">>
	<</link>>
<<else>>
	The prosthesis facility has constructed $his prosthetic limbs.
	<br>&nbsp;&nbsp;&nbsp;&nbsp;
	<<if $activeSlave.amp == 0>>
		// $He must be an amputee to attach prosthetic limbs //
	<<elseif $activeSlave.PLimb == 0>>
		// $He must have a prosthetic interface installed to attack prosthetic limbs //
	<<else>>
		<<link "Attach">>
			<<if $activeSlave.amp < 0>>
				<<set _oldLimbs = {type: 0, armsTat: 0, legsTat: 0}>>
				<<set _oldLimbs.type = $activeSlave.amp, _oldLimbs.armsTat = $activeSlave.armsTat, _oldLimbs.legsTat = $activeSlave.legsTat>>
				<<set $activeSlave.readyLimbs.push(_oldLimbs)>>
			<</if>>
			
			<<set _i = $limbs.findIndex(function(s) { return s.ID == $activeSlave.ID; })>>

			<<switch $limbs[_i].type>>
			<<case "simple">>
				<<set $activeSlave.amp = -1>>
				<<set $surgeryType = "basicPLimbs">>
			<<case "sex">>
				<<set $activeSlave.amp = -2>>
				<<set $surgeryType = "sexPLimbs">>
			<<case "beauty">>
				<<set $activeSlave.amp = -3>>
				<<set $surgeryType = "beautyPLimbs">>
			<<case "combat">>
				<<set $activeSlave.amp = -4>>
				<<set $surgeryType = "combatPLimbs">>
			<<case "cyber">>
				<<set $activeSlave.amp = -5>>
				<<set $surgeryType = "cyberPLimbs">>
			<</switch>>
			<<set $limbs.deleteAt(_i)>>
			<<set $activeSlave.armsTat = 0, $activeSlave.legsTat = 0>>
			<<goto "Surgery Degradation">>
		<</link>>
	<</if>>
	|
	<<link "Discard">>
		<<set $limbs.deleteAt(_i)>>
		<<goto "Remote Surgery">>
	<</link>>
	|
	<<link "Put into storage">>
		<<set _i = $limbs.findIndex(function(s) { return s.ID == $activeSlave.ID; })>>
		<<set _newLimbs = {type: 0, armsTat: 0, legsTat: 0}>>

		<<switch $limbs[_i].type>>
		<<case "simple">>
			<<set _newLimbs.type = -1>>
		<<case "sex">>
			<<set _newLimbs.type = -2>>
		<<case "beauty">>
			<<set _newLimbs.type = -3>>
		<<case "combat">>
			<<set _newLimbs.type = -4>>
		<<case "cyber">>
			<<set _newLimbs.type = -5>>
		<</switch>>
		
		<<set $activeSlave.readyLimbs.push(_newLimbs)>>
		<<set $limbs.deleteAt(_i)>>
		<<goto "Remote Surgery">>
	<</link>><<if $activeSlave.PLimb == 1>>// These can be accessed at any time during slave inspection //<</if>>
<</if>>

<</if>>
<</if>> /* CLOSES PROSTHESIS FACTORY */
<</if>> /* CyberMod Toggle */

<br>
<<if $seeExtreme == 1>>
<<if $activeSlave.fuckdoll == 0>>
	<br>$He is a normal sex slave, not a living sex toy.
	<<if $activeSlave.indentureRestrictions < 1 && ($activeSlave.breedingMark != 1 || $propOutcome == 0)>>
		[[Encase in a Fuckdoll suit|Surgery Degradation][$activeSlave.subTarget=0, $activeSlave.sentence=0, $activeSlave.training=0, $activeSlave.toyHole="all her holes", $activeSlave.pubicHStyle="waxed", $activeSlave.livingRules="spare", $activeSlave.speechRules="restrictive", $activeSlave.releaseRules="restrictive", $activeSlave.relationshipRules="restrictive", $activeSlave.fuckdoll=1, $activeSlave.choosesOwnClothes=0, $activeSlave.clothes="a Fuckdoll suit", $activeSlave.collar="none", $activeSlave.shoes="heels",$activeSlave.legAccessory="none", $activeSlave.vaginalAccessory="none", $activeSlave.dickAccessory="none", $activeSlave.buttplug="none", $activeSlave.attrKnown=1, $activeSlave.fetishKnown=1, $activeSlave.inflation=0, $activeSlave.inflationType="none", $activeSlave.inflationMethod=0, $activeSlave.milkSource=0, $activeSlave.cumSource=0, $surgeryType = "fuckdoll"]] //This is permanent and will greatly restrict $him//
	<</if>>
<<else>>
	<br>$He is encased in a Fuckdoll suit. [[Extract it|Surgery Degradation][$activeSlave.fuckdoll=0, $activeSlave.clothes="no clothing", $activeSlave.shoes="none", $surgeryType = "fuckdollExtraction"]]
<</if>>
<</if>>


<<if ($seeExtreme == 1)>>
	<<if $activeSlave.fetish != "mindbroken">>
		<br>$He is mentally competent.
	<<elseif $activeSlave.fetish == "mindbroken">>
		<br>$His mind is gone; $he has either been chemically lobotomized, or has lost $his mind due to extreme abuse.
	<</if>>
	<<if $activeSlave.indentureRestrictions < 1 && ($activeSlave.breedingMark != 1 || $propOutcome == 0)>>
	<<if $activeSlave.fetish != "mindbroken">>
		[[Chemically lobotomize|Surgery Degradation][$activeSlave.fetish = "mindbroken",$activeSlave.fetishKnown = 1,$cash -= $surgeryCost, $activeSlave.health -= 20,$surgeryType = "mindbreak"]]
		//Warning: this is permanent and irreversible. It will destroy $his will and $his ability to remember anything but the simplest skills.//
	<</if>>
	<</if>>
<</if>>

<<if $bodyswapAnnounced == 1 && $activeSlave.indenture < 0>>
	<br>
	<<if $activeSlave.bodySwap == 0>>
		$He is in $his native body.
	<<elseif $activeSlave.origBodyOwner != "">>
		$He currently occupies <<print $activeSlave.origBodyOwner>>'s body.
	<<else>>
		$He is no longer in $his native body.
	<</if>>
	<<if $activeSlave.indenture == -1>>
		[[Swap her body with another of your stock's|Slave Slave Swap Workaround]]
	<<else>>
		//Indentured servants must remain in their own bodies.//
	<</if>>
<<elseif $cheatMode == 1>>
	<br>[[Force enable bodyswapping|Remote Surgery][$bodyswapAnnounced = 1]]
<</if>>
