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

	<!-- === Helmets - Shieldless Base === -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[@Name="JDSFrontierHeadgearBase"]/apparel</xpath>
		<value>
			<apparel>
				<bodyPartGroups>
					<li>UpperHead</li>
				</bodyPartGroups>
				<layers>
					<li>Overhead</li>
				</layers>
				<tags>
					<li>MilitaryHeadgear</li>
				</tags>
				<defaultOutfitTags>
					<li>Soldier</li>
				</defaultOutfitTags>
				<useDeflectMetalEffect>true</useDeflectMetalEffect>
			</apparel>
		</value>
	</Operation>

	<!-- === Helmets - Face Shield === -->
	<Operation Class="PatchOperationAttributeSet">
		<xpath>
			Defs/ThingDef[
			defName="JDSTarkov_Headgear_Kolpak-1S_Riot_Helmet_Shield" or
			defName="JDSTarkov_Headgear_SHPM_Firefighter_Helmet_Shield" or
			defName="JDSTarkov_Headgear_PSH-97_Djeta_Helmet_Shield_UI" or
			defName="JDSTarkov_Headgear_Kiver_M_Helmet_Shield" or
			defName="JDSTarkov_Headgear_ZSh-1-2M_Helmet_Shield" or
			defName="JDSTarkov_Headgear_BNTI_LSHZ-2DTM_Helmet_Shield" or
			defName="JDSTarkov_Headgear_BNTI_LSHZ-2DTM_Helmet_Full" or
			defName="JDSTarkov_Headgear_Maska_1Sch_Helmet_Shield" or
			defName="JDSTarkov_Headgear_Altyn_Helmet_Shield" or
			defName="JDSTarkov_Headgear_Vulkan-5_Heavy_Helmet_Shield" or
			defName="JDSTarkov_Headgear_Tac-Kek_Fast_MT_Mando" or
			defName="JDSTarkov_Headgear_Ops-Core_Fast_mod_MT" or
			defName="JDSTarkov_Headgear_Ops-Core_Fast_MT_Mando" or
			defName="JDSTarkov_Headgear_Ops-Core_Fast_Full_MT" or
			defName="JDSTarkov_Headgear_Rys-T_Helmet_Shield"
			]
		</xpath>
		<attribute>ParentName</attribute>
		<value>EFTHeadgearShield</value>
	</Operation>

	<!-- === Helmets - Eye Shield === -->
	<Operation Class="PatchOperationAttributeSet">
		<xpath>
			Defs/ThingDef[
			defName="JDSTarkov_Headgear_Ops-Core_Fast_MT_Helmet_Shield"
			]
		</xpath>
		<attribute>ParentName</attribute>
		<value>EFTHeadgearEyeShield</value>
	</Operation>

	<!-- === Remove ===  -->
	<Operation Class="PatchOperationRemove">
		<xpath>
			Defs/ThingDef[
			defName="JDSTarkov_Headgear_Soft_Tank_Crew" or
			defName="JDSTarkov_Headgear_Kolpak-1S_Riot_Helmet" or
			defName="JDSTarkov_Headgear_Kolpak-1S_Riot_Helmet_Shield" or
			defName="JDSTarkov_Headgear_PSH-97_Djeta_Helmet_UI" or
			defName="JDSTarkov_Headgear_PSH-97_Djeta_Helmet_Shield_UI" or
			defName="JDSTarkov_Headgear_SHPM_Firefighter_Helmet" or
			defName="JDSTarkov_Headgear_SHPM_Firefighter_Helmet_Shield" or
			defName="JDSTarkov_Headgear_UNTAR_Helmet" or
			defName="JDSTarkov_Headgear_Ratnik-BSh_Helmet" or
			defName="JDSTarkov_Headgear_LZSh_Light_Helmet" or
			defName="JDSTarkov_Headgear_SSh-68_Helmet" or
			defName="JDSTarkov_Headgear_Kiver_M_Helmet" or
			defName="JDSTarkov_Headgear_Kiver_M_Helmet_Shield" or
			defName="JDSTarkov_Headgear_Kiver_M_Helmet_Shieldup" or
			defName="JDSTarkov_Headgear_SSSh_95_Sfera_S" or
			defName="JDSTarkov_Headgear_MSA_TC_800_Helmet" or
			defName="JDSTarkov_Headgear_MSA_TC_2001_Helmet" or
			defName="JDSTarkov_Headgear_MSA_TC_2002_Helmet" or
			defName="JDSTarkov_Headgear_Highcom_Striker_ACHHC_IIIA_Helmet" or
			defName="JDSTarkov_Headgear_Highcom_Striker_ACHHC_IIIA_Helmet_Black" or
			defName="JDSTarkov_Headgear_Highcom_Striker_ULACH_IIIA_Helmet" or
			defName="JDSTarkov_Headgear_ZSh-1-2M_Helmet" or
			defName="JDSTarkov_Headgear_ZSh-1-2M_Helmet_Shield" or
			defName="JDSTarkov_Headgear_Ops-Core_Fast_MT_Helmet" or
			defName="JDSTarkov_Headgear_Ops-Core_Fast_MT_Helmet_Shield" or
			defName="JDSTarkov_Headgear_Ops-Core_Fast_MT_Mando" or
			defName="JDSTarkov_Headgear_Ops-Core_Fast_mod_MT" or
			defName="JDSTarkov_Headgear_Ops-Core_Fast_Full_MT" or
			defName="JDSTarkov_Headgear_Ops-Core_Fast_MT_Ten" or
			defName="JDSTarkov_Headgear_BNTI_LSHZ-2DTM_Helmet" or
			defName="JDSTarkov_Headgear_BNTI_LSHZ-2DTM_Helmet_Shield" or
			defName="JDSTarkov_Headgear_BNTI_LSHZ-2DTM_Helmet_Full" or
			defName="JDSTarkov_Headgear_Maska_1Sch_Helmet" or
			defName="JDSTarkov_Headgear_Maska_1Sch_Helmet_Shield" or
			defName="JDSTarkov_Headgear_Maska_1Sch_Helmet_Shieldup" or
			defName="JDSTarkov_Headgear_Tac-Kek_Fast_MT" or
			defName="JDSTarkov_Headgear_Tac-Kek_Fast_MT_Mando" or
			defName="JDSTarkov_Headgear_Altyn_Helmet" or
			defName="JDSTarkov_Headgear_Altyn_Helmet_Shield" or
			defName="JDSTarkov_Headgear_Altyn_Helmet_Shieldup" or
			defName="JDSTarkov_Headgear_Rys-T_Helme" or
			defName="JDSTarkov_Headgear_Rys-T_Helmet_Shield" or
			defName="JDSTarkov_Headgear_Rys-T_Helmet_up_Shield" or
			defName="JDSTarkov_Headgear_Vulkan-5_Heavy_Helmet" or
			defName="JDSTarkov_Headgear_Vulkan-5_Heavy_Helmet_Shield"
			]/statBases/ArmorRating_Sharp |
			Defs/ThingDef[
			defName="JDSTarkov_Headgear_Soft_Tank_Crew" or
			defName="JDSTarkov_Headgear_Kolpak-1S_Riot_Helmet" or
			defName="JDSTarkov_Headgear_Kolpak-1S_Riot_Helmet_Shield" or
			defName="JDSTarkov_Headgear_PSH-97_Djeta_Helmet_UI" or
			defName="JDSTarkov_Headgear_PSH-97_Djeta_Helmet_Shield_UI" or
			defName="JDSTarkov_Headgear_SHPM_Firefighter_Helmet" or
			defName="JDSTarkov_Headgear_SHPM_Firefighter_Helmet_Shield" or
			defName="JDSTarkov_Headgear_UNTAR_Helmet" or
			defName="JDSTarkov_Headgear_Ratnik-BSh_Helmet" or
			defName="JDSTarkov_Headgear_LZSh_Light_Helmet" or
			defName="JDSTarkov_Headgear_SSh-68_Helmet" or
			defName="JDSTarkov_Headgear_Kiver_M_Helmet" or
			defName="JDSTarkov_Headgear_Kiver_M_Helmet_Shield" or
			defName="JDSTarkov_Headgear_Kiver_M_Helmet_Shieldup" or
			defName="JDSTarkov_Headgear_SSSh_95_Sfera_S" or
			defName="JDSTarkov_Headgear_MSA_TC_800_Helmet" or
			defName="JDSTarkov_Headgear_MSA_TC_2001_Helmet" or
			defName="JDSTarkov_Headgear_MSA_TC_2002_Helmet" or
			defName="JDSTarkov_Headgear_Highcom_Striker_ACHHC_IIIA_Helmet" or
			defName="JDSTarkov_Headgear_Highcom_Striker_ACHHC_IIIA_Helmet_Black" or
			defName="JDSTarkov_Headgear_Highcom_Striker_ULACH_IIIA_Helmet" or
			defName="JDSTarkov_Headgear_ZSh-1-2M_Helmet" or
			defName="JDSTarkov_Headgear_ZSh-1-2M_Helmet_Shield" or
			defName="JDSTarkov_Headgear_Ops-Core_Fast_MT_Helmet" or
			defName="JDSTarkov_Headgear_Ops-Core_Fast_MT_Helmet_Shield" or
			defName="JDSTarkov_Headgear_Ops-Core_Fast_MT_Mando" or
			defName="JDSTarkov_Headgear_Ops-Core_Fast_mod_MT" or
			defName="JDSTarkov_Headgear_Ops-Core_Fast_Full_MT" or
			defName="JDSTarkov_Headgear_Ops-Core_Fast_MT_Ten" or
			defName="JDSTarkov_Headgear_BNTI_LSHZ-2DTM_Helmet" or
			defName="JDSTarkov_Headgear_BNTI_LSHZ-2DTM_Helmet_Shield" or
			defName="JDSTarkov_Headgear_BNTI_LSHZ-2DTM_Helmet_Full" or
			defName="JDSTarkov_Headgear_Maska_1Sch_Helmet" or
			defName="JDSTarkov_Headgear_Maska_1Sch_Helmet_Shield" or
			defName="JDSTarkov_Headgear_Maska_1Sch_Helmet_Shieldup" or
			defName="JDSTarkov_Headgear_Tac-Kek_Fast_MT" or
			defName="JDSTarkov_Headgear_Tac-Kek_Fast_MT_Mando" or
			defName="JDSTarkov_Headgear_Altyn_Helmet" or
			defName="JDSTarkov_Headgear_Altyn_Helmet_Shield" or
			defName="JDSTarkov_Headgear_Altyn_Helmet_Shieldup" or
			defName="JDSTarkov_Headgear_Rys-T_Helme" or
			defName="JDSTarkov_Headgear_Rys-T_Helmet_Shield" or
			defName="JDSTarkov_Headgear_Rys-T_Helmet_up_Shield" or
			defName="JDSTarkov_Headgear_Vulkan-5_Heavy_Helmet" or
			defName="JDSTarkov_Headgear_Vulkan-5_Heavy_Helmet_Shield"
			]/statBases/ArmorRating_Blunt |
			Defs/ThingDef[
			defName="JDSTarkov_Headgear_Soft_Tank_Crew" or
			defName="JDSTarkov_Headgear_Kolpak-1S_Riot_Helmet" or
			defName="JDSTarkov_Headgear_Kolpak-1S_Riot_Helmet_Shield" or
			defName="JDSTarkov_Headgear_PSH-97_Djeta_Helmet_UI" or
			defName="JDSTarkov_Headgear_PSH-97_Djeta_Helmet_Shield_UI" or
			defName="JDSTarkov_Headgear_SHPM_Firefighter_Helmet" or
			defName="JDSTarkov_Headgear_SHPM_Firefighter_Helmet_Shield" or
			defName="JDSTarkov_Headgear_UNTAR_Helmet" or
			defName="JDSTarkov_Headgear_Ratnik-BSh_Helmet" or
			defName="JDSTarkov_Headgear_LZSh_Light_Helmet" or
			defName="JDSTarkov_Headgear_SSh-68_Helmet" or
			defName="JDSTarkov_Headgear_Kiver_M_Helmet" or
			defName="JDSTarkov_Headgear_Kiver_M_Helmet_Shield" or
			defName="JDSTarkov_Headgear_Kiver_M_Helmet_Shieldup" or
			defName="JDSTarkov_Headgear_SSSh_95_Sfera_S" or
			defName="JDSTarkov_Headgear_MSA_TC_800_Helmet" or
			defName="JDSTarkov_Headgear_MSA_TC_2001_Helmet" or
			defName="JDSTarkov_Headgear_MSA_TC_2002_Helmet" or
			defName="JDSTarkov_Headgear_Highcom_Striker_ACHHC_IIIA_Helmet" or
			defName="JDSTarkov_Headgear_Highcom_Striker_ACHHC_IIIA_Helmet_Black" or
			defName="JDSTarkov_Headgear_Highcom_Striker_ULACH_IIIA_Helmet" or
			defName="JDSTarkov_Headgear_ZSh-1-2M_Helmet" or
			defName="JDSTarkov_Headgear_ZSh-1-2M_Helmet_Shield" or
			defName="JDSTarkov_Headgear_Ops-Core_Fast_MT_Helmet" or
			defName="JDSTarkov_Headgear_Ops-Core_Fast_MT_Helmet_Shield" or
			defName="JDSTarkov_Headgear_Ops-Core_Fast_MT_Mando" or
			defName="JDSTarkov_Headgear_Ops-Core_Fast_mod_MT" or
			defName="JDSTarkov_Headgear_Ops-Core_Fast_Full_MT" or
			defName="JDSTarkov_Headgear_Ops-Core_Fast_MT_Ten" or
			defName="JDSTarkov_Headgear_BNTI_LSHZ-2DTM_Helmet" or
			defName="JDSTarkov_Headgear_BNTI_LSHZ-2DTM_Helmet_Shield" or
			defName="JDSTarkov_Headgear_BNTI_LSHZ-2DTM_Helmet_Full" or
			defName="JDSTarkov_Headgear_Maska_1Sch_Helmet" or
			defName="JDSTarkov_Headgear_Maska_1Sch_Helmet_Shield" or
			defName="JDSTarkov_Headgear_Maska_1Sch_Helmet_Shieldup" or
			defName="JDSTarkov_Headgear_Tac-Kek_Fast_MT" or
			defName="JDSTarkov_Headgear_Tac-Kek_Fast_MT_Mando" or
			defName="JDSTarkov_Headgear_Altyn_Helmet" or
			defName="JDSTarkov_Headgear_Altyn_Helmet_Shield" or
			defName="JDSTarkov_Headgear_Altyn_Helmet_Shieldup" or
			defName="JDSTarkov_Headgear_Rys-T_Helme" or
			defName="JDSTarkov_Headgear_Rys-T_Helmet_Shield" or
			defName="JDSTarkov_Headgear_Rys-T_Helmet_up_Shield" or
			defName="JDSTarkov_Headgear_Vulkan-5_Heavy_Helmet" or
			defName="JDSTarkov_Headgear_Vulkan-5_Heavy_Helmet_Shield"
			]/statBases/ArmorRating_Heat
		</xpath>
	</Operation>

	<!-- === Class 1 === -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="JDSTarkov_Headgear_Soft_Tank_Crew"]/statBases</xpath>
		<value>
			<Bulk>4</Bulk>
			<WornBulk>1</WornBulk>
			<ArmorRating_Sharp>0.10</ArmorRating_Sharp>
			<ArmorRating_Blunt>2</ArmorRating_Blunt>
			<ArmorRating_Heat>0.2</ArmorRating_Heat>
		</value>
	</Operation>

	<!-- === Class 2 === -->
	<Operation Class="PatchOperationAdd">
		<xpath>
			Defs/ThingDef[
			defName="JDSTarkov_Headgear_Kolpak-1S_Riot_Helmet" or
			defName="JDSTarkov_Headgear_Kolpak-1S_Riot_Helmet_Shield" or
			defName="JDSTarkov_Headgear_PSH-97_Djeta_Helmet_UI" or
			defName="JDSTarkov_Headgear_PSH-97_Djeta_Helmet_Shield_UI" or
			defName="JDSTarkov_Headgear_SHPM_Firefighter_Helmet" or
			defName="JDSTarkov_Headgear_SHPM_Firefighter_Helmet_Shield"
			]/statBases
		</xpath>
		<value>
			<Bulk>4</Bulk>
			<WornBulk>1</WornBulk>
			<ArmorRating_Sharp>2.5</ArmorRating_Sharp>
			<ArmorRating_Blunt>4</ArmorRating_Blunt>
			<ArmorRating_Heat>0.4</ArmorRating_Heat>
		</value>
	</Operation>

	<!-- === Class 3 === -->
	<Operation Class="PatchOperationAdd">
		<xpath>
			Defs/ThingDef[
			defName="JDSTarkov_Headgear_UNTAR_Helmet" or
			defName="JDSTarkov_Headgear_Ratnik-BSh_Helmet" or
			defName="JDSTarkov_Headgear_LZSh_Light_Helmet" or
			defName="JDSTarkov_Headgear_SSh-68_Helmet" or
			defName="JDSTarkov_Headgear_Kiver_M_Helmet" or
			defName="JDSTarkov_Headgear_Kiver_M_Helmet_Shield" or
			defName="JDSTarkov_Headgear_Kiver_M_Helmet_Shieldup" or
			defName="JDSTarkov_Headgear_SSSh_95_Sfera_S"
			]/statBases
		</xpath>
		<value>
			<Bulk>4</Bulk>
			<WornBulk>1</WornBulk>
			<ArmorRating_Sharp>5</ArmorRating_Sharp>
			<ArmorRating_Blunt>8</ArmorRating_Blunt>
			<ArmorRating_Heat>0.4</ArmorRating_Heat>
		</value>
	</Operation>

	<!-- === Class 4 === -->
	<Operation Class="PatchOperationAdd">
		<xpath>
			Defs/ThingDef[
			defName="JDSTarkov_Headgear_MSA_TC_800_Helmet" or
			defName="JDSTarkov_Headgear_MSA_TC_2001_Helmet" or
			defName="JDSTarkov_Headgear_MSA_TC_2002_Helmet" or
			defName="JDSTarkov_Headgear_Highcom_Striker_ACHHC_IIIA_Helmet" or
			defName="JDSTarkov_Headgear_Highcom_Striker_ACHHC_IIIA_Helmet_Black" or
			defName="JDSTarkov_Headgear_Highcom_Striker_ULACH_IIIA_Helmet" or
			defName="JDSTarkov_Headgear_ZSh-1-2M_Helmet" or
			defName="JDSTarkov_Headgear_ZSh-1-2M_Helmet_Shield" or
			defName="JDSTarkov_Headgear_Ops-Core_Fast_MT_Helmet" or
			defName="JDSTarkov_Headgear_Ops-Core_Fast_MT_Helmet_Shield" or
			defName="JDSTarkov_Headgear_Ops-Core_Fast_MT_Mando" or
			defName="JDSTarkov_Headgear_Ops-Core_Fast_mod_MT" or
			defName="JDSTarkov_Headgear_Ops-Core_Fast_Full_MT" or
			defName="JDSTarkov_Headgear_Ops-Core_Fast_MT_Ten" or
			defName="JDSTarkov_Headgear_BNTI_LSHZ-2DTM_Helmet" or
			defName="JDSTarkov_Headgear_BNTI_LSHZ-2DTM_Helmet_Shield" or
			defName="JDSTarkov_Headgear_BNTI_LSHZ-2DTM_Helmet_Full" or
			defName="JDSTarkov_Headgear_Maska_1Sch_Helmet" or
			defName="JDSTarkov_Headgear_Maska_1Sch_Helmet_Shield" or
			defName="JDSTarkov_Headgear_Maska_1Sch_Helmet_Shieldup" or
			defName="JDSTarkov_Headgear_Tac-Kek_Fast_MT" or
			defName="JDSTarkov_Headgear_Tac-Kek_Fast_MT_Mando"
			]/statBases
		</xpath>
		<value>
			<Bulk>3</Bulk>
			<WornBulk>1</WornBulk>
			<ArmorRating_Sharp>6</ArmorRating_Sharp>
			<ArmorRating_Blunt>10</ArmorRating_Blunt>
			<ArmorRating_Heat>0.45</ArmorRating_Heat>
		</value>
	</Operation>

	<!-- === Class 5 === -->
	<Operation Class="PatchOperationAdd">
		<xpath>
			Defs/ThingDef[
			defName="JDSTarkov_Headgear_Altyn_Helmet" or
			defName="JDSTarkov_Headgear_Altyn_Helmet_Shield" or
			defName="JDSTarkov_Headgear_Altyn_Helmet_Shieldup" or
			defName="JDSTarkov_Headgear_Rys-T_Helme" or
			defName="JDSTarkov_Headgear_Rys-T_Helmet_Shield" or
			defName="JDSTarkov_Headgear_Rys-T_Helmet_up_Shield"
			]/statBases
		</xpath>
		<value>
			<Bulk>4.5</Bulk>
			<WornBulk>1.5</WornBulk>
			<ArmorRating_Sharp>6</ArmorRating_Sharp>
			<ArmorRating_Blunt>13</ArmorRating_Blunt>
			<ArmorRating_Heat>0.6</ArmorRating_Heat>
		</value>
	</Operation>

	<!-- === Class 6 === -->
	<Operation Class="PatchOperationAdd">
		<xpath>
			Defs/ThingDef[
			defName="JDSTarkov_Headgear_Vulkan-5_Heavy_Helmet" or
			defName="JDSTarkov_Headgear_Vulkan-5_Heavy_Helmet_Shield"
			]/statBases
		</xpath>
		<value>
			<Bulk>5</Bulk>
			<WornBulk>2</WornBulk>
			<ArmorRating_Sharp>10</ArmorRating_Sharp>
			<ArmorRating_Blunt>22</ArmorRating_Blunt>
			<ArmorRating_Heat>0.6</ArmorRating_Heat>
		</value>
	</Operation>

</Patch>