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

	<!-- Helmet -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="DV_Apparel_EnsignHelmet"]/statBases</xpath>
		<value>
			<Bulk>4</Bulk>
			<WornBulk>1</WornBulk>
			<NightVisionEfficiency_Apparel>0.7</NightVisionEfficiency_Apparel>
		</value>
	</Operation>

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

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

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="DV_Apparel_EnsignHelmet"]/statBases/MaxHitPoints</xpath>
		<value>
			<MaxHitPoints>190</MaxHitPoints>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="DV_Apparel_EnsignHelmet"]/equippedStatOffsets</xpath>
		<value>
			<AimingAccuracy>0.15</AimingAccuracy>
			<SmokeSensitivity>-1</SmokeSensitivity>
		</value>
	</Operation>

	<Operation Class="PatchOperationRemove">
		<xpath>Defs/ThingDef[defName="DV_Apparel_EnsignHelmet"]/equippedStatOffsets/MentalBreakThreshold</xpath>
	</Operation>

	<!-- Increase Devilstrand Cost due to much higher heat protection -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="DV_Apparel_EnsignHelmet"]/costList/Plasteel</xpath>
		<value>
			<Plasteel>50</Plasteel>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="DV_Apparel_EnsignHelmet"]/costList</xpath>
		<value>
			<DevilstrandCloth>35</DevilstrandCloth>
		</value>
	</Operation>
  
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="DV_Apparel_EnsignHelmet"]/apparel/layers</xpath>
		<value>
			<li>OnHead</li>
			<li>StrappedHead</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/ThingDef[defName="DV_Apparel_EnsignHelmet"]</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>

</Patch>