code:
:: Remote Surgery [nobr]

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

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

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

/* 000-250-006 */
<<if $seeImages == 1>>
<<if $imageChoice == 1>>

<<SlaveArt $activeSlave 3 0>>

<<else>>

<<SlaveArt $activeSlave 3 0>>

<</if>>
<</if>>
/* 000-250-006 */

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

<</if>>

Work on her face:

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

<<if $activeSlave.indentureRestrictions >= 2>>
	//$possessiveCap indenture forbids elective surgery//
<<elseif $activeSlave.faceImplant > 95>>
	//$possessiveCap's face cannot sustain further cosmetic surgery//
<<else>>
	<<set _artificiality = 25-5*Math.trunc($PC.medicine/100)-5*$surgeryUpgrade>>
	//Facial surgery can either rework it and improve its attractiveness, or simply make it more attractive. No facial surgery is perfect and each surgery will make it look less natural.
	<<if $PC.medicine >= 100 && $surgeryUpgrade>>
		Your surgical skills and the advanced surgical suite will minimize this effect as much as possible.
	<<elseif $PC.medicine >= 100>>
		Your surgical skills will reduce this effect.
	<<elseif $surgeryUpgrade>>
		The advanced surgical suite will reduce this effect.
	<</if>>
	<<if $activeSlave.faceImplant+_artificiality > 95>>
		@@.yellow;Further facial surgery will create a severe uncanny valley effect.@@
	<<elseif $activeSlave.faceImplant+_artificiality > 60 && $activeSlave.faceImplant <= 60>>
		@@.yellow;Further facial surgery will be extremely obvious.@@
	<<elseif $activeSlave.faceImplant+_artificiality > 30 && $activeSlave.faceImplant <= 30>>
		@@.yellow;Further facial surgery will eliminate a natural appearance.@@
	<<elseif $activeSlave.faceImplant+_artificiality > 10 && $activeSlave.faceImplant <= 10>>
		@@.yellow;Further facial surgery will disturb a perfectly natural appearance.@@
	<<else>>
		A single facial surgery is not projected to significantly impact artificiality.
	<</if>>//

	<<if $activeSlave.faceShape != "normal">>
		[[Make conventionally feminine|Surgery Degradation][$activeSlave.faceShape = "normal",$activeSlave.faceImplant = Math.clamp($activeSlave.faceImplant+_artificiality,0,100),$cash -= $surgeryCost,$activeSlave.health -= 10,$surgeryType = "face"]] |
	<</if>>
	<<if $activeSlave.faceShape == "masculine">>
		[[Soften to androgynous|Surgery Degradation][$activeSlave.faceShape = "androgynous",$activeSlave.faceImplant = Math.clamp($activeSlave.faceImplant+_artificiality,0,100),$cash -= $surgeryCost,$activeSlave.health -= 10,$surgeryType = "face"]] |
	<<else>>
		<<if $activeSlave.faceShape != "cute">>
			[[Cute|Surgery Degradation][$activeSlave.faceShape = "cute",$activeSlave.faceImplant = Math.clamp($activeSlave.faceImplant+_artificiality,0,100),$cash -= $surgeryCost,$activeSlave.health -= 10,$surgeryType = "face"]] |
		<</if>>
		<<if $activeSlave.faceShape != "exotic">>
			[[Exotic|Surgery Degradation][$activeSlave.faceShape = "exotic",$activeSlave.faceImplant = Math.clamp($activeSlave.faceImplant+_artificiality,0,100),$cash -= $surgeryCost,$activeSlave.health -= 10,$surgeryType = "face"]] |
		<</if>>
		<<if $activeSlave.faceShape != "sensual">>
			[[Sensual|Surgery Degradation][$activeSlave.faceShape = "sensual",$activeSlave.faceImplant = Math.clamp($activeSlave.faceImplant+_artificiality,0,100),$cash -= $surgeryCost,$activeSlave.health -= 10,$surgeryType = "face"]] |
		<</if>>
		<<if $activeSlave.faceShape != "androgynous">>
			[[Androgynous|Surgery Degradation][$activeSlave.faceShape = "androgynous",$activeSlave.faceImplant = Math.clamp($activeSlave.faceImplant+_artificiality,0,100),$cash -= $surgeryCost,$activeSlave.health -= 10,$surgeryType = "face"]] |
		<<else>>
			[[Masculine|Surgery Degradation][$activeSlave.faceShape = "masculine",$activeSlave.faceImplant = Math.clamp($activeSlave.faceImplant+_artificiality,0,100),$cash -= $surgeryCost,$activeSlave.health -= 10,$surgeryType = "face"]] |
		<</if>>
	<</if>>
	[[Just improve attractiveness|Surgery Degradation][$activeSlave.faceImplant = Math.clamp($activeSlave.faceImplant+_artificiality,0,100),$cash -= $surgeryCost,$activeSlave.health -= 10,$surgeryType = "face"]]
	<<if ($activeSlave.ageImplant > 1)>>

		//$pronounCap's had a multiple facelifts and other cosmetic procedures in an effort to preserve $possessive youth.//
	<<elseif ($activeSlave.ageImplant > 0)>>

		//$pronounCap's had a face lift and other minor cosmetic procedures to make $possessive look younger.//
	<<elseif ($activeSlave.physicalAge >= 25) && ($activeSlave.visualAge >= 25)>>

		//$pronounCap's old enough that a face lift and other minor cosmetic procedures could make $possessive look younger.//
		[[Age lift|Surgery Degradation][$activeSlave.ageImplant = 1,$activeSlave.faceImplant = Math.clamp($activeSlave.faceImplant+_artificiality,0,100),$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "age"]]
	<</if>>
