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

	<!-- Barb Leather Coat -->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarian_BarbLeatherCoat"]/statBases</xpath>
		<value>
			<Bulk>18</Bulk>
			<WornBulk>4</WornBulk>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarian_BarbLeatherCoat"]/statBases/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>1.2</ArmorRating_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarian_BarbLeatherCoat"]/statBases/ArmorRating_Blunt</xpath>
		<value>
			<ArmorRating_Blunt>0.8</ArmorRating_Blunt>
		</value>
	</Operation>

	<Operation Class="PatchOperationRemove">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarian_BarbLeatherCoat"]/equippedStatOffsets/MoveSpeed</xpath>
	</Operation>

	<!-- Barb Leather Coat II -->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarian_BarbLeatherCoatII"]/statBases</xpath>
		<value>
			<Bulk>18</Bulk>
			<WornBulk>4</WornBulk>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarian_BarbLeatherCoatII"]/statBases/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>1.26</ArmorRating_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarian_BarbLeatherCoatII"]/statBases/ArmorRating_Blunt</xpath>
		<value>
			<ArmorRating_Blunt>0.84</ArmorRating_Blunt>
		</value>
	</Operation>

	<Operation Class="PatchOperationRemove">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarian_BarbLeatherCoatII"]/equippedStatOffsets/MoveSpeed</xpath>
	</Operation>

	<!-- Barb Mail -->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarian_Mail" or defName="pphhyy_Barbarian_Scale"]/statBases</xpath>
		<value>
			<Bulk>30</Bulk>
			<WornBulk>12</WornBulk>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarian_Mail" or defName="pphhyy_Barbarian_Scale"]/statBases/Mass</xpath>
		<value>
			<Mass>9</Mass>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarian_Mail" or defName="pphhyy_Barbarian_Scale"]/equippedStatOffsets</xpath>
		<value>
			<MeleeDodgeChance>-0.10</MeleeDodgeChance>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarian_Mail" or defName="pphhyy_Barbarian_Scale"]/statBases/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>1.9</ArmorRating_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarian_Mail" or defName="pphhyy_Barbarian_Scale"]/statBases/ArmorRating_Blunt</xpath>
		<value>
			<ArmorRating_Blunt>2.9</ArmorRating_Blunt>
		</value>
	</Operation>

	<Operation Class="PatchOperationRemove">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarian_Mail" or defName="pphhyy_Barbarian_Scale"]/equippedStatOffsets/MoveSpeed</xpath>
	</Operation>

	<!-- Barb Mail II -->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarian_MailII" or defName="pphhyy_Barbarian_ScaleII"]/statBases</xpath>
		<value>
			<Bulk>30</Bulk>
			<WornBulk>12</WornBulk>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarian_MailII" or defName="pphhyy_Barbarian_ScaleII"]/statBases/Mass</xpath>
		<value>
			<Mass>9.5</Mass>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarian_MailII" or defName="pphhyy_Barbarian_ScaleII"]/equippedStatOffsets</xpath>
		<value>
			<MeleeDodgeChance>-0.10</MeleeDodgeChance>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarian_MailII" or defName="pphhyy_Barbarian_ScaleII"]/statBases/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>2.2</ArmorRating_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarian_MailII" or defName="pphhyy_Barbarian_ScaleII"]/statBases/ArmorRating_Blunt</xpath>
		<value>
			<ArmorRating_Blunt>3.3</ArmorRating_Blunt>
		</value>
	</Operation>

	<Operation Class="PatchOperationRemove">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarian_MailII" or defName="pphhyy_Barbarian_ScaleII"]/equippedStatOffsets/MoveSpeed</xpath>
	</Operation>

	<!-- Barb Bone Armor -->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarian_BoneArmor"]/statBases</xpath>
		<value>
			<Bulk>18</Bulk>
			<WornBulk>4</WornBulk>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarian_BoneArmor"]/statBases/Mass</xpath>
		<value>
			<Mass>6</Mass>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarian_BoneArmor"]/statBases/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>1.5</ArmorRating_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarian_BoneArmor"]/statBases/ArmorRating_Blunt</xpath>
		<value>
			<ArmorRating_Blunt>0.9</ArmorRating_Blunt>
		</value>
	</Operation>

	<!-- Barb Bone Armor II -->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarian_BoneArmorII"]/statBases</xpath>
		<value>
			<Bulk>18</Bulk>
			<WornBulk>4.5</WornBulk>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarian_BoneArmorII"]/statBases/Mass</xpath>
		<value>
			<Mass>6.5</Mass>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarian_BoneArmorII"]/statBases/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>1.65</ArmorRating_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarian_BoneArmorII"]/statBases/ArmorRating_Blunt</xpath>
		<value>
			<ArmorRating_Blunt>1.0</ArmorRating_Blunt>
		</value>
	</Operation>

	<!-- Barb Bone Armor III -->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarian_BoneArmorIII"]/statBases</xpath>
		<value>
			<Bulk>18</Bulk>
			<WornBulk>5</WornBulk>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarian_BoneArmorIII"]/statBases/Mass</xpath>
		<value>
			<Mass>7</Mass>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarian_BoneArmorIII"]/statBases/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>1.8</ArmorRating_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarian_BoneArmorIII"]/statBases/ArmorRating_Blunt</xpath>
		<value>
			<ArmorRating_Blunt>1.15</ArmorRating_Blunt>
		</value>
	</Operation>

	<!-- Barb Chosen Mail -->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarian_ChosenMail" or defName="pphhyy_Barbarian_ChosenScale"]/statBases</xpath>
		<value>
			<Bulk>100</Bulk>
			<WornBulk>10</WornBulk>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarian_ChosenMail" or defName="pphhyy_Barbarian_ChosenScale"]/equippedStatOffsets</xpath>
		<value>
			<MeleeDodgeChance>-0.15</MeleeDodgeChance>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarian_ChosenMail" or defName="pphhyy_Barbarian_ChosenScale"]/statBases/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>2.55</ArmorRating_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarian_ChosenMail" or defName="pphhyy_Barbarian_ChosenScale"]/statBases/ArmorRating_Blunt</xpath>
		<value>
			<ArmorRating_Blunt>3.9</ArmorRating_Blunt>
		</value>
	</Operation>

	<Operation Class="PatchOperationRemove">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarian_ChosenMail" or defName="pphhyy_Barbarian_ChosenScale"]/equippedStatOffsets/MoveSpeed</xpath>
	</Operation>

	<!-- Barb Chosen Mail II-->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarian_ChosenMailII" or defName="pphhyy_Barbarian_ChosenScaleII" or defName="pphhyy_Barbarian_WarlordArmor" or defName="pphhyy_Barbarian_WarlordArmorII"]/statBases</xpath>
		<value>
			<Bulk>100</Bulk>
			<WornBulk>12</WornBulk>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarian_ChosenMailII" or defName="pphhyy_Barbarian_ChosenScaleII" or defName="pphhyy_Barbarian_WarlordArmor" or defName="pphhyy_Barbarian_WarlordArmorII"]/equippedStatOffsets</xpath>
		<value>
			<MeleeDodgeChance>-0.15</MeleeDodgeChance>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarian_ChosenMailII" or defName="pphhyy_Barbarian_ChosenScaleII" or defName="pphhyy_Barbarian_WarlordArmor"]/statBases/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>2.7</ArmorRating_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarian_ChosenMailII" or defName="pphhyy_Barbarian_ChosenScaleII" or defName="pphhyy_Barbarian_WarlordArmor"]/statBases/ArmorRating_Blunt</xpath>
		<value>
			<ArmorRating_Blunt>4.1</ArmorRating_Blunt>
		</value>
	</Operation>

	<Operation Class="PatchOperationRemove">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarian_ChosenMailII" or defName="pphhyy_Barbarian_ChosenScaleII" or defName="pphhyy_Barbarian_WarlordArmor" or defName="pphhyy_Barbarian_WarlordArmorII"]/equippedStatOffsets/MoveSpeed</xpath>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarian_WarlordArmorII"]/statBases/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>3.0</ArmorRating_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarian_WarlordArmorII"]/statBases/ArmorRating_Blunt</xpath>
		<value>
			<ArmorRating_Blunt>4.5</ArmorRating_Blunt>
		</value>
	</Operation>

	<!-- Chosen Armors Partial Armor -->

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/ThingDef[
			defName="pphhyy_Barbarian_ChosenMail" or
			defName="pphhyy_Barbarian_ChosenMailII" or
			defName="pphhyy_Barbarian_ChosenScale" or
			defName="pphhyy_Barbarian_ChosenScaleII" or
			defName="pphhyy_Barbarian_WarlordArmor" or
			defName="pphhyy_Barbarian_WarlordArmorII"]
		</xpath>
		<value>
			<li Class="CombatExtended.PartialArmorExt">
				<stats>
					<li>
						<ArmorRating_Sharp>0.70</ArmorRating_Sharp>
						<parts>
							<li>Neck</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Blunt>0.70</ArmorRating_Blunt>
						<parts>
							<li>Neck</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Sharp>0.90</ArmorRating_Sharp>
						<parts>
							<li>Leg</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Blunt>0.90</ArmorRating_Blunt>
						<parts>
							<li>Leg</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Sharp>0.80</ArmorRating_Sharp>
						<parts>
							<li>Arm</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Blunt>0.80</ArmorRating_Blunt>
						<parts>
							<li>Arm</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Sharp>0.60</ArmorRating_Sharp>
						<parts>
							<li>Hand</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Blunt>0.60</ArmorRating_Blunt>
						<parts>
							<li>Hand</li>
						</parts>
					</li>
				</stats>
			</li>
		</value>
	</Operation>

</Patch>