code:
:: organFarmOptions [nobr]

<<set _newOrgan = {type: "0", weeksToCompletion: "0", ID: 0}>>
<<set $slaveOrgans = {
	penis: 0,
	testicles: 0,
	scrotum: 0,
	pigTesticles: 0,
	dogTesticles: 0,
	foreskin: 0,
	ovaries: 0,
	prostate: 0,
	pigOvaries: 0,
	dogOvaries: 0,
	eyes: 0,
	voicebox: 0,
	mpreg: 0,
	mpregPig: 0,
	mpregDog: 0,
	catTail: 0,
	catEars: 0,
	catDick: 0,
	foxTail: 0,
	foxEars: 0,
	canineDick: 0,
	dogEars: 0,
	dogTail: 0,
	horseEars: 0,
	horseTail: 0,
	horseDick: 0,
	cowEars: 0,
	cowTail: 0,
	cowHorns: 0,
	cowDick: 0}>>
<<for _i = 0; _i < $organs.length; _i++>>
	<<if $activeSlave.ID == $organs[_i].ID>>
		<<if $organs[_i].type == "penis">>
			<<set $slaveOrgans.penis = 1>>
		<<elseif $organs[_i].type == "testicles">>
			<<set $slaveOrgans.testicles = 1>>
		<<elseif $organs[_i].type == "scrotum">>
			<<set $slaveOrgans.scrotum = 1>>
		<<elseif $organs[_i].type == "pigTesticles">>
			<<set $slaveOrgans.pigTesticles = 1>>
		<<elseif $organs[_i].type == "dogTesticles">>
			<<set $slaveOrgans.dogTesticles = 1>>
		<<elseif $organs[_i].type == "foreskin">>
			<<set $slaveOrgans.foreskin = 1>>
		<<elseif $organs[_i].type == "ovaries">>
			<<set $slaveOrgans.ovaries = 1>>
		<<elseif $organs[_i].type == "prostate">>
			<<set $slaveOrgans.prostate = 1>>
		<<elseif $organs[_i].type == "pigOvaries">>
			<<set $slaveOrgans.pigOvaries = 1>>
		<<elseif $organs[_i].type == "dogOvaries">>
			<<set $slaveOrgans.dogOvaries = 1>>
		<<elseif $organs[_i].type == "eyes">>
			<<set $slaveOrgans.eyes = 1>>
		<<elseif $organs[_i].type == "voicebox">>
			<<set $slaveOrgans.voicebox = 1>>
		<<elseif $organs[_i].type == "mpreg">>
			<<set $slaveOrgans.mpreg = 1>>
		<<elseif $organs[_i].type == "mpregPig">>
			<<set $slaveOrgans.mpregPig = 1>>
		<<elseif $organs[_i].type == "mpregDog">>
			<<set $slaveOrgans.mpregDog = 1>>
		<<elseif $organs[_i].type == "catEars">>
			<<set $slaveOrgans.catEars = 1>>
		<<elseif $organs[_i].type == "catTail">>
			<<set $slaveOrgans.catTail = 1>>
		<<elseif $organs[_i].type == "foxEars">>
			<<set $slaveOrgans.foxEars = 1>>
		<<elseif $organs[_i].type == "foxTail">>
			<<set $slaveOrgans.foxTail = 1>>
		<<elseif $organs[_i].type == "catDick">>
			<<set $slaveOrgans.catDick = 1>>
		<<elseif $organs[_i].type == "canineDick">>
			<<set $slaveOrgans.canineDick = 1>>
		<<elseif $organs[_i].type == "dogEars">>
			<<set $slaveOrgans.dogEars = 1>>
		<<elseif $organs[_i].type == "dogTail">>
			<<set $slaveOrgans.dogTail = 1>>
		<<elseif $organs[_i].type == "horseEars">>
			<<set $slaveOrgans.horseEars = 1>>
		<<elseif $organs[_i].type == "horseTail">>
			<<set $slaveOrgans.horseTail = 1>>
		<<elseif $organs[_i].type == "horseDick">>
			<<set $slaveOrgans.horseDick = 1>>
		<<elseif $organs[_i].type == "cowEars">>
			<<set $slaveOrgans.cowEars = 1>>
		<<elseif $organs[_i].type == "cowTail">>
			<<set $slaveOrgans.cowTail = 1>>
		<<elseif $organs[_i].type == "cowHorns">>
			<<set $slaveOrgans.cowHorns = 1>>
		<<elseif $organs[_i].type == "cowDick">>
			<<set $slaveOrgans.cowDick = 1>>
		<</if>>
	<</if>>
<</for>>

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

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

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

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

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

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

			<<link "Foreskin">>
				<<set $cash -= 2500>>
				<<set _newOrgan = {type: "foreskin", weeksToCompletion: "5", ID: 0}>>
				<<set _newOrgan.ID = $activeSlave.ID>>
				<<set $organs.push(_newOrgan)>>
				<<goto "Remote Surgery">>
			<</link>> //Costs ¤2500//
		<</if>>
	<</if>>
<</if>>
<<if $slaveOrgans.ovaries != 1>>

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

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

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

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

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

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

		<<link "Cat Dick">>
			<<set $cash -= 5000>>
			<<set $activeOrgan = {type: "catDick", weeksToCompletion: "3", ID: 0}>>
			<<set $activeOrgan.ID = $activeSlave.ID>>
			<<set $organs.push($activeOrgan)>>
			<<goto "Remote Surgery">>
		<</link>> //Costs ¤5000//
	<</if>>
	<<if ($activeSlave.dick != 2 || $activeSlave.dickType != 2)>>

		<<link "Canine Dick">>
			<<set $cash -= 5000>>
			<<set $activeOrgan = {type: "canineDick", weeksToCompletion: "3", ID: 0}>>
			<<set $activeOrgan.ID = $activeSlave.ID>>
			<<set $organs.push($activeOrgan)>>
			<<goto "Remote Surgery">>
		<</link>> //Costs ¤5000//
	<</if>>
	<<if ($activeSlave.dick != 3 || $activeSlave.dickType != 3)>>

		<<link "Horse Dick">>
			<<set $cash -= 5000>>
			<<set $activeOrgan = {type: "horseDick", weeksToCompletion: "3", ID: 0}>>
			<<set $activeOrgan.ID = $activeSlave.ID>>
			<<set $organs.push($activeOrgan)>>
			<<goto "Remote Surgery">>
		<</link>> //Costs ¤5000//
	<</if>>
	<<if ($activeSlave.dick != 4 || $activeSlave.dickType != 4)>>

		<<link "Cow Dick">>
			<<set $cash -= 5000>>
			<<set $activeOrgan = {type: "catDick", weeksToCompletion: "3", ID: 0}>>
			<<set $activeOrgan.ID = $activeSlave.ID>>
			<<set $organs.push($activeOrgan)>>
			<<goto "Remote Surgery">>
		<</link>> //Costs ¤5000//
	<</if>>
	<<if ($activeSlave.ears != 1)>>

		<<link "Cat Ears">>
			<<set $cash -= 5000>>
			<<set _newOrgan = {type: "catEars", weeksToCompletion: "1", ID: 0}>>
			<<set _newOrgan.ID = $activeSlave.ID>>
			<<set $organs.push(_newOrgan)>>
			<<goto "Remote Surgery">>
		<</link>> //Costs ¤5000//
	<</if>>
	<<if ($activeSlave.ears != 2)>>

		<<link "Fox Ears">>
			<<set $cash -= 5000>>
			<<set _newOrgan = {type: "foxEars", weeksToCompletion: "1", ID: 0}>>
			<<set _newOrgan.ID = $activeSlave.ID>>
			<<set $organs.push(_newOrgan)>>
			<<goto "Remote Surgery">>
		<</link>> //Costs ¤5000//
	<</if>>
	<<if ($activeSlave.ears != 3)>>

		<<link "Dog Ears">>
			<<set $cash -= 5000>>
			<<set _newOrgan = {type: "dogEars", weeksToCompletion: "1", ID: 0}>>
			<<set _newOrgan.ID = $activeSlave.ID>>
			<<set $organs.push(_newOrgan)>>
			<<goto "Remote Surgery">>
		<</link>> //Costs ¤5000//
	<</if>>
	<<if ($activeSlave.ears != 4)>>

		<<link "Horse Ears">>
			<<set $cash -= 5000>>
			<<set _newOrgan = {type: "horseEars", weeksToCompletion: "1", ID: 0}>>
			<<set _newOrgan.ID = $activeSlave.ID>>
			<<set $organs.push(_newOrgan)>>
			<<goto "Remote Surgery">>
		<</link>> //Costs ¤5000//
	<</if>>
	<<if ($activeSlave.ears != 5)>>

		<<link "Cow Ears">>
			<<set $cash -= 5000>>
			<<set _newOrgan = {type: "cowEars", weeksToCompletion: "1", ID: 0}>>
			<<set _newOrgan.ID = $activeSlave.ID>>
			<<set $organs.push(_newOrgan)>>
			<<goto "Remote Surgery">>
		<</link>> //Costs ¤5000//
	<</if>>
	<<if ($activeSlave.tail != 1)>>

		<<link "Cat Tail">>
			<<set $cash -= 5000>>
			<<set _newOrgan = {type: "catTail", weeksToCompletion: "1", ID: 0}>>
			<<set _newOrgan.ID = $activeSlave.ID>>
			<<set $organs.push(_newOrgan)>>
			<<goto "Remote Surgery">>
		<</link>> //Costs ¤5000//
	<</if>>
	<<if ($activeSlave.tail != 2)>>

		<<link "Fox Tail">>
			<<set $cash -= 5000>>
			<<set _newOrgan = {type: "foxTail", weeksToCompletion: "1", ID: 0}>>
			<<set _newOrgan.ID = $activeSlave.ID>>
			<<set $organs.push(_newOrgan)>>
			<<goto "Remote Surgery">>
		<</link>> //Costs ¤5000//
	<</if>>
	<<if ($activeSlave.tail != 3)>>

		<<link "Dog Tail">>
			<<set $cash -= 5000>>
			<<set _newOrgan = {type: "dogTail", weeksToCompletion: "1", ID: 0}>>
			<<set _newOrgan.ID = $activeSlave.ID>>
			<<set $organs.push(_newOrgan)>>
			<<goto "Remote Surgery">>
		<</link>> //Costs ¤5000//
	<</if>>
	<<if ($activeSlave.tail != 4)>>

		<<link "Horse Tail">>
			<<set $cash -= 5000>>
			<<set _newOrgan = {type: "horseTail", weeksToCompletion: "1", ID: 0}>>
			<<set _newOrgan.ID = $activeSlave.ID>>
			<<set $organs.push(_newOrgan)>>
			<<goto "Remote Surgery">>
		<</link>> //Costs ¤5000//
	<</if>>
	<<if ($activeSlave.tail != 5)>>

		<<link "Cow Tail">>
			<<set $cash -= 5000>>
			<<set _newOrgan = {type: "cowTail", weeksToCompletion: "1", ID: 0}>>
			<<set _newOrgan.ID = $activeSlave.ID>>
			<<set $organs.push(_newOrgan)>>
			<<goto "Remote Surgery">>
		<</link>> //Costs ¤5000//
	<</if>>
	<<if ($activeSlave.horns != 1)>>

		<<link "Cow Horns">>
			<<set $cash -= 5000>>
			<<set _newOrgan = {type: "cowHorns", weeksToCompletion: "1", ID: 0}>>
			<<set _newOrgan.ID = $activeSlave.ID>>
			<<set $organs.push(_newOrgan)>>
			<<goto "Remote Surgery">>
		<</link>> //Costs ¤5000//
	<</if>>