<</if>>

<<if $activeSlave.origEye == "implant">>

	$pronounCap has artificial eyes.
<<elseif ($activeSlave.eyes <= -2)>>

	$pronounCap is blind.
<<else>>

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

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

<<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) && ($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.voice != 0) && ($activeSlave.voiceImplant == 0) && ($activeSlave.voice < 3) && ($seeExtreme == 1) && ($activeSlave.indentureRestrictions < 1)>>
	|
<</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.scars > 0>>

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

Work on her chest:

	$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 moderate, <<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.breastMesh == 1>>
	//$possessiveCap supportive mesh implant blocks implantation//
<<elseif $activeSlave.boobsImplant == 0>>
	[[String implants|Surgery Degradation][$activeSlave.boobsImplant = 400, $activeSlave.boobsImplantType = 1,$activeSlave.boobs += 400,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "boobs"]] |
	[[Standard implants|Surgery Degradation][$activeSlave.boobsImplant = 400,$activeSlave.boobs += 400,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "boobs"]] |
	[[Small implants|Surgery Degradation][$activeSlave.boobsImplant = 200,$activeSlave.boobs += 200,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "boobs"]]
<<elseif $activeSlave.boobsImplant > 10000 && $activeSlave.boobsImplantType != 1>>
	[[Add inert filler|Surgery Degradation][$activeSlave.boobsImplant += 1000,$activeSlave.boobs += 1000,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "boobs"]]
<<elseif $activeSlave.boobsImplant > 2000 && $activeSlave.boobsImplantType != 1>>
	[[Add inert filler|Surgery Degradation][$activeSlave.boobsImplant += 400,$activeSlave.boobs += 400,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "boobs"]]
<<elseif $activeSlave.boobsImplant > 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.breastMesh = 0, $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.breastMesh = 0, $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//
	<<elseif $activeSlave.breastMesh == 1>>
		//$possessiveCap supportive mesh implant prevents reconstruction//
	<<else>>
		<<if ($activeSlave.boobShape == "saggy") || ($activeSlave.boobShape == "downward-facing")>>
			[[Breast lift|Surgery Degradation][$activeSlave.boobShape = "normal", $activeSlave.health -= 20,$cash -= $surgeryCost, $surgeryType = "breastLift"]]<<if $activeSlave.preg > 20 || ($activeSlave.boobs >= 5000 && $activeSlave.boobs < 8000)>>//$possessiveCap current state 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 ($activeSlave.boobShape != "saggy") && ($activeSlave.boobShape != "downward-facing") && ($activeSlave.boobs >= 2000) && ($activeSlave.boobsImplant == 0) && ($meshImplants == 1) && ($surgeryUpgrade == 1)>>
				| [[Implant a supportive mesh to preserve their shape|Surgery Degradation][$activeSlave.breastMesh = 1,$cash -= ($surgeryCost*($activeSlave.boobs/100)),$activeSlave.health -= 10,$surgeryType = "breastShapePreservation"]]
			<</if>>
		<</if>>
	<</if>>
<</if>>
<</if>>

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

Work on her midriff:

<<if $activeSlave.indentureRestrictions >= 2 && $activeSlave.weight > 30>>

	//$possessiveCap indenture forbids elective surgery//
<<elseif $activeSlave.weight > 30>>

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

$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 = "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 = "ribs"]]
	<</if>>
<</if>>

$pronounCap's got a
<<if $activeSlave.pregKnown == 1>>
	pregnant
<<elseif $activeSlave.bellyImplant > 0>>
	<<print $activeSlave.bellyImplant>>cc implant filled
<<elseif $activeSlave.bellyImplant >= 2000>>
	<<print $activeSlave.inflationType>>-filled
<<elseif $activeSlave.bellyImplant == 0>>
	empty fillable implant in her
<<else>>
	normal
<</if>>
_belly stomach.

<<if $activeSlave.bellyImplant == -1>>
<<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 == -1 && ($activeSlave.ovaries == 1 || $activeSlave.mpreg == 1) && $bellyImplants == 1>>
	[[Implant fillable abdominal implant|Surgery Degradation][$activeSlave.bellyImplant = 0,$activeSlave.preg = -2, $activeSlave.bellyPain += 1,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "bellyIn"]]
<<elseif $activeSlave.bellyImplant == -1 && $bellyImplants == 1>>
	[[Implant a fillable abdominal implant|Surgery Degradation][$activeSlave.bellyImplant = 0, $cash -= $surgeryCost, $activeSlave.bellyPain += 2, $activeSlave.health -= 50, $surgeryType = "bellyInMale"]]
<<elseif $activeSlave.bellyPain == 2>>
	//$possessiveCap body can not handle more filler this week//
<<elseif $activeSlave.bellyImplant > -1 && $activeSlave.bellyPain == 0>>
	[[Add inert filler|Surgery Degradation][$activeSlave.bellyImplant += 200, $activeSlave.bellyPain += 1,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "bellyUp"]]
