code:
:: Remote Surgery [nobr]

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

<<set $surgeryType = 0>>
<<set $showEncyclopedia = 1>><<set $encyclopedia = "The Remote Surgery">>

$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>>

$possessiveCap
<<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; $possessive tits dominate $possessive entire frame.
<<else>><<print $activeSlave.boobs>>cc <<print either("tits", "breasts", "mammaries", "udders")>> fill out an enormous custom bra; $possessive tits dominate $possessive entire frame.
<</if>>

<<if $activeSlave.boobsImplant > 600>>
	$pronounCap has <<print $activeSlave.boobsImplant>>cc fillable breast implants.
<<elseif $activeSlave.boobsImplant > 400>>
	$pronounCap has large, <<print $activeSlave.boobsImplant>>cc breast implants.
<<elseif $activeSlave.boobsImplant > 200>>
	$pronounCap has normal, <<print $activeSlave.boobsImplant>>cc breast implants.
<<elseif $activeSlave.boobsImplant > 0>>
	$pronounCap has small, <<print $activeSlave.boobsImplant>>cc breast implants.
<</if>>

<<if $activeSlave.boobs > 25000>>
	//$possessiveCap breasts are as large as $pronoun can physically support//
<<elseif $activeSlave.boobs > 10000 && $arcologies[0].FSTransformationFetishistResearch != 1>>
	//$possessiveCap breasts are as large as $pronoun can physically support//
<<elseif $activeSlave.indentureRestrictions >= 2>>
	//$possessiveCap indenture forbids elective surgery//
<<elseif $activeSlave.boobsImplant == 0>>
	[[String implants|Surgery Degradation][$activeSlave.boobsImplant = 400, $activeSlave.boobsImplantType = 1,$activeSlave.boobs += 400,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "boobs"]] |
	[[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 > 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),$cash -= $surgeryCost, $surgeryType = "boobsLoss"]]
		<<elseif $activeSlave.boobsImplant > 5000>>
			 | [[Drain 750cc|Surgery Degradation][$activeSlave.boobs = ($activeSlave.boobs-750),$activeSlave.boobsImplant = ($activeSlave.boobsImplant-750),$cash -= $surgeryCost, $surgeryType = "boobsLoss"]]
		<<elseif $activeSlave.boobsImplant > 2000>>
			 | [[Drain 500cc|Surgery Degradation][$activeSlave.boobs = ($activeSlave.boobs-500),$activeSlave.boobsImplant = ($activeSlave.boobsImplant-500),$cash -= $surgeryCost, $surgeryType = "boobsLoss"]]
		<<elseif $activeSlave.boobsImplant > 1000>>
			 | [[Drain 250cc|Surgery Degradation][$activeSlave.boobs = ($activeSlave.boobs-250),$activeSlave.boobsImplant = ($activeSlave.boobsImplant-250),$cash -= $surgeryCost, $surgeryType = "boobsLoss"]]
		<<elseif $activeSlave.boobsImplant > 500>>
			 | [[Drain 100cc|Surgery Degradation][$activeSlave.boobs = ($activeSlave.boobs-100),$activeSlave.boobsImplant = ($activeSlave.boobsImplant-100),$cash -= $surgeryCost, $surgeryType = "boobsLoss"]]
		<</if>>
	<</if>>
	 | [[Remove breast implants|Surgery Degradation][$activeSlave.boobs = ($activeSlave.boobs-$activeSlave.boobsImplant),$activeSlave.boobsImplant = 0,$activeSlave.boobsImplantType = 0,$cash -= $surgeryCost, $surgeryType = "boobsLoss"]]
<</if>>
<<if ($activeSlave.boobs > 300) && ($activeSlave.boobsImplant == 0)>>
	<<if $activeSlave.indentureRestrictions >= 2>>
	<<else>>
	 | [[Reduce breasts|Surgery Degradation][$activeSlave.boobs -= 200,$cash -= $surgeryCost, $surgeryType = "boobsLoss"]]
	<</if>>
<</if>>
<<if ($activeSlave.boobs >= 7000) && ($activeSlave.boobsImplant == 0)>>
	<<if $activeSlave.indentureRestrictions >= 2 || $activeSlave.breedingMark == 1>>
	<<else>>
	 | [[Mastectomy|Surgery Degradation][$activeSlave.boobs = 300, $activeSlave.health -= 30,$cash -= $surgeryCost, $surgeryType = "mastectomy+"]]
	<</if>>
<<elseif ($activeSlave.boobs >= 2000) && ($activeSlave.boobsImplant == 0)>>
	<<if $activeSlave.indentureRestrictions >= 2 || $activeSlave.breedingMark == 1>>
	<<else>>
	 | [[Mastectomy|Surgery Degradation][$activeSlave.boobs = 300, $activeSlave.health -= 30,$cash -= $surgeryCost, $surgeryType = "mastectomy"]]
	<</if>>
<</if>>

<<if $activeSlave.boobsImplant != 0>>
	The shape of $possessive breasts is determined by $possessive implants.
<<else>>
<<if $activeSlave.boobs <= 250>>
	$pronounCap's so flat-chested that $possessive 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; $possessive nipples pointing downward.
<<case "torpedo-shaped">>
	They're torpedo-shaped, projecting some way from $possessive chest.
<<case "wide-set">>
	They're wide-set, with nipples pointing away from $possessive sternum.
<<case "saggy">>
	They're not attractively shaped, with $possessive nipples pointing down.
<<default>>
	They're nicely rounded and rest naturally.
<</switch>>
<<if $activeSlave.indentureRestrictions >= 2>>
	$possessiveCap indenture does not allow breast restructuring.
<<else>>
	<<if ($activeSlave.boobShape == "saggy") && ($activeSlave.boobShape == "perky")>>
		[[Breast lift|Surgery Degradation][$activeSlave.boobShape = "normal", $activeSlave.health -= 20,$cash -= $surgeryCost, $surgeryType = "breastLift"]]<<if $activeSlave.preg > 20 || ($activeSlave.boobs >= 5000 && $activeSlave.boobs < 8000)>>//$possessiveCap current state will may result in $possessive 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>>
<</if>>

<</if>>
<</if>>

<<if $activeSlave.lactation == 0>>
	$pronounCap is not lactating.
<<elseif $activeSlave.lactation == 2>>
	$pronounCap is implanted with slow-release pro-lactation drugs.
<<else>>
	$pronounCap 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 $possessive natural breast size//
	<</if>>
<</if>>
<<if $activeSlave.lactation > 1>>
	 | [[Remove lactation implant|Surgery Degradation][$activeSlave.lactation = 0,$cash -= $surgeryCost, $surgeryType = "endlac"]]
<</if>>

$possessiveCap $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 == 1>>
	It has seen some work.
<<elseif $activeSlave.faceImplant > 1>>
	It has been totally reworked.
<</if>>

<<if $activeSlave.indentureRestrictions >= 2>>
	//$possessiveCap indenture forbids elective surgery//
<<elseif ($activeSlave.faceImplant < 2) || ($surgeryUpgrade == 1)>>
	Facial surgery can <<if $activeSlave.face <= 95>> either<</if>> rework it and improve its attractiveness<<if $activeSlave.face <= 95>>, or simply make it more attractive<</if>>.
	<<if $activeSlave.faceShape != "normal">>
	[[Make conventionally feminine|Surgery Degradation][$activeSlave.faceShape to "normal",$activeSlave.faceImplant += 1,$cash -= $surgeryCost,$activeSlave.health -= 10,$surgeryType to "face"]] |
	<</if>>
	<<if $activeSlave.faceShape is "masculine">>
	[[Soften to androgynous|Surgery Degradation][$activeSlave.faceShape to "androgynous",$activeSlave.faceImplant += 1,$cash -= $surgeryCost,$activeSlave.health -= 10,$surgeryType to "face"]] |
	<<else>>
	<<if $activeSlave.faceShape != "cute">>
		[[Cute|Surgery Degradation][$activeSlave.faceShape to "cute",$activeSlave.faceImplant += 1,$cash -= $surgeryCost,$activeSlave.health -= 10,$surgeryType to "face"]] |
	<</if>>
	<<if $activeSlave.faceShape != "exotic">>
		[[Exotic|Surgery Degradation][$activeSlave.faceShape to "exotic",$activeSlave.faceImplant += 1,$cash -= $surgeryCost,$activeSlave.health -= 10,$surgeryType to "face"]] |
	<</if>>
	<<if $activeSlave.faceShape != "sensual">>
		[[Sensual|Surgery Degradation][$activeSlave.faceShape to "sensual",$activeSlave.faceImplant += 1,$cash -= $surgeryCost,$activeSlave.health -= 10,$surgeryType to "face"]] |
	<</if>>
	<<if $activeSlave.faceShape != "androgynous">>
		[[Androgynous|Surgery Degradation][$activeSlave.faceShape to "androgynous",$activeSlave.faceImplant += 1,$cash -= $surgeryCost,$activeSlave.health -= 10,$surgeryType to "face"]]
	<<else>>
		[[Masculine|Surgery Degradation][$activeSlave.faceShape to "masculine",$activeSlave.faceImplant += 1,$cash -= $surgeryCost,$activeSlave.health -= 10,$surgeryType to "face"]]
	<</if>>
	<</if>>
	<<if $activeSlave.face <= 95>>
	| [[Just improve attractiveness|Surgery Degradation][$activeSlave.faceImplant += 1,$cash -= $surgeryCost,$activeSlave.health -= 10,$surgeryType = "face"]]
	<</if>>
<</if>>
<<if $activeSlave.faceImplant == 1>>
	//Further facial surgery will unavoidably give $possessive a somewhat artificial appearance//
<<elseif $activeSlave.faceImplant > 1>>
	//The advanced surgery permits you to continue reworking $possessive face//
<</if>>

<<if ($activeSlave.physicalAge >= 25) && ($activeSlave.visualAge >= 25) && ($activeSlave.ageImplant == 0)>>

$pronounCap's old enough that a face lift and other minor cosmetic procedures could make $possessive look younger.
<<elseif ($activeSlave.physicalAge >= 25) && ($activeSlave.ageImplant == 1)>>

$pronounCap's had a face lift and other minor cosmetic procedures to make $possessive look younger.
<</if>>

<<if $activeSlave.indentureRestrictions >= 2>>
	//$possessiveCap indenture forbids elective surgery//
<<elseif ($activeSlave.ageImplant != 1) && ($activeSlave.visualAge >= 25) && ($activeSlave.physicalAge >= 25)>>
	[[Age lift|Surgery Degradation][$activeSlave.ageImplant = 1,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "age"]]
<</if>>

<<if $activeSlave.scars > 0>>

$pronounCap has notable facial scarring.
	[[Remove scars|Surgery Degradation][$activeSlave.scars = 0, $cash -= $surgeryCost, $activeSlave.health -= 5, $surgeryType = "scarRemov"]]
<</if>>

<<if $activeSlave.scars == 0>>

$possessiveCap 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>>

$pronounCap 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: $possessive 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>>
	$pronounCap has normal lip implants.
<<elseif $activeSlave.lipsImplant <= 20>>
	$pronounCap has large lip implants.
<<else>>
	$pronounCap has enormous lip implants.
<</if>>
<<if $activeSlave.indentureRestrictions >= 2>>
	//$possessiveCap 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 $possessive oral skills//
	<<else>>
		[[Lip implants|Surgery Degradation][$activeSlave.lipsImplant = 20,$activeSlave.lips += 20,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "lips"]] //This will reduce $possessive 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>>

