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

	<!-- Helmets -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[@Name="RH2ApparelHD2_ArmorHelmetBase"]/statBases/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>16</ArmorRating_Sharp>
		</value>
	</Operation>
	
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[@Name="RH2ApparelHD2_ArmorHelmetBase"]/statBases/ArmorRating_Blunt</xpath>
		<value>
			<ArmorRating_Blunt>36</ArmorRating_Blunt>
		</value>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/ThingDef[@Name="RH2ApparelHD2_ArmorHelmetBase"]</xpath>
		<value>
			<li Class="CombatExtended.ApparelDefExtension">
				<isRadioPack>true</isRadioPack>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[@Name="RH2ApparelHD2_ArmorHelmetBase"]/statBases</xpath>
		<value>
			<Bulk>4</Bulk>
			<WornBulk>1</WornBulk>
			<NightVisionEfficiency_Apparel>0.7</NightVisionEfficiency_Apparel>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[@Name="RH2ApparelHD2_ArmorHelmetBase"]</xpath>
		<value>
			<equippedStatOffsets>
				<AimingAccuracy>0.15</AimingAccuracy>
				<SmokeSensitivity>-1</SmokeSensitivity>
				<ToxicEnvironmentResistance>0.50</ToxicEnvironmentResistance>
			</equippedStatOffsets>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[@Name="RH2ApparelHD2_ArmorHelmetBase"]/apparel</xpath>
		<value>
			<immuneToToxGasExposure>true</immuneToToxGasExposure>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[@Name="RH2ApparelHD2_ArmorHelmetBase"]/apparel/layers</xpath>
		<value>
			<li>OnHead</li>
			<li>StrappedHead</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/ThingDef[@Name="RH2ApparelHD2_ArmorHelmetBase"]</xpath>
		<value>
			<li Class="CombatExtended.PartialArmorExt">
				<stats>
					<li>
						<ArmorRating_Sharp>0.80</ArmorRating_Sharp>
						<parts>
							<li>Eye</li>
							<li>Nose</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Blunt>0.80</ArmorRating_Blunt>
						<parts>
							<li>Eye</li>
							<li>Nose</li>
						</parts>
					</li>
				</stats>
			</li>
		</value>
	</Operation>

	<!-- Shared -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[
				@Name="RH2ApparelHD2_LightArmorBase" or
				@Name="RH2ApparelHD2_MediumArmorBase" or
				@Name="RH2ApparelHD2_HeavyArmorBase"
				]/apparel/bodyPartGroups
			</xpath>
		<value>
			<li>Hands</li>
			<li>Feet</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/ThingDef[
			@Name="RH2ApparelHD2_LightArmorBase" or
			@Name="RH2ApparelHD2_MediumArmorBase" or
			@Name="RH2ApparelHD2_HeavyArmorBase"
			]</xpath>
		<value>
			<li Class="CombatExtended.PartialArmorExt">
				<stats>
					<li>
						<ArmorRating_Sharp>0.80</ArmorRating_Sharp>
						<parts>
							<li>Neck</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Blunt>0.80</ArmorRating_Blunt>
						<parts>
							<li>Neck</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Sharp>0.90</ArmorRating_Sharp>
						<parts>
							<li>Arm</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Blunt>0.90</ArmorRating_Blunt>
						<parts>
							<li>Arm</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Sharp>0.70</ArmorRating_Sharp>
						<parts>
							<li>Hand</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Blunt>0.70</ArmorRating_Blunt>
						<parts>
							<li>Hand</li>
						</parts>
					</li>
				</stats>
			</li>
		</value>
	</Operation>

	<!-- Light Armour -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[@Name="RH2ApparelHD2_LightArmorBase"]/statBases/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>14</ArmorRating_Sharp>
		</value>
	</Operation>
	
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[@Name="RH2ApparelHD2_LightArmorBase"]/statBases/ArmorRating_Blunt</xpath>
		<value>
			<ArmorRating_Blunt>28</ArmorRating_Blunt>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[@Name="RH2ApparelHD2_LightArmorBase"]/statBases</xpath>
		<value>
			<Bulk>80</Bulk>
			<WornBulk>10</WornBulk>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[@Name="RH2ApparelHD2_LightArmorBase"]/equippedStatOffsets</xpath>
		<value>
			<CarryWeight>35</CarryWeight>
			<CarryBulk>10</CarryBulk>
			<ReloadSpeed>0.1</ReloadSpeed>
			<ToxicEnvironmentResistance>0.50</ToxicEnvironmentResistance>
		</value>
	</Operation>

	<!-- Medium Armour -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[@Name="RH2ApparelHD2_MediumArmorBase"]/statBases/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>16</ArmorRating_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[@Name="RH2ApparelHD2_MediumArmorBase"]/statBases/ArmorRating_Blunt</xpath>
		<value>
			<ArmorRating_Blunt>36</ArmorRating_Blunt>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[
			defName="RH2ApparelHD2_B01Armor" or
			defName="RH2ApparelHD2_DP00Armor" or
			defName="RH2ApparelHD2_DP53Armor" or
			defName="RH2ApparelHD2_SA25Armor" or
			defName="RH2ApparelHD2_CD02Armor"
			]/statBases/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>17.5</ArmorRating_Sharp>
		</value>
	</Operation>
	
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[
			defName="RH2ApparelHD2_B01Armor" or
			defName="RH2ApparelHD2_DP00Armor" or
			defName="RH2ApparelHD2_DP53Armor" or
			defName="RH2ApparelHD2_SA25Armor" or
			defName="RH2ApparelHD2_CD02Armor"
			]/statBases/ArmorRating_Blunt</xpath>
		<value>
			<ArmorRating_Blunt>36</ArmorRating_Blunt>
		</value>
	</Operation>
	
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RH2ApparelHD2_B24Armor"]/statBases/ArmorRating_Blunt</xpath>
		<value>
			<ArmorRating_Blunt>42</ArmorRating_Blunt>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[@Name="RH2ApparelHD2_MediumArmorBase"]/statBases</xpath>
		<value>
			<Bulk>100</Bulk>
			<WornBulk>12</WornBulk>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[@Name="RH2ApparelHD2_MediumArmorBase"]</xpath>
		<value>
			<equippedStatOffsets>
				<CarryWeight>50</CarryWeight>
				<CarryBulk>30</CarryBulk>
				<ReloadSpeed>0.1</ReloadSpeed>
				<ToxicEnvironmentResistance>0.50</ToxicEnvironmentResistance>
			</equippedStatOffsets>
		</value>
	</Operation>

	<!-- Heavy Armour -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[@Name="RH2ApparelHD2_HeavyArmorBase"]/statBases/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>20</ArmorRating_Sharp>
		</value>
	</Operation>

	
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[@Name="RH2ApparelHD2_HeavyArmorBase"]/statBases/ArmorRating_Blunt</xpath>
		<value>
			<ArmorRating_Blunt>45</ArmorRating_Blunt>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[@Name="RH2ApparelHD2_HeavyArmorBase"]/statBases</xpath>
		<value>
			<Bulk>100</Bulk>
			<WornBulk>15</WornBulk>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[@Name="RH2ApparelHD2_HeavyArmorBase"]/equippedStatOffsets</xpath>
		<value>
			<CarryWeight>100</CarryWeight>
			<CarryBulk>50</CarryBulk>
			<ReloadSpeed>0.1</ReloadSpeed>
			<ToxicEnvironmentResistance>0.50</ToxicEnvironmentResistance>
		</value>
	</Operation>

</Patch>