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

	<Operation Class="PatchOperationRemove">
		<xpath>Defs/ThingDef[defName="OuterRim_StormtrooperHelmet"]/equippedStatOffsets/ShootingAccuracyPawn</xpath>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="OuterRim_StormtrooperHelmet"]/equippedStatOffsets/ToxicEnvironmentResistance</xpath>
		<value>
			<ToxicEnvironmentResistance>0.25</ToxicEnvironmentResistance>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="OuterRim_ScoutTrooperHelmet"]/equippedStatOffsets</xpath>
		<value>
			<NightVisionEfficiency>0.8</NightVisionEfficiency>
		</value>
	</Operation>

	<Operation Class="PatchOperationRemove">
		<xpath>Defs/ThingDef[defName="OuterRim_ScoutTrooperHelmet"]/equippedStatOffsets/ToxicEnvironmentResistance</xpath>
	</Operation>
	
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="OuterRim_ImperialArmyHelmet"]</xpath>
		<value>
			<equippedStatOffsets>
				<ToxicEnvironmentResistance>0</ToxicEnvironmentResistance>
				<SmokeSensitivity>0</SmokeSensitivity>
			</equippedStatOffsets>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="OuterRim_ImperialArmyHelmet"]/apparel</xpath>
		<value>
			<bodyPartGroups Inherit="False">
				<li>UpperHead</li>
			</bodyPartGroups>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="OuterRim_ImperialCadetHelmet"]/equippedStatOffsets/ToxicEnvironmentResistance</xpath>
		<value>
			<ToxicEnvironmentResistance>0.25</ToxicEnvironmentResistance>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="OuterRim_ImperialCadetHelmetAlt"]/apparel</xpath>
		<value>
			<immuneToToxGasExposure>false</immuneToToxGasExposure>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="OuterRim_ImperialCadetHelmetAlt"]</xpath>
		<value>
			<equippedStatOffsets>
				<ToxicEnvironmentResistance>0</ToxicEnvironmentResistance>
				<SmokeSensitivity>0</SmokeSensitivity>
			</equippedStatOffsets>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="OuterRim_ISBAgentHelmet"]</xpath>
		<value>
			<equippedStatOffsets>
				<ToxicEnvironmentResistance>0</ToxicEnvironmentResistance>
				<SmokeSensitivity>0</SmokeSensitivity>
			</equippedStatOffsets>
		</value>
	</Operation>
	
	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/ThingDef[defName="OuterRim_ISBAgentHelmet"]</xpath>
		<value>
			<li Class="CombatExtended.PartialArmorExt">
				<stats>
					<li>
						<ArmorRating_Sharp>0</ArmorRating_Sharp>
						<parts>
							<li>Eye</li>
							<li>Nose</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Blunt>0</ArmorRating_Blunt>
						<parts>
							<li>Eye</li>
							<li>Nose</li>
						</parts>
					</li>
				</stats>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="OuterRim_StormtrooperKama"]/statBases</xpath>
		<value>
			<ArmorRating_Sharp>1</ArmorRating_Sharp>
			<ArmorRating_Blunt>2</ArmorRating_Blunt>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="OuterRim_StormtrooperKama"]/statBases/StuffEffectMultiplierArmor</xpath>
		<value>
			<StuffEffectMultiplierArmor>5</StuffEffectMultiplierArmor>
		</value>
	</Operation>
</Patch>