<<if $bellyImplants == 1>>
$pronounCap's got a
<<if $activeSlave.preg > 0>>
pregnant
<<elseif $activeSlave.inflation > 0>>
inflated
<<elseif $activeSlave.bellyImplant > 0>>
<<print $activeSlave.bellyImplant>>cc implant filled
<<else>>
normal
<</if>>
stomach.

<<if $activeSlave.bellyImplant == 0>>
<<else>>
$pronounCap has a fillable implant located in $possessive abdomen.
	<<if $activeSlave.cervixImplant == 1 >>
$pronounCap also has micropump filter installed in $possessive cervix feeding into the implant.
	<</if>>
<</if>>

<<if $activeSlave.indentureRestrictions >= 2>>
	//$possessiveCap indenture forbids elective surgery//
<<elseif $activeSlave.breedingMark == 1>>
	//You are forbidden from affecting $possessive fertility//
<<elseif $activeSlave.preg > 0 || $activeSlave.inflation > 0>>
	//$pronounCap is unable to support an abdominal implant at this time//
<<elseif $activeSlave.bellyImplant >= 40000>>
	//$possessiveCap belly is as large as $pronoun can physically support//
<<elseif $activeSlave.bellyImplant > 10000 && $arcologies[0].FSTransformationFetishistResearch != 1>>
	//$possessiveCap belly is as large as $pronoun can physically support//
<<elseif $activeSlave.bellyImplant == 0 && ($activeSlave.ovaries == 1 || $activeSlave.mpreg == 1)>>
	[[Implant fillable abdominal implant|Surgery Degradation][$activeSlave.bellyImplant = 200,$activeSlave.preg = -2, $activeSlave.bellyPain += 1,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "bellyIn"]]
<<elseif $activeSlave.bellyImplant == 0>>
	[[Implant a fillable abdominal implant|Surgery Degradation][$activeSlave.bellyImplant = 200, $cash -= $surgeryCost, $activeSlave.bellyPain += 2, $activeSlave.health -= 50, $surgeryType = "bellyInMale"]]
<<elseif $activeSlave.bellyPain == 2>>
	//$possessiveCap body can not handle more filler this week//
<<elseif $activeSlave.bellyImplant > 0 && $activeSlave.bellyPain == 0>>
	[[Add inert filler|Surgery Degradation][$activeSlave.bellyImplant += 200, $activeSlave.bellyPain += 1,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "bellyUp"]]
<<elseif $activeSlave.bellyImplant > 0 && $activeSlave.bellyPain == 1>>
	[[Add more inert filler|Surgery Degradation][$activeSlave.bellyImplant += 200, $activeSlave.bellyPain += 1,$cash -= $surgeryCost, $activeSlave.health -= 30,$surgeryType = "bellyUp"]]
<</if>>
<<if $activeSlave.bellyImplant != 0>>
	<<if $activeSlave.indentureRestrictions < 2>>
	<<if $activeSlave.bellyImplant > 0>>
	 | [[Drain implant|Surgery Degradation][$activeSlave.bellyImplant -= 200,$cash -= $surgeryCost, $surgeryType = "bellyDown"]]
	<</if>>
	 | [[Removeimplant|Surgery Degradation][$activeSlave.bellyImplant = 0, $activeSlave.cervixImplant = 0, $cash -= $surgeryCost, $activeSlave.health -= 10, $surgeryType = "bellyOut"]]
	<</if>>
	<<if $activeSlave.cervixImplant != 1 && $cervixImplants == 1 && $activeSlave.vagina > -1>> /* slave should have vagina */

[[Install cervix micropump filter|Surgery Degradation][$activeSlave.cervixImplant = 1, $cash -= $surgeryCost, $surgeryType = "cervixPump"]]

		//Will allow $possessive belly implant to slowly swell as people cum in $possessive vagina//
	<</if>>
<</if>>
<</if>>

$pronounCap's got a
<<if $activeSlave.butt < 2>>flat and <<print either("disappointing", "unimpressive")>> 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 $pronoun walked - if $pronoun could walk.
<<else>>ridiculous ass. It's so big it jiggles as $pronoun walks.
<</if>>

<<if $activeSlave.buttImplant == 0>>
<<elseif $activeSlave.buttImplant == 1>>
	$pronounCap has normal butt implants.
<<elseif $activeSlave.buttImplant > 1>>
	$pronounCap has enormous butt implants.
<</if>>

<<if $activeSlave.indentureRestrictions >= 2>>
	//$possessiveCap indenture forbids elective surgery//
<<elseif $activeSlave.butt > 19>>
	//$possessiveCap butt is as large as $pronoun can physically support//
<<elseif $activeSlave.butt > 7 && $arcologies[0].FSTransformationFetishistResearch != 1>>
	//$possessiveCap butt is as large as $pronoun can physically support//
<<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 > 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),$cash -= $surgeryCost, $surgeryType = "buttLoss"]]
	<</if>>
	 | [[Remove implants|Surgery Degradation][$activeSlave.butt = ($activeSlave.butt-$activeSlave.buttImplant),$activeSlave.buttImplant = 0,$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,$cash -= $surgeryCost, $surgeryType = "buttLoss"]]
	<</if>>
<</if>>

$pronounCap 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 to "lipo"]]
	<</if>>
<</if>>
<<if ($activeSlave.waist >= -95) && ($activeSlave.waist < -75) && ($seeExtreme == 1)>>
	<<if $activeSlave.indentureRestrictions < 1 && $activeSlave.breedingMark != 1>>
	[[Remove ribs to severely narrow her waist|Surgery Degradation][$activeSlave.waist = -100,$cash -= $surgeryCost, $activeSlave.health -= 40,$surgeryType to "ribs"]]
	<</if>>
<</if>>

<<if $activeSlave.bellySag > 0>>

<<if $activeSlave.preg >= 10 || $activeSlave.bellyImplant >= 2000 || $activeSlave.inflation > 0>>
	$pronounCap has a sagging midriff, ruined from excessive pregnancy. It is currently filled out by $possessive swollen belly and can not safely be worked on.
<<else>>
	$pronounCap has a sagging midriff, ruined from excessive pregnancy.
	[[Tummy tuck|Surgery Degradation][$activeSlave.bellySag = 0,$cash -= $surgeryCost, $activeSlave.health -= 20,$surgeryType = "tummyTuck"]]
<</if>>
<</if>>

<<if ($activeSlave.cSec == 1)>>

$pronounCap has an unsightly c-section scar.
	[[Remove Caesarean scar|Surgery Degradation][$activeSlave.cSec = 0,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "bellyscar"]]

<</if>>

<<if $activeSlave.vagina > -1>>

<<if $activeSlave.labia == 0>>
	$pronounCap has minimal pussylips.
<<elseif $activeSlave.labia == 1>>
	$pronounCap has pretty, noticeable pussylips.
<<elseif $activeSlave.labia == 2>>
	$pronounCap has large pussylips.
<<elseif $activeSlave.labia > 2>>
	$pronounCap 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>>
	 | [[Increase labia|Surgery Degradation][$activeSlave.labia += 1,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "labiaplasty"]]
	<</if>>
<</if>>

$pronounCap has
<<if $activeSlave.clit == 0>>
	a small clit.
<<elseif $activeSlave.clit == 1>>
	a big clit.
<<elseif $activeSlave.clit == 2>>
	a huge clit.
<<elseif $activeSlave.clit > 2>>
	 an enormous clit.
<</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>>
	 | [[Increase clit|Surgery Degradation][$activeSlave.clit += 1,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "clitoral enlargement"]]
	<</if>>
<</if>>
<</if>>

<<if ($activeSlave.preg > -2) && ($activeSlave.preg < 1) && ($activeSlave.vagina > -1) && ($activeSlave.ovaries != 0) && ($activeSlave.pubertyXX == 0)>>

$pronounCap has not had $possessive first period.
<<elseif ($activeSlave.preg > -2) && ($activeSlave.preg < 1) && ($activeSlave.vagina > -1) && ($activeSlave.ovaries != 0)>>

$pronounCap has a working womb.
<<elseif ($activeSlave.preg <= -2) && ($activeSlave.vagina > -1) && ($activeSlave.ovaries != 0)>>

