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

	<!-- Base Leather -->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[@Name="LeatherBase"]/statBases</xpath>
		<value>
			<Bulk>0.05</Bulk>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[@Name="LeatherBase" or defName="Leather_Fox" or defName="Leather_Lizard"]/statBases/StuffPower_Armor_Sharp</xpath>
		<value>
			<StuffPower_Armor_Sharp>0.05</StuffPower_Armor_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[@Name="LeatherBase" or defName="Leather_Fox" or defName="Leather_Lizard"]/statBases/StuffPower_Armor_Blunt</xpath>
		<value>
			<StuffPower_Armor_Blunt>0.04</StuffPower_Armor_Blunt>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[@Name="LeatherBase"]/statBases/StuffPower_Armor_Heat</xpath>
		<value>
			<StuffPower_Armor_Heat>0.014</StuffPower_Armor_Heat>
		</value>
	</Operation>

	<!-- Lightleather -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Leather_Light" or defName="Leather_Bird" or defName="Leather_Chinchilla" or defName="Leather_Pig" or defName="Leather_GuineaPig" or defName="Leather_Human"]/statBases/StuffPower_Armor_Sharp</xpath>
		<value>
			<StuffPower_Armor_Sharp>0.03</StuffPower_Armor_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Leather_Light" or defName="Leather_Bird" or defName="Leather_Chinchilla" or defName="Leather_Pig" or defName="Leather_GuineaPig" or defName="Leather_Human"]/statBases/StuffPower_Armor_Blunt</xpath>
		<value>
			<StuffPower_Armor_Blunt>0.024</StuffPower_Armor_Blunt>
		</value>
	</Operation>

	<!-- Wolf and Panthera leather -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Leather_Wolf" or defName="Leather_Panthera"]/statBases/StuffPower_Armor_Sharp</xpath>
		<value>
			<StuffPower_Armor_Sharp>0.07</StuffPower_Armor_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Leather_Wolf" or defName="Leather_Panthera"]/statBases</xpath>
		<value>
			<StuffPower_Armor_Blunt>0.056</StuffPower_Armor_Blunt>
		</value>
	</Operation>

	<!-- Heavy Fur -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Leather_Bear" or defName="Leather_Elephant"]/statBases/StuffPower_Armor_Sharp</xpath>
		<value>
			<StuffPower_Armor_Sharp>0.08</StuffPower_Armor_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Leather_Bear" or defName="Leather_Elephant"]/statBases</xpath>
		<value>
			<StuffPower_Armor_Blunt>0.064</StuffPower_Armor_Blunt>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Leather_Heavy" or defName="Leather_Rhinoceros"]/statBases/StuffPower_Armor_Sharp</xpath>
		<value>
			<StuffPower_Armor_Sharp>0.09</StuffPower_Armor_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Leather_Heavy" or defName="Leather_Rhinoceros"]/statBases</xpath>
		<value>
			<StuffPower_Armor_Blunt>0.064</StuffPower_Armor_Blunt>
		</value>
	</Operation>

	<!-- Thrumbofur -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Leather_Thrumbo"]/statBases/StuffPower_Armor_Sharp</xpath>
		<value>
			<StuffPower_Armor_Sharp>0.75</StuffPower_Armor_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Leather_Thrumbo"]/statBases/StuffPower_Armor_Blunt</xpath>
		<value>
			<StuffPower_Armor_Blunt>0.1</StuffPower_Armor_Blunt>
		</value>
	</Operation>

	<Operation Class="PatchOperationConditional">
		<xpath>Defs/ThingDef[defName="Leather_Thrumbo"]/stuffProps/categories</xpath>
		<nomatch Class="PatchOperationAdd">
			<xpath>Defs/ThingDef[defName="Leather_Thrumbo"]/stuffProps</xpath>
			<value>
				<categories>
					<li>SoftArmor</li>
				</categories>
			</value>
		</nomatch>
		<match Class="PatchOperationAdd">
			<xpath>Defs/ThingDef[defName="Leather_Thrumbo"]/stuffProps/categories</xpath>
			<value>
				<li>SoftArmor</li>
			</value>
		</match>
	</Operation>

	<!-- Patchleather -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Leather_Patch"]/statBases/StuffPower_Armor_Sharp</xpath>
		<value>
			<StuffPower_Armor_Sharp>0.02</StuffPower_Armor_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Leather_Patch"]/statBases/StuffPower_Armor_Blunt</xpath>
		<value>
			<StuffPower_Armor_Blunt>0.016</StuffPower_Armor_Blunt>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Leather_Patch"]/statBases/StuffPower_Armor_Heat</xpath>
		<value>
			<StuffPower_Armor_Heat>0.006</StuffPower_Armor_Heat>
		</value>
	</Operation>

</Patch>