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

	<!-- === Firefighter Helmet === -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[
			defName="Apparel_FirefighterHelmetA" or
			defName="Apparel_FirefighterHelmetB" or
			defName="Apparel_FirefighterHelmetC" or
			defName="Apparel_FirefighterHelmetG"
			]/statBases </xpath>
		<value>
			<Bulk>6</Bulk>
			<WornBulk>2</WornBulk>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[
			defName="Apparel_FirefighterHelmetA" or
			defName="Apparel_FirefighterHelmetB" or
			defName="Apparel_FirefighterHelmetC" or
			defName="Apparel_FirefighterHelmetG"
			]/statBases/StuffEffectMultiplierArmor </xpath>
		<value>
			<StuffEffectMultiplierArmor>1.8</StuffEffectMultiplierArmor>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[
			defName="Apparel_FirefighterHelmetA" or
			defName="Apparel_FirefighterHelmetB" or
			defName="Apparel_FirefighterHelmetC" or
			defName="Apparel_FirefighterHelmetG"
			]/statBases </xpath>
		<value>
			<ArmorRating_Blunt>2</ArmorRating_Blunt>
		</value>
	</Operation>

	<Operation Class="PatchOperationConditional">
		<xpath>Defs/ThingDef[
			defName="Apparel_FirefighterHelmetA" or
			defName="Apparel_FirefighterHelmetB" or
			defName="Apparel_FirefighterHelmetC" or
			defName="Apparel_FirefighterHelmetG"]/apparel/immuneToToxGasExposure </xpath>
		<nomatch Class="PatchOperationAdd">
			<xpath>Defs/ThingDef[
				defName="Apparel_FirefighterHelmetA" or
				defName="Apparel_FirefighterHelmetB" or
				defName="Apparel_FirefighterHelmetC" or
				defName="Apparel_FirefighterHelmetG"]/apparel </xpath>
			<value>
				<immuneToToxGasExposure>true</immuneToToxGasExposure>
			</value>
		</nomatch>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[
			defName="Apparel_FirefighterHelmetA" or
			defName="Apparel_FirefighterHelmetB" or
			defName="Apparel_FirefighterHelmetC" or
			defName="Apparel_FirefighterHelmetG"
			]/equippedStatOffsets </xpath>
		<value>
			<SmokeSensitivity>-1</SmokeSensitivity>
		</value>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/ThingDef[
			defName="Apparel_FirefighterHelmetA" or
			defName="Apparel_FirefighterHelmetB" or
			defName="Apparel_FirefighterHelmetC" or
			defName="Apparel_FirefighterHelmetG"
			] </xpath>
		<value>
			<li Class="CombatExtended.PartialArmorExt">
				<stats>
					<li>
						<ArmorRating_Sharp>0.50</ArmorRating_Sharp>
						<parts>
							<li>Eye</li>
							<li>Jaw</li>
							<li>Nose</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Blunt>0.50</ArmorRating_Blunt>
						<parts>
							<li>Eye</li>
							<li>Jaw</li>
							<li>Nose</li>
						</parts>
					</li>
				</stats>
			</li>
		</value>
	</Operation>

	<!-- === Firefighter Jacket === -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[
			defName="Apparel_Firefighter_A" or
			defName="Apparel_Firefighter_B" or
			defName="Apparel_Firefighter_R"
			]/statBases </xpath>
		<value>
			<Bulk>15</Bulk>
			<WornBulk>7.5</WornBulk>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[
			defName="Apparel_Firefighter_A" or
			defName="Apparel_Firefighter_B" or
			defName="Apparel_Firefighter_R"
			]/statBases/StuffEffectMultiplierArmor </xpath>
		<value>
			<StuffEffectMultiplierArmor>3.5</StuffEffectMultiplierArmor>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[
			defName="Apparel_Firefighter_A" or
			defName="Apparel_Firefighter_B" or
			defName="Apparel_Firefighter_R"
			]/statBases/ArmorRating_Sharp </xpath>
		<value>
			<ArmorRating_Sharp>0.5</ArmorRating_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[
			defName="Apparel_Firefighter_A" or
			defName="Apparel_Firefighter_B" or
			defName="Apparel_Firefighter_R"
			]/statBases/ArmorRating_Blunt </xpath>
		<value>
			<ArmorRating_Blunt>2.25</ArmorRating_Blunt>
		</value>
	</Operation>
</Patch>