$pronounCap has a sterile womb.
<</if>>
<<if ($activeSlave.preg > -2) && ($activeSlave.preg < 1) && ($activeSlave.preg < 1) && ($activeSlave.vagina > -1) && ($activeSlave.ovaries != 0)>>
	<<if $activeSlave.indentureRestrictions < 1 && $activeSlave.breedingMark != 1>>
	[[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>>
	<<if ($activeSlave.pubertyXX == 0)>>

$pronounCap has ovaries but has not had $possessive first period.
	<<else>>

$pronounCap has working ovaries.
	<</if>>
	[[Oophorectomy|Surgery Degradation][$activeSlave.ovaries = 0,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "ster"]]
	<</if>>
<</if>>

<<if $activeSlave.vagina > -1>>

$pronounCap has
<<if $activeSlave.vagina == 0>>
	a virgin pussy.
<<elseif $activeSlave.vagina == 1>>
	a tight pussy.
<<elseif $activeSlave.vagina == 2>>
	a used pussy.
<<elseif $activeSlave.vagina == 3>>
	a loose pussy.
<<elseif $activeSlave.vagina == 10>>
	a ruined cunt.
<<else>>
	a gaping cunt.
<</if>>
<<if ($activeSlave.vagina > 3)>>

$possessiveCap vagina could benefit from surgical repair.
	[[Repair pussy|Surgery Degradation][$activeSlave.vagina = 3,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "vagina"]] //This will reduce $possessive vaginal skills//
<<elseif ($surgeryUpgrade == 1) && ($activeSlave.indentureRestrictions < 2)>>
	<<if ($activeSlave.vagina > 1)>>

$possessiveCap vaginal muscles could benefit from microsurgical rejuvenation.
	[[Tighten pussy|Surgery Degradation][$activeSlave.vagina = 1,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "vagina"]] //This will reduce $possessive vaginal skills//
	<<elseif ($activeSlave.vagina > 0)>>

$possessiveCap pussy is as tight as a virgin's, and $possessive hymen could be restored.
	[[Restore virginity|Surgery Degradation][$activeSlave.vagina = 0,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "vagina"]] //This will reduce $possessive vaginal skills//
	<</if>>
<</if>>

<<if ($activeSlave.vagina > -1) && ($activeSlave.dick > 0)>>
	<<if $activeSlave.indentureRestrictions < 1 && $activeSlave.breedingMark != 1>>

Since $pronoun has both a penis and a vagina, it's possible to remove $possessive pussy and leave $possessive sexually functional.
	[[Remove pussy|Surgery Degradation][$activeSlave.vagina = -1,$activeSlave.ovaries = 0,$activeSlave.preg = -2,$activeSlave.pregSource = 0,$activeSlave.vaginalSkill = 0,$cash -= $surgeryCost,$activeSlave.health -= 20,$surgeryType = "vaginaRemoval"]] <<if $activeSlave.ovaries == 1>>//This will remove $possessive ovaries as well//<</if>>
	<</if>>
<</if>>
<</if>>

$pronounCap 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 permanantly gaping asshole.
<</if>>
<<if ($activeSlave.anus > 3)>>

$possessiveCap anal sphincter could benefit from surgical repair.
	[[Repair asshole|Surgery Degradation][$activeSlave.anus = 3,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "anus"]] //This will reduce $possessive anal skills//
<<elseif ($surgeryUpgrade == 1) && ($activeSlave.indentureRestrictions < 2)>>
	<<if ($activeSlave.anus > 1)>>

$possessiveCap anal sphincter could benefit from microsurgical rejuvenation.
	[[Tighten asshole|Surgery Degradation][$activeSlave.anus = 1,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "anus"]] //This will reduce $possessive anal skills//
	<<elseif ($activeSlave.anus > 0)>>

$possessiveCap 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 $possessive anal skills//
	<</if>>
<</if>>
<<if ($activeSlave.dick != 0) && ($activeSlave.vagina == -1)>>

$pronounCap has a penis.
<<elseif ($activeSlave.dick != 0) && ($activeSlave.ovaries != 0)>>

$pronounCap has a penis and a vagina.
<<elseif ($activeSlave.dick != 0) && ($activeSlave.vagina != -1)>>

$pronounCap has a penis and an artificial vagina.
<</if>>
<<if $activeSlave.indentureRestrictions < 1 && $activeSlave.breedingMark != 1>>
	<<if $activeSlave.vagina == -1>>
		[[Convert genitalia to female|Surgery Degradation][$activeSlave.dick = 0,$activeSlave.dickAccessory = "none",$activeSlave.foreskin = 0,$activeSlave.scrotum = 0,$activeSlave.balls = 0,$activeSlave.vagina = 0,$activeSlave.preg = -2,$activeSlave.vaginalSkill = 0,$cash -= $surgeryCost, $activeSlave.health -= 40, $surgeryType = "mtf"]] |
	<</if>>
	<<if $activeSlave.dick > 0>>
	[[Remove penis|Surgery Degradation][$activeSlave.dick = 0,$activeSlave.dickAccessory = "none",$activeSlave.foreskin = 0,$activeSlave.vaginalSkill = 0,$cash -= $surgeryCost, $activeSlave.health -= 20, $surgeryType = "chop"]]
	<</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.dick != 0)>>
<<if ($activeSlave.foreskin > 0)>>
<<if $seeCircumcision == 1>>
	<<if $activeSlave.indentureRestrictions < 2>>

$pronounCap is uncircumcised. [[Remove foreskin|Surgery Degradation][$activeSlave.foreskin = 0,$cash -= $surgeryCost, $activeSlave.health -= 10, $surgeryType = "circumcision"]]
	<</if>>
<</if>>
<</if>>
<</if>>
<<if ($seeExtreme == 1)>>
	<<if ($activeSlave.balls == 1)>>

$possessiveCap testicles are vestigial, but $pronoun has balls. Technically.
	<<elseif ($activeSlave.balls > 1)>>

$pronounCap has testicles.
	<</if>>
	<<if ($activeSlave.balls > 0)>>
		<<if $activeSlave.indentureRestrictions < 1>>
		[[Geld|Surgery Degradation][$activeSlave.balls to 0,$activeSlave.scrotum to 0,$cash -= $surgeryCost, $activeSlave.health -= 40, $surgeryType to "geld"]]
		<</if>>
	<</if>>

$pronounCap <<if $activeSlave.prostate > 0>>has<<else>>lacks<</if>> a prostate.
	<<if $activeSlave.prostate > 0>>
		<<if $activeSlave.indentureRestrictions < 1>>
			[[Remove|Surgery Degradation][$activeSlave.prostate to 0,$activeSlave.prostateImplant to 0,$cash -= $surgeryCost, $activeSlave.health -= 40, $surgeryType to "prostate"]]
		<</if>>
	<</if>>
<</if>>
<<if ($activeSlave.balls > 0)>>
	<<if ($activeSlave.scrotum > 0)>>

$possessiveCap testicles are located in $possessive scrotum.
		<<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")>>

$possessiveCap testicles have been relocated inside $possessive abdomen, and $possessive scrotum has been removed.
		<<else>>

Testicles have been implanted inside $possessive abdomen.
		<</if>>
	<</if>>
<</if>>

<<if $activeSlave.prostate > 0>>
<<if $activeSlave.prostateImplant == 1>>
	$pronounCap is implanted with an prostate implant designed to increase semen production and enhance ejaculation.
<<else>>
	$pronounCap is ejaculating normally.
<</if>>
<<if $activeSlave.prostateImplant == 0>>
	<<if $activeSlave.indentureRestrictions < 2>>
	[[Implant prostate with slow-release production drugs|Surgery Degradation][$activeSlave.prostateImplant = 1,$cash -= $surgeryCost, $activeSlave.health -= 20,$surgeryType = "ejaculation"]] //This will thin $possessive ejaculate but increase its quantity//
	<</if>>
<</if>>
<<if $activeSlave.prostateImplant == 1>>
	 | [[Remove prostate implant|Surgery Degradation][$activeSlave.prostateImplant = 0,$cash -= $surgeryCost, $activeSlave.health -= 20, $surgeryType = "endejac"]]
<</if>>
<</if>>

<<if $activeSlave.areolae == 0>>
	$possessiveCap areolae are fairly normal.
<<elseif $activeSlave.areolae == 1>>
	$possessiveCap areolae are large but still fairly normal.
<<elseif ($activeSlave.areolae > 1) && ($activeSlave.areolae < 4)>>
	<<if $activeSlave.indentureRestrictions < 2>>
	$pronounCap has big areolae that could be reshaped into a pattern.  Graft skin to make $possessive areolae:
	[[Heart-shaped|Surgery Degradation][$activeSlave.areolae = 4,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "areolae"]]
	 | [[Star-shaped|Surgery Degradation][$activeSlave.areolae = 5,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "areolae"]]
	<</if>>
<<elseif $activeSlave.areolae == 4>>
	$possessiveCap huge areolae have been surgically altered to be heart-shaped.
<<else>>
	$possessiveCap huge areolae have been surgically altered to be star-shaped.
<</if>>
<<if $activeSlave.areolae > 1>>
	<<if $activeSlave.indentureRestrictions < 2>>

    [[Reduce areolae|Surgery Degradation][$activeSlave.areolae = 1,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "areolae"]]
	<</if>>
<<elseif $activeSlave.areolae > 0>>
	<<if $activeSlave.indentureRestrictions < 2>>

    [[Reduce areolae|Surgery Degradation][$activeSlave.areolae = 0,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "areolae"]]
	<</if>>
<</if>>

<<if $organFarmUpgrade >= 1>>
<<if $activeSlave.indentureRestrictions < 2>>

<<set $activeOrgan to 0>>
<<for $i to 0; $i < $organs.length; $i++>>
	<<if $activeSlave.ID == $organs[$i].ID>>
	<<set $activeOrgan to $organs[$i]>>
	<<break>>
	<</if>>
<</for>>

<<if $activeOrgan == 0>>

The fabricator is not currently growing an organ for $object. Extract tissue to begin growing:
<<if $seeDicks != 0 || $makeDicks == 1>>

	<<link "Penis">>
		<<set $cash -= 5000>>
		<<set $activeOrgan = {type: "penis", weeksToCompletion: "5", ID: 0}>>
		<<set $activeOrgan.ID = $activeSlave.ID>>
		<<set $organs.push($activeOrgan)>>
		<<goto "Remote Surgery">>
	<</link>> //Costs ¤5000 and will add a prostate if one is not already present//

	<<link "Testicles">>
		<<set $cash -= 5000>>
		<<set $activeOrgan = {type: "testicles", weeksToCompletion: "10", ID: 0}>>
		<<set $activeOrgan.ID = $activeSlave.ID>>
		<<set $organs.push($activeOrgan)>>
		<<goto "Remote Surgery">>
	<</link>> //Costs ¤5000 and will add a prostate if one is not already present; requires a penis for successful implantation//
	<<if $activeSlave.scrotum == 0>>

		<<link "Scrotum">>
			<<set $cash -= 2500>>
			<<set $activeOrgan to {type: "scrotum", weeksToCompletion: "5", ID: 0}>>
			<<set $activeOrgan.ID to $activeSlave.ID>>
			<<set $organs.push($activeOrgan)>>
			<<goto "Remote Surgery">>
		<</link>> //Costs ¤2500 and requires balls for successful implantation//
	<</if>>
	<<if $activeSlave.foreskin == 0>>

		<<link "Foreskin">>
			<<set $cash -= 2500>>
			<<set $activeOrgan to {type: "foreskin", weeksToCompletion: "5", ID: 0}>>
			<<set $activeOrgan.ID to $activeSlave.ID>>
			<<set $organs.push($activeOrgan)>>
			<<goto "Remote Surgery">>
		<</link>> //Costs ¤2500 and requires a penis for successful grafting//
	<</if>>
	<<if $animalParts != 0>>

<<link "Pig testicles">>
		<<set $cash -= 5000>>
		<<set $activeOrgan = {type: "pigTesticles", weeksToCompletion: "10", ID: 0}>>
		<<set $activeOrgan.ID = $activeSlave.ID>>
		<<set $organs.push($activeOrgan)>>
		<<goto "Remote Surgery">>
	<</link>> //Costs ¤5000 and requires a penis for successful implantation//

<<link "Dog testicles">>
		<<set $cash -= 5000>>
		<<set $activeOrgan = {type: "dogTesticles", weeksToCompletion: "10", ID: 0}>>
		<<set $activeOrgan.ID = $activeSlave.ID>>
		<<set $organs.push($activeOrgan)>>
		<<goto "Remote Surgery">>
	<</link>> //Costs ¤5000 and requires a penis for successful implantation//
	<</if>>
<</if>>

<<link "Ovaries">>
	<<set $cash -= 10000>>
	<<set $activeOrgan = {type: "ovaries", weeksToCompletion: "10", ID: 0}>>
	<<set $activeOrgan.ID = $activeSlave.ID>>
	<<set $organs.push($activeOrgan)>>
	<<goto "Remote Surgery">>
<</link>> //Costs ¤10000 and requires a vagina for successful implantation//

<<link "Prostate">>
	<<set $cash -= 5000>>
	<<set $activeOrgan to {type: "prostate", weeksToCompletion: "5", ID: 0}>>
	<<set $activeOrgan.ID to $activeSlave.ID>>
	<<set $organs.push($activeOrgan)>>
	<<goto "Remote Surgery">>
<</link>> //Costs ¤5000 and does not require the presence any specific organ for successful implantation//
<<if $animalParts != 0>>

		<<link "Pig ovaries">>
		<<set $cash -= 10000>>
		<<set $activeOrgan = {type: "pigOvaries", weeksToCompletion: "10", ID: 0}>>
		<<set $activeOrgan.ID = $activeSlave.ID>>
		<<set $organs.push($activeOrgan)>>
		<<goto "Remote Surgery">>
	<</link>> //Costs ¤10000 and requires a vagina for successful implantation//

	<<link "Dog ovaries">>
		<<set $cash -= 10000>>
		<<set $activeOrgan = {type: "dogOvaries", weeksToCompletion: "10", ID: 0}>>
		<<set $activeOrgan.ID = $activeSlave.ID>>
		<<set $organs.push($activeOrgan)>>
		<<goto "Remote Surgery">>
	<</link>> //Costs ¤10000 and requires a vagina for successful implantation//
<</if>>
<<if $activeSlave.eyes <= -2 && $activeSlave.eyes != "implant">>

	<<link "Eyes">>
		<<set $cash -= 10000>>
		<<set $activeOrgan = {type: "eyes", weeksToCompletion: "10", ID: 0}>>
		<<set $activeOrgan.ID = $activeSlave.ID>>
		<<set $organs.push($activeOrgan)>>
		<<goto "Remote Surgery">>
	<</link>> //Costs ¤10000 and is imperfect - eyes will lack natural color//
<</if>>
<<if ($activeSlave.voice == 0)>>

	<<link "Vocal cords">>
		<<set $cash -= 5000>>
		<<set $activeOrgan = {type: "voicebox", weeksToCompletion: "5", ID: 0}>>
		<<set $activeOrgan.ID = $activeSlave.ID>>
		<<set $organs.push($activeOrgan)>>
		<<goto "Remote Surgery">>
	<</link>> //Costs ¤5000//
<</if>>
<<if $arcologies[0].FSGenderRadicalistResearch == 1>>

	<<link "Anal womb and ovaries">>
		<<set $cash -= 20000>>
		<<set $activeOrgan = {type: "mpreg", weeksToCompletion: "10", ID: 0}>>
		<<set $activeOrgan.ID = $activeSlave.ID>>
		<<set $organs.push($activeOrgan)>>
		<<goto "Remote Surgery">>
	<</link>> //Costs ¤20000 and the slave must not have female repoductive organs for successful implantation//
	<<if $animalParts != 0>>

	<<link "Anal pig womb and ovaries">>
		<<set $cash -= 20000>>
		<<set $activeOrgan = {type: "mpregPig", weeksToCompletion: "10", ID: 0}>>
		<<set $activeOrgan.ID = $activeSlave.ID>>
		<<set $organs.push($activeOrgan)>>
		<<goto "Remote Surgery">>
	<</link>> //Costs ¤20000 and the slave must not have female repoductive organs for successful implantation//

	<<link "Anal dog womb and ovaries">>
		<<set $cash -= 20000>>
		<<set $activeOrgan = {type: "mpregDog", weeksToCompletion: "10", ID: 0}>>
		<<set $activeOrgan.ID = $activeSlave.ID>>
		<<set $organs.push($activeOrgan)>>
		<<goto "Remote Surgery">>
	<</link>> //Costs ¤20000 and the slave must not have female repoductive organs for successful implantation//
	<</if>>
<</if>>

<<elseif $activeOrgan.weeksToCompletion > 0>>
The fabricator is currently growing $possessive $activeOrgan.type, which is projected to be ready for implantation in <<if $organFarmUpgrade == 1>><<print $activeOrgan.weeksToCompletion>><<elseif $organFarmUpgrade == 2>><<print Math.ceil($activeOrgan.weeksToCompletion/2)>><<elseif $organFarmUpgrade == 3>><<print Math.ceil($activeOrgan.weeksToCompletion/4)>><</if>> weeks.

<<else>>
The fabricator has completed $possessive $activeOrgan.type.
<<if $activeOrgan.type == "penis">>
	<<if $activeSlave.dick > 0>>

		ERROR: this slave already has a penis.
		<<link "Discard">><<for $i to 0; $i < $organs.length; $i++>><<if $activeSlave.ID == $organs[$i].ID>><<set $dump to $organs.pluck([$i], [$i])>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
	<<else>>

		<<link "Implant">>
			<<set $cash -= $surgeryCost>>
			<<for $i to 0; $i < $organs.length; $i++>><<if $activeSlave.ID == $organs[$i].ID>><<set $dump to $organs.pluck([$i], [$i])>><<break>><</if>><</for>>
			<<set $activeSlave.prostate = 1>>
			<<set $activeSlave.dick to 2>>
			<<set $activeSlave.clit to 0>>
			<<set $activeSlave.foreskin to $activeSlave.dick>>
			<<set $activeSlave.health -= 20>>
			<<if $organFarmUpgrade == 2>>
				<<set $activeSlave.chem += 20>>
			<</if>>
			<<set $surgeryType = "addDick">>
			<<goto "Surgery Degradation">>
		<</link>>
		|
		<<link "Discard">><<for $i to 0; $i < $organs.length; $i++>><<if $activeSlave.ID == $organs[$i].ID>><<set $dump to $organs.pluck([$i], [$i])>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
	<</if>>
<<elseif $activeOrgan.type == "testicles">>
	<<if $activeSlave.balls > 0>>

		ERROR: this slave already has testicles.
		<<link "Discard">><<for $i to 0; $i < $organs.length; $i++>><<if $activeSlave.ID == $organs[$i].ID>><<set $dump to $organs.pluck([$i], [$i])>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
	<<elseif $activeSlave.dick == 0>>

		ERROR: this slave lacks the penis necessary to accept testicles.
		<<link "Discard">><<for $i to 0; $i < $organs.length; $i++>><<if $activeSlave.ID == $organs[$i].ID>><<set $dump to $organs.pluck([$i], [$i])>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
	<<else>>

		<<link "Implant">>
			<<set $cash -= $surgeryCost>>
			<<for $i to 0; $i < $organs.length; $i++>><<if $activeSlave.ID == $organs[$i].ID>><<set $dump to $organs.pluck([$i], [$i])>><<break>><</if>><</for>>
			<<set $activeSlave.prostate = 1>>
			<<set $activeSlave.balls to 2>>
			<<set $activeSlave.ballType = "human">>
			<<set $activeSlave.scrotum to 2>>
			<<set $activeSlave.health -= 20>>
			<<if $organFarmUpgrade == 2>>
				<<set $activeSlave.chem += 20>>
			<</if>>
			<<if $activeSlave.pubertyXY == 0>>
				<<if $precociousPuberty == 1>>
					<<set $activeSlave.pubertyXY = ($activeSlave.physicalAge+1)>>
				<<else>>
					<<if $activeSlave.physicalAge >= $potencyAge>>
						<<set $activeSlave.pubertyXY = 1>>
					<</if>>
				<</if>>
			<</if>>
			<<set $surgeryType = "addBalls">>
			<<goto "Surgery Degradation">>
		<</link>>
		|
		<<link "Discard">><<for $i to 0; $i < $organs.length; $i++>><<if $activeSlave.ID == $organs[$i].ID>><<set $dump to $organs.pluck([$i], [$i])>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
	<</if>>
<<elseif $activeOrgan.type is "pigTesticles">>
	<<if $activeSlave.balls > 0>>

		ERROR: this slave already has testicles.
		<<link "Discard">><<for $i = 0; $i < $organs.length; $i++>><<if $activeSlave.ID == $organs[$i].ID>><<set $dump = $organs.pluck([$i], [$i])>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
	<<elseif $activeSlave.dick == 0>>

		ERROR: this slave lacks the penis necessary to accept testicles.
		<<link "Discard">><<for $i = 0; $i < $organs.length; $i++>><<if $activeSlave.ID == $organs[$i].ID>><<set $dump = $organs.pluck([$i], [$i])>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
	<<else>>

		<<link "Implant">>
			<<set $cash -= $surgeryCost>>
			<<for $i = 0; $i < $organs.length; $i++>>
				<<if $activeSlave.ID == $organs[$i].ID>>
				<<set $dump = $organs.pluck([$i], [$i])>>
				<<break>>
				<</if>>
			<</for>>
			<<set $activeSlave.balls = 3>>
			<<set $activeSlave.scrotum = 3>>
			<<set $activeSlave.ballType = "pig">>
			<<set $activeSlave.health -= 20>>
			<<if $organFarmUpgrade == 2>>
				<<set $activeSlave.chem += 20>>
			<</if>>
			<<if $activeSlave.pubertyXY == 0>>
				<<if $precociousPuberty == 1>>
					<<set $activeSlave.pubertyXY = ($activeSlave.physicalAge+1)>>
				<<else>>
					<<if $activeSlave.physicalAge >= $potencyAge>>
						<<set $activeSlave.pubertyXY = 1>>
					<</if>>
				<</if>>
			<</if>>
			<<set $surgeryType = "addPigBalls">>
			<<goto "Surgery Degradation">>
		<</link>>
		|
		<<link "Discard">><<for $i = 0; $i < $organs.length; $i++>><<if $activeSlave.ID == $organs[$i].ID>><<set $dump = $organs.pluck([$i], [$i])>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
	<</if>>
<<elseif $activeOrgan.type is "dogTesticles">>
	<<if $activeSlave.balls > 0>>

		ERROR: this slave already has testicles.
		<<link "Discard">><<for $i = 0; $i < $organs.length; $i++>><<if $activeSlave.ID == $organs[$i].ID>><<set $dump = $organs.pluck([$i], [$i])>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
	<<elseif $activeSlave.dick == 0>>

		ERROR: this slave lacks the penis necessary to accept testicles.
		<<link "Discard">><<for $i = 0; $i < $organs.length; $i++>><<if $activeSlave.ID == $organs[$i].ID>><<set $dump = $organs.pluck([$i], [$i])>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
	<<else>>

		<<link "Implant">>
			<<set $cash -= $surgeryCost>>
			<<for $i = 0; $i < $organs.length; $i++>>
				<<if $activeSlave.ID == $organs[$i].ID>>
				<<set $dump = $organs.pluck([$i], [$i])>>
				<<break>>
				<</if>>
			<</for>>
			<<set $activeSlave.balls = 2>>
			<<set $activeSlave.ballType = "dog">>
			<<set $activeSlave.scrotum = 2>>
			<<set $activeSlave.health -= 20>>
			<<if $organFarmUpgrade == 2>>
				<<set $activeSlave.chem += 20>>
			<</if>>
			<<if $activeSlave.pubertyXY == 0>>
				<<if $precociousPuberty == 1>>
					<<set $activeSlave.pubertyXY = ($activeSlave.physicalAge+1)>>
				<<else>>
					<<if $activeSlave.physicalAge >= $potencyAge>>
						<<set $activeSlave.pubertyXY = 1>>
					<</if>>
				<</if>>
			<</if>>
			<<set $surgeryType = "addDogBalls">>
			<<goto "Surgery Degradation">>
		<</link>>
		|
		<<link "Discard">><<for $i = 0; $i < $organs.length; $i++>><<if $activeSlave.ID == $organs[$i].ID>><<set $dump = $organs.pluck([$i], [$i])>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
	<</if>>
<<elseif $activeOrgan.type == "scrotum">>
	<<if $activeSlave.scrotum > 0>>

		ERROR: this slave already has a scrotum.
		<<link "Discard">><<for $i to 0; $i < $organs.length; $i++>><<if $activeSlave.ID == $organs[$i].ID>><<set $dump to $organs.pluck([$i], [$i])>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
	<<elseif $activeSlave.balls == 0>>

		ERROR: this slave lacks the balls necessary to accept a scrotum.
		<<link "Discard">><<for $i to 0; $i < $organs.length; $i++>><<if $activeSlave.ID == $organs[$i].ID>><<set $dump to $organs.pluck([$i], [$i])>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
	<<else>>

		<<link "Graft on">>
			<<set $cash -= $surgeryCost>>
			<<for $i to 0; $i < $organs.length; $i++>><<if $activeSlave.ID == $organs[$i].ID>><<set $dump to $organs.pluck([$i], [$i])>><<break>><</if>><</for>>
			<<set $activeSlave.scrotum to $activeSlave.balls>>
			<<set $activeSlave.health -= 10>>
			<<if $organFarmUpgrade == 2>>
				<<set $activeSlave.chem += 10>>
			<</if>>
			<<set $surgeryType = "addScrotum">>
			<<goto "Surgery Degradation">>
		<</link>>
		|
		<<link "Discard">><<for $i to 0; $i < $organs.length; $i++>><<if $activeSlave.ID == $organs[$i].ID>><<set $dump to $organs.pluck([$i], [$i])>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
	<</if>>
<<elseif $activeOrgan.type == "foreskin">>
	<<if $activeSlave.foreskin > 0>>

		ERROR: this slave already has a foreskin.
		<<link "Discard">><<for $i to 0; $i < $organs.length; $i++>><<if $activeSlave.ID == $organs[$i].ID>><<set $dump to $organs.pluck([$i], [$i])>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
	<<elseif $activeSlave.penis == 0>>

		ERROR: this slave lacks the penis necessary to accept a foreskin.
		<<link "Discard">><<for $i to 0; $i < $organs.length; $i++>><<if $activeSlave.ID == $organs[$i].ID>><<set $dump to $organs.pluck([$i], [$i])>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
	<<else>>

		<<link "Graft on">>
			<<set $cash -= $surgeryCost>>
			<<for $i to 0; $i < $organs.length; $i++>><<if $activeSlave.ID == $organs[$i].ID>><<set $dump to $organs.pluck([$i], [$i])>><<break>><</if>><</for>>
			<<set $activeSlave.foreskin to $activeSlave.penis>>
			<<set $activeSlave.health -= 10>>
			<<if $organFarmUpgrade == 2>>
				<<set $activeSlave.chem += 10>>
			<</if>>
			<<set $surgeryType = "addForeskin">>
			<<goto "Surgery Degradation">>
		<</link>>
		|
		<<link "Discard">><<for $i to 0; $i < $organs.length; $i++>><<if $activeSlave.ID == $organs[$i].ID>><<set $dump to $organs.pluck([$i], [$i])>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
	<</if>>
<<elseif $activeOrgan.type == "ovaries">>
	<<if $activeSlave.ovaries > 0>>

		ERROR: this slave already has ovaries.
		<<link "Discard">><<for $i to 0; $i < $organs.length; $i++>><<if $activeSlave.ID == $organs[$i].ID>><<set $dump to $organs.pluck([$i], [$i])>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
	<<elseif $activeSlave.vagina < 0>>

		ERROR: this slave lacks the vagina necessary to accept ovaries.
		<<link "Discard">><<for $i to 0; $i < $organs.length; $i++>><<if $activeSlave.ID == $organs[$i].ID>><<set $dump to $organs.pluck([$i], [$i])>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
	<<elseif $activeSlave.mpreg != 0 || $activeSlave.bellyImplant != 0>>

		ERROR: this slave's body cavity is filled with another organ.
		<<link "Discard">><<for $i = 0; $i < $organs.length; $i++>><<if $activeSlave.ID == $organs[$i].ID>><<set $dump = $organs.pluck([$i], [$i])>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
	<<else>>

		<<link "Implant">>
			<<set $cash -= $surgeryCost>>
			<<for $i to 0; $i < $organs.length; $i++>><<if $activeSlave.ID == $organs[$i].ID>><<set $dump to $organs.pluck([$i], [$i])>><<break>><</if>><</for>>
			<<set $activeSlave.ovaries to 1>>
			<<set $activeSlave.eggType = "human">>
			<<set $activeSlave.preg to 0>>
			<<set $activeSlave.health -= 20>>
			<<if $organFarmUpgrade == 2>>
				<<set $activeSlave.chem += 20>>
			<</if>>
			<<if $activeSlave.pubertyXX == 0>>
				<<if $precociousPuberty == 1>>
					<<set $activeSlave.pubertyXX = ($activeSlave.physicalAge+1)>>
				<<else>>
					<<if $activeSlave.physicalAge >= $fertilityAge>>
						<<set $activeSlave.pubertyXX = 1>>
					<</if>>
				<</if>>
			<</if>>
			<<set $surgeryType = "addOvaries">>
			<<goto "Surgery Degradation">>
		<</link>>
		|
		<<link "Discard">><<for $i to 0; $i < $organs.length; $i++>><<if $activeSlave.ID == $organs[$i].ID>><<set $dump to $organs.pluck([$i], [$i])>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
	<</if>>
<<elseif $activeOrgan.type == "pigOvaries">>
	<<if $activeSlave.ovaries > 0>>

		ERROR: this slave already has ovaries.
		<<link "Discard">><<for $i = 0; $i < $organs.length; $i++>><<if $activeSlave.ID == $organs[$i].ID>><<set $dump = $organs.pluck([$i], [$i])>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
	<<elseif $activeSlave.vagina < 0>>

		ERROR: this slave lacks the vagina necessary to accept ovaries.
		<<link "Discard">><<for $i = 0; $i < $organs.length; $i++>><<if $activeSlave.ID == $organs[$i].ID>><<set $dump = $organs.pluck([$i], [$i])>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
	<<elseif $activeSlave.mpreg != 0 || $activeSlave.bellyImplant != 0>>

		ERROR: this slave's body cavity is filled with another organ.
		<<link "Discard">><<for $i = 0; $i < $organs.length; $i++>><<if $activeSlave.ID == $organs[$i].ID>><<set $dump = $organs.pluck([$i], [$i])>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
	<<else>>

		<<link "Implant">>
			<<set $cash -= $surgeryCost>>
			<<for $i = 0; $i < $organs.length; $i++>>
				<<if $activeSlave.ID == $organs[$i].ID>>
				<<set $dump = $organs.pluck([$i], [$i])>>
				<<break>>
				<</if>>
			<</for>>
			<<set $activeSlave.ovaries = 1>>
			<<set $activeSlave.eggType = "pig">>
			<<set $activeSlave.preg = 0>>
			<<set $activeSlave.health -= 20>>
			<<if $organFarmUpgrade == 2>>
				<<set $activeSlave.chem += 20>>
			<</if>>
			<<if $activeSlave.pubertyXX == 0>>
				<<if $precociousPuberty == 1>>
					<<set $activeSlave.pubertyXX = ($activeSlave.physicalAge+1)>>
				<<else>>
					<<if $activeSlave.physicalAge >= $fertilityAge>>
						<<set $activeSlave.pubertyXX = 1>>
					<</if>>
				<</if>>
			<</if>>
			<<set $surgeryType = "addPigOvaries">>
			<<goto "Surgery Degradation">>
		<</link>>
		|
		<<link "Discard">><<for $i = 0; $i < $organs.length; $i++>><<if $activeSlave.ID == $organs[$i].ID>><<set $dump = $organs.pluck([$i], [$i])>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
	<</if>>
<<elseif $activeOrgan.type == "dogOvaries">>
	<<if $activeSlave.ovaries > 0>>

		ERROR: this slave already has ovaries.
		<<link "Discard">><<for $i = 0; $i < $organs.length; $i++>><<if $activeSlave.ID == $organs[$i].ID>><<set $dump = $organs.pluck([$i], [$i])>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
	<<elseif $activeSlave.vagina < 0>>

		ERROR: this slave lacks the vagina necessary to accept ovaries.
		<<link "Discard">><<for $i = 0; $i < $organs.length; $i++>><<if $activeSlave.ID == $organs[$i].ID>><<set $dump = $organs.pluck([$i], [$i])>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
	<<elseif $activeSlave.mpreg != 0 || $activeSlave.bellyImplant != 0>>

		ERROR: this slave's body cavity is filled with another organ.
		<<link "Discard">><<for $i = 0; $i < $organs.length; $i++>><<if $activeSlave.ID == $organs[$i].ID>><<set $dump = $organs.pluck([$i], [$i])>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
	<<else>>

		<<link "Implant">>
			<<set $cash -= $surgeryCost>>
			<<for $i = 0; $i < $organs.length; $i++>>
				<<if $activeSlave.ID == $organs[$i].ID>>
				<<set $dump = $organs.pluck([$i], [$i])>>
				<<break>>
				<</if>>
			<</for>>
			<<set $activeSlave.ovaries = 1>>
			<<set $activeSlave.eggType = "dog">>
			<<set $activeSlave.preg = 0>>
			<<set $activeSlave.health -= 20>>
			<<if $organFarmUpgrade == 2>>
				<<set $activeSlave.chem += 20>>
			<</if>>
			<<if $activeSlave.pubertyXX == 0>>
				<<if $precociousPuberty == 1>>
					<<set $activeSlave.pubertyXX = ($activeSlave.physicalAge+1)>>
				<<else>>
					<<if $activeSlave.physicalAge >= $fertilityAge>>
						<<set $activeSlave.pubertyXX = 1>>
					<</if>>
				<</if>>
			<</if>>
			<<set $surgeryType = "addDogOvaries">>
			<<goto "Surgery Degradation">>
		<</link>>
		|
		<<link "Discard">><<for $i = 0; $i < $organs.length; $i++>><<if $activeSlave.ID == $organs[$i].ID>><<set $dump = $organs.pluck([$i], [$i])>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
	<</if>>
<<elseif $activeOrgan.type == "prostate">>
	<<if $activeSlave.prostate != 0>>

		ERROR: this slave already has a prostate.
		<<link "Discard">><<for $i to 0; $i < $organs.length; $i++>><<if $activeSlave.ID == $organs[$i].ID>><<set $dump to $organs.pluck([$i], [$i])>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
	<<else>>

		<<link "Implant">>
			<<set $cash -= $surgeryCost>>
			<<for $i to 0; $i < $organs.length; $i++>><<if $activeSlave.ID == $organs[$i].ID>><<set $dump to $organs.pluck([$i], [$i])>><<break>><</if>><</for>>
			<<set $activeSlave.prostate = 1>>
			<<set $activeSlave.health -= 20>>
			<<if $organFarmUpgrade == 2>>
				<<set $activeSlave.chem += 20>>
			<</if>>
			<<set $surgeryType = "addProstate">>
			<<goto "Surgery Degradation">>
		<</link>>
		|
		<<link "Discard">><<for $i to 0; $i < $organs.length; $i++>><<if $activeSlave.ID == $organs[$i].ID>><<set $dump to $organs.pluck([$i], [$i])>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
	<</if>>
<<elseif $activeOrgan.type == "eyes">>
	<<if $activeSlave.eyes > -2 || $activeSlave.origEye == "implant">>

		ERROR: this slave has working eyes.
		<<link "Discard">><<for $i to 0; $i < $organs.length; $i++>><<if $activeSlave.ID == $organs[$i].ID>><<set $dump to $organs.pluck([$i], [$i])>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
	<<else>>

		<<link "Implant">>
			<<set $cash -= $surgeryCost>>
			<<for $i to 0; $i < $organs.length; $i++>><<if $activeSlave.ID == $organs[$i].ID>><<set $dump to $organs.pluck([$i], [$i])>><<break>><</if>><</for>>
			<<set $activeSlave.eyes to 1>>
			<<set $activeSlave.eyeColor to $activeSlave.origEye>>
			/* no way to salvage original eye color */
			<<set $activeSlave.health -= 20>>
			<<if $organFarmUpgrade == 2>>
				<<set $activeSlave.chem += 20>>
			<</if>>
			<<set $surgeryType = "unblind">>
			<<goto "Surgery Degradation">>
		<</link>>
		|
		<<link "Discard">><<for $i to 0; $i < $organs.length; $i++>><<if $activeSlave.ID == $organs[$i].ID>><<set $dump to $organs.pluck([$i], [$i])>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
	<</if>>
<<elseif $activeOrgan.type == "mpreg">>
	<<if ($activeSlave.ovaries != 0) && ($activeSlave.vagina > -1) && ($activeSlave.mpreg != 0)>>

		ERROR: this slave has existing reproductive organs.
		<<link "Discard">><<for $i = 0; $i < $organs.length; $i++>><<if $activeSlave.ID == $organs[$i].ID>><<set $dump = $organs.pluck([$i], [$i])>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
	<<else>>

		<<link "Implant">>
			<<set $cash -= $surgeryCost>>
			<<for $i = 0; $i < $organs.length; $i++>>
				<<if $activeSlave.ID == $organs[$i].ID>>
				<<set $dump = $organs.pluck([$i], [$i])>>
				<<break>>
				<</if>>
			<</for>>
			<<set $activeSlave.mpreg = 1>>
			<<set $activeSlave.eggType = "human">>
			<<set $activeSlave.preg = 0>>
			<<set $activeSlave.health -= 40>>
			<<if $organFarmUpgrade == 2>>
				<<set $activeSlave.chem += 20>>
			<</if>>
			<<if $activeSlave.pubertyXX == 0>>
				<<if $precociousPuberty == 1>>
					<<set $activeSlave.pubertyXX = ($activeSlave.physicalAge+1)>>
				<<else>>
					<<if $activeSlave.physicalAge >= $fertilityAge>>
						<<set $activeSlave.pubertyXX = 1>>
					<</if>>
				<</if>>
			<</if>>
			<<set $surgeryType = "mpreg">>
			<<goto "Surgery Degradation">>
		<</link>>
		|
		<<link "Discard">><<for $i = 0; $i < $organs.length; $i++>><<if $activeSlave.ID == $organs[$i].ID>><<set $dump = $organs.pluck([$i], [$i])>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
	<</if>>
<<elseif $activeOrgan.type == "mpregPig">>
	<<if ($activeSlave.ovaries != 0) && ($activeSlave.vagina > -1) && ($activeSlave.mpreg != 0)>>

		ERROR: this slave has existing reproductive organs.
		<<link "Discard">><<for $i = 0; $i < $organs.length; $i++>><<if $activeSlave.ID == $organs[$i].ID>><<set $dump = $organs.pluck([$i], [$i])>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
	<<else>>

		<<link "Implant">>
			<<set $cash -= $surgeryCost>>
			<<for $i = 0; $i < $organs.length; $i++>>
				<<if $activeSlave.ID == $organs[$i].ID>>
				<<set $dump = $organs.pluck([$i], [$i])>>
				<<break>>
				<</if>>
			<</for>>
			<<set $activeSlave.mpreg = 1>>
			<<set $activeSlave.eggType = "pig">>
			<<set $activeSlave.preg = 0>>
			<<set $activeSlave.health -= 40>>
			<<if $organFarmUpgrade == 2>>
				<<set $activeSlave.chem += 20>>
			<</if>>
			<<if $activeSlave.pubertyXX == 0>>
				<<if $precociousPuberty == 1>>
					<<set $activeSlave.pubertyXX = ($activeSlave.physicalAge+1)>>
				<<else>>
					<<if $activeSlave.physicalAge >= $fertilityAge>>
						<<set $activeSlave.pubertyXX = 1>>
					<</if>>
				<</if>>
			<</if>>
			<<set $surgeryType = "mpregPig">>
			<<goto "Surgery Degradation">>
		<</link>>
		|
		<<link "Discard">><<for $i = 0; $i < $organs.length; $i++>><<if $activeSlave.ID == $organs[$i].ID>><<set $dump = $organs.pluck([$i], [$i])>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
	<</if>>
<<elseif $activeOrgan.type == "mpregDog">>
	<<if ($activeSlave.ovaries != 0) && ($activeSlave.vagina > -1) && ($activeSlave.mpreg != 0)>>

		ERROR: this slave has existing reproductive organs.
		<<link "Discard">><<for $i = 0; $i < $organs.length; $i++>><<if $activeSlave.ID == $organs[$i].ID>><<set $dump = $organs.pluck([$i], [$i])>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
	<<else>>

		<<link "Implant">>
			<<set $cash -= $surgeryCost>>
			<<for $i = 0; $i < $organs.length; $i++>>
				<<if $activeSlave.ID == $organs[$i].ID>>
				<<set $dump = $organs.pluck([$i], [$i])>>
				<<break>>
				<</if>>
			<</for>>
			<<set $activeSlave.mpreg = 1>>
			<<set $activeSlave.eggType = "dog">>
			<<set $activeSlave.preg = 0>>
			<<set $activeSlave.health -= 40>>
			<<if $organFarmUpgrade == 2>>
				<<set $activeSlave.chem += 20>>
			<</if>>
			<<if $activeSlave.pubertyXX == 0>>
				<<if $precociousPuberty == 1>>
					<<set $activeSlave.pubertyXX = ($activeSlave.physicalAge+1)>>
				<<else>>
					<<if $activeSlave.physicalAge >= $fertilityAge>>
						<<set $activeSlave.pubertyXX = 1>>
					<</if>>
				<</if>>
			<</if>>
			<<set $surgeryType = "mpregDog">>
			<<goto "Surgery Degradation">>
		<</link>>
		|
		<<link "Discard">><<for $i = 0; $i < $organs.length; $i++>><<if $activeSlave.ID == $organs[$i].ID>><<set $dump = $organs.pluck([$i], [$i])>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
	<</if>>

<<else>>
	<<if $activeSlave.voice > 0>>

		ERROR: this slave is not mute.
		<<link "Discard">><<for $i to 0; $i < $organs.length; $i++>><<if $activeSlave.ID == $organs[$i].ID>><<set $dump to $organs.pluck([$i], [$i])>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
	<<else>>

		<<link "Implant">>
			<<set $cash -= $surgeryCost>>
			<<for $i to 0; $i < $organs.length; $i++>><<if $activeSlave.ID == $organs[$i].ID>><<set $dump to $organs.pluck([$i], [$i])>><<break>><</if>><</for>>
			<<if ($activeSlave.ovaries + $activeSlave.hormones) > 1>>
				<<set $activeSlave.voice = 3>>
			<<elseif ($activeSlave.balls > 0) || ($activeSlave.hormones < 0)>>
				<<set $activeSlave.voice = 1>>
			<<else>>
				<<set $activeSlave.voice = 2>>
			<</if>>
			<<set $activeSlave.health -= 10>>
			<<if $organFarmUpgrade == 2>>
				<<set $activeSlave.chem += 10>>
			<</if>>
			<<set $surgeryType = "restoreVoice">>
			<<goto "Surgery Degradation">>
		<</link>>
		|
		<<link "Discard">><<for $i to 0; $i < $organs.length; $i++>><<if $activeSlave.ID == $organs[$i].ID>><<set $dump to $organs.pluck([$i], [$i])>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
	<</if>>
<</if>>

<</if>>

<</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>>

<<set $activeLimbs = 0>>
<<for _i = 0; _i < $limbs.length; _i++>>
  <<if $activeSlave.ID == $limbs[_i].ID>>
    <<set $activeLimbs = $limbs[_i]>>
	<<break>>
  <</if>>
<</for>>

<<if $activeLimbs == 0>>
The prosthesis facility is not currently building a set of artificial limbs for $object.

	<<if $prostheticsUpgrade == 1>>

		<<link "Construct basic prosthetic limbs" && $activeSlave.readyLimbs.includes(-1) != 1>>
			<<set $cash -= 10000>>
			<<set $activeLimbs to {weeksToCompletion: 12, ID: 0, type: "simple"}>>
			<<set $activeLimbs.ID to $activeSlave.ID>>
			<<set $limbs.push($activeLimbs)>>
			<<goto "Remote Surgery">>
		<</link>> //Costs ¤10000//

	<<elseif $prostheticsUpgrade == 2>>
		<<if $activeSlave.amp >= 0>>
		Construct prosthetics:
		<<elseif $activeSlave.amp == -1>>
		Upgrade $possessive prosthetics:
		<<else>>
		Modify $possessive prosthetics:
		<</if>>

		<<if $activeSlave.amp != -1 && $activeSlave.readyLimbs.includes(-1) != 1>>
		<<link "Basic prosthetic limbs">>
			<<set $cash -= 10000>>
			<<set $activeLimbs = {weeksToCompletion: 6, ID: 0, type: "simple"}>>
			<<set $activeLimbs.ID = $activeSlave.ID>>
			<<if $activeSlave.amp == 1>>
				<<set $activeLimbs.weeksToCompletion += 3>>
			<</if>>
			<<set $limbs.push($activeLimbs)>>
			<<goto "Remote Surgery">>
		<</link>> //Costs ¤10000//
		<</if>>
		|
		<<if $activeSlave.amp != -2 && $activeSlave.readyLimbs.includes(-2) != 1>>
		<<link "Sexual functions">>
			<<set $cash -= 10000>>
			<<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 ¤10000//
		<</if>>
		|
		<<if $activeSlave.amp != -3 && $activeSlave.readyLimbs.includes(-3) != 1>>
		<<link "Beauty and grace">>
			<<set $cash -= 10000>>
			<<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 ¤10000//
		<</if>>
		|
		<<if $activeSlave.amp != -4 && $activeSlave.readyLimbs.includes(-4) != 1>>
		<<link "Combat effectiveness">>
			<<set $cash -= 10000>>
			<<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 ¤10000//
		<</if>>
	<<else>>
		<<if $activeSlave.amp >= 0>>
		Construct prosthetics:
		<<elseif $activeSlave.amp == -1>>
		Upgrade $possessive prosthetics:
		<<else>>
		Modify $possessive prosthetics:
		<</if>>

		<<if $activeSlave.amp != -1 && $activeSlave.readyLimbs.includes(-1) != 1>>
		<<link "Basic prosthetic limbs">>
			<<set $cash -= 5000>>
			<<set $activeLimbs = {weeksToCompletion: 6, ID: 0, type: "simple"}>>
			<<set $activeLimbs.ID = $activeSlave.ID>>
			<<if $activeSlave.amp == 1>>
				<<set $activeLimbs.weeksToCompletion += 3>>
			<</if>>
			<<set $limbs.push($activeLimbs)>>
			<<goto "Remote Surgery">>
		<</link>> //Costs ¤5000//
		<</if>>
		<<if $activeSlave.amp != -2 && $activeSlave.readyLimbs.includes(-2) != 1>>
		|
		<<link "Sexual functions">>
			<<set $cash -= 10000>>
			<<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 ¤10000//
		<</if>>
		<<if $activeSlave.amp != -3 && $activeSlave.readyLimbs.includes(-3) != 1>>
		|
		<<link "Beauty and grace">>
			<<set $cash -= 10000>>
			<<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 ¤10000//
		<</if>>
		<<if $activeSlave.amp != -4  && $activeSlave.readyLimbs.includes(-4) != 1>>
		|
		<<link "Combat effectiveness">>
			<<set $cash -= 10000>>
			<<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 ¤10000//
		<</if>>
		<<if $activeSlave.amp != -5 && $activeSlave.readyLimbs.includes(-5) != 1>>
		|
		<<link "Highly advanced cybernetics">>
			<<set $cash -= 15000>>
			<<set $activeLimbs = {weeksToCompletion: 12, 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 ¤15000//
		<</if>>
	<</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 $object, which is projected to be ready for attachment in $activeLimbs.weeksToCompletion <<if $activeLimbs.weeksToCompletion == 1>>week<<else>>weeks<</if>>.
 <<link "Discard">>
	<<for _i to 0; _i < $limbs.length; _i++>>
	  <<if $activeSlave.ID == $limbs[_i].ID>>
		<<set $dump = $limbs.pluck([_i], [_i])>>
		<<break>>
	  <</if>>
	<</for>>
	<<goto "Remote Surgery">>
<</link>>
<<else>>
The prosthesis facility has constructed $possessive prosthetic limbs.
	<<if $activeSlave.amp < 1>>

		ERROR: this slave is not amputated.
		<<link "Discard">>
			<<for _i to 0; _i < $limbs.length; _i++>>
			  <<if $activeSlave.ID == $limbs[_i].ID>>
				<<set $dump to $limbs.pluck([_i], [_i])>>
				<<break>>
			  <</if>>
			<</for>>
			<<goto "Remote Surgery">>
		<</link>>
		|
		<<link "Put into storage">>
			<<for _i = 0; _i < $limbs.length; _i++>>
			  <<if $activeSlave.ID == $limbs[_i].ID>>
				<<break>>
			  <</if>>
			<</for>>

			<<switch $limbs[_i].type>>
			<<case "simple">>
				<<set $activeSlave.readyLimbs.push(-1)>>
				<<set $dump = $limbs.pluck([_i], [_i])>>
			<<case "sex">>
				<<set $activeSlave.readyLimbs.push(-2)>>
				<<set $dump = $limbs.pluck([_i], [_i])>>
			<<case "beauty">>
				<<set $activeSlave.readyLimbs.push(-3)>>
				<<set $dump = $limbs.pluck([_i], [_i])>>
			<<case "combat">>
				<<set $activeSlave.readyLimbs.push(-4)>>
				<<set $dump = $limbs.pluck([_i], [_i])>>
			<<case "cyber">>
				<<set $activeSlave.readyLimbs.push(-5)>>
				<<set $dump = $limbs.pluck([_i], [_i])>>
			<</switch>>
			<<goto "Remote Surgery">>
		<</link>>
	<<else>>

		<<link "Attach">>
			<<for _i to 0; _i < $limbs.length; _i++>>
			  <<if $activeSlave.ID == $limbs[_i].ID>>
				<<break>>
			  <</if>>
			<</for>>

			<<switch $limbs[_i].type>>
			<<case "simple">>
				<<set $activeSlave.amp = -1>>
				<<set $surgeryType = "basicPLimbs">>
				<<set $dump = $limbs.pluck([_i], [_i])>>
			<<case "sex">>
				<<set $activeSlave.amp = -2>>
				<<set $surgeryType = "sexPLimbs">>
				<<set $dump = $limbs.pluck([_i], [_i])>>
			<<case "beauty">>
				<<set $activeSlave.amp = -3>>
				<<set $surgeryType = "beautyPLimbs">>
				<<set $dump = $limbs.pluck([_i], [_i])>>
			<<case "combat">>
				<<set $activeSlave.amp = -4>>
				<<set $surgeryType = "combatPLimbs">>
				<<set $dump = $limbs.pluck([_i], [_i])>>
			<<case "cyber">>
				<<set $activeSlave.amp = -5>>
				<<set $surgeryType = "cyberPLimbs">>
				<<set $dump = $limbs.pluck([_i], [_i])>>
			<</switch>>
			<<set $cash -= $surgeryCost>>
			<<set $activeSlave.health -= 10>>
			<<goto "Surgery Degradation">>
		<</link>>
		|
		<<link "Discard">>
			<<for _i to 0; _i < $limbs.length; _i++>>
			  <<if $activeSlave.ID == $limbs[_i].ID>>
				<<set $dump to $limbs.pluck([_i], [_i])>>
				<<break>>
			  <</if>>
			<</for>>
			<<goto "Remote Surgery">>
		<</link>>
		|
		<<link "Put into storage">>
			<<for _i = 0; _i < $limbs.length; _i++>>
			  <<if $activeSlave.ID == $limbs[_i].ID>>
				<<break>>
			  <</if>>
			<</for>>

			<<switch $limbs[_i].type>>
			<<case "simple">>
				<<set $activeSlave.readyLimbs.push(-1)>>
				<<set $dump = $limbs.pluck([_i], [_i])>>
			<<case "sex">>
				<<set $activeSlave.readyLimbs.push(-2)>>
				<<set $dump = $limbs.pluck([_i], [_i])>>
			<<case "beauty">>
				<<set $activeSlave.readyLimbs.push(-3)>>
				<<set $dump = $limbs.pluck([_i], [_i])>>
			<<case "combat">>
				<<set $activeSlave.readyLimbs.push(-4)>>
				<<set $dump = $limbs.pluck([_i], [_i])>>
			<<case "cyber">>
				<<set $activeSlave.readyLimbs.push(-5)>>
				<<set $dump = $limbs.pluck([_i], [_i])>>
			<</switch>>
			<<goto "Remote Surgery">>
		<</link>>
<</if>>
<</if>>
<</if>>
<</if>> /* CLOSES PROSTHESIS FACTORY */
<</if>> /* CyberMod Toggle */

<<if $activeSlave.eyes == -1 && $activeSlave.eyes != "implant">>
	$pronounCap is nearsighted.
	[[Correct eyesight|Surgery Degradation][$activeSlave.eyes = 1, $cash -= $surgeryCost, $activeSlave.health -= 10, $surgeryType = "eyeFix"]]

<<elseif ($activeSlave.eyes == 1)>>
	$pronounCap has good vision.
	<<if ($seeExtreme == 1)>>
		[[Blur vision|Surgery Degradation][$activeSlave.eyes = -1, $cash -= $surgeryCost, $activeSlave.health -= 10, $surgeryType = "eyeBlur"]]

	<</if>>
<</if>>

<<if $activeSlave.origEye == "implant">>
	$pronounCap has artificial eyes.
<<elseif ($activeSlave.eyes <= -2)>>
	$pronounCap is blind.
<<else>>
	$pronounCap has working eyes.
<</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,$activeSlave.assignment = "rest",$activeSlave.assignmentVisible = 1,$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",$activeSlave.assignment = "rest",$activeSlave.assignmentVisible = 1,$cash -= $surgeryCost, $activeSlave.health -= 20,$surgeryType = "remove eyes"]]
				<<if ($activeSlave.eyes != -2)>>//This will greatly restrict $possessive//<</if>>
			<</if>>*/
	<</if>>
		<<if $cyberMod == 1 && $stockpile.ocularImplant > 0>>
			<<if ($activeSlave.eyes != -3)>> | <</if>>
			[[Give her ocular implants|Surgery Degradation][$activeSlave.origEye = "implant",$cash -= $surgeryCost, $activeSlave.health -= 20,$surgeryType = "ocular implant"]]
		<</if>>

	<</if>>
<</if>>

<<set $toSearch = $activeSlave.race>>
<<if $toSearch.indexOf("surgically") == -1>>
	<<if $activeSlave.indentureRestrictions < 1>>
	$pronounCap is $activeSlave.race. Surgically alter $object to look more:
	[[Caucasian|Surgery Degradation][$activeSlave.race = "surgically altered to look white",$activeSlave.skin = either("pale", "tanned", "fair"),$activeSlave.eyeColor = either("blue", "brown", "green"),$activeSlave.hColor = either("black", "blonde", "red", "brown"),$cash -= $surgeryCost, $activeSlave.health -= 20,$surgeryType = "race"]] |
	[[Latina|Surgery Degradation][$activeSlave.race = "surgically altered to look latina",$activeSlave.skin = either("olive", "brown", "light brown"),$activeSlave.hColor = either("black", "black", "brown", "brown"),$cash -= $surgeryCost, $activeSlave.health -= 20,$surgeryType = "race"]] |
	[[Black|Surgery Degradation][$activeSlave.race = "surgically altered to look black",$activeSlave.skin = either("black", "brown", "light brown"),$activeSlave.hColor = either("black", "black", "black", "brown"),$cash -= $surgeryCost, $activeSlave.health -= 20,$surgeryType = "race"]] |
	[[Asian|Surgery Degradation][$activeSlave.race = "surgically altered to look asian",$activeSlave.skin = either("pale", "dark", "light"),$activeSlave.hColor = either("black"),$cash -= $surgeryCost, $activeSlave.health -= 20,$surgeryType = "race"]] |
	[[Middle Eastern|Surgery Degradation][$activeSlave.race = "surgically altered to look middle eastern",$activeSlave.skin = either("pale", "dark", "light"),$activeSlave.hColor = "black",$cash -= $surgeryCost, $activeSlave.health -= 20,$surgeryType = "race"]] |
	[[Indo-aryan|Surgery Degradation][$activeSlave.race = "surgically altered to look indo-aryan",$activeSlave.skin = either("dark", "light"),$activeSlave.hColor = "black",$cash -= $surgeryCost, $activeSlave.health -= 20,$surgeryType = "race"]]
	<</if>>
<<else>>
	$pronounCap is $activeSlave.race.
<</if>>

<<switch $activeSlave.teeth>>
<<case "crooked">>
	$pronounCap 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">>
	$possessiveCap crooked teeth are in braces.
	[[Remove braces|Remote Surgery][$activeSlave.teeth = "crooked"]]
	<<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">>
	$pronounCap has braces on $possessive 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">>
	$pronounCap 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 = 0,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "oral"]]
	<</if>>
