<?xml version="1.0" encoding="utf-8" ?>
<Patch>

	<!-- Patch AKT_LewdClothes for S16-->
	<Operation Class="PatchOperationFindMod">
		<mods>
			<li>RJW AKT LewdClothes</li>
		</mods>
		
    <match Class="PatchOperationSequence">
			<operations>
				<!-- Patch AKT Bikini top -->
				<li Class="PatchOperationAdd">
					<xpath>Defs/ThingDef[defName="AKTBikini"]</xpath>
					<value>
						<comps>
							<li Class="s16_extension.CompProperties_HediffApparel">
								<hediffDef>S16_DressIIHed</hediffDef>
								<partsToAffect>
									<li>Torso</li>
								</partsToAffect>
							</li>
						</comps>
					</value>	
				</li>
				<li Class="PatchOperationReplace">
					<xpath>Defs/ThingDef[defName="AKTBikini"]/apparel/layers</xpath>
					<value>
						<layers>
							<li>S16_OnSkin</li>
						</layers>
					</value>	
				</li>
				
				<li Class="PatchOperationAdd">
					<xpath>Defs/ThingDef[defName="AKTBikiniFur"]</xpath>
					<value>
						<comps>
							<li Class="s16_extension.CompProperties_HediffApparel">
								<hediffDef>S16_DressIIHed</hediffDef>
								<partsToAffect>
									<li>Torso</li>
								</partsToAffect>
							</li>
						</comps>
					</value>	
				</li>
				<li Class="PatchOperationReplace">
					<xpath>Defs/ThingDef[defName="AKTBikiniFur"]/apparel/layers</xpath>
					<value>
						<layers>
							<li>S16_OnSkin</li>
						</layers>
					</value>	
				</li>
				
				<li Class="PatchOperationAdd">
					<xpath>Defs/ThingDef[defName="AKTBikiniArmour"]</xpath>
					<value>
						<comps>
							<li Class="s16_extension.CompProperties_HediffApparel">
								<hediffDef>S16_ArmorIHed</hediffDef>
								<partsToAffect>
									<li>Torso</li>
								</partsToAffect>
							</li>
						</comps>
					</value>	
				</li>
				<li Class="PatchOperationReplace">
					<xpath>Defs/ThingDef[defName="AKTBikiniArmour"]/apparel/layers</xpath>
					<value>
						<layers>
							<li>S16_OnSkin</li>
						</layers>
					</value>	
				</li>
				
				<!-- Patch AKT Bikini bottom -->
				<li Class="PatchOperationAdd">
					<xpath>Defs/ThingDef[defName="AKTBikiniB"]</xpath>
					<value>
						<comps>
							<li Class="s16_extension.CompProperties_HediffApparel">
								<hediffDef>S16PantiesIHed</hediffDef>
								<partsToAffect>
									<li>Genitals</li>
								</partsToAffect>
							</li>
						</comps>
					</value>	
				</li>
				<li Class="PatchOperationReplace">
					<xpath>Defs/ThingDef[defName="AKTBikiniB"]/apparel/layers</xpath>
					<value>
						<layers>
							<li>S16_Underwear</li>
						</layers>
					</value>	
				</li>
				
				<li Class="PatchOperationAdd">
					<xpath>Defs/ThingDef[defName="AKTBikiniFurB"]</xpath>
					<value>
						<comps>
							<li Class="s16_extension.CompProperties_HediffApparel">
								<hediffDef>S16PantiesIHed</hediffDef>
								<partsToAffect>
									<li>Genitals</li>
								</partsToAffect>
							</li>
						</comps>
					</value>	
				</li>
				<li Class="PatchOperationReplace">
					<xpath>Defs/ThingDef[defName="AKTBikiniFurB"]/apparel/layers</xpath>
					<value>
						<layers>
							<li>S16_Underwear</li>
						</layers>
					</value>	
				</li>
				
				<li Class="PatchOperationAdd">
					<xpath>Defs/ThingDef[defName="AKTBikiniArmourB"]</xpath>
					<value>
						<comps>
							<li Class="s16_extension.CompProperties_HediffApparel">
								<hediffDef>S16PantiesIHed</hediffDef>
								<partsToAffect>
									<li>Genitals</li>
								</partsToAffect>
							</li>
						</comps>
					</value>	
				</li>
				<li Class="PatchOperationReplace">
					<xpath>Defs/ThingDef[defName="AKTBikiniArmourB"]/apparel/layers</xpath>
					<value>
						<layers>
							<li>S16_Underwear</li>
						</layers>
					</value>	
				</li>
			
				<!-- Add AKT TailorBench to S16 -->
				<li Class="PatchOperationAdd">
					<xpath>Defs/ThingDef[@Name="S16_Base" or @Name="S16_MetallicBase" or @Name="S16_VibratorBase"]/recipeMaker/recipeUsers</xpath>
					<value>
						<li>AKTBench</li>
					</value>
				</li>
				
				<!-- Add AKT Large TailorBench to S16 if have VFE-Production -->
				<li Class="PatchOperationFindMod">
					<mods>
						<li>Vanilla Furniture Expanded - Production</li>
					</mods>
					
					<match Class="PatchOperationSequence">
						<operations>
							<li Class="PatchOperationAdd">
								<xpath>Defs/ThingDef[defName="AKTBench"]</xpath>
								<value>
									<modExtensions>
										<li Class="RecipeInheritance.ThingDefExtension">
											<inheritRecipesFrom>
												<li>AKTBench</li>
												<li>S16_CraftingSpot</li>
											</inheritRecipesFrom>
										</li>
									</modExtensions>
								</value>
							</li>
							
							<li Class="PatchOperationAdd">
								<xpath>Defs/ThingDef[@Name="S16_Base" or @Name="S16_MetallicBase" or @Name="S16_VibratorBase"]/recipeMaker/recipeUsers</xpath>
								<value>
									<li>AKTBenchLarge</li>
								</value>
							</li>
							
							<li Class="PatchOperationAdd">
								<xpath>Defs/ThingDef[defName="AKTBenchLarge"]/modExtensions/li[@Class="RecipeInheritance.ThingDefExtension"]/inheritRecipesFrom</xpath>
								<value>
									<li>S16_CraftingSpot</li>
								</value>
							</li>
						</operations>
					</match>
				</li>
			</operations>
		</match>
	</Operation>
	
 </Patch>