<?xml version="1.0" encoding="utf-8" ?>
<Patch>
	
	<!-- ============ Base ============ -->
	
	<Operation Class="PatchOperationRemove">
		<xpath>Defs/ThingDef[@Name="GW_ScatteredSonsHelmetBase"]/apparel/layers/li[text()="EyeCover"]</xpath>
	</Operation>

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[@Name="GW_ScatteredSonsHelmetBase"]/equippedStatOffsets</xpath>
		<value>
			<SmokeSensitivity>-1</SmokeSensitivity>
		</value>
	</Operation>

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

						</parts>
					</li>
					<li>
						<ArmorRating_Blunt>0.80</ArmorRating_Blunt>
						<parts>
							<li>Eye</li>
						</parts>
					</li>
				</stats>
			</li>
		</value>
	</Operation>

	<!-- ============ Helmets ============ -->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[
		defName="GW_SM_ChapterMasterHelmet" or
		defName="GW_SM_GuillimanHelmet" or
		defName="GW_SM_ImperialWardenHood" or
		defName="GW_SM_ImperialWardenHooded" or
		defName="GW_SM_ImperialWardenHelmet" or
		defName="GW_SM_LionArmorHood" or
		defName="GW_SM_LionArmorHooded" or
		defName="GW_SM_LionArmorHelmet"
		]/statBases</xpath>
		<value>
			<NightVisionEfficiency_Apparel>0.9</NightVisionEfficiency_Apparel>
			<Bulk>15</Bulk>
			<WornBulk>2.5</WornBulk>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[
		defName="GW_SM_ChapterMasterHelmet" or
		defName="GW_SM_GuillimanHelmet" or
		defName="GW_SM_ImperialWardenHood" or
		defName="GW_SM_ImperialWardenHooded" or
		defName="GW_SM_ImperialWardenHelmet" or
		defName="GW_SM_LionArmorHood" or
		defName="GW_SM_LionArmorHooded" or
		defName="GW_SM_LionArmorHelmet"
		]/statBases/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>60</ArmorRating_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[
		defName="GW_SM_ChapterMasterHelmet" or
		defName="GW_SM_GuillimanHelmet" or
		defName="GW_SM_ImperialWardenHood" or
		defName="GW_SM_ImperialWardenHooded" or
		defName="GW_SM_ImperialWardenHelmet" or
		defName="GW_SM_LionArmorHood" or
		defName="GW_SM_LionArmorHooded" or
		defName="GW_SM_LionArmorHelmet"
		]/statBases/ArmorRating_Blunt</xpath>
		<value>
			<ArmorRating_Blunt>136</ArmorRating_Blunt>
		</value>
	</Operation>

</Patch>