<<case "pointy">>
	$possessiveCap 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 = 0,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "oral"]]
	<</if>>
<<default>>
	$pronounCap 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>>

<<if $activeSlave.voice == 0>>
	$pronounCap has been made a surgical mute.
<<elseif $activeSlave.voice == 1>>
	$pronounCap has a deep voice.
<<elseif $activeSlave.voice == 2>>
	$pronounCap has a feminine voice.
<<elseif $activeSlave.voice == 3>>
	$pronounCap has a high, girly voice.
<</if>>
<<if $activeSlave.voiceImplant != 0>>
	$pronounCap has had surgery on $possessive voicebox to raise $possessive voice.
<</if>>
<<if ($activeSlave.voice != 0) && ($seeExtreme == 1)>>
	<<if $activeSlave.indentureRestrictions < 1>>
	[[Remove vocal cords|Surgery Degradation][$activeSlave.voice = 0, $cash -= $surgeryCost,  $activeSlave.health -= 10, $surgeryType = "mute"]]
	<</if>>
<</if>>
<<if ($activeSlave.voice != 0) && ($activeSlave.voiceImplant == 0) && ($activeSlave.voice < 3) && ($seeExtreme == 1) && ($activeSlave.indentureRestrictions < 1)>>
	|
<</if>>
<<if ($activeSlave.voice != 0) && ($activeSlave.voiceImplant == 0) && ($activeSlave.voice < 3)>>
	<<if $activeSlave.indentureRestrictions < 1>>
	[[Perform surgery to raise voice|Surgery Degradation][$activeSlave.voice += 1, $activeSlave.voiceImplant += 1, $cash -= $surgeryCost,  $activeSlave.health -= 10, $surgeryType = "voice"]]
	<</if>>
