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

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

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

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Denim"]/statBases</xpath>
		<value>
			<Bulk>0.05</Bulk>
		</value>
	</Operation>

	<!--===============  Silk  ====================-->

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

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

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Silk"]/statBases</xpath>
		<value>
			<Bulk>0.05</Bulk>
		</value>
	</Operation>

	<!--===============  Linen  ====================-->

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

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

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Linen"]/statBases</xpath>
		<value>
			<Bulk>0.05</Bulk>
		</value>
	</Operation>

	<!--===============  Furstain. ====================-->

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

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

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Fustian"]/statBases</xpath>
		<value>
			<Bulk>0.05</Bulk>
		</value>
	</Operation>

	<!--===============  Corduroy  ====================-->

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

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

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Corduroy"]/statBases</xpath>
		<value>
			<Bulk>0.05</Bulk>
		</value>
	</Operation>

	<!--===============  Hemp  ====================-->

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

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

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Hemp"]/statBases</xpath>
		<value>
			<Bulk>0.05</Bulk>
		</value>
	</Operation>

	<!--===============  Velvet  ====================-->

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

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

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Velvet"]/statBases</xpath>
		<value>
			<Bulk>0.05</Bulk>
		</value>
	</Operation>

	<!--===============  Kevlar  ====================-->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/RecipeDef[defName="Make_Kevlar"]/ingredients</xpath>
		<value>
			<ingredients>
				<li>
					<filter>
						<thingDefs>
							<li>Synthread</li>
						</thingDefs>
					</filter>
					<count>10</count>
				</li>
				<li>
					<filter>
						<thingDefs>
							<li>DevilstrandCloth</li>
						</thingDefs>
					</filter>
					<count>10</count>
				</li>
			</ingredients>
		</value>
	</Operation>

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

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Kevlar"]/statBases/StuffPower_Armor_Heat</xpath>
		<value>
			<StuffPower_Armor_Heat>0.10</StuffPower_Armor_Heat>
			<StuffPower_Armor_Electric>0.05</StuffPower_Armor_Electric>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Kevlar"]/statBases</xpath>
		<value>
			<Bulk>0.075</Bulk>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/RecipeDef[defName="Make_Sinstrand"]/ingredients</xpath>
		<value>
			<ingredients>
				<li>
					<filter>
						<thingDefs>
							<li>Fustian</li>
						</thingDefs>
					</filter>
					<count>20</count>
				</li>
				<li>
					<filter>
						<thingDefs>
							<li>DevilstrandCloth</li>
						</thingDefs>
					</filter>
					<count>10</count>
				</li>
			</ingredients>
		</value>
	</Operation>

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

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Sinstrand"]/statBases/StuffPower_Armor_Heat</xpath>
		<value>
			<StuffPower_Armor_Heat>0.05</StuffPower_Armor_Heat>
			<StuffPower_Armor_Electric>0.025</StuffPower_Armor_Electric>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Sinstrand"]/statBases</xpath>
		<value>
			<Bulk>0.75</Bulk>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Sinstrand"]/stuffProps/statFactors/Flammability</xpath>
		<value>
			<Flammability>0</Flammability>
		</value>
	</Operation>

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

</Patch>