<<elseif $activeSlave.bellyImplant > -1 && $activeSlave.bellyPain == 1>>
	[[Add more inert filler|Surgery Degradation][$activeSlave.bellyImplant += 200, $activeSlave.bellyPain += 1,$cash -= $surgeryCost, $activeSlave.health -= 30,$surgeryType = "bellyUp"]]
<</if>>
<<if $activeSlave.bellyImplant > -1>>
	<<if $activeSlave.indentureRestrictions < 2>>
	 | [[Drain implant|Surgery Degradation][$activeSlave.bellyImplant -= 200,$cash -= $surgeryCost, $surgeryType = "bellyDown"]]
	 | [[Remove implant|Surgery Degradation][$activeSlave.bellyImplant = -1, $activeSlave.cervixImplant = 0, $cash -= $surgeryCost, $activeSlave.health -= 10, $surgeryType = "bellyOut"]]
	<</if>>
	<<if $activeSlave.cervixImplant != 1 && $cervixImplants == 1 && $activeSlave.vagina > -1>> /* slave should have vagina */

		[[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 $activeSlave.bellySagPreg > 0>>

	<<if visibleBelly($activeSlave)>>
		$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,$activeSlave.bellySagPreg = 0,$cash -= $surgeryCost, $activeSlave.health -= 20,$surgeryType = "tummyTuck"]]
	<</if>>
<<elseif $activeSlave.bellySag > 0>>

	<<if visibleBelly($activeSlave)>>
		$pronounCap has a sagging midriff, ruined from excessive distention. 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 distention.
		[[Tummy tuck|Surgery Degradation][$activeSlave.bellySag = 0,$activeSlave.bellySagPreg = 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>>

Work on her butt:

$pronounCap's got a
<<if $activeSlave.butt <= 1>>flat and <<print either("skinny", "slim", "taut")>> ass.
<<elseif $activeSlave.butt <= 2>><<print either("small, sleek", "small but rounded", "rounded, small")>> rear end.
<<elseif $activeSlave.butt <= 3>><<print either("big and healthy", "curved and plump", "healthy and plump")>> derriere.
<<elseif $activeSlave.butt <= 4>><<print either("juicy and large butt", "big bubble butt", "curvy and enticing butt")>>.
<<elseif $activeSlave.butt <= 5>><<print either("juicy and huge", "a huge", "massive and undeniable")>> rear end.
<<elseif ($activeSlave.amp == 1)>>ridiculous ass. It's so big it would jiggle as $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 moderate 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>>

Work on her sex:

<<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>>
	<<if $activeSlave.labia > 0>> | <</if>>
		[[Increase labia|Surgery Degradation][$activeSlave.labia += 1,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "labiaplasty"]]
	<</if>>
<</if>>
<<if $activeSlave.dick == 0>>

	$pronounCap has
	<<if $activeSlave.clit == 0>>
		a small clit<<if ($seeCircumcision == 1) && $activeSlave.foreskin > 0>> with a hood<</if>>.
	<<elseif $activeSlave.clit == 1>>
		a big clit<<if ($seeCircumcision == 1) && $activeSlave.foreskin > 0>> with a hood<</if>>.
	<<elseif $activeSlave.clit == 2>>
		a huge clit<<if ($seeCircumcision == 1) && $activeSlave.foreskin > 0>> with a hood<</if>>.
	<<elseif $activeSlave.clit > 2>>
		 an enormous clit<<if ($seeCircumcision == 1) && $activeSlave.foreskin > 0>> with a hood<</if>>.
	<</if>>
	<<if $activeSlave.clit > 0>>
		<<if $activeSlave.indentureRestrictions < 2>>
		[[Apply clitoral reduction|Surgery Degradation][$activeSlave.clit = 0,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "clitoral reduction"]]
		<</if>>
	<</if>>
	<<if ($activeSlave.clit < 3) && ($surgeryUpgrade == 1)>>
		<<if $activeSlave.indentureRestrictions < 1>>
		<<if $activeSlave.clit > 0>> | <</if>>
		 [[Increase clit|Surgery Degradation][$activeSlave.clit += 1,$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "clitoral enlargement"]]
		<</if>>
	<</if>>
	<<if ($activeSlave.foreskin > 0) && $activeSlave.clit > 0>>
		<<if $seeCircumcision == 1>>
			<<if $activeSlave.indentureRestrictions < 2>>
				 | [[Remove clitoral hood|Surgery Degradation][$activeSlave.foreskin = 0,$cash -= $surgeryCost, $activeSlave.health -= 10, $surgeryType = "circumcision"]]
			<</if>>
		<</if>>
	<</if>>
<</if>>
<</if>> /*closes vag check */

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

	$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.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 $seeExtreme == 1 && $seeHyperPreg == 1 && $permaPregImplant == 1>>
	<<if $activeSlave.assignment == "work in the dairy" && $dairyPregSetting > 0>>

		$possessiveCap womb is already rented out for the production of calfs.
	<<else>>
		<<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.pregWeek = 1,$activeSlave.pregKnown = 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>>
	<</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 $activeSlave.vagina > -1>>

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

	$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,$activeSlave.vaginalAccessory = "none",$cash -= $surgeryCost,$activeSlave.health -= 20,$surgeryType = "vaginaRemoval"]] <<if $activeSlave.ovaries == 1>>//This will remove $possessive ovaries as well//<</if>>
	<</if>>