<</if>>

<<if $activeSlave.bald == 0 || $activeSlave.hStyle != "bald">>

	$pronounCap naturally grows $activeSlave.origHColor hair from her head.
	[["Surgically remove " + $possessive + " ability to grow hair"|Surgery Degradation][$cash -= $surgeryCost,$activeSlave.bald = 1,$surgeryType = "hair removal"]]
<</if>>

<<if $activeSlave.underArmHStyle != "bald" && $activeSlave.underArmHStyle != "hairless" && $activeSlave.pubicHStyle != "bald" && $activeSlave.pubicHStyle != "hairless">>

	$pronounCap <<if $activeSlave.physicalAge >= 12>>naturally grows<<else>>will someday grow<</if>> $activeSlave.origHColor body hair.
	[["Surgically remove " + $possessive + " ability to grow body hair"|Surgery Degradation][$cash -= $surgeryCost,$surgeryType = "body hair removal"]]
<</if>>

<<if ($activeSlave.amp == 0)>>

<<if ($activeSlave.heels == 0) && ($activeSlave.amp == 0)>>
	$pronounCap has healthy calves.
<<elseif ($activeSlave.heels == 1) && ($activeSlave.amp == 0)>>
	$possessiveCap calves have been altered so that $pronoun cannot walk in anything but very high heels.
