<?xml version="1.0" encoding="utf-8" ?>

<Defs>
	<!-- From core -->
	<RecipeDef Abstract="True" Name="RJW_SurgeryFlesh" ParentName="SurgeryFlesh">
		<dontShowIfAnyIngredientMissing>true</dontShowIfAnyIngredientMissing>
		<recipeUsers>
			<li>Human</li>
		</recipeUsers>
	</RecipeDef>

	<RecipeDef Abstract="True" Name="SexReassignmentV" ParentName="RJW_SurgeryFlesh">
		<description>Installs a vagina, replaces other bodyparts if present.</description>
		<workerClass>rjw.Recipe_InstallGenitals</workerClass>
		<jobString>Installing vagina.</jobString>
		<workAmount>2000</workAmount>
		<skillRequirements>
			<Medicine>10</Medicine>
		</skillRequirements>
		<appliedOnFixedBodyParts>
			<li>Genitals</li>
		</appliedOnFixedBodyParts>
	</RecipeDef>

	<!--this one not used, but left for mods that are not updated-->
	<RecipeDef Abstract="True" Name="SexReassignment" ParentName="RJW_SurgeryFlesh">
		<description>Install genital part.</description>
		<workerClass>rjw.Recipe_InstallGenitals</workerClass>
		<workAmount>1200</workAmount>
		<skillRequirements>
			<Medicine>10</Medicine>
		</skillRequirements>
		<appliedOnFixedBodyParts>
			<li>Genitals</li>
		</appliedOnFixedBodyParts>
	</RecipeDef>

	<RecipeDef Abstract="True" Name="SexReassignmentP" ParentName="RJW_SurgeryFlesh">
		<description>Attaches a penis, replaces other bodyparts if present.</description>
		<workerClass>rjw.Recipe_InstallGenitals</workerClass>
		<jobString>Attaching penis.</jobString>
		<workAmount>1200</workAmount>
		<skillRequirements>
			<Medicine>10</Medicine>
		</skillRequirements>
		<appliedOnFixedBodyParts>
			<li>Genitals</li>
		</appliedOnFixedBodyParts>
	</RecipeDef>

	<RecipeDef Abstract="True" Name="BreastSurgery" ParentName="RJW_SurgeryFlesh">
		<description>Attaches a pair of breasts, replaces other bodyparts if present.</description>
		<workerClass>rjw.Recipe_InstallBreasts</workerClass>
		<jobString>Attaching a pair of breasts.</jobString>
		<workAmount>1200</workAmount>
		<skillRequirements>
			<Medicine>8</Medicine>
		</skillRequirements>
		<appliedOnFixedBodyParts>
			<li>Chest</li>
		</appliedOnFixedBodyParts>
	</RecipeDef>

	<RecipeDef Abstract="True" Name="AnalSurgery" ParentName="RJW_SurgeryFlesh">
		<description>Installs an anus, replaces other bodyparts if present.</description>
		<workerClass>rjw.Recipe_InstallAnus</workerClass>
		<jobString>Installing an anus.</jobString>
		<workAmount>1200</workAmount>
		<skillRequirements>
			<Medicine>10</Medicine>
		</skillRequirements>
		<appliedOnFixedBodyParts>
			<li>Anus</li>
		</appliedOnFixedBodyParts>
	</RecipeDef>

	<!-- Attach natural privates -->

	<RecipeDef ParentName="SexReassignmentP">
		<defName>AttachPenis</defName>
		<label>attach penis</label>
		<ingredients>
			<li>
				<filter>
					<categories>
						<li>Medicine</li>
					</categories>
				</filter>
				<count>1</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>Penis</li>
					</thingDefs>
				</filter>
				<count>1</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<categories>
				<li>Medicine</li>
			</categories>
			<thingDefs>
				<li>Penis</li>
			</thingDefs>
		</fixedIngredientFilter>
		<addsHediff>Penis</addsHediff>
	</RecipeDef>

	<RecipeDef ParentName="SexReassignmentV">
		<defName>InstallVagina</defName>
		<label>install vagina</label>
		<ingredients>
			<li>
				<filter>
					<categories>
						<li>Medicine</li>
					</categories>
				</filter>
				<count>1</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>Vagina</li>
					</thingDefs>
				</filter>
				<count>1</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<categories>
				<li>Medicine</li>
			</categories>
			<thingDefs>
				<li>Vagina</li>
			</thingDefs>
		</fixedIngredientFilter>
		<addsHediff>Vagina</addsHediff>
	</RecipeDef>

	<RecipeDef ParentName="SexReassignmentV">
		<defName>InstallCatVagina</defName>
		<label>install feline vagina</label>
		<ingredients>
			<li>
				<filter>
					<categories>
						<li>Medicine</li>
					</categories>
				</filter>
				<count>1</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>CatVagina</li>
					</thingDefs>
				</filter>
				<count>1</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<categories>
				<li>Medicine</li>
			</categories>
			<thingDefs>
				<li>CatVagina</li>
			</thingDefs>
		</fixedIngredientFilter>
		<addsHediff>CatVagina</addsHediff>
	</RecipeDef>

	<RecipeDef ParentName="SexReassignmentV">
		<defName>InstallDogVagina</defName>
		<label>install canine vagina</label>
		<ingredients>
			<li>
				<filter>
					<categories>
						<li>Medicine</li>
					</categories>
				</filter>
				<count>1</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>DogVagina</li>
					</thingDefs>
				</filter>
				<count>1</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<categories>
				<li>Medicine</li>
			</categories>
			<thingDefs>
				<li>DogVagina</li>
			</thingDefs>
		</fixedIngredientFilter>
		<addsHediff>DogVagina</addsHediff>
	</RecipeDef>

	<RecipeDef ParentName="SexReassignmentV">
		<defName>InstallHorseVagina</defName>
		<label>install equine vagina</label>
		<ingredients>
			<li>
				<filter>
					<categories>
						<li>Medicine</li>
					</categories>
				</filter>
				<count>1</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>HorseVagina</li>
					</thingDefs>
				</filter>
				<count>1</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<categories>
				<li>Medicine</li>
			</categories>
			<thingDefs>
				<li>HorseVagina</li>
			</thingDefs>
		</fixedIngredientFilter>
		<addsHediff>HorseVagina</addsHediff>
	</RecipeDef>

	<RecipeDef ParentName="SexReassignmentV">
		<defName>InstallDragonVagina</defName>
		<label>install dragon vagina</label>
		<ingredients>
			<li>
				<filter>
					<categories>
						<li>Medicine</li>
					</categories>
				</filter>
				<count>1</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>DragonVagina</li>
					</thingDefs>
				</filter>
				<count>1</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<categories>
				<li>Medicine</li>
			</categories>
			<thingDefs>
				<li>DragonVagina</li>
			</thingDefs>
		</fixedIngredientFilter>
		<addsHediff>DragonVagina</addsHediff>
	</RecipeDef>

	<RecipeDef ParentName="SexReassignmentV">
		<defName>InstallNarrowVagina</defName>
		<label>install narrow vagina</label>
		<ingredients>
			<li>
				<filter>
					<categories>
						<li>Medicine</li>
					</categories>
				</filter>
				<count>1</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>NarrowVagina</li>
					</thingDefs>
				</filter>
				<count>1</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<categories>
				<li>Medicine</li>
			</categories>
			<thingDefs>
				<li>NarrowVagina</li>
			</thingDefs>
		</fixedIngredientFilter>
		<addsHediff>NarrowVagina</addsHediff>
	</RecipeDef>

	<RecipeDef ParentName="SexReassignmentV">
		<defName>InstallCloacalVagina</defName>
		<label>install cloacal vagina</label>
		<ingredients>
			<li>
				<filter>
					<categories>
						<li>Medicine</li>
					</categories>
				</filter>
				<count>1</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>CloacalVagina</li>
					</thingDefs>
				</filter>
				<count>1</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<categories>
				<li>Medicine</li>
			</categories>
			<thingDefs>
				<li>CloacalVagina</li>
			</thingDefs>
		</fixedIngredientFilter>
		<addsHediff>CloacalVagina</addsHediff>
	</RecipeDef>

	<RecipeDef ParentName="SexReassignmentV">
		<defName>InstallRodentVagina</defName>
		<label>install rodent vagina</label>
		<ingredients>
			<li>
				<filter>
					<categories>
						<li>Medicine</li>
					</categories>
				</filter>
				<count>1</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>RodentVagina</li>
					</thingDefs>
				</filter>
				<count>1</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<categories>
				<li>Medicine</li>
			</categories>
			<thingDefs>
				<li>RodentVagina</li>
			</thingDefs>
		</fixedIngredientFilter>
		<addsHediff>RodentVagina</addsHediff>
	</RecipeDef>

	<RecipeDef ParentName="SexReassignmentV">
		<defName>InstallOvipositorF</defName>
		<label>install female Ovipositor</label>
		<description>Installs a female Ovipositor.</description>
		<jobString>Installing female Ovipositor.</jobString>
		<ingredients>
			<li>
				<filter>
					<categories>
						<li>Medicine</li>
					</categories>
				</filter>
				<count>1</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>OvipositorF</li>
					</thingDefs>
				</filter>
				<count>1</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<categories>
				<li>Medicine</li>
			</categories>
			<thingDefs>
				<li>OvipositorF</li>
			</thingDefs>
		</fixedIngredientFilter>
		<addsHediff>OvipositorF</addsHediff>
	</RecipeDef>

	<RecipeDef ParentName="SexReassignmentP">
		<defName>AttachHorsePenis</defName>
		<label>attach equine penis</label>
		<ingredients>
			<li>
				<filter>
					<categories>
						<li>Medicine</li>
					</categories>
				</filter>
				<count>1</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>HorsePenis</li>
					</thingDefs>
				</filter>
				<count>1</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<categories>
				<li>Medicine</li>
			</categories>
			<thingDefs>
				<li>HorsePenis</li>
			</thingDefs>
		</fixedIngredientFilter>
		<addsHediff>HorsePenis</addsHediff>
	</RecipeDef>

	<RecipeDef ParentName="SexReassignmentP">
		<defName>AttachRaccoonPenis</defName>
		<label>attach procyonine penis</label>
		<ingredients>
			<li>
				<filter>
					<categories>
						<li>Medicine</li>
					</categories>
				</filter>
				<count>1</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>RaccoonPenis</li>
					</thingDefs>
				</filter>
				<count>1</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<categories>
				<li>Medicine</li>
			</categories>
			<thingDefs>
				<li>RaccoonPenis</li>
			</thingDefs>
		</fixedIngredientFilter>
		<addsHediff>RaccoonPenis</addsHediff>
	</RecipeDef>

	<RecipeDef ParentName="SexReassignmentP">
		<defName>AttachCatPenis</defName>
		<label>attach feline penis</label>
		<ingredients>
			<li>
				<filter>
					<categories>
						<li>Medicine</li>
					</categories>
				</filter>
				<count>1</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>CatPenis</li>
					</thingDefs>
				</filter>
				<count>1</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<categories>
				<li>Medicine</li>
			</categories>
			<thingDefs>
				<li>CatPenis</li>
			</thingDefs>
		</fixedIngredientFilter>
		<addsHediff>CatPenis</addsHediff>
	</RecipeDef>

	<RecipeDef ParentName="SexReassignmentP">
		<defName>AttachDogPenis</defName>
		<label>attach canine penis</label>
		<ingredients>
			<li>
				<filter>
					<categories>
						<li>Medicine</li>
					</categories>
				</filter>
				<count>1</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>DogPenis</li>
					</thingDefs>
				</filter>
				<count>1</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<categories>
				<li>Medicine</li>
			</categories>
			<thingDefs>
				<li>DogPenis</li>
			</thingDefs>
		</fixedIngredientFilter>
		<addsHediff>DogPenis</addsHediff>
	</RecipeDef>

	<RecipeDef ParentName="SexReassignmentP">
		<defName>AttachDragonPenis</defName>
		<label>attach dragon penis</label>
		<ingredients>
			<li>
				<filter>
					<categories>
						<li>Medicine</li>
					</categories>
				</filter>
				<count>1</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>DragonPenis</li>
					</thingDefs>
				</filter>
				<count>1</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<categories>
				<li>Medicine</li>
			</categories>
			<thingDefs>
				<li>DragonPenis</li>
			</thingDefs>
		</fixedIngredientFilter>
		<addsHediff>DragonPenis</addsHediff>
	</RecipeDef>

	<RecipeDef ParentName="SexReassignmentP">
		<defName>AttachHemiPenis</defName>
		<label>attach hemipenis</label>
		<description>Attaches a dual-shafted hemipenis.</description>
		<jobString>Attaching hemipenes.</jobString>
		<ingredients>
			<li>
				<filter>
					<categories>
						<li>Medicine</li>
					</categories>
				</filter>
				<count>1</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>HemiPenis</li>
					</thingDefs>
				</filter>
				<count>1</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<categories>
				<li>Medicine</li>
			</categories>
			<thingDefs>
				<li>HemiPenis</li>
			</thingDefs>
		</fixedIngredientFilter>
		<addsHediff>HemiPenis</addsHediff>
	</RecipeDef>

	<RecipeDef ParentName="SexReassignmentP">
		<defName>AttachCrocodilianPenis</defName>
		<label>attach crocodilian penis</label>
		<ingredients>
			<li>
				<filter>
					<categories>
						<li>Medicine</li>
					</categories>
				</filter>
				<count>1</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>CrocodilianPenis</li>
					</thingDefs>
				</filter>
				<count>1</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<categories>
				<li>Medicine</li>
			</categories>
			<thingDefs>
				<li>CrocodilianPenis</li>
			</thingDefs>
		</fixedIngredientFilter>
		<addsHediff>CrocodilianPenis</addsHediff>
	</RecipeDef>

	<RecipeDef ParentName="SexReassignmentP">
		<defName>AttachNeedlePenis</defName>
		<label>attach needle penis</label>
		<ingredients>
			<li>
				<filter>
					<categories>
						<li>Medicine</li>
					</categories>
				</filter>
				<count>1</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>NeedlePenis</li>
					</thingDefs>
				</filter>
				<count>1</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<categories>
				<li>Medicine</li>
			</categories>
			<thingDefs>
				<li>NeedlePenis</li>
			</thingDefs>
		</fixedIngredientFilter>
		<addsHediff>NeedlePenis</addsHediff>
	</RecipeDef>

	<RecipeDef ParentName="SexReassignmentP">
		<defName>AttachCloacalPenis</defName>
		<label>attach cloacal penis</label>
		<ingredients>
			<li>
				<filter>
					<categories>
						<li>Medicine</li>
					</categories>
				</filter>
				<count>1</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>CloacalPenis</li>
					</thingDefs>
				</filter>
				<count>1</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<categories>
				<li>Medicine</li>
			</categories>
			<thingDefs>
				<li>CloacalPenis</li>
			</thingDefs>
		</fixedIngredientFilter>
		<addsHediff>CloacalPenis</addsHediff>
	</RecipeDef>

	<RecipeDef ParentName="SexReassignmentP">
		<defName>AttachRodentPenis</defName>
		<label>attach rodent penis</label>
		<ingredients>
			<li>
				<filter>
					<categories>
						<li>Medicine</li>
					</categories>
				</filter>
				<count>1</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>RodentPenis</li>
					</thingDefs>
				</filter>
				<count>1</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<categories>
				<li>Medicine</li>
			</categories>
			<thingDefs>
				<li>RodentPenis</li>
			</thingDefs>
		</fixedIngredientFilter>
		<addsHediff>RodentPenis</addsHediff>
	</RecipeDef>

	<RecipeDef ParentName="SexReassignmentP">
		<defName>AttachOvipositorM</defName>
		<label>attach male Ovipositor</label>
		<description>Attaches a male Ovipositor, replaces other bodyparts if present.</description>
		<jobString>Attaching male Ovipositor.</jobString>
		<ingredients>
			<li>
				<filter>
					<categories>
						<li>Medicine</li>
					</categories>
				</filter>
				<count>1</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>OvipositorM</li>
					</thingDefs>
				</filter>
				<count>1</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<categories>
				<li>Medicine</li>
			</categories>
			<thingDefs>
				<li>OvipositorM</li>
			</thingDefs>
		</fixedIngredientFilter>
		<addsHediff>OvipositorM</addsHediff>
	</RecipeDef>

	<!-- Breasts -->
	<RecipeDef ParentName="BreastSurgery">
		<defName>AttachBreasts</defName>
		<label>attach breasts</label>
		<ingredients>
			<li>
				<filter>
					<categories>
						<li>Medicine</li>
					</categories>
				</filter>
				<count>1</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>Breasts</li>
					</thingDefs>
				</filter>
				<count>1</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<categories>
				<li>Medicine</li>
			</categories>
			<thingDefs>
				<li>Breasts</li>
			</thingDefs>
		</fixedIngredientFilter>
		<addsHediff>Breasts</addsHediff>
	</RecipeDef>

	<RecipeDef ParentName="BreastSurgery">
		<defName>AttachUdderBreasts</defName>
		<label>attach udder</label>
		<description>Attaches a cowlike udder.</description>
		<workerClass>rjw.Recipe_AddSinglePart</workerClass>
		<jobString>Attaching udder.</jobString>
		<ingredients>
			<li>
				<filter>
					<categories>
						<li>Medicine</li>
					</categories>
				</filter>
				<count>1</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>UdderBreasts</li>
					</thingDefs>
				</filter>
				<count>1</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<categories>
				<li>Medicine</li>
			</categories>
			<thingDefs>
				<li>UdderBreasts</li>
			</thingDefs>
		</fixedIngredientFilter>
		<addsHediff>UdderBreasts</addsHediff>
		<appliedOnFixedBodyParts Inherit="false">
			<li>Flank</li>
		</appliedOnFixedBodyParts>
	</RecipeDef>
	
	<RecipeDef ParentName="BreastSurgery">
		<defName>AttachFeaturelesschest</defName>
		<label>attach featureless chest</label>
		<description>Attaches a smooth, non-mammalian chest, replaces other bodyparts if present.</description>
		<jobString>Attaching featureless chest.</jobString>
		<ingredients>
			<li>
				<filter>
					<categories>
						<li>Medicine</li>
					</categories>
				</filter>
				<count>1</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>FeaturelessChest</li>
					</thingDefs>
				</filter>
				<count>1</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<categories>
				<li>Medicine</li>
			</categories>
			<thingDefs>
				<li>FeaturelessChest</li>
			</thingDefs>
		</fixedIngredientFilter>
		<addsHediff>FeaturelessChest</addsHediff>
	</RecipeDef>

	<RecipeDef ParentName="AnalSurgery">
		<defName>InstallAnus</defName>
		<label>install average anus</label>
		<ingredients>
			<li>
				<filter>
					<categories>
						<li>Medicine</li>
					</categories>
				</filter>
				<count>1</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>Anus</li>
					</thingDefs>
				</filter>
				<count>1</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<categories>
				<li>Medicine</li>
			</categories>
			<thingDefs>
				<li>Anus</li>
			</thingDefs>
		</fixedIngredientFilter>
		<addsHediff>Anus</addsHediff>
	</RecipeDef>

	<RecipeDef ParentName="AnalSurgery">
		<defName>InstallCloacalAnus</defName>
		<label>install cloacal anus</label>
		<ingredients>
			<li>
				<filter>
					<categories>
						<li>Medicine</li>
					</categories>
				</filter>
				<count>1</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>CloacalAnus</li>
					</thingDefs>
				</filter>
				<count>1</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<categories>
				<li>Medicine</li>
			</categories>
			<thingDefs>
				<li>CloacalAnus</li>
			</thingDefs>
		</fixedIngredientFilter>
		<addsHediff>CloacalAnus</addsHediff>
	</RecipeDef>

	<RecipeDef ParentName="AnalSurgery">
		<defName>InstallInsectAnus</defName>
		<label>install Insect anus</label>
		<description>Installs a Insect anus, replaces other bodyparts if present.</description>
		<jobString>Installing Insect anus.</jobString>
		<ingredients>
			<li>
				<filter>
					<categories>
						<li>Medicine</li>
					</categories>
				</filter>
				<count>1</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>InsectAnus</li>
					</thingDefs>
				</filter>
				<count>1</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<categories>
				<li>Medicine</li>
			</categories>
			<thingDefs>
				<li>InsectAnus</li>
			</thingDefs>
		</fixedIngredientFilter>
		<addsHediff>InsectAnus</addsHediff>
	</RecipeDef>

	<!-- Attach simple prosthetic privates -->

	<RecipeDef ParentName="SexReassignmentP">
		<defName>InstallHydraulicPenis</defName>
		<label>install hydraulic penis</label>
		<description>Installs a hydraulic penis, replaces other bodyparts if present.</description>
		<jobString>Installing hydraulic penis.</jobString>
		<workAmount>1500</workAmount>
		<skillRequirements>
			<Medicine>7</Medicine>
		</skillRequirements>
		<ingredients>
			<li>
				<filter>
					<categories>
						<li>Medicine</li>
					</categories>
				</filter>
				<count>1</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>HydraulicPenis</li>
					</thingDefs>
				</filter>
				<count>1</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<categories>
				<li>Medicine</li>
			</categories>
			<thingDefs>
				<li>HydraulicPenis</li>
			</thingDefs>
		</fixedIngredientFilter>
		<addsHediff>HydraulicPenis</addsHediff>
	</RecipeDef>

	<RecipeDef ParentName="SexReassignmentV">
		<defName>InstallHydraulicVagina</defName>
		<label>install hydraulic vagina</label>
		<description>Installs a hydraulic vagina, replaces other bodyparts if present.</description>
		<jobString>Installing hydraulic vagina.</jobString>
		<workAmount>1500</workAmount>
		<skillRequirements>
			<Medicine>7</Medicine>
		</skillRequirements>
		<ingredients>
			<li>
				<filter>
					<categories>
						<li>Medicine</li>
					</categories>
				</filter>
				<count>1</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>HydraulicVagina</li>
					</thingDefs>
				</filter>
				<count>1</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<categories>
				<li>Medicine</li>
			</categories>
			<thingDefs>
				<li>HydraulicVagina</li>
			</thingDefs>
		</fixedIngredientFilter>
		<addsHediff>HydraulicVagina</addsHediff>
	</RecipeDef>

	<RecipeDef ParentName="BreastSurgery">
		<defName>InstallHydraulicBreasts</defName>
		<label>install hydraulic breasts</label>
		<description>Installs a pair of hydraulic breasts, replaces other bodyparts if present.</description>
		<jobString>Installing hydraulic breasts.</jobString>
		<workAmount>1500</workAmount>
		<skillRequirements>
			<Medicine>7</Medicine>
		</skillRequirements>
		<ingredients>
			<li>
				<filter>
					<categories>
						<li>Medicine</li>
					</categories>
				</filter>
				<count>1</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>HydraulicBreasts</li>
					</thingDefs>
				</filter>
				<count>1</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<categories>
				<li>Medicine</li>
			</categories>
			<thingDefs>
				<li>HydraulicBreasts</li>
			</thingDefs>
		</fixedIngredientFilter>
		<addsHediff>HydraulicBreasts</addsHediff>
	</RecipeDef>

	<RecipeDef ParentName="AnalSurgery">
		<defName>InstallHydraulicAnus</defName>
		<label>install hydraulic anus</label>
		<description>Installs a hydraulic anus, replaces other bodyparts if present.</description>
		<jobString>Installing hydraulic anus.</jobString>
		<workAmount>1500</workAmount>
		<skillRequirements>
			<Medicine>7</Medicine>
		</skillRequirements>
		<ingredients>
			<li>
				<filter>
					<categories>
						<li>Medicine</li>
					</categories>
				</filter>
				<count>1</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>HydraulicAnus</li>
					</thingDefs>
				</filter>
				<count>1</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<categories>
				<li>Medicine</li>
			</categories>
			<thingDefs>
				<li>HydraulicAnus</li>
			</thingDefs>
		</fixedIngredientFilter>
		<addsHediff>HydraulicAnus</addsHediff>
	</RecipeDef>

	<RecipeDef ParentName="SexReassignmentP">
		<defName>AttachPegDick</defName>
		<label>attach peg dick</label>
		<description>Attaches a peg dick, replaces other bodyparts if present.</description>
		<jobString>Attaching peg dick.</jobString>
		<workAmount>900</workAmount>
		<skillRequirements>
			<Medicine>2</Medicine>
		</skillRequirements>
		<ingredients>
			<li>
				<filter>
					<categories>
						<li>Medicine</li>
					</categories>
				</filter>
				<count>1</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>PegDick</li>
					</thingDefs>
				</filter>
				<count>1</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<categories>
				<li>Medicine</li>
			</categories>
			<thingDefs>
				<li>PegDick</li>
			</thingDefs>
		</fixedIngredientFilter>
		<addsHediff>PegDick</addsHediff>
	</RecipeDef>

	<!-- Attach bionic privates -->

	<RecipeDef ParentName="SexReassignmentV">
		<defName>InstallBionicVagina</defName>
		<label>install bionic vagina</label>
		<description>Installs a bionic vagina, replaces other bodyparts if present.</description>
		<jobString>Installing bionic vagina.</jobString>
		<workAmount>2000</workAmount>
		<skillRequirements>
			<Medicine>12</Medicine>
		</skillRequirements>
		<ingredients>
			<li>
				<filter>
					<categories>
						<li>Medicine</li>
					</categories>
				</filter>
				<count>1</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>BionicVagina</li>
					</thingDefs>
				</filter>
				<count>1</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<categories>
				<li>Medicine</li>
			</categories>
			<thingDefs>
				<li>BionicVagina</li>
			</thingDefs>
		</fixedIngredientFilter>
		<addsHediff>BionicVagina</addsHediff>
	</RecipeDef>

	<RecipeDef ParentName="SexReassignmentP">
		<defName>InstallBionicPenis</defName>
		<label>install bionic penis</label>
		<description>Attaches a bionic penis, replaces other bodyparts if present.</description>
		<jobString>Attaching bionic penis.</jobString>
		<workAmount>1500</workAmount>
		<skillRequirements>
			<Medicine>12</Medicine>
		</skillRequirements>
		<ingredients>
			<li>
				<filter>
					<categories>
						<li>Medicine</li>
					</categories>
				</filter>
				<count>1</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>BionicPenis</li>
					</thingDefs>
				</filter>
				<count>1</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<categories>
				<li>Medicine</li>
			</categories>
			<thingDefs>
				<li>BionicPenis</li>
			</thingDefs>
		</fixedIngredientFilter>
		<addsHediff>BionicPenis</addsHediff>
	</RecipeDef>

	<RecipeDef ParentName="BreastSurgery">
		<defName>InstallBionicBreasts</defName>
		<label>install bionic breasts</label>
		<description>Installs a pair of bionic breasts, replaces other bodyparts if present.</description>
		<jobString>Installing bionic breasts.</jobString>
		<workAmount>2000</workAmount>
		<skillRequirements>
			<Medicine>14</Medicine>
		</skillRequirements>
		<ingredients>
			<li>
				<filter>
					<categories>
						<li>Medicine</li>
					</categories>
				</filter>
				<count>1</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>BionicBreasts</li>
					</thingDefs>
				</filter>
				<count>1</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<categories>
				<li>Medicine</li>
			</categories>
			<thingDefs>
				<li>BionicBreasts</li>
			</thingDefs>
		</fixedIngredientFilter>
		<addsHediff>BionicBreasts</addsHediff>
	</RecipeDef>

	<RecipeDef ParentName="AnalSurgery">
		<defName>InstallBionicAnus</defName>
		<label>install bionic anus</label>
		<description>Installs a bionic anus, replaces other bodyparts if present.</description>
		<jobString>Installing bionic anus.</jobString>
		<workAmount>2000</workAmount>
		<skillRequirements>
			<Medicine>14</Medicine>
		</skillRequirements>
		<ingredients>
			<li>
				<filter>
					<categories>
						<li>Medicine</li>
					</categories>
				</filter>
				<count>1</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>BionicAnus</li>
					</thingDefs>
				</filter>
				<count>1</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<categories>
				<li>Medicine</li>
			</categories>
			<thingDefs>
				<li>BionicAnus</li>
			</thingDefs>
		</fixedIngredientFilter>
		<addsHediff>BionicAnus</addsHediff>
	</RecipeDef>

	<!-- Attach archotech privates -->

	<RecipeDef ParentName="SexReassignmentP">
		<defName>InstallArchotechPenis</defName>
		<label>install archotech penis</label>
		<description>Attaches a archotech penis, replaces other bodyparts if present.</description>
		<jobString>Attaching archotech penis.</jobString>
		<workAmount>1500</workAmount>
		<skillRequirements>
			<!-- Much lower than other types. Core Archotech is Medine 3, these basically attach themselves. -->
			<Medicine>5</Medicine>
		</skillRequirements>
		<ingredients>
			<li>
				<filter>
					<categories>
						<li>Medicine</li>
					</categories>
				</filter>
				<count>1</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>ArchotechPenis</li>
					</thingDefs>
				</filter>
				<count>1</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<categories>
				<li>Medicine</li>
			</categories>
			<thingDefs>
				<li>ArchotechPenis</li>
			</thingDefs>
		</fixedIngredientFilter>
		<addsHediff>ArchotechPenis</addsHediff>
	</RecipeDef>

	<RecipeDef ParentName="SexReassignmentV">
		<defName>InstallArchotechVagina</defName>
		<label>install archotech vagina</label>
		<description>Installs a archotech vagina, replaces other bodyparts if present.</description>
		<jobString>Installing archotech vagina.</jobString>
		<workAmount>2000</workAmount>
		<skillRequirements>
			<Medicine>5</Medicine>
		</skillRequirements>
		<ingredients>
			<li>
				<filter>
					<categories>
						<li>Medicine</li>
					</categories>
				</filter>
				<count>1</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>ArchotechVagina</li>
					</thingDefs>
				</filter>
				<count>1</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<categories>
				<li>Medicine</li>
			</categories>
			<thingDefs>
				<li>ArchotechVagina</li>
			</thingDefs>
		</fixedIngredientFilter>
		<addsHediff>ArchotechVagina</addsHediff>
	</RecipeDef>

	<RecipeDef ParentName="AnalSurgery">
		<defName>InstallArchotechAnus</defName>
		<label>install archotech anus</label>
		<description>Installs a archotech anus, replaces other bodyparts if present.</description>
		<jobString>Installing archotech anus.</jobString>
		<workAmount>2000</workAmount>
		<skillRequirements>
			<Medicine>5</Medicine>
		</skillRequirements>
		<ingredients>
			<li>
				<filter>
					<categories>
						<li>Medicine</li>
					</categories>
				</filter>
				<count>1</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>ArchotechAnus</li>
					</thingDefs>
				</filter>
				<count>1</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<categories>
				<li>Medicine</li>
			</categories>
			<thingDefs>
				<li>ArchotechAnus</li>
			</thingDefs>
		</fixedIngredientFilter>
		<addsHediff>ArchotechAnus</addsHediff>
	</RecipeDef>

	<RecipeDef ParentName="BreastSurgery">
		<defName>InstallArchotechBreasts</defName>
		<label>install archotech breasts</label>
		<description>Installs a pair of archotech breasts, replaces other bodyparts if present.</description>
		<jobString>Installing archotech breasts.</jobString>
		<workAmount>2000</workAmount>
		<skillRequirements>
			<Medicine>5</Medicine>
		</skillRequirements>
		<ingredients>
			<li>
				<filter>
					<categories>
						<li>Medicine</li>
					</categories>
				</filter>
				<count>1</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>ArchotechBreasts</li>
					</thingDefs>
				</filter>
				<count>1</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<categories>
				<li>Medicine</li>
			</categories>
			<thingDefs>
				<li>ArchotechBreasts</li>
			</thingDefs>
		</fixedIngredientFilter>
		<addsHediff>ArchotechBreasts</addsHediff>
	</RecipeDef>
</Defs>