<<elseif $activeSlave.vagina > -1>>
	<<if $activeSlave.indentureRestrictions < 1 && $activeSlave.breedingMark != 1>>

	$possessiveCap pussy can be removed at the cost of $possessive sexual functionality, leaving $object a null.
	[[Remove pussy|Surgery Degradation][$activeSlave.vagina = -1,$activeSlave.ovaries = 0,$activeSlave.preg = -2,$activeSlave.pregSource = 0,$activeSlave.vaginalSkill = 0,$activeSlave.vaginalAccessory = "none",$cash -= $surgeryCost,$activeSlave.health -= 20,$surgeryType = "vaginaRemoval"]] <<if $activeSlave.ovaries == 1>>//This will remove $possessive ovaries as well//<</if>>
	<</if>>
<</if>>

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

	$pronounCap is a null, possessing neither penis nor vagina.
<<elseif ($seeCircumcision == 1) && ($activeSlave.indentureRestrictions < 2)>>
	<<if ($activeSlave.dick != 0) && ($activeSlave.vagina == -1) && ($activeSlave.foreskin == 0)>>

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

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

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

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

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

	$pronounCap has an uncircumcised penis and an artificial vagina.
	<</if>>
<<else>>
	<<if ($activeSlave.dick != 0) && ($activeSlave.vagina == -1)>>

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

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

	$pronounCap has a penis and an artificial vagina.
	<</if>>
<</if>>

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

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

<<if ($activeSlave.balls > 0)>>
	<<if ($activeSlave.balls == 1)>>

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

		$pronounCap has testicles
	<</if>>
	<<if ($activeSlave.scrotum > 0)>>
		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")>>
			relocated inside $possessive abdomen, and $possessive scrotum has been removed.
		<<else>>
			implanted inside $possessive abdomen.
		<</if>>
	<</if>>
	<<if ($seeExtreme == 1)>>
		<<if ($activeSlave.scrotum > 0)>>
			|
		<</if>>
		[[Geld|Surgery Degradation][$activeSlave.balls = 0,$activeSlave.scrotum = 0,$activeSlave.vasectomy = 0,$cash -= $surgeryCost, $activeSlave.health -= 40, $surgeryType = "geld"]]
	<</if>>
	<<if ($activeSlave.vasectomy == 1)>>

		$pronounCap has had a vasectomy and shoots blanks when $pronoun cums<<if $activeSlave.pubertyXY == 0>>, or would, if $pronoun were potent<</if>>.
		[[Reverse vasectomy|Surgery Degradation][$activeSlave.vasectomy = 0,$cash -= $surgeryCost, $activeSlave.health -= 10, $surgeryType = "vasectomy undo"]]
	<<else>>

		$pronounCap has working testicles<<if $activeSlave.pubertyXY == 0>>, though $pronoun isn't potent<</if>>.
		<<if $activeSlave.indentureRestrictions < 1>>
			[[Clamp vas deferens to cull potency|Surgery Degradation][$activeSlave.vasectomy = 1,$cash -= $surgeryCost, $activeSlave.health -= 10, $surgeryType = "vasectomy"]]
		<</if>>
	<</if>>
<</if>>

<<if $activeSlave.prostate>>

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

Work on her asshole:

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

Deal with her hair:

<<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"]]
<<else>>
	$pronounCap is no longer capable of growing hair on her head.
<</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"]]
<<else>>
	$possessiveCap $activeSlave.skin skin is silky smooth and hair free from her neck to her toes.
<</if>>

Alter her Race:

<<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"]]
	[[Pacific Islander|Surgery Degradation][$activeSlave.race = "surgically altered to look pacific islander",$activeSlave.skin = either("dark", "light brown", "brown"),$activeSlave.hColor = either("black"),$cash -= $surgeryCost, $activeSlave.health -= 20,$surgeryType = "race"]] |
	[[Malay|Surgery Degradation][$activeSlave.race = "surgically altered to look malay",$activeSlave.skin = either("dark", "light"),$activeSlave.hColor = "black",$cash -= $surgeryCost, $activeSlave.health -= 20,$surgeryType = "race"]] |
	[[Amerindian|Surgery Degradation][$activeSlave.race = "surgically altered to look amerindian",$activeSlave.skin = either("light brown", "brown", "light"),$activeSlave.hColor = "black",$cash -= $surgeryCost, $activeSlave.health -= 20,$surgeryType = "race"]] |
	[[Southern European|Surgery Degradation][$activeSlave.race = "surgically altered to look southern european",$activeSlave.skin = either("fair", "olive", "tanned", "pale"),$activeSlave.hColor = "black",$cash -= $surgeryCost, $activeSlave.health -= 20,$surgeryType = "race"]] |
	[[Semitic|Surgery Degradation][$activeSlave.race = "surgically altered to look semitic",$activeSlave.skin = either("pale", "olive" "tanned", "fair"),$activeSlave.hColor = "black", "brown",$cash -= $surgeryCost, $activeSlave.health -= 20,$surgeryType = "race"]]
	<<else>>
		//$possessiveCap indenture forbids elective surgery//
	<</if>>
<<else>>
	$pronounCap is $activeSlave.race.
<</if>>

Work on her structurally:

