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

	<!-- ===== Light Magical Leather ===== -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="MM_LightMagicalLeather"]/statBases/StuffPower_Armor_Sharp</xpath>
		<value>
			<StuffPower_Armor_Sharp>0.45</StuffPower_Armor_Sharp>
			<StuffPower_Armor_Blunt>0.05</StuffPower_Armor_Blunt>
		</value>
	</Operation>

	<!-- ===== Heavy Magical Leather ===== -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="MM_HeavyMagicalLeather"]/statBases/StuffPower_Armor_Sharp</xpath>
		<value>
			<StuffPower_Armor_Sharp>0.65</StuffPower_Armor_Sharp>
		</value>
	</Operation>

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

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

</Patch>