<</if>>
<<if ($activeSlave.heels == 0) && ($seeExtreme == 1)>>
	<<if $activeSlave.indentureRestrictions < 1>>
	[["Alter tendons so that " + $pronoun + " cannot walk in anything but very high heels"|Surgery Degradation][$activeSlave.heels = 1,$activeSlave.shoes = "heels",$cash -= $surgeryCost, $activeSlave.health -= 20,$surgeryType = "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>>

<<if ($activeSlave.heightImplant == 0)>>
	$pronounCap has normal femurs and humeri.
<<elseif ($activeSlave.heightImplant > 0)>>
	$possessiveCap femurs, humeri, and other major bones have been lengthened.
<<elseif ($activeSlave.heightImplant < 0)>>
	$possessiveCap 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 < 185) && ($activeSlave.height >= 150) && ($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 < 185) && ($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 >= 150) && ($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>>
<</if>>

<<if ($activeSlave.shoulders < -1)>>
$pronounCap has very narrow shoulders.
<<elseif ($activeSlave.shoulders < 0)>>
$pronounCap has narrow shoulders.
<<elseif ($activeSlave.shoulders < 1)>>
$pronounCap has average shoulders.
<<elseif ($activeSlave.shoulders < 2)>>
$pronounCap has broad shoulders.
<<elseif ($activeSlave.shoulders == 2)>>
$pronounCap has very broad shoulders.
<</if>>
<<if ($activeSlave.shouldersImplant == 0)>>
	They have not been altered.
<<elseif ($activeSlave.shouldersImplant != 0)>>
	They have been surgically altered.
<</if>>
<<if ($activeSlave.shouldersImplant == 0)>>
	<<if $activeSlave.indentureRestrictions < 1>>
	[[Restructure shoulders more broadly|Surgery Degradation][$activeSlave.shouldersImplant = 1,$activeSlave.shoulders += 1,$cash -= $surgeryCost, $activeSlave.health -= 40,$surgeryType = "shoulders"]] | [[Restructure shoulders more narrowly|Surgery Degradation][$activeSlave.shouldersImplant = -1,$activeSlave.shoulders -= 1,$cash -= $surgeryCost, $activeSlave.health -= 40,$surgeryType = "shoulders"]]
	<</if>>
<<elseif ($activeSlave.shoulders < 2) && ($activeSlave.shoulders > -2) && ($surgeryUpgrade == 1)>>
	<<if $activeSlave.indentureRestrictions < 1>>
	[[Advanced shoulder broadening surgery|Surgery Degradation][$activeSlave.shouldersImplant = 1,$activeSlave.shoulders += 1,$cash -= $surgeryCost, $activeSlave.health -= 40,$surgeryType = "shoulders"]] | [[Advanced shoulder narrowing surgery|Surgery Degradation][$activeSlave.shouldersImplant = -1,$activeSlave.shoulders -= 1,$cash -= $surgeryCost, $activeSlave.health -= 40,$surgeryType = "shoulders"]]
	<</if>>
<<elseif ($activeSlave.shoulders < 2) && ($surgeryUpgrade == 1)>>
	<<if $activeSlave.indentureRestrictions < 1>>
	[[Advanced shoulder broadening surgery|Surgery Degradation][$activeSlave.shouldersImplant = 1,$activeSlave.shoulders += 1,$cash -= $surgeryCost, $activeSlave.health -= 40,$surgeryType = "shoulders"]]
	<</if>>
<<elseif ($activeSlave.shoulders > -2) && ($surgeryUpgrade == 1)>>
	<<if $activeSlave.indentureRestrictions < 1>>
	[[Advanced shoulder narrowing surgery|Surgery Degradation][$activeSlave.shouldersImplant = -1,$activeSlave.shoulders -= 1,$cash -= $surgeryCost, $activeSlave.health -= 40,$surgeryType = "shoulders"]]
	<</if>>
<</if>>

<<if ($activeSlave.hips < -1)>>
$pronounCap has very narrow hips.
<<elseif ($activeSlave.hips < 0)>>
$pronounCap has narrow hips.
<<elseif ($activeSlave.hips < 1)>>
$pronounCap has average hips.
<<elseif ($activeSlave.hips < 2)>>
$pronounCap has broad hips.
<<elseif ($activeSlave.hips < 3)>>
$pronounCap has very broad hips.
<<elseif ($activeSlave.hips == 3)>>
$pronounCap has doorway-jamming hips.
<</if>>
<<if ($activeSlave.hipsImplant == 0)>>
	They have not been altered.
<<elseif ($activeSlave.hipsImplant != 0)>>
	They have been surgically altered.
<</if>>
<<if $activeSlave.indentureRestrictions < 1>>
<<if ($activeSlave.hipsImplant == 0)>>
	[[Broaden pelvis|Surgery Degradation][$activeSlave.hipsImplant = 1,$activeSlave.hips += 1,$cash -= $surgeryCost, $activeSlave.health -= 40,$surgeryType = "hips"]] | [[Narrow pelvis|Surgery Degradation][$activeSlave.hipsImplant = -1,$activeSlave.hips -= 1,$cash -= $surgeryCost, $activeSlave.health -= 40,$surgeryType = "hips"]]
<<elseif ($activeSlave.hips < 2) && ($activeSlave.hips > -2) && ($surgeryUpgrade == 1)>>
	[[Advanced pelvis broadening|Surgery Degradation][$activeSlave.hipsImplant = 1,$activeSlave.hips += 1,$cash -= $surgeryCost, $activeSlave.health -= 40,$surgeryType = "hips"]] | [[Advanced pelvis narrowing|Surgery Degradation][$activeSlave.hipsImplant = -1,$activeSlave.hips -= 1,$cash -= $surgeryCost, $activeSlave.health -= 40,$surgeryType = "hips"]]
<<elseif ($activeSlave.hips < 3) && ($surgeryUpgrade == 1)>>
	[[Advanced pelvis broadening|Surgery Degradation][$activeSlave.hipsImplant = 1,$activeSlave.hips += 1,$cash -= $surgeryCost, $activeSlave.health -= 40,$surgeryType = "hips"]]
<<elseif ($activeSlave.hips > -2) && ($surgeryUpgrade == 1)>>
	[[Advanced pelvis narrowing|Surgery Degradation][$activeSlave.hipsImplant = -1,$activeSlave.hips -= 1,$cash -= $surgeryCost, $activeSlave.health -= 40,$surgeryType = "hips"]]
<</if>>
<</if>>

<<if ($activeSlave.amp == 0)>>
  $pronounCap has healthy limbs.
<<else>>
  $pronounCap is a quadruple amputee
  <<if $activeSlave.PLimb == 1 && $activeSlave.amp == 1>>
	and has been implanted with basic PLimb interface.
  <<elseif $activeSlave.PLimb == 2 && $activeSlave.amp == 1>>
	and has been implanted with 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.heightImplant = 0,$activeSlave.legsTat = 0,$activeSlave.armsTat = 0,$activeSlave.assignment = "rest",$activeSlave.assignmentVisible = 1,$cash -= $surgeryCost, $activeSlave.health -= 40,$activeSlave.nails = 0,$surgeryType = "amp"]] //This will greatly restrict $possessive//
		<</if>>
	<<elseif $activeSlave.amp != 1>>
		<<if ($activeSlave.indentureRestrictions < 1) && ($seeExtreme == 1)>>
			[[Detach artificial limbs|Surgery Degradation][$activeSlave.amp = 1,$activeSlave.heels = 0,$activeSlave.heightImplant = 0,$activeSlave.assignment = "rest",$activeSlave.assignmentVisible = 1,$cash -= $surgeryCost, $activeSlave.health -= 40,$activeSlave.nails = 0,$surgeryType = "removeLimbs"]] //This will greatly restrict $possessive//
		<</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.heightImplant = 0,$activeSlave.legsTat = 0,$activeSlave.armsTat = 0,$activeSlave.assignment = "rest",$activeSlave.assignmentVisible = 1,$cash -= $surgeryCost, $activeSlave.health -= 40,$activeSlave.nails = 0,$surgeryType = "amp"]] //This will greatly restrict $possessive//
		<<elseif ($activeSlave.indentureRestrictions < 1) && ($seeExtreme == 1)>>
			[[Remove arms and legs|Surgery Degradation][$activeSlave.amp = 1,$activeSlave.heels = 0,$activeSlave.heightImplant = 0,$activeSlave.legsTat = 0,$activeSlave.armsTat = 0,$activeSlave.assignment = "rest",$activeSlave.assignmentVisible = 1,$cash -= $surgeryCost, $activeSlave.health -= 40,$activeSlave.nails = 0,$surgeryType = "amp1"]] //This will greatly restrict $possessive//
		<</if>>
	<<elseif ($activeSlave.amp == 1) && ($activeSlave.PLimb == 0)>>
		<<if ($stockpile.basicPLimbInterface > 0)>> |
			[[Install basic prosthetic interface|Surgery Degradation][$activeSlave.PLimb = 1,$stockpile.basicPLimbInterface -= 1,$activeSlave.assignment = "rest",$activeSlave.assignmentVisible = 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,$activeSlave.assignment = "rest",$activeSlave.assignmentVisible = 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,$activeSlave.assignment = "rest",$activeSlave.assignmentVisible = 1,$cash -= $surgeryCost, $activeSlave.health -= 5,$surgeryType = "PLimb interface3"]]
	<</if>>