<<if $activeSlave.indentureRestrictions < 1>>
	<<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)>>
		$pronounCap has a natural shoulder structure.
	<<elseif ($activeSlave.shouldersImplant > 3)>>
		$possessiveCap shoulders have been completely rebuilt to be massively wider.
	<<elseif ($activeSlave.shouldersImplant > 2)>>
		$possessiveCap shoulders have been heavily restructured to broaden them.
	<<elseif ($activeSlave.shouldersImplant > 1)>>
		$possessiveCap shoulders have been repeatedly restructured to broaden them.
	<<elseif ($activeSlave.shouldersImplant > 0)>>
		$possessiveCap shoulders have been restructured to broaden them.
	<<elseif ($activeSlave.shouldersImplant < -3)>>
		$possessiveCap shoulders have been completely rebuilt to be massively narrower.
	<<elseif ($activeSlave.shouldersImplant < -2)>>
		$possessiveCap shoulders have been heavily restructured to narrow them.
	<<elseif ($activeSlave.shouldersImplant < -1)>>
		$possessiveCap shoulders have been repeatedly restructured to narrow them.
	<<elseif ($activeSlave.shouldersImplant < 0)>>
		$possessiveCap shoulders have been restructured to narrow them.
	<</if>>
	<<if ($activeSlave.shouldersImplant == 0)>>
		<<if $activeSlave.shoulders > -2 && $activeSlave.shoulders < 2>>
			[[Restructure shoulders more broadly|Surgery Degradation][$activeSlave.shouldersImplant++,$activeSlave.shoulders++,$cash -= $surgeryCost, $activeSlave.health -= 40,$surgeryType = "shoulders"]] | [[Restructure shoulders more narrowly|Surgery Degradation][$activeSlave.shouldersImplant--,$activeSlave.shoulders--,$cash -= $surgeryCost, $activeSlave.health -= 40,$surgeryType = "shoulders"]]
		<<elseif $activeSlave.shoulders <= -1>>
			[[Restructure shoulders more broadly|Surgery Degradation][$activeSlave.shouldersImplant++,$activeSlave.shoulders++,$cash -= $surgeryCost, $activeSlave.health -= 40,$surgeryType = "shoulders"]]
		<<elseif $activeSlave.shoulders >= 2>>
			[[Restructure shoulders more narrowly|Surgery Degradation][$activeSlave.shouldersImplant--,$activeSlave.shoulders--,$cash -= $surgeryCost, $activeSlave.health -= 40,$surgeryType = "shoulders"]]
		<</if>>
	<<elseif $surgeryUpgrade == 1>>
		<<if $activeSlave.shoulders > -2 && $activeSlave.shoulders < 2>>
			[[Advanced shoulder broadening surgery|Surgery Degradation][$activeSlave.shouldersImplant++,$activeSlave.shoulders++,$cash -= $surgeryCost, $activeSlave.health -= 40,$surgeryType = "shoulders"]] | [[Advanced shoulder narrowing surgery|Surgery Degradation][$activeSlave.shouldersImplant--,$activeSlave.shoulders--,$cash -= $surgeryCost, $activeSlave.health -= 40,$surgeryType = "shoulders"]]
		<<elseif $activeSlave.shoulders <= -1>>
			[[Advanced shoulder broadening surgery|Surgery Degradation][$activeSlave.shouldersImplant++,$activeSlave.shoulders++,$cash -= $surgeryCost, $activeSlave.health -= 40,$surgeryType = "shoulders"]]
		<<elseif $activeSlave.shoulders >= 2>>
			[[Advanced shoulder narrowing surgery|Surgery Degradation][$activeSlave.shouldersImplant--,$activeSlave.shoulders--,$cash -= $surgeryCost, $activeSlave.health -= 40,$surgeryType = "shoulders"]]
		<</if>>
	<</if>>

<</if>>