<</if>>
<<if $arcologies[0].FSGenderRadicalistResearch == 1>>
	<<if $slaveOrgans.mpreg != 1>>

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

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

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

<<if $organs.length > 0>>
	<<for _i = 0; _i < $organs.length; _i++>>
		<<if $organs[_i].ID == $activeSlave.ID>>

			$possessiveCap $organs[_i].type is expected to be ready in <<if $organFarmUpgrade == 1>><<print $organs[_i].weeksToCompletion>><<elseif $organFarmUpgrade == 2>><<print Math.ceil($organs[_i].weeksToCompletion/2)>><<elseif $organFarmUpgrade == 3>><<print Math.ceil($organs[_i].weeksToCompletion/4)>><</if>> weeks.
		<</if>>
	<</for>>
<</if>>

<<if $completedOrgans.length > 0>>
	<<for _i = 0; _i < $completedOrgans.length; _i++>>
		<<if $completedOrgans[_i].ID == $activeSlave.ID>>

The fabricator has completed $possessive $completedOrgans[_i].type.
			<<if $completedOrgans[_i].type == "penis">>
				<<if $activeSlave.dick > 0>>

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

					<<link "Implant">>
						<<set $cash -= $surgeryCost>>
						<<for $i = 0; $i < $completedOrgans.length; $i++>><<if $activeSlave.ID == $completedOrgans[$i].ID>><<set $completedOrgans.deleteAt($i)>><<break>><</if>><</for>>
						<<if $activeSlave.prostate == 0>>
							<<set $activeSlave.prostate = 1>>
						<</if>>
						<<set $activeSlave.dick = 2>>
						<<set $activeSlave.clit = 0>>
						<<set $activeSlave.foreskin = $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 = 0; $i < $completedOrgans.length; $i++>><<if $activeSlave.ID == $completedOrgans[$i].ID>><<set $completedOrgans.deleteAt($i)>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
				<</if>>
			<<elseif $completedOrgans[_i].type == "testicles">>
				<<if $activeSlave.balls > 0>>

					ERROR: this slave already has testicles.
					<<link "Discard">><<for $i = 0; $i < $completedOrgans.length; $i++>><<if $activeSlave.ID == $completedOrgans[$i].ID>><<set $completedOrgans.deleteAt($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 < $completedOrgans.length; $i++>><<if $activeSlave.ID == $completedOrgans[$i].ID>><<set $completedOrgans.deleteAt($i)>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>

You can forgo standard procedure and implant testicles directly into $possessive abdomen.
					<<link "Implant">>
						<<set $cash -= $surgeryCost>>
						<<for $i = 0; $i < $completedOrgans.length; $i++>><<if $activeSlave.ID == $completedOrgans[$i].ID>><<set $completedOrgans.deleteAt($i)>><<break>><</if>><</for>>
						<<if $activeSlave.prostate > 1>><<set $activeSlave.prostate = 1>><</if>>
						<<set $activeSlave.balls = 2>>
						<<set $activeSlave.ballType = "human">>
						<<set $activeSlave.health -= 20>>
						<<if $organFarmUpgrade == 2>>
							<<set $activeSlave.chem += 20>>
						<</if>>
						<<if $activeSlave.pubertyXY == 0>>
							<<if $precociousPuberty == 1>>
								<<if $activeSlave.physicalAge >= $potencyAge>>
									<<set $activeSlave.pubertyAgeXY = ($activeSlave.physicalAge+1)>>
								<</if>>
							<<else>>
								<<if $activeSlave.physicalAge >= $potencyAge>>
									<<set $activeSlave.pubertyXY = 1>>
								<</if>>
							<</if>>
						<</if>>
						<<set $surgeryType = "addTesticles">>
						<<goto "Surgery Degradation">>
					<</link>>
				<<else>>

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

					ERROR: this slave already has testicles.
					<<link "Discard">><<for $i = 0; $i < $completedOrgans.length; $i++>><<if $activeSlave.ID == $completedOrgans[$i].ID>><<set $completedOrgans.deleteAt($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 < $completedOrgans.length; $i++>><<if $activeSlave.ID == $completedOrgans[$i].ID>><<set $completedOrgans.deleteAt($i)>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
				<<else>>

					<<link "Implant">>
						<<set $cash -= $surgeryCost>>
						<<for $i = 0; $i < $completedOrgans.length; $i++>>
							<<if $activeSlave.ID == $completedOrgans[$i].ID>>
							<<set $completedOrgans.deleteAt($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>>
								<<if $activeSlave.physicalAge >= $potencyAge>>
									<<set $activeSlave.pubertyAgeXY = ($activeSlave.physicalAge+1)>>
								<</if>>
							<<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 < $completedOrgans.length; $i++>><<if $activeSlave.ID == $completedOrgans[$i].ID>><<set $completedOrgans.deleteAt($i)>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
				<</if>>
			<<elseif $completedOrgans[_i].type == "dogTesticles">>
				<<if $activeSlave.balls > 0>>

					ERROR: this slave already has testicles.
					<<link "Discard">><<for $i = 0; $i < $completedOrgans.length; $i++>><<if $activeSlave.ID == $completedOrgans[$i].ID>><<set $completedOrgans.deleteAt($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 < $completedOrgans.length; $i++>><<if $activeSlave.ID == $completedOrgans[$i].ID>><<set $completedOrgans.deleteAt($i)>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
				<<else>>

					<<link "Implant">>
						<<set $cash -= $surgeryCost>>
						<<for $i = 0; $i < $completedOrgans.length; $i++>>
							<<if $activeSlave.ID == $completedOrgans[$i].ID>>
							<<set $completedOrgans.deleteAt($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>>
								<<if $activeSlave.physicalAge >= $potencyAge>>
									<<set $activeSlave.pubertyAgeXY = ($activeSlave.physicalAge+1)>>
								<</if>>
							<<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 < $completedOrgans.length; $i++>><<if $activeSlave.ID == $completedOrgans[$i].ID>><<set $completedOrgans.deleteAt($i)>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
				<</if>>
			<<elseif $completedOrgans[_i].type == "scrotum">>
				<<if $activeSlave.scrotum > 0>>

					ERROR: this slave already has a scrotum.
					<<link "Discard">><<for $i = 0; $i < $completedOrgans.length; $i++>><<if $activeSlave.ID == $completedOrgans[$i].ID>><<set $completedOrgans.deleteAt($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 = 0; $i < $completedOrgans.length; $i++>><<if $activeSlave.ID == $completedOrgans[$i].ID>><<set $completedOrgans.deleteAt($i)>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
				<<else>>

					<<link "Graft on">>
						<<set $cash -= $surgeryCost>>
						<<for $i = 0; $i < $completedOrgans.length; $i++>><<if $activeSlave.ID == $completedOrgans[$i].ID>><<set $completedOrgans.deleteAt($i)>><<break>><</if>><</for>>
						<<set $activeSlave.scrotum = $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 = 0; $i < $completedOrgans.length; $i++>><<if $activeSlave.ID == $completedOrgans[$i].ID>><<set $completedOrgans.deleteAt($i)>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
				<</if>>
			<<elseif $completedOrgans[_i].type == "foreskin">>
				<<if $activeSlave.foreskin > 0>>

					ERROR: this slave already has a <<if $activeSlave.dick > 0>>foreskin<<else>>clitoral hood<</if>>.
					<<link "Discard">><<for $i = 0; $i < $completedOrgans.length; $i++>><<if $activeSlave.ID == $completedOrgans[$i].ID>><<set $completedOrgans.deleteAt($i)>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
				<<else>>

					<<link "Graft on">>
						<<set $cash -= $surgeryCost>>
						<<for $i = 0; $i < $completedOrgans.length; $i++>><<if $activeSlave.ID == $completedOrgans[$i].ID>><<set $completedOrgans.deleteAt($i)>><<break>><</if>><</for>>
						<<if $activeSlave.dick > 0>>
							<<set $activeSlave.foreskin = $activeSlave.dick>>
						<<else>>
							<<set $activeSlave.foreskin = $activeSlave.clit>>
						<</if>>
						<<set $activeSlave.health -= 10>>
						<<if $organFarmUpgrade == 2>>
							<<set $activeSlave.chem += 10>>
						<</if>>
						<<set $surgeryType = "addForeskin">>
						<<goto "Surgery Degradation">>
					<</link>>
					|
					<<link "Discard">><<for $i = 0; $i < $completedOrgans.length; $i++>><<if $activeSlave.ID == $completedOrgans[$i].ID>><<set $completedOrgans.deleteAt($i)>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
				<</if>>
			<<elseif $completedOrgans[_i].type == "ovaries">>
				<<if $activeSlave.ovaries > 0>>

					ERROR: this slave already has ovaries.
					<<link "Discard">><<for $i = 0; $i < $completedOrgans.length; $i++>><<if $activeSlave.ID == $completedOrgans[$i].ID>><<set $completedOrgans.deleteAt($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 < $completedOrgans.length; $i++>><<if $activeSlave.ID == $completedOrgans[$i].ID>><<set $completedOrgans.deleteAt($i)>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
				<<elseif $activeSlave.mpreg != 0 || $activeSlave.bellyImplant != -1>>

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

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

					ERROR: this slave already has ovaries.
					<<link "Discard">><<for $i = 0; $i < $completedOrgans.length; $i++>><<if $activeSlave.ID == $completedOrgans[$i].ID>><<set $completedOrgans.deleteAt($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 < $completedOrgans.length; $i++>><<if $activeSlave.ID == $completedOrgans[$i].ID>><<set $completedOrgans.deleteAt($i)>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
				<<elseif $activeSlave.mpreg != 0 || $activeSlave.bellyImplant != -1>>

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

					<<link "Implant">>
						<<set $cash -= $surgeryCost>>
						<<for $i = 0; $i < $completedOrgans.length; $i++>>
							<<if $activeSlave.ID == $completedOrgans[$i].ID>>
							<<set $completedOrgans.deleteAt($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>>
								<<if $activeSlave.physicalAge >= $fertilityAge>>
									<<set $activeSlave.pubertyAgeXX = ($activeSlave.physicalAge+1)>>
								<</if>>
							<<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 < $completedOrgans.length; $i++>><<if $activeSlave.ID == $completedOrgans[$i].ID>><<set $completedOrgans.deleteAt($i)>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
				<</if>>
			<<elseif $completedOrgans[_i].type == "dogOvaries">>
				<<if $activeSlave.ovaries > 0>>

					ERROR: this slave already has ovaries.
					<<link "Discard">><<for $i = 0; $i < $completedOrgans.length; $i++>><<if $activeSlave.ID == $completedOrgans[$i].ID>><<set $completedOrgans.deleteAt($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 < $completedOrgans.length; $i++>><<if $activeSlave.ID == $completedOrgans[$i].ID>><<set $completedOrgans.deleteAt($i)>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
				<<elseif $activeSlave.mpreg != 0 || $activeSlave.bellyImplant != -1>>

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

					<<link "Implant">>
						<<set $cash -= $surgeryCost>>
						<<for $i = 0; $i < $completedOrgans.length; $i++>>
							<<if $activeSlave.ID == $completedOrgans[$i].ID>>
							<<set $completedOrgans.deleteAt($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>>
								<<if $activeSlave.physicalAge >= $fertilityAge>>
									<<set $activeSlave.pubertyAgeXX = ($activeSlave.physicalAge+1)>>
								<</if>>
							<<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 < $completedOrgans.length; $i++>><<if $activeSlave.ID == $completedOrgans[$i].ID>><<set $completedOrgans.deleteAt($i)>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
				<</if>>
			<<elseif $completedOrgans[_i].type == "prostate">>
				<<if $activeSlave.prostate != 0>>

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

					<<link "Implant">>
						<<set $cash -= $surgeryCost>>
						<<for $i = 0; $i < $completedOrgans.length; $i++>><<if $activeSlave.ID == $completedOrgans[$i].ID>><<set $completedOrgans.deleteAt($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 = 0; $i < $completedOrgans.length; $i++>><<if $activeSlave.ID == $completedOrgans[$i].ID>><<set $completedOrgans.deleteAt($i)>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
				<</if>>
			<<elseif $completedOrgans[_i].type == "eyes">>
				<<if $activeSlave.eyes > -2 && $activeSlave.origEye != "implant">>

					ERROR: this slave has working eyes.
					<<link "Discard">><<for $i = 0; $i < $completedOrgans.length; $i++>><<if $activeSlave.ID == $completedOrgans[$i].ID>><<set $completedOrgans.deleteAt($i)>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
				<<elseif $activeSlave.origEye == "implant">>

					<<link "Remove ocular implants and implant">>
						<<set $cash -= $surgeryCost>>
						<<for $i = 0; $i < $completedOrgans.length; $i++>><<if $activeSlave.ID == $completedOrgans[$i].ID>><<set $completedOrgans.deleteAt($i)>><<break>><</if>><</for>>
						<<set $stockpile.ocularImplant++>>
						<<set $activeSlave.eyes = 1>>
						<<set _oldEyes = $genePool.find(function(s) { return s.ID = $activeSlave.ID; })>>
						<<set $activeSlave.origEye = _oldEyes.origEye>>
						<<set $activeSlave.eyeColor = $activeSlave.origEye>>
						<<set $activeSlave.health -= 20>>
						<<if $organFarmUpgrade == 2>>
							<<set $activeSlave.chem += 20>>
						<</if>>
						<<set $surgeryType = "newEyes">>
						<<goto "Surgery Degradation">>
					<</link>>
					|
					<<link "Discard">><<for $i = 0; $i < $completedOrgans.length; $i++>><<if $activeSlave.ID == $completedOrgans[$i].ID>><<set $completedOrgans.deleteAt($i)>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
				<<else>>

					<<link "Implant">>
						<<set $cash -= $surgeryCost>>
						<<for $i = 0; $i < $completedOrgans.length; $i++>><<if $activeSlave.ID == $completedOrgans[$i].ID>><<set $completedOrgans.deleteAt($i)>><<break>><</if>><</for>>
						<<set $activeSlave.eyes = 1>>
						<<set $activeSlave.eyeColor = $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 = 0; $i < $completedOrgans.length; $i++>><<if $activeSlave.ID == $completedOrgans[$i].ID>><<set $completedOrgans.deleteAt($i)>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
				<</if>>
			<<elseif $completedOrgans[_i].type == "mpreg">>
				<<if ($activeSlave.ovaries != 0) && ($activeSlave.vagina > -1) && ($activeSlave.mpreg != 0)>>

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

					<<link "Implant">>
						<<set $cash -= $surgeryCost>>
						<<for $i = 0; $i < $completedOrgans.length; $i++>>
							<<if $activeSlave.ID == $completedOrgans[$i].ID>>
							<<set $completedOrgans.deleteAt($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>>
								<<if $activeSlave.physicalAge >= $fertilityAge>>
									<<set $activeSlave.pubertyAgeXX = ($activeSlave.physicalAge+1)>>
								<</if>>
							<<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 < $completedOrgans.length; $i++>><<if $activeSlave.ID == $completedOrgans[$i].ID>><<set $completedOrgans.deleteAt($i)>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
				<</if>>
			<<elseif $completedOrgans[_i].type == "mpregPig">>
				<<if ($activeSlave.ovaries != 0) && ($activeSlave.vagina > -1) && ($activeSlave.mpreg != 0)>>

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

					<<link "Implant">>
						<<set $cash -= $surgeryCost>>
						<<for $i = 0; $i < $completedOrgans.length; $i++>>
							<<if $activeSlave.ID == $completedOrgans[$i].ID>>
							<<set $completedOrgans.deleteAt($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>>
								<<if $activeSlave.physicalAge >= $fertilityAge>>
									<<set $activeSlave.pubertyAgeXX = ($activeSlave.physicalAge+1)>>
								<</if>>
							<<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 < $completedOrgans.length; $i++>><<if $activeSlave.ID == $completedOrgans[$i].ID>><<set $completedOrgans.deleteAt($i)>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
				<</if>>
			<<elseif $completedOrgans[_i].type == "mpregDog">>
				<<if ($activeSlave.ovaries != 0) && ($activeSlave.vagina > -1) && ($activeSlave.mpreg != 0)>>

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

					<<link "Implant">>
						<<set $cash -= $surgeryCost>>
						<<for $i = 0; $i < $completedOrgans.length; $i++>>
							<<if $activeSlave.ID == $completedOrgans[$i].ID>>
							<<set $completedOrgans.deleteAt($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>>
								<<if $activeSlave.physicalAge >= $fertilityAge>>
									<<set $activeSlave.pubertyAgeXX = ($activeSlave.physicalAge+1)>>
								<</if>>
							<<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 < $completedOrgans.length; $i++>><<if $activeSlave.ID == $completedOrgans[$i].ID>><<set $completedOrgans.deleteAt($i)>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
				<</if>>

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

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

					<<link "Implant">>
						<<set $cash -= $surgeryCost>>
						<<for $i = 0; $i < $completedOrgans.length; $i++>><<if $activeSlave.ID == $completedOrgans[$i].ID>><<set $completedOrgans.deleteAt($i)>><<break>><</if>><</for>>
						<<if $activeSlave.ovaries == 1 && $activeSlave.hormoneBalance >= 200>>
							<<set $activeSlave.voice = 3>>
						<<elseif ($activeSlave.balls > 0) || ($activeSlave.hormoneBalance < -20)>>
							<<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 = 0; $i < $completedOrgans.length; $i++>><<if $activeSlave.ID == $completedOrgans[$i].ID>><<set $completedOrgans.deleteAt($i)>><<break>><</if>><</for>><<goto "Remote Surgery">><</link>>
				<</if>>
			<</if>>
		<</if>>
	<</for>> /* for of the $completedOrgans loop */
<</if>>


code:
:: P Bodyswap Reveal [nobr]

<<set $nextButton = "Continue", $nextLink = "Random Nonindividual Event">>

<<set $bodyswapAnnounced = 1>>

You receive countless messages throughout the day; mostly worthless spam, several uninteresting business offers and the occasional enslavement request. This one catches your eye however. It's an offer from a top surgeon who has recently been experimenting with radical new surgeries. You've been loosely following their work for the last few weeks, ever since they successfully transferred the brain from one slave to another with minimal side effects, and it seems they are now offering their work to anyone with a surgical suite capable of performing the surgery and willing to undertake the risk.

It's an interesting offer and your remote surgery will suffice should you want to change up your slaves' bodies more than any drug or implant ever could. You'll need a slave to place their brain into, however. Perhaps one the mindless slaves from the Flesh Heap will suit your needs.

license: mit


code:
:: PC Appearance Intro [nobr]

Race and appearance are largely irrelevant in the free cities; there are only the free and the enslaved.

//Appearance only, no effect on gameplay (unless you make a big deal out of it).//

@@.orange;What nationality are you?@@

You are $PC.nationality.

<<textbox "$PC.nationality" $PC.nationality "PC Appearance Intro">>//Capitalize it//

@@.orange;What race are you?@@

You're $PC.race.

<<link "White">>
	<<set $PC.race = "white">>
	<<PlayerRace>>
<</link>>
|
<<link "Asian">>
	<<set $PC.race = "asian">>
	<<PlayerRace>>
<</link>>
|
<<link "Latina">>
	<<set $PC.race = "latina">>
	<<PlayerRace>>
<</link>>
|
<<link "Middle Eastern">>
	<<set $PC.race = "middle eastern">>
	<<PlayerRace>>
<</link>>
|
<<link "Black">>
	<<set $PC.race = "black">>
	<<PlayerRace>>
<</link>>
|
<<link "Semitic">>
	<<set $PC.race = "semitic">>
	<<PlayerRace>>
<</link>>
|
<<link "Southern European">>
	<<set $PC.race = "southern european">>
	<<PlayerRace>>
<</link>>
|
<<link "Indo-aryan">>
	<<set $PC.race = "indo-aryan">>
	<<PlayerRace>>
<</link>>
|
<<link "Amerindian">>
	<<set $PC.race = "amerindian">>
	<<PlayerRace>>
<</link>>
|
<<link "Pacific Islander">>
	<<set $PC.race = "pacific islander">>
	<<PlayerRace>>
<</link>>
|
<<link "Malay">>
	<<set $PC.race = "malay">>
	<<PlayerRace>>
<</link>>
|
<<link "Mixed race">>
	<<set $PC.race = "mixed race">>
	<<PlayerRace>>
<</link>>

@@.orange;What is your skin tone?@@

You have $PC.skin skin.

<<link "White">>
	<<set $PC.skin = "white">>
	<<PlayerSkin>>
<</link>>
|
<<link "Fair">>
	<<set $PC.skin = "fair">>
	<<PlayerSkin>>
<</link>>
|
<<link "Light">>
	<<set $PC.skin = "light">>
	<<PlayerSkin>>
<</link>>
|
<<link "Dark">>
	<<set $PC.skin = "dark">>
	<<PlayerSkin>>
<</link>>
|
<<link "Olive">>
	<<set $PC.skin = "olive">>
	<<PlayerSkin>>
<</link>>
|
<<link "Black">>
	<<set $PC.skin = "black">>
	<<PlayerSkin>>
<</link>>
|
<<link "Brown">>
	<<set $PC.skin = "brown">>
	<<PlayerSkin>>
<</link>>
|
<<link "Light Brown">>
	<<set $PC.skin = "light brown">>
	<<PlayerSkin>>
<</link>>
|
<<link "Pale">>
	<<set $PC.skin = "pale">>
	<<PlayerSkin>>
<</link>>
|
<<link "Extremely Pale">>
	<<set $PC.skin = "extremely pale">>
	<<PlayerSkin>>
<</link>>

@@.orange;Some people have freckles.@@

	<<if $PC.markings == "none">>
		Your skin is pure and clear of any freckles.
	<<elseif $PC.markings == "freckles">>
		You have some freckles on your cheeks and elsewhere.
	<<elseif $PC.markings == "heavily freckled">>
		You have dense freckles on your cheeks and elsewhere.
	<</if>>

<<link "No Freckles">>
	<<set $PC.markings = "none">>
	<<PlayerMarkings>>
<</link>>
|
<<link "Light Freckles">>
	<<set $PC.markings = "freckles">>
	<<PlayerMarkings>>
<</link>>
|
<<link "Heavy Freckles">>
	<<set $PC.markings = "heavily freckled">>
	<<PlayerMarkings>>
<</link>>

@@.orange;What color are your eyes?@@

You have $PC.eyeColor eyes.

<<textbox "$PC.eyeColor" $PC.eyeColor "PC Appearance Intro">>

@@.orange;What color is your hair?@@

You have $PC.hColor hair.

<<textbox "$PC.hColor" $PC.hColor "PC Appearance Intro">>

[[Finish player character customization|PC Experience Intro]]


code:
:: PC Preg Intro [nobr]

You have a working female reproductive system, and thus, a menstrual cycle. Women already face hardships as slaveowners and arcology owners, and being pregnant, coupled with a strong societal aversion to the dominant being penetrated, leads most pregnant owners to find themselves in dire situations. As an added precaution, since nothing stops an owner from hooking up with another owner, contraceptives are common amongst free women.

@@.orange;What's your stance on taking contraceptives?@@

You're
<<if $PC.preg == -1>>
	not interested in being a mother.
	[[Risky|PC Preg Intro][$PC.preg = 0]]
<<elseif $PC.preg == 0>>
	fertile and you know the risks.
	[[Safe|PC Preg Intro][$PC.preg = -1]] | [[About that...|PC Preg Intro][$PC.preg = 10]]
<<else>>
	already pregnant.
	[[Fertile|PC Preg Intro][$PC.preg = 0]]
<</if>>

//Being or becoming pregnant will raise difficulty.//

@@.orange;Hormones can be an interesting thing, how do they affect you?@@

You're
<<if $PC.pregMood == 1>>
	gentle and motherly when you're hormonal.
	[[Normal|PC Preg Intro][$PC.pregMood = 0]] | [[Aggressive|PC Preg Intro][$PC.pregMood = 2]]
<<elseif $PC.pregMood == 0>>
	in complete control of yourself.
	[[Motherly|PC Preg Intro][$PC.pregMood = 1]] | [[Aggressive|PC Preg Intro][$PC.pregMood = 2]]
<<else>>
	aggressive and domineering when you're hormonal.
	[[Normal|PC Preg Intro][$PC.pregMood = 0]] | [[Motherly|PC Preg Intro][$PC.pregMood = 1]]
<</if>>

//Hormone induced moods may alter some sex scenes, as well as change slaves' reactions to you.//

[[Confirm player character customization|PC Appearance Intro]]


code:
:: PC Skin Workaround [nobr]

<<set $nextButton = "Get in", $nextLink = "PC Surgery Degradation">>

You can enter any color for your skin to be changed to. Once you have chosen, you just have to get in and let the machine do its thing.
<br><<textbox "$PC.skin" $PC.skin "PC Surgery Degradation">>


code:
:: Personal Notes [nobr]

<<if $useTabs == 0>>__Personal Notes__<</if>>
<br>
<<if ($playerAging != 0)>>Your birthday is <<if $PC.birthWeek == 51>>next week<<if $playerAging == 2>>; you'll be turning <<print $PC.actualAge+1>><</if>><<else>>in <<print 52-$PC.birthWeek>> weeks<</if>>.<</if>>
<<if $PC.career == "servant">>
	<<if $PC.boobs == 1 && $PC.boobsBonus > 0>>
		<<if $PC.boobsBonus > 2>>
			You've gotten your dress let out to accommodate your huge bust.
		<<elseif $PC.boobsBonus == 2>>
			Your dress bulges with your big breasts.
		<<elseif $PC.boobsBonus == 1>>
			Your dress feels tight around your breasts.
		<</if>>
	<</if>>
	<<if $PC.preg > 0>>
	<<if $PC.belly >= 120000>>
		You don't know how much more you can take. You feel so full and your children never calm down. You swear they take shifts tormenting your poor bladder. Even worse, your pregnancy juts out over a half-meter from your front and has soundly defeated the seams of your dress<<if $PC.dick == 1>>. Occasionally one of the bottoms manages to land a series of hits to your prostate, not that you mind as much, save for when they keep at it and you a can't restrain your orgasm<</if>>.
	<<elseif $PC.belly >= 105000>>
		You can barely function any more. You're so big and heavy that even the simplest of actions requires both intense effort and thought just to get it done. Your frumpy dress is also at its limit, and much to your annoyance, your children will not stay still enough to let you fix it.
	<<elseif $PC.belly >= 90000>>
		You may have a problem. You took fertility drugs, but you shouldn't be getting this big. Judging by how far along you are, you must be carrying
		<<if $PC.pregType == 8>>
			octuplets
		<<elseif $PC.pregType == 7>>
			septuplets
		<<else>>
			sextuplets.
		<</if>>
		Your Master always wanted said he wanted a big family, too bad he isn't here to see this. Your dress is also starting to get tight, but it's far less of a concern at this point.
	<<elseif $PC.belly >= 75000>>
		Your belly is starting to become worrying. You're positively gigantic and quite tired. Though on the plus side, your dress is rather form fitting now.
	<<elseif $PC.belly >= 60000>>
		Your new outfit is handling your enormous belly quite well, though it does nothing to hide your size. Everyone can tell you'll be having lots of babies.
	<<elseif $PC.belly >= 45000>>
		You both look and feel enormous, your belly juts out so much now. You found a rather frumpy looking maid outfit in a shop; it's not the most attractive thing, but it'll hold nearly any belly.
	<<elseif $PC.belly >= 30000>>
		You feel absolutely gigantic; you look like you're full-term with twins<<if $PC.pregType == 2>> (which you are)<</if>>. Your restitched dress is once more at its limit.
	<<elseif $PC.belly >= 15000>>
		You've taken the time to let out your own dress so that you can look proper even with a belly as big as any full-term woman.
	<<elseif $PC.belly >= 14000>>
		Your dress is at its capacity, any bigger and you'd risk tearing it at the seams, though your late master did make sure his girls were well dressed even when they were fully rounded with his child.
	<<elseif $PC.belly >= 12000>>
		You keep bumping into things with your huge belly; you're used to it though, <<if $PC.birthMaster > 0>>your first pregnancy was a twinner!<<else>>your late Master liked to keep a big fake belly around your middle.<</if>>
	<<elseif $PC.belly >= 10000>>
		Your huge pregnant belly is tiring to carry around, but you're well versed in moving about with a rounded middle.
	<<elseif $PC.belly >= 7000>>
		You've stopped bothering to tie your apron behind you, allowing your dress the freedom to stretch with your growing child.
	<<elseif $PC.belly >= 5000>>
		Your maid's outfit is rounded out by your baby-filled belly; not only is it obvious, but it is slowing you down in your day to day affairs.
	<<elseif $PC.belly >= 3000>>
		You're starting to get pretty big; you feel like all eyes are centered on her baby-filled middle.
	<<elseif $PC.belly >= 1500>>
		Your belly is now large enough that there is no hiding it. After you've let out your apron, your dress fits nicely again.
	<<elseif $PC.belly >= 500>>
		Your dress tightly clings to your early pregnancy, though it, your apron, and your previous experience hide it well.
	<<elseif $PC.belly >= 250>>
		Your apron holds your dress tightly to your bloated middle.
	<<elseif $PC.belly >= 100>>
		Your dress and apron feel tight around your middle.
	<</if>>
	<<if $PC.preg >= 41>>
		Your bab<<if $PC.pregType > 1>>ies are<<else>>y is<</if>> overdue and your master isn't here anymore to comfort your exhausted body. You try your best, <<if $PC.pregSource == -3>>drawing strength from the knowledge that you carry your late master's legacy within you<<else>>but deep down you are saddened that your child isn't his<</if>>.<<if $PC.pregMood == 1>> However, thanks to all your mothering, your slaves are more than happy to do everything they can for you.<<elseif $PC.pregMood == 2>> Your dicked slaves are terrified of being seen by you, knowing full well that they will be bearing the full weight of your body as you try to fill the hole left by your late master.<</if>>
	<<elseif $PC.preg >= 39>>
		Every action you take is exhausting, and even though your slaves are more than capable of serving your every desire, you refuse to slow down with your duties.<<if $PC.pregMood == 1>> Though you definitely appreciate their aid.<<elseif $PC.pregMood == 2>> Your hormones practically rule you, leading you to demand your slaves to be prepared to pleasure you at a moments notice. Your needy cunt hungers for dick and you don't care what it is attached to right now.<</if>>
	<<elseif $PC.preg >= 36>>
		Your child<<if $PC.pregType > 1>>ren<</if>> happily kicks away inside your womb, and each time a small bump appears on the outside of your dress.<<if $PC.pregMood == 1>> While hormones may have you demanding and needy, you do everything you can to treat your slaves as if they were your own children.<<elseif $PC.pregMood == 2>> You know it's unbecoming for an arcology owner, but your former master loved to fuck you while you were pregnant with his children and your body misses his touch.<</if>>
	<<elseif $PC.preg >= 32>>
		<<if $PC.pregMood == 1>> You can't help but enjoy having a slave suckle from you while you relax with her in your lap.<<elseif $PC.pregMood == 2>> You know how to have sex while pregnant, and as such, so will your slaves.<</if>>
	<<elseif $PC.preg >= 28>>
		<<if $PC.pregMood == 1>> You catch yourself babying your slaves from time to time.<<elseif $PC.pregMood == 2>>Your sex drive has become unquenchable as of late.<</if>>
	<<elseif $PC.preg == 22>>
		Something startling happened this week; while enjoying a slave, your belly button popped out!
	<<elseif $PC.preg == 8 && $PC.pregSource > 0>>
		<<set _babyDaddy = $slaves.findIndex(function(s) { return s.ID == $PC.pregSource; })>>
		<<set $slaves[_babyDaddy].PCKnockedUp++>>
		Rumors spread among your slaves that your middle is swollen with $slaves[_babyDaddy].slaveName's child. They're not wrong, though <<if $slaves[_babyDaddy].devotion > 20>>$slaves[_babyDaddy].slaveName is broken enough to not try and use it against you. In fact, it might even draw her closer to you<<else>>you'd have liked it to have kept that from $slaves[_babyDaddy].slaveName, lest the rebellious bitch uses it to remain defiant<</if>>.
	<</if>>
	<</if>>
	<<if $PC.ballsImplant > 3>>
		Your dress and apron bulges with your enormous balls, you had to have your dresses tailored so that the swinging mass of your sack would stop bursting seams inadvertently.
	<<elseif $PC.ballsImplant == 3>>
		Your dress and apron bulges with your enormous balls.
	<<elseif $PC.ballsImplant == 2>>
		Your dress hides your huge balls, but it does nothing to hide your altered gait.
	<<elseif $PC.ballsImplant == 1>>
		Your dress hides your big balls.
	<</if>>
	<<if $PC.butt > 2 && $PC.ballsImplant > 3>>
		<<if $PC.buttImplant == 1>>
			When you had your dresses tailored you also had to have them make room for your enormous rear. No dress can hide how big and fake it is though.
		<<else>>
			When you had your dresses tailored you also had to have them make room for your enormous rear.
		<</if>>
	<<elseif $PC.butt > 2>>
		<<if $PC.buttImplant == 1>>
			You had to get your dress let out to contain your enormous rear. It can't hide how big and fake it is though.
		<<else>>
			You had to get your dress let out to contain your enormous rear.
		<</if>>
	<<elseif $PC.butt == 2>>
		Your dress is starting to feel tight around your huge rear.
	<<elseif $PC.butt == 1>>
		Your dress is filled out by your big butt.
	<</if>>
<<elseif $PC.career == "escort">>
	<<if $PC.boobs == 1 && $PC.boobsBonus > 0>>
		<<if $PC.boobsBonus > 2>>
			You top strains as it struggles to cover your nipples, letting your huge<<if $PC.markings == "freckles">>, freckled<<elseif $PC.markings == "heavily freckled">>, densely freckled<</if>> bust bulge lewdly around it.
		<<elseif $PC.boobsBonus == 2>>
			Your top can barely contain your big<<if $PC.markings == "freckles">>, freckled<<elseif $PC.markings == "heavily freckled">>, heavily freckled<</if>> breasts, leaving you looking sluttier than ever.
		<<elseif $PC.boobsBonus == 1>>
			Your breasts spill over your slutty top<<if $PC.markings == "freckles">>, showing off your freckled cleavage<<elseif $PC.markings == "heavily freckled">>, freckle packed cleavage<</if>>.
		<</if>>
	<</if>>
	<<if $PC.preg > 0>>
	<<if $PC.belly >= 120000>>
		You don't know how much more you can take. You feel so full and your children never calm down. You swear they take shifts tormenting your poor bladder. Even worse, your pregnancy juts out over a half-meter from your front and has seized control as your dominant aspect<<if $PC.dick == 1>>. Occasionally one of the bottoms manages to land a series of hits to your prostate, not that you mind as much. It's good for business when you orgasm lewdly and cum your bottoms<</if>>.
	<<elseif $PC.belly >= 105000>>
		You can barely function any more. You're so big and heavy that even the simplest of actions requires both intense effort and thought just to get it done. None of your poses work with your gravid body either and you're practically popping out of your skimpiest outfit.
	<<elseif $PC.belly >= 90000>>
		You may have a problem. You know you took fertility drugs, but you weren't supposed to get this big! Feeling yourself up, you'd fancy a guess that there are about
		<<if $PC.pregType == 8>>
			a dozen babies
		<<elseif $PC.pregType == 7>>
			ten babies
		<<else>>
			eight babies
		<</if>>
		 in your belly.
	<<elseif $PC.belly >= 75000>>
		Your belly is starting to become worrying to you. You're positively gigantic and quite tired of it. The last thing on peoples' minds these days is fucking you too.
	<<elseif $PC.belly >= 60000>>
		You feel sexy with such a huge belly, but it sure is tiring. Everyone can also tell you'll be having lots of babies. A boon to business, since everyone knows you ride bareback.
	<<elseif $PC.belly >= 45000>>
		You both look and feel enormous, your belly juts out so much now. Your strategy worked! Eyes always end up locked onto you or your pregnancy, but they quickly return to your milky breasts.
	<<elseif $PC.belly >= 30000>>
		You feel absolutely gigantic; you look like you're full-term with twins. You find the skimpiest outfit you can to complement your size; if people won't notice your other assets, then they might as well not notice your outfit either.
	<<elseif $PC.belly >= 14000>>
		You don't even bother to try to be slutty anymore, your full-term globe of a belly just steals all the attention away from your other assets.
	<<elseif $PC.belly >= 12000>>
		Your huge pregnant belly hides your crotch.
	<<elseif $PC.belly >= 10000>>
		Your huge pregnant belly is tiring to carry around and is beginning to draw attention away from your other features.
	<<elseif $PC.belly >= 7000>>
		You've switched to even skimpier clothing to show off your big pregnant belly.
	<<elseif $PC.belly >= 5000>>
		Your outfit is only enhanced by your baby-filled belly; mostly because it adds to your slutty appearance. Though it definitely is impacting your business.
	<<elseif $PC.belly >= 3000>>
		Your slutty bottoms are beginning to get hidden by your rounded middle.
	<<elseif $PC.belly >= 1500>>
		Your slutty bottoms sexily hug your swollen middle.
	<<elseif $PC.belly >= 500>>
		Your exposed midriff bulges out enough to give away your growing pregnancy.
	<<elseif $PC.belly >= 250>>
		Your exposed midriff is noticeably bloated.
	<<elseif $PC.belly >= 100>>
		When you look down, you can't help but notice your belly sticking out a little.
	<</if>>
	<<if $PC.preg >= 41>>
		You can barely pull yourself and your overdue child out of bed; every action is a chore, you keep bumping things, and your child just won't calm down.<<if $PC.pregMood == 1>> However, thanks to all your tenderness, your slaves are more than happy to do everything they can for you.<<elseif $PC.pregMood == 2>> Your dicked slaves are terrified of being seen by you, knowing full well that they will be bearing the full weight of your body as you satisfy your desires.<</if>>
	<<elseif $PC.preg >= 39>>
		Every action you take is exhausting; though your slaves are more than capable of serving your every whim.<<if $PC.pregMood == 1>> Even in the final stages of pregnancy, you make sure the slaves attending you are treated as if the were your favorite clients.<<elseif $PC.pregMood == 2>> Your hormones practically rule you, leading you to demand your slaves to be prepared to pleasure you at a moments notice. Your needy cunt hungers for dick and you don't care what it is attached to right now.<</if>>
	<<elseif $PC.preg >= 36>>
		Every kick from your eager child threatens to dislodge your breasts from your struggling top.<<if $PC.pregMood == 1>> While you may be demanding and needy, you do everything you can to treat them as if they were a virgin client.<<elseif $PC.pregMood == 2>> You know it's unbecoming for an arcology owner, but you need a dick in you even more than usual.<</if>>
	<<elseif $PC.preg >= 32>>
		<<if $PC.pregMood == 1>> You can't help but enjoy having a slave, or client, suckle from you while you relax with them in your lap.<<elseif $PC.pregMood == 2>> You don't let your pregnancy get in the way when it comes to sex; you make sure your slaves, and clients, learn just how much you know about sex.<</if>>
	<<elseif $PC.preg >= 28>>
		<<if $PC.pregMood == 1>> You catch yourself playfully teasing your slaves from time to time.<<elseif $PC.pregMood == 2>>Your sex drive has become unquenchable as of late.<</if>>
	<<elseif $PC.preg == 22>>
		Something startling happened this week; while enjoying a slave, your belly button popped out!
	<<elseif $PC.preg == 8 && $PC.pregSource > 0>>
		<<set _babyDaddy = $slaves.findIndex(function(s) { return s.ID == $PC.pregSource; })>>
		<<set $slaves[_babyDaddy].PCKnockedUp++>>
		Rumors spread among your slaves that your middle is swollen with $slaves[_babyDaddy].slaveName's child. They're not wrong, though <<if $slaves[_babyDaddy].devotion > 20>>$slaves[_babyDaddy].slaveName is broken enough to not try and use it against you. In fact, it might even draw her closer to you<<else>>you'd have liked it to have kept that from $slaves[_babyDaddy].slaveName, lest the rebellious bitch uses it to remain defiant<</if>>.
	<</if>>
	<</if>>
	<<if $PC.ballsImplant > 3>>
		You've pretty much given up on pants because of your monstrous balls, but you've replaced them with a slutty skirt that stretches around their veiny contours. People can't help staring to see if they'll get a glimpse of your massive sack peaking out from under the skirt.
	<<elseif $PC.ballsImplant == 3>>
		You've swapped up to a larger pair of slutty pants, specially designed with extra sack room. They draw the eye right to your bulge<<if $PC.preg >= 28>>; you can do without people thinking you are giving birth into your pants, though<</if>>.
	<<elseif $PC.ballsImplant == 2>>
		Your slutty pants are really tight around the groin, but they hold your huge balls in place quite nicely.
	<<elseif $PC.ballsImplant == 1>>
		Your slutty pants bulge more than ever with your big balls.
	<</if>>
	<<if $PC.dick == 1>>
		<<if $PC.ballsImplant > 3>>
			<<if $PC.butt > 2>>
				<<if $PC.buttImplant == 1>>
					Your slutty skirt is also forced to stretch around your enormous rear, making the implants pretty obvious. With both your front and back struggling to get free of your stretchy skirt, it isn't unusual for one or the other to peek out.
				<<else>>
					Your slutty skirt is also forced to stretch around your enormous rear, and bending over is basically asking for your skirt to ride up all the way to your hips. With both your front and back struggling to get free of your stretchy skirt, it isn't unusual for one or the other to peek out.
				<</if>>
			<<elseif $PC.butt == 2>>
				Your huge rear nearly spills out from the bottom of your slutty skirt.
			<<elseif $PC.butt == 1>>
				Your slutty skirt is strained by your big butt.
			<</if>>
		<<else>>
			 <<if $PC.butt > 2>>
				<<if $PC.buttImplant == 1>>
					You had to get your slutty pants let out to contain your enormous rear. It still feels really tight, however, thanks to the implants.
				<<else>>
					You had to get your slutty pants let out to contain your enormous rear. It still overflows scandalously, however.
				<</if>>
			<<elseif $PC.butt == 2>>
				Your huge rear spills out from the top of your slutty pants.
			<<elseif $PC.butt == 1>>
				Your slutty pants are strained by your big butt.
			<</if>>
		<</if>>
	<<else>>
		<<if $PC.butt > 2>>
			<<if $PC.buttImplant == 1>>
				Your ass has completely devoured your slutty shorts. You look like you are wearing a thong leaving your overly round<<if $PC.markings == "freckles">>, freckled<<elseif $PC.markings == "heavily freckled">>, heavily freckled<</if>> cheeks to hang free.<<if $PC.markings == "freckles">> Your lower back is covered in a light speckling of freckles alongside your valley of ass cleavage.<<elseif $PC.markings == "heavily freckled">> Your freckles are particularly dense across your lower back and valley of ass cleavage.<</if>>
			<<else>>
				Your ass has completely devoured your slutty shorts. You look like you are wearing a thong leaving your<<if $PC.markings == "freckles">> freckled<<elseif $PC.markings == "heavily freckled">> heavily freckled<</if>> cheeks to jiggle freely.<<if $PC.markings == "freckles">> Your lower back is covered in a light speckling of freckles alongside your valley of ass cleavage.<<elseif $PC.markings == "heavily freckled">> Your freckles are particularly dense across your lower back and valley of ass cleavage.<</if>>
			<</if>>
		<<elseif $PC.butt == 2>>
			Your slutty shorts are filled to bursting by your rear. Roughly half of your ass is actually in your bottoms, the rest is bulging out scandalously.<<if $PC.markings == "freckles">> Your lower back is covered in a light speckling of freckles alongside your ravine of ass cleavage.<<elseif $PC.markings == "heavily freckled">> Your freckles are particularly dense across your lower back and ravine of ass cleavage.<</if>>
		<<elseif $PC.butt == 1>>
			Your slutty shorts are strained by your big butt. It spills out every gap it can.<<if $PC.markings == "freckles">> Your lower back is covered in a light speckling of freckles alongside your ass cleavage.<<elseif $PC.markings == "heavily freckled">> Your freckles are particularly dense across your lower back and ass cleavage.<</if>>
		<<elseif $PC.markings == "freckles">>
			Your exposed lower back is covered in a light speckling of freckles.
		<<elseif $PC.markings == "heavily freckled">>
			Your freckles are particularly dense across your exposed lower back.
		<</if>>
	<</if>>
<<else>>
	<<if $PC.boobs == 1 && $PC.boobsBonus > 0>>
		<<if $PC.boobsBonus > 2>>
			You've gotten your top retailored to fit your huge bust.
		<<elseif $PC.boobsBonus == 2>>
			Your top strains against your big breasts<<if $PC.markings == "freckles">>, revealing a peak of freckled cleavage<<elseif $PC.markings == "heavily freckled">>, revealing a peak of densely freckled cleavage<</if>>.
		<<elseif $PC.boobsBonus == 1>>
			Your top feels tight around your breasts.
		<</if>>
	<</if>>
	<<if $PC.preg > 0>>
	<<if $PC.belly >= 120000>>
		You don't know how much more you can take. You feel so full and your children never calm down. You swear they take shifts tormenting your poor bladder. Even worse, your pregnancy juts out over a half-meter from your front and has soundly defeated your maternity suit<<if $PC.dick == 1>>. Occasionally one of the bottoms manages to land a series of hits to your prostate, not that you mind as much, save for when they keep at it and you a can't restrain your orgasm. The last thing you want to do in a meeting is spontaneously orgasm and cum your in clothes<</if>>.
	<<elseif $PC.belly >= 105000>>
		You can barely function any more. You're so big and heavy that even the simplest of actions requires both intense effort and thought just to get it done. Your suit buttons keep popping, and much to your annoyance, your children will not stay still enough to let you redo them.
	<<elseif $PC.belly >= 90000>>
		You may have a problem. You took fertility drugs, but you shouldn't be getting this big. Judging by how far along you are, you must be carrying
		<<if $PC.pregType == 8>>
			octuplets
		<<elseif $PC.pregType == 7>>
			septuplets
		<<else>>
			sextuplets.
		<</if>>
		Your suit is also starting to get tight, but it's far less of a concern at this point.
	<<elseif $PC.belly >= 75000>>
		Your belly is starting to become worrying. You're positively gigantic and quite tired. As an added stress, your maternity suit highlights your pregnancy.
	<<elseif $PC.belly >= 60000>>
		Your new outfit is handling your enormous belly quite well, though it does nothing to hide your size. Everyone can tell you'll be having lots of babies and judges you accordingly.
	<<elseif $PC.belly >= 45000>>
		You both look and feel enormous, your belly juts out so much now. You tailor finally managed to get you a bigger maternity suit, one with extra give in the middle, but you feel it draws attention right to your gravidity.
	<<elseif $PC.belly >= 30000>>
		You feel absolutely gigantic; you look like you're full-term with twins<<if $PC.pregType == 2>> (which you are)<</if>>. Having such a big belly in such poor attire weighs heavily under the public's eye.
	<<elseif $PC.belly >= 15000>>
		You don't even bother to try to cover your full-term sized pregnancy, opting to just let it hang out of your old clothing. Every action you take is exhausting; though your slaves are more than capable of serving your every desire.
	<<elseif $PC.belly >= 12000>>
		Your huge pregnant belly strains the buttons on your maternity suit.
	<<elseif $PC.belly >= 10000>>
		Your huge pregnant belly is tiring to carry around and is beginning to stretch out your new clothes.
	<<elseif $PC.belly >= 7000>>
		You've switched to using what can only be called formal maternity wear to cover your pregnant belly.
	<<elseif $PC.belly >= 5000>>
		You can barely cover your baby filled belly; not only is it obvious, but it is getting in the way of your business.
	<<elseif $PC.belly >= 3000>>
		You're starting to get pretty big; you feel like everyone just focuses on your gravidity now.
	<<elseif $PC.belly >= 1500>>
		Your belly is now large enough that there is no hiding it. Your top strains to cover it.
	<<elseif $PC.belly >= 500>>
		Your top tightly clings to your early pregnancy, though you manage to conceal it well enough.
	<<elseif $PC.belly >= 250>>
		Your top tightly clings to your bloated middle.
	<<elseif $PC.belly >= 100>>
		Your top feels oddly tight around your middle.
	<</if>>
	<<if $PC.preg >= 41>>
		You can barely pull yourself and your overdue child out of bed; every action is a chore, you keep bumping things, and your child just won't calm down.<<if $PC.pregMood == 1>> However, thanks to all your mothering, your slaves are more than happy to do everything they can for you.<<elseif $PC.pregMood == 2>> Your dicked slaves are terrified of being seen by you, knowing full well that they will be bearing the full weight of your body as you satisfy your desires.<</if>>
	<<elseif $PC.preg >= 39>>
		<<if $PC.pregMood == 1>> Even in the final stages of pregnancy, you make sure the slaves attending you are treated as if the were your children.<<elseif $PC.pregMood == 2>> Your hormones practically rule you, leading you to demand your slaves to be prepared to pleasure you at a moments notice. Your needy cunt hungers for dick and you don't care what it is attached to right now.<</if>>
	<<elseif $PC.preg >= 36>>
		Every kick from your eager child threatens to send your buttons flying.<<if $PC.pregMood == 1>> While you may be demanding and needy, you do everything you can to treat them as if they were your own children.<<elseif $PC.pregMood == 2>> You know it's unbecoming for an arcology owner, but you need a dick in you and you don't care from where.<</if>>
	<<elseif $PC.preg >= 32>>
		<<if $PC.pregMood == 1>> You can't help but enjoy having a slave suckle from you while you relax with her in your lap.<<elseif $PC.pregMood == 2>> You don't let your pregnancy get in the way when it comes to sex; you make sure your slaves learn new positions to accommodate your bulk.<</if>>
	<<elseif $PC.preg >= 28>>
		<<if $PC.pregMood == 1>> You catch yourself babying your slaves from time to time.<<elseif $PC.pregMood == 2>>Your sex drive has become unquenchable as of late.<</if>>
	<<elseif $PC.preg == 22>>
		Something startling happened this week; while enjoying a slave, your belly button popped out!
	<<elseif $PC.preg == 8 && $PC.pregSource > 0>>
		<<set _babyDaddy = $slaves.findIndex(function(s) { return s.ID == $PC.pregSource; })>>
		<<set $slaves[_babyDaddy].PCKnockedUp++>>
		Rumors spread among your slaves that your middle is swollen with $slaves[_babyDaddy].slaveName's child. They're not wrong, though <<if $slaves[_babyDaddy].devotion > 20>>$slaves[_babyDaddy].slaveName is broken enough to not try and use it against you. In fact, it might even draw her closer to you<<else>>you'd have liked it to have kept that from $slaves[_babyDaddy].slaveName, lest the rebellious bitch uses it to remain defiant<</if>>.
	<</if>>
	<</if>>
	<<if $PC.ballsImplant > 3>>
		You've pretty much given up on suit pants because of your monstrous balls, but you've replaced them with a custom kilt tailored to match the rest of your business attire. People would wonder why you're wearing such old fashioned clothes if your ridiculous bulge didn't make it obvious.
	<<elseif $PC.ballsImplant == 3>>
		You've had to get your suit pants retailored again to fit your enormous balls. It is obvious that the bulge in your pants is not your penis<<if $PC.preg >= 28>>; you've had several people rush to your aid under the mistaken belief that your child was crowning into your pants<</if>>.
	<<elseif $PC.ballsImplant == 2>>
		You've had to get your suit pants retailored to fit your huge balls. It gives you a striking figure, though.
	<<elseif $PC.ballsImplant == 1>>
		Your suit pants bulge more than ever with your big balls.
	<</if>>
	<<if $PC.dick == 1>>
		<<if $PC.ballsImplant > 3>>
			<<if $PC.butt > 2>>
				<<if $PC.buttImplant == 1>>
					Your custom kilt is also forced to stretch around your enormous rear, making the implants pretty obvious. With both your front and back struggling to get free of the restrictive cloth, it isn't unusual for one or the other to peek out.
				<<else>>
					Your custom kilt is also forced to stretch around your enormous rear, and bending over is basically asking for it to ride up all the way to your hips. With both your front and back struggling to get free of the restrictive cloth, it isn't unusual for one or the other to peek out.
				<</if>>
			<<elseif $PC.butt == 2>>
				Your huge rear nearly spills out from the bottom of your custom kilt.
			<<elseif $PC.butt == 1>>
				Your custom kilt is strained by your big butt.
			<</if>>
		<<else>>
			<<if $PC.butt > 2>>
				<<if $PC.buttImplant == 1>>
					You had to get your suit pants let out to contain your enormous rear. It does nothing to hide how big and round your asscheeks are, though.
				<<else>>
					You had to get your suit pants let out to contain your enormous rear. It can clearly be seen jiggling within them.
				<</if>>
			<<elseif $PC.butt == 2>>
				Your huge rear threatens to tear apart your suit pants. You'll need to get them let out soon.
			<<elseif $PC.butt == 1>>
				Your suit pants are strained by your big butt.
			<</if>>
		<</if>>
	<<else>>
		<<if $PC.butt > 2>>
			<<if $PC.buttImplant == 1>>
				Your skirt covers your enormous butt but does nothing to hide its size and shape; you're beginning to show too much leg again, it might be time for a longer skirt.
			<<else>>
				Your skirt covers your enormous butt but does nothing to hide its size and fluidity; your rear is soft enough to fill out your skirt but not lift it up too far, it also translates every motion to the fabric, however.
			<</if>>
		<<elseif $PC.butt == 2>>
			Your skirt covers your huge butt but does nothing to hide its size; in fact, you've had to start wearing a longer one to make up for the extra surface area.
		<<elseif $PC.butt == 1>>
			Your skirt covers your big butt but does nothing to hide its size.
		<</if>>
	<</if>>
<</if>>
<<if $PC.boobs == 1 && $PC.boobsImplant == 0>>
	<<if $PC.preg == 31>>
		<<if $PC.boobsBonus == 0>>
			<<if random(1,100) > 75>>
				Your breasts have @@.lime;grown larger@@ to feed your coming child. Quick measurements show you've gone up a cup size over the course of your pregnancy.
				<<set $PC.boobsBonus++>>
			<</if>>
		<<elseif $PC.boobsBonus == -1>>
			<<if random(1,100) > 80>>
				Your breasts have been really @@.lime;swollen@@ lately with your new pregnancy. Quick measurements show you've gone up nearly two cup sizes. You may want to consider getting a breast reduction.
				<<set $PC.boobsBonus++>>
			<</if>>
		<<elseif $PC.boobsBonus == 1>>
			<<if random(1,100) > 75>>
				Your already large breasts have @@.lime;grown even larger@@ with your new pregnancy. Quick measurements show you've gone up another cup size or so over the course of your pregnancy.
				<<set $PC.boobsBonus++>>
			<</if>>
		<<elseif $PC.boobsBonus == 2>>
			<<if random(1,100) > 90>>
				Your already huge breasts have @@.lime;grown even more enormous@@ with your new pregnancy. Quick measurements show you've gone up yet another a cup size over the course of your pregnancy.
				<<set $PC.boobsBonus++>>
			<</if>>
		<</if>>
	<</if>>
<</if>>