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

	<!-- Barbarian Bone Helmet -->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarian_BoneHelm" or defName="pphhyy_Barbarian_BoneHelmII" or defName="pphhyy_Barbarian_BoneHelmIII"]/statBases</xpath>
		<value>
			<Bulk>6</Bulk>
			<WornBulk>1</WornBulk>
		</value>
	</Operation>

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

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

	<!-- Barbarian Bone Helmet II -->

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

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

	<!-- Barbarian Bone Helmet III -->

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

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

	<!-- Bear Headdress -->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarian_BearHeaddress" or defName="pphhyy_Barbarian_BearHeaddressII"]/statBases</xpath>
		<value>
			<Bulk>2</Bulk>
			<WornBulk>1</WornBulk>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarian_BearHeaddress" or defName="pphhyy_Barbarian_BearHeaddressII"]/statBases/StuffEffectMultiplierArmor</xpath>
		<value>
			<StuffEffectMultiplierArmor>7</StuffEffectMultiplierArmor>
		</value>
	</Operation>

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

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

	<!-- Barbarian Headband -->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarian_HeadBand"]/statBases</xpath>
		<value>
			<Bulk>2</Bulk>
			<WornBulk>0.5</WornBulk>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarian_HeadBand"]/statBases/StuffEffectMultiplierArmor</xpath>
		<value>
			<StuffEffectMultiplierArmor>2</StuffEffectMultiplierArmor>
		</value>
	</Operation>

	<!-- Barbarian Metal Helmet -->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarians_MetalHelm" or defName="pphhyy_Barbarians_SpikedCap"]/statBases</xpath>
		<value>
			<Bulk>4</Bulk>
			<WornBulk>1</WornBulk>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarians_MetalHelm" or defName="pphhyy_Barbarians_SpikedCap"]/statBases/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>2.3</ArmorRating_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarians_MetalHelm" or defName="pphhyy_Barbarians_SpikedCap"]/statBases/ArmorRating_Blunt</xpath>
		<value>
			<ArmorRating_Blunt>3.5</ArmorRating_Blunt>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarians_MetalHelmII" or defName="pphhyy_Barbarians_SpikedCapII"]/statBases/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>2.42</ArmorRating_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarians_MetalHelmII" or defName="pphhyy_Barbarians_SpikedCapII"]/statBases/ArmorRating_Blunt</xpath>
		<value>
			<ArmorRating_Blunt>3.7</ArmorRating_Blunt>
		</value>
	</Operation>

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

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

	<!-- Barbarian Chosen Helms -->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarians_ChosenAntler" or defName="pphhyy_Barbarians_ChosenHorn" or defName="pphhyy_Barbarians_ChosenSpike"]/statBases</xpath>
		<value>
			<Bulk>7</Bulk>
			<WornBulk>2</WornBulk>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarians_ChosenAntler" or defName="pphhyy_Barbarians_ChosenHorn" or defName="pphhyy_Barbarians_ChosenSpike"]/apparel/bodyPartGroups</xpath>
		<value>
			<bodyPartGroups>
				<li>FullHead</li>
			</bodyPartGroups>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarians_ChosenAntler" or defName="pphhyy_Barbarians_ChosenHorn" or defName="pphhyy_Barbarians_ChosenSpike"]/equippedStatOffsets</xpath>
		<value>
			<AimingAccuracy>-0.4</AimingAccuracy>
			<MeleeHitChance>-2</MeleeHitChance>
			<Suppressability>-0.20</Suppressability>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarians_ChosenAntler" or defName="pphhyy_Barbarians_ChosenHorn" or defName="pphhyy_Barbarians_ChosenSpike"]/statBases/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>3.0</ArmorRating_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarians_ChosenAntler" or defName="pphhyy_Barbarians_ChosenHorn" or defName="pphhyy_Barbarians_ChosenSpike"]/statBases/ArmorRating_Blunt</xpath>
		<value>
			<ArmorRating_Blunt>4.55</ArmorRating_Blunt>
		</value>
	</Operation>

	<!-- Barbarian Chosen Helmet Level 2 -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarians_ChosenAntlerII" or defName="pphhyy_Barbarians_ChosenHornII" or defName="pphhyy_Barbarians_ChosenSpikeII" or defName="pphhyy_Barbarians_WarlordHelm"]/statBases</xpath>
		<value>
			<Bulk>7</Bulk>
			<WornBulk>2</WornBulk>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarians_ChosenAntlerII" or defName="pphhyy_Barbarians_ChosenHornII" or defName="pphhyy_Barbarians_ChosenSpikeII" or defName="pphhyy_Barbarians_WarlordHelm"]/apparel/bodyPartGroups</xpath>
		<value>
			<bodyPartGroups>
				<li>FullHead</li>
			</bodyPartGroups>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarians_ChosenAntlerII" or defName="pphhyy_Barbarians_ChosenHornII" or defName="pphhyy_Barbarians_ChosenSpikeII" or defName="pphhyy_Barbarians_WarlordHelm"]/equippedStatOffsets</xpath>
		<value>
			<AimingAccuracy>-0.4</AimingAccuracy>
			<MeleeHitChance>-2</MeleeHitChance>
			<Suppressability>-0.20</Suppressability>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarians_ChosenAntlerII" or defName="pphhyy_Barbarians_ChosenHornII" or defName="pphhyy_Barbarians_ChosenSpikeII" or defName="pphhyy_Barbarians_WarlordHelm"]/statBases/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>3.15</ArmorRating_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="pphhyy_Barbarians_ChosenAntlerII" or defName="pphhyy_Barbarians_ChosenHornII" or defName="pphhyy_Barbarians_ChosenSpikeII" or defName="pphhyy_Barbarians_WarlordHelm"]/statBases/ArmorRating_Blunt</xpath>
		<value>
			<ArmorRating_Blunt>4.8</ArmorRating_Blunt>
		</value>
	</Operation>

	<!-- Barbarian Chosen Helmet Level 2 -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[
			defName="pphhyy_Barbarians_ChosenAntlerIII" or
			defName="pphhyy_Barbarians_ChosenHornIII" or
			defName="pphhyy_Barbarians_ChosenSpikeIII" or
			defName="pphhyy_Barbarians_WarlordHelmII" or
			defName="pphhyy_Barbarians_WarlordHelmIII"]/statBases</xpath>
		<value>
			<Bulk>8</Bulk>
			<WornBulk>2.5</WornBulk>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[
			defName="pphhyy_Barbarians_ChosenAntlerIII" or
			defName="pphhyy_Barbarians_ChosenHornIII" or
			defName="pphhyy_Barbarians_ChosenSpikeIII" or
			defName="pphhyy_Barbarians_WarlordHelmII" or
			defName="pphhyy_Barbarians_WarlordHelmIII"]/apparel/bodyPartGroups</xpath>
		<value>
			<bodyPartGroups>
				<li>FullHead</li>
			</bodyPartGroups>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[
			defName="pphhyy_Barbarians_ChosenAntlerIII" or
			defName="pphhyy_Barbarians_ChosenHornIII" or
			defName="pphhyy_Barbarians_ChosenSpikeIII" or
			defName="pphhyy_Barbarians_WarlordHelmII" or
			defName="pphhyy_Barbarians_WarlordHelmIII"]/equippedStatOffsets</xpath>
		<value>
			<AimingAccuracy>-0.4</AimingAccuracy>
			<MeleeHitChance>-2</MeleeHitChance>
			<Suppressability>-0.20</Suppressability>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[
			defName="pphhyy_Barbarians_ChosenAntlerIII" or
			defName="pphhyy_Barbarians_ChosenHornIII" or
			defName="pphhyy_Barbarians_ChosenSpikeIII" or
			defName="pphhyy_Barbarians_WarlordHelmII"]/statBases/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>3.5</ArmorRating_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[
			defName="pphhyy_Barbarians_ChosenAntlerIII" or
			defName="pphhyy_Barbarians_ChosenHornIII" or
			defName="pphhyy_Barbarians_ChosenSpikeIII" or
			defName="pphhyy_Barbarians_WarlordHelmII"]/statBases/ArmorRating_Blunt</xpath>
		<value>
			<ArmorRating_Blunt>5.25</ArmorRating_Blunt>
		</value>
	</Operation>

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

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

</Patch>