<<if $activeSlave.indentureRestrictions < 1>>
	<<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 > 3)>>
		$possessiveCap pelvis has been completely rebuilt to be massively wider.
	<<elseif ($activeSlave.hipsImplant > 2)>>
		$possessiveCap pelvis has been heavily broadened.
	<<elseif ($activeSlave.hipsImplant > 1)>>
		$possessiveCap pelvis has been repeatedly broadened.
	<<elseif ($activeSlave.hipsImplant > 0)>>
		$possessiveCap pelvis has been broadened.
	<<elseif ($activeSlave.hipsImplant < -3)>>
		$possessiveCap pelvis has been completely rebuilt to be massively narrower.
	<<elseif ($activeSlave.hipsImplant < -2)>>
		$possessiveCap pelvis has heavily narrowed.
	<<elseif ($activeSlave.hipsImplant < -1)>>
		$possessiveCap pelvis has been repeatedly narrowed.
	<<elseif ($activeSlave.hipsImplant < 0)>>
		$possessiveCap pelvis has been narrowed.
	<</if>>
	<<if ($activeSlave.hipsImplant == 0)>>
		<<if $activeSlave.hips > -2 && $activeSlave.hips < 3 && $surgeryUpgrade == 1>>
			[[Broaden pelvis|Surgery Degradation][$activeSlave.hipsImplant++,$activeSlave.hips++,$cash -= $surgeryCost, $activeSlave.health -= 40,$surgeryType = "hips"]] | [[Narrow pelvis|Surgery Degradation][$activeSlave.hipsImplant--,$activeSlave.hips--,$cash -= $surgeryCost, $activeSlave.health -= 40,$surgeryType = "hips"]]
		<<elseif $activeSlave.hips > -2 && $activeSlave.hips < 2>>
			[[Broaden pelvis|Surgery Degradation][$activeSlave.hipsImplant++,$activeSlave.hips++,$cash -= $surgeryCost, $activeSlave.health -= 40,$surgeryType = "hips"]] | [[Narrow pelvis|Surgery Degradation][$activeSlave.hipsImplant--,$activeSlave.hips--,$cash -= $surgeryCost, $activeSlave.health -= 40,$surgeryType = "hips"]]
		<<elseif $activeSlave.hips <= -1>>
			[[Broaden pelvis|Surgery Degradation][$activeSlave.hipsImplant++,$activeSlave.hips++,$cash -= $surgeryCost, $activeSlave.health -= 40,$surgeryType = "hips"]]
		<<elseif $activeSlave.hips >= 2>>
			[[Narrow pelvis|Surgery Degradation][$activeSlave.hipsImplant--,$activeSlave.hips--,$cash -= $surgeryCost, $activeSlave.health -= 40,$surgeryType = "hips"]]
		<</if>>
	<<elseif $surgeryUpgrade == 1>>
		<<if $activeSlave.hips > -2 && $activeSlave.hips < 3>>
			[[Advanced pelvis broadening|Surgery Degradation][$activeSlave.hipsImplant++,$activeSlave.hips++,$cash -= $surgeryCost, $activeSlave.health -= 40,$surgeryType = "hips"]] | [[Advanced pelvis narrowing|Surgery Degradation][$activeSlave.hipsImplant--,$activeSlave.hips--,$cash -= $surgeryCost, $activeSlave.health -= 40,$surgeryType = "hips"]]
		<<elseif $activeSlave.hips <= -1>>
			[[Advanced pelvis broadening|Surgery Degradation][$activeSlave.hipsImplant++,$activeSlave.hips++,$cash -= $surgeryCost, $activeSlave.health -= 40,$surgeryType = "hips"]]
		<<elseif $activeSlave.hips >= 3>>
			[[Advanced pelvis narrowing|Surgery Degradation][$activeSlave.hipsImplant--,$activeSlave.hips--,$cash -= $surgeryCost, $activeSlave.health -= 40,$surgeryType = "hips"]]
		<</if>>
	<</if>>

<</if>>

<<if ($activeSlave.amp == 0)>>
<<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 ($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>>
	[[Shorten tendons|Surgery Degradation][$activeSlave.heels = 1,$activeSlave.shoes = "heels",$cash -= $surgeryCost, $activeSlave.health -= 20,$surgeryType = "heels"]] //Prevents $possessive from walking in anything but very high heels//
	<</if>>
<</if>>
<<if ($activeSlave.heels == 1)>>
	[[Replace tendons|Surgery Degradation][$activeSlave.heels = 0,$activeSlave.shoes = "none",$cash -= $surgeryCost, $activeSlave.health -= 10,$surgeryType = "heelsRestoration"]]
<</if>>

<</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,$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,$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.releaseRules = "restrictive",$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.releaseRules = "restrictive",$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,$cash -= $surgeryCost, $activeSlave.health -= 20,$surgeryType = "PLimb interface1"]]
		<</if>>
		<<if $stockpile.advPLimbInterface > 0>> |
			[[Install advanced prosthetic interface|Surgery Degradation][$activeSlave.PLimb = 2,$stockpile.advPLimbInterface -= 1,$cash -= $surgeryCost, $activeSlave.health -= 20,$surgeryType = "PLimb interface2"]]
		<</if>>
	<<elseif $activeSlave.amp == 1 && $activeSlave.PLimb == 1 && $stockpile.advPLimbInterface > 0>> |
		[[Upgrade = advanced prosthetic interface|Surgery Degradation][$activeSlave.PLimb = 2,$stockpile.advPLimbInterface -= 1,$cash -= $surgeryCost, $activeSlave.health -= 5,$surgeryType = "PLimb interface3"]]
	<</if>>
<</if>>

<<if $organFarmUpgrade >= 1>> /* ORGAN FARM */
	<<if $activeSlave.indentureRestrictions < 2>>

		<<include "organFarmOptions">>
	<</if>>
<</if>> /* CLOSES ORGAN FARM */

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

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