<</if>>

<<if $activeSlave.mpreg == 1>>
<<if $activeSlave.preg > 0>>
	$possessiveCap anal womb can not be removed while $pronoun is pregnant.
<<else>>
	<<if $activeSlave.indentureRestrictions < 1 && $activeSlave.breedingMark != 1>>
	[[Remove anal reproductive organs|Surgery Degradation][$activeSlave.mpreg = 0,$cash -= $surgeryCost, $activeSlave.health -= 30,$surgeryType = "mpreg removed"]]
	<</if>>
<</if>>
<</if>>

<<if ($seeExtreme == 1 && $seeHyperPreg == 1)>>
<<if $permaPregImplant == 1>>
<<if $activeSlave.assignment != "work in the dairy">>
<<if isFertile($activeSlave)>>
	$pronounCap could be made into a broodmother.
<<elseif ($activeSlave.pregType == 50)>>
	$pronounCap has been made into a broodmother.
<</if>>
<<if $activeSlave.indentureRestrictions < 1 && $activeSlave.breedingMark != 1>>
<<if isFertile($activeSlave)>>
	[[Implant a pregnancy generator|Surgery Degradation][$activeSlave.preg = 1,$activeSlave.pregType = 50,$cash -= $surgeryCost,$activeSlave.pregControl = "none",$activeSlave.health -= 10,$surgeryType = "preg"]] //This will have severe effects on $possessive health and mind//
<</if>>
<</if>>
<<else>>
	$possessiveCap womb is already rented out.
<</if>>
<</if>>
<</if>>

<<if $seeExtreme == 1>>
<<if $activeSlave.fuckdoll == 0>>
	$pronounCap is a normal sex slave, not a living sex toy.
	<<if $activeSlave.indentureRestrictions < 1 && $activeSlave.breedingMark != 1>>
		[[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.vaginalAccessory="none", $activeSlave.dickAccessory="none", $activeSlave.buttplug="none", $activeSlave.attrKnown=1, $activeSlave.fetishKnown=1, $surgeryType = "fuckdoll"]] //This is permanent and will greatly restrict $possessive//
	<</if>>
<<else>>
	$pronounCap 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">>
		$pronounCap is mentally competent.
	<<elseif $activeSlave.fetish == "mindbroken">>
		$possessiveCap mind is gone; $pronoun has either been chemically lobotomized, or has lost $possessive mind due to extreme abuse.
	<</if>>
	<<if $activeSlave.indentureRestrictions < 1 && $activeSlave.breedingMark != 1>>
	<<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 $possessive will and $possessive ability to remember anything but the simplest skills.//
	<</if>>
	<</if>>
<</if>>