<<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 = {weeksToCompletion: 12, ID: 0, type: "simple"}>>
			<<set $activeLimbs.ID = $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 = 0; _i < $limbs.length; _i++>>
	  <<if $activeSlave.ID == $limbs[_i].ID>>
		<<set $limbs.deleteAt(_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 = 0; _i < $limbs.length; _i++>>
			  <<if $activeSlave.ID == $limbs[_i].ID>>
				<<set $limbs.deleteAt(_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 $limbs.deleteAt(_i)>>
			<<case "sex">>
				<<set $activeSlave.readyLimbs.push(-2)>>
				<<set $limbs.deleteAt(_i)>>
			<<case "beauty">>
				<<set $activeSlave.readyLimbs.push(-3)>>
				<<set $limbs.deleteAt(_i)>>
			<<case "combat">>
				<<set $activeSlave.readyLimbs.push(-4)>>
				<<set $limbs.deleteAt(_i)>>
			<<case "cyber">>
				<<set $activeSlave.readyLimbs.push(-5)>>
				<<set $limbs.deleteAt(_i)>>
			<</switch>>
			<<goto "Remote Surgery">>
		<</link>>
	<<else>>

		<<link "Attach">>
			<<for _i = 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 $limbs.deleteAt(_i)>>
			<<case "sex">>
				<<set $activeSlave.amp = -2>>
				<<set $surgeryType = "sexPLimbs">>
				<<set $limbs.deleteAt(_i)>>
			<<case "beauty">>
				<<set $activeSlave.amp = -3>>
				<<set $surgeryType = "beautyPLimbs">>
				<<set $limbs.deleteAt(_i)>>
			<<case "combat">>
				<<set $activeSlave.amp = -4>>
				<<set $surgeryType = "combatPLimbs">>
				<<set $limbs.deleteAt(_i)>>
			<<case "cyber">>
				<<set $activeSlave.amp = -5>>
				<<set $surgeryType = "cyberPLimbs">>
				<<set $limbs.deleteAt(_i)>>
			<</switch>>
			<<set $cash -= $surgeryCost>>
			<<set $activeSlave.health -= 10>>
			<<goto "Surgery Degradation">>
		<</link>>
		|
		<<link "Discard">>
			<<for _i = 0; _i < $limbs.length; _i++>>
			  <<if $activeSlave.ID == $limbs[_i].ID>>
				<<set $limbs.deleteAt(_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 $limbs.deleteAt(_i)>>
			<<case "sex">>
				<<set $activeSlave.readyLimbs.push(-2)>>
				<<set $limbs.deleteAt(_i)>>
			<<case "beauty">>
				<<set $activeSlave.readyLimbs.push(-3)>>
				<<set $limbs.deleteAt(_i)>>
			<<case "combat">>
				<<set $activeSlave.readyLimbs.push(-4)>>
				<<set $limbs.deleteAt(_i)>>
			<<case "cyber">>
				<<set $activeSlave.readyLimbs.push(-5)>>
				<<set $limbs.deleteAt(_i)>>
			<</switch>>
			<<goto "Remote Surgery">>
		<</link>>
<</if>>
<</if>>
<</if>>
<</if>> /* CLOSES PROSTHESIS FACTORY */
<</if>> /* CyberMod Toggle */

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


code:
:: Rename [nobr]

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

/* First time renaming reaction */
<<if $activeSlave.fetish == "mindbroken">>
	$activeSlave.slaveName doesn't even recognize that she's been renamed. It simply does not register.
<<elseif $oldName == $activeSlave.birthName || $oldSurname == $activeSlave.birthSurname>>
	$activeSlave.slaveName
	<<if $activeSlave.devotion > 50>>
		accepts her new name cheerfully. This attachment to you @@.hotpink; increases her devotion.@@
		<<set $activeSlave.devotion += 4>>
	<<elseif $activeSlave.devotion >= -20>>
		obediently accepts her new name. This surrender to you @@.hotpink; increases her obedience.@@
		<<set $activeSlave.devotion += 4>>
	<<elseif $activeSlave.devotion >= -50>>
		reluctantly accepts her new name.
	<<else>>
		angrily tries to resist her new name, insisting that her name is
		<<switch $activeSlave.nationality>>
		<<case "Chinese" "Japanese" "Korean" "Cambodian" "Vietnamese" "Hungarian" "Mongolian">>
			<<if $activeSlave.birthSurname>>$activeSlave.birthSurname <</if>>$activeSlave.birthName.
		<<default>>
			$activeSlave.birthName<<if $activeSlave.birthSurname>> $activeSlave.birthSurname<</if>>.
		<</switch>>
		This resistance @@.mediumorchid; increases her rebelliousness.@@
		<<set $activeSlave.devotion -= 5>>
	<</if>>
<<else>>
	Since $activeSlave.slaveName has already had a new name <<if $activeSlave.devotion > 20>>given to<<else>>forced on<</if>> her before, the mere fact of having it changed again doesn't really affect her.
<</if>>

/* Rude name reaction */
/* Disabled until a fix for the .toLowerCase and .indexOf */
/*
<<set _insultingName = 0>>
<<if $oldName != $activeSlave.slaveName>>
	<<set _toSearch = $activeSlave.slaveName>>
	<<set _toSearch = _toSearch.toLowerCase();>>
	<<for $i = 0; $i < setup.badWords.length; $i++>>
	<<if _toSearch.indexOf(setup.badWords[$i]) != -1>>
		<<set _insultingName = 1>>
	<</if>>
	<</for>>
<</if>>
<<if !_insultingName>>
<<if $oldSurname != $activeSlave.slaveSurname>>
	<<set _toSearch = $activeSlave.slaveSurname>>
	<<set _toSearch = _toSearch.toLowerCase();>>
	<<for $i = 0; $i < setup.badWords.length; $i++>>
	<<if _toSearch.indexOf(setup.badWords[$i]) != -1>>
		<<set _insultingName = 1>>
	<</if>>
	<</for>>
<</if>>
<</if>>
<<if _insultingName == 1>>
<<if $activeSlave.fetish == "mindbroken">>
	Her new name would be insulting to a normal girl, but she dully accepts that it is an accurate description and goes about her duties.
<<elseif $activeSlave.devotion < -50>>
	Being given such a degrading name @@.mediumorchid;further increases her hatred@@ of you.
	<<set $activeSlave.devotion -= 5>>
<<elseif $activeSlave.devotion <= 50>>
	Being given such a degrading name @@.gold;terrifies her,@@ since she thinks it's fair warning for what she'll suffer in the future.
	<<set $activeSlave.trust -= 5>>
<</if>>
<</if>>
*/

/* Wife's surname reaction */
<<if $oldSurname != $activeSlave.slaveSurname>>
<<if $activeSlave.relationship >= 5>>
	<<for _i = 0; _i < $slaves.length; _i++>>
	<<if $activeSlave.relationshipTarget == $slaves[_i].ID>>
		<<if $slaves[_i].slaveSurname>>
		<<if $activeSlave.slaveSurname == $slaves[_i].slaveSurname>>
			She's touched that she now shares a surname with her wife $slaves[_i].slaveName $slaves[_i].slaveSurname, and is @@.mediumaquamarine;more confident than ever@@ that you intend to keep them together in marital bliss.
			<<set $activeSlave.trust += 5>>
			<<break>>
		<<elseif $oldSurname == $slaves[_i].slaveSurname>>
			She's concerned that she no longer shares a surname her wife $slaves[_i].slaveName $slaves[_i].slaveSurname, and is @@.gold;very worried@@ that you might be considering splitting them up.
			<<set $activeSlave.trust -= 5>>
			<<break>>
		<</if>>
		<</if>>
	<</if>>
	<</for>>
<</if>>
<</if>>

/* PC's surname reaction */
<<if $oldSurname != $activeSlave.slaveSurname>>
<<if $activeSlave.relationship == -3>>
	<<if $PC.surname>>
	<<if $activeSlave.fetish == "mindbroken">>
		Names are meaningless to her and it is unlikely she'll remember it.
	<<elseif $activeSlave.devotion+$activeSlave.trust >= 175>>
		<<if $activeSlave.slaveSurname == $PC.surname>>
			<<if $activeSlave.amp <= 0>>
				When you tell her that she's to be known as $activeSlave.slaveName $activeSlave.slaveSurname now, she starts to cry. She tries to get herself under control and thank you as best she can, wiping at the tears running down her $activeSlave.skin cheeks, but she can't seem to stop weeping as she thanks you over and over. She's a sex slave, your property, and it's understandable that some doubts about the permanence of her place as your slave wife. This has @@.mediumaquamarine;helped reassure her,@@ and explains the strength of her emotional reaction. The next time you make love to her, she @@.hotpink;presses herself as close to you as she can,@@ eager to drink in as much of your presence as she can get.
			<<else>>
				She's @@.hotpink;deeply touched@@ that she now shares a surname with you, and has @@.mediumaquamarine;an additional source of confidence@@ that she'll remain your amputee slave wife.
			<</if>>
			<<set $activeSlave.devotion += 5, $activeSlave.trust += 5>>
		<<elseif $oldSurname == $PC.slaveSurname>>
			She's devastated that you'd rename her something other than your name. She's @@.gold;terrified@@ that you intend to discard her as your slave wife, and @@.mediumorchid;saddened@@ that you would take away something that was precious to her.
			<<set $activeSlave.devotion -= 5, $activeSlave.trust -= 5>>
		<</if>>
	<<elseif $activeSlave.devotion < -20 && $activeSlave.trust > 20>>
		<<if $activeSlave.slaveSurname == $PC.surname>>
			When you tell her that she's to be known as $activeSlave.slaveName $activeSlave.slaveSurname now, she shows no reaction. You already took everything from her, what's a name at this point?
		<<elseif $oldSurname == $PC.slaveSurname>>
			She doesn't care about losing your surname at first, but it quickly sets in that she may have @@.gold;pushed her position too far.@@
			<<set $activeSlave.trust -= 20>>
		<</if>>
	<<elseif $activeSlave.devotion < -20>>
		<<if $activeSlave.slaveSurname == $PC.surname>>
			When you tell her that she's to be known as $activeSlave.slaveName $activeSlave.slaveSurname now, she pleads with you not to steal her name. It matters little to you, and she is forced to @@.hotpink;accept your will.@@
			<<set $activeSlave.devotion += 5>>
		<<elseif $oldSurname == $PC.slaveSurname>>
			She's @@.mediumorchid;happy@@ to no longer have to share a name with her tormenter, but the bliss doesn't last long as @@.gold;dread@@ quickly sets in about what this may mean.
			<<set $activeSlave.devotion += 5, $activeSlave.trust -= 10>>
		<</if>>
	<<else>>
		<<if $activeSlave.slaveSurname == $PC.surname>>
			When you tell her that she's to be known as $activeSlave.slaveName $activeSlave.slaveSurname now, she nods with approval feeling @@.mediumaquamarine;that she may hold at least some value in your eyes.@@
			<<set $activeSlave.trust += 5>>
		<<elseif $oldSurname == $PC.slaveSurname>>
			She accepts that you'd rename her something other than your name. She's @@.gold;a little scared@@ that you intend to discard her as your slave wife, or worse, but realizes this was not only a possibility, but likely.
			<<set $activeSlave.trust -= 5>>
		<</if>>
	<</if>>
	<</if>>
<</if>>
<</if>>

repo_name: darkcy/fc

license: mit