﻿custom_headgear = {
	usage = customization
	interface_position = 4

	add_accessory_modifiers = {
		gene = headgear
		template = no_headgear
	}
	
	add_accessory_modifiers = {
		gene = headgear
		template = all_headgear_no_dlc
	}	

	## SP5 - Symbols of Authority ##

	add_accessory_modifiers = {
		gene = headgear
		template = sp5_headgears
		is_valid_custom = {
			has_sp5_dlc_triggers = yes
		}
	}

	##ccp9

    add_accessory_modifiers = {
        gene = headgear
        template = ccp9_celestial_court_headgear
        is_valid_custom = {
			has_cp9_dlc_trigger = yes
		} 
    }

	## CCP7 Emishi Nivkh ##

	add_accessory_modifiers = {
		gene = headgear
		template = ccp7_emishi_nivkh_headgear
		is_valid_custom = {
			has_cp7_dlc_trigger = yes
		}
	}

	##########################################################################
	#### Han Chinese
	##########################################################################

	## TGP Chinese ##

	add_accessory_modifiers = {
		gene = headgear
		template = tgp_chinese_headgear
		is_valid_custom = {
			has_tgp_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = tgp_japanese_headgear
		is_valid_custom = {
			has_tgp_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = tgp_korean_headgear
		is_valid_custom = {
			has_tgp_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = tgp_southeast_headgear
		is_valid_custom = {
			has_tgp_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = tgp_ainu_headgear
		is_valid_custom = {
			has_tgp_dlc_trigger = yes
		}
	}


	
	
	add_accessory_modifiers = {
		gene = headgear
		template = tgp_uyghur_headgear
		is_valid_custom = {
			has_tgp_dlc_trigger = yes
		}		
	}		
	add_accessory_modifiers = {
		gene = headgear
		template = tgp_sino_iranian_headgear
		is_valid_custom = {
			has_tgp_dlc_trigger = yes
		}		
	}		

	### MPO - Khans of the Steppe ###

	add_accessory_modifiers = {
		gene = headgear
		template = mpo_mongol_headgear
		is_valid_custom = {
			has_mpo_dlc_trigger = yes
		}
	}


	
	## SP4 - Crowns of the World ##
	
	add_accessory_modifiers = {
		gene = headgear
		template = sp4_royalty_headgears
		is_valid_custom = {
			has_sp4_dlc_trigger = yes
		}
	}

	## CCP4 Sami ##

	add_accessory_modifiers = {
		gene = headgear
		template = ccp4_sami_headgear
		is_valid_custom = {
			has_cp4_dlc_trigger = yes
		}	
	}	

	## CCP4 Khanty ##

	add_accessory_modifiers = {
		gene = headgear
		template = ccp4_khanty_headgear
		is_valid_custom = {
			has_cp4_dlc_trigger = yes
		}	
	}	

		##CCP5

	add_accessory_modifiers = {
		gene = headgear
		template = ccp5_english_era3_war_nobility
		is_valid_custom = {
			has_cp5_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = ccp5_german_era3_war_nobility
		is_valid_custom = {
			has_cp5_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = ccp5_french_era3_war_nobility
		is_valid_custom = {
			has_cp5_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = ccp5_french_era3_war_com
		is_valid_custom = {
			has_cp5_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = ccp5_english_era4_war_nobility
		is_valid_custom = {
			has_cp5_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = ccp5_german_era4_war_nobility
		is_valid_custom = {
			has_cp5_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = ccp5_french_era4_war_nobility
		is_valid_custom = {
			has_cp5_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = ccp5_swabian_era4_war_nobility
		is_valid_custom = {
			has_cp5_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = ccp5_western_war_nobility
		is_valid_custom = {
			has_cp5_dlc_trigger = yes
		}
	}
		
	## POL ##

	add_accessory_modifiers = {
		gene = headgear
		template = pol_west_slav_headgear
		is_valid_custom = {
			has_pol_dlc_trigger = yes
		}
	}


	## Veils ##
	add_accessory_modifiers = {
		gene = headgear
		template = fp4_western_era2_veils
	}

	add_accessory_modifiers = {
		gene = headgear
		template = fp4_western_era2_veils
	}

	add_accessory_modifiers = {
		gene = headgear
		template = western_veils
	}

	add_accessory_modifiers = {
		gene = headgear
		template = ep2_western_era1_veils
	}

	add_accessory_modifiers = {
		gene = headgear
		template = ep2_western_era2_veils
	}

	add_accessory_modifiers = {
		gene = headgear
		template = ep2_western_era3_veils
	}



	## CE1 ##
	add_accessory_modifiers = {
		gene = headgear
		template = fp4_western_common
		is_valid_custom = {
			has_ce1_dlc_trigger = yes
		}
	}
	add_accessory_modifiers = {
		gene = headgear
		template = fp4_western_era3_common
	}
	add_accessory_modifiers = {
		gene = headgear
		template = fp4_western_low_nobility
		is_valid_custom = {
			has_ce1_dlc_trigger = yes
		}
	}
	add_accessory_modifiers = {
		gene = headgear
		template = fp4_western_royalty
		is_valid_custom = {
			has_ce1_dlc_trigger = yes
		}
	}

	## Couture of the Capets ##
	
	add_accessory_modifiers = {
		gene = headgear
		template = sp3_western_royalty
		is_valid_custom = {
			has_dlc_feature = couture_of_the_capets
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = sp3_western_high_nobility
		is_valid_custom = {
			has_dlc_feature = couture_of_the_capets
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = sp3_western_nobility
		is_valid_custom = {
			has_dlc_feature = couture_of_the_capets
		}
	}

	## AFR ##

	add_accessory_modifiers = {
		gene = headgear
		template = afr_common
		is_valid_custom = {
			has_afr_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = afr_low_nobility
		is_valid_custom = {
			has_afr_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = afr_high_nobility
		is_valid_custom = {
			has_afr_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = afr_royalty
		is_valid_custom = {
			has_afr_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = afr_imperial
		is_valid_custom = {
			has_afr_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = afr_war
		is_valid_custom = {
			has_afr_dlc_trigger = yes
		}
	}

	### FP3 ###
	### Iranian ###
	
	

	add_accessory_modifiers = {
		gene = headgear
		template = fp3_iranian_common
	}

	add_accessory_modifiers = {
		gene = headgear
		template = fp3_iranian_low_nobility
		is_valid_custom = {
			has_fp3_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = fp3_iranian_high_nobility
		is_valid_custom = {
			has_fp3_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = fp3_iranian_royalty
		is_valid_custom = {
			has_fp3_dlc_trigger = yes
		}
	}	
	
	add_accessory_modifiers = {
		gene = headgear
		template = fp3_iranian_imperial
		is_valid_custom = {
			has_fp3_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = fp3_iranian_war
		is_valid_custom = {
			has_fp3_dlc_trigger = yes
		}
	}

	### Turkic ###

	add_accessory_modifiers = {
		gene = headgear
		template = eastern_turkic_headgear
	}

	add_accessory_modifiers = {
		gene = headgear
		template = western_turkic_headgear
		is_valid_custom = {
			has_fp3_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = seljuk_turkic_headgear
		is_valid_custom = {
			has_fp3_dlc_trigger = yes
		}
	}
	

	
	
	## SP1 ##
	add_accessory_modifiers = {
		gene = headgear
		template = reward_western_royalty
		is_valid_custom = {
			has_reward_item = newsletter_crown
		}
	}

	## SP2 Elegance of the Empire ##
	
	add_accessory_modifiers = {
		gene = headgear
		template = sp2_western_imperial
		is_valid_custom = {
			has_dlc_feature = elegance_of_the_empire
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = sp2_western_high_nobility
		is_valid_custom = {
			has_dlc_feature = elegance_of_the_empire
		}
	}
	


	### EP2 ###

	add_accessory_modifiers = {
		gene = headgear
		template = western_wedding
		is_valid_custom = {
			has_ep2_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = mena_wedding
		is_valid_custom = {
			has_ep2_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = byzantine_wedding
		is_valid_custom = {
			has_ep2_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = ep2_western_era1_imperial
		is_valid_custom = {
			has_ep2_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = ep2_western_era1_royalty
		is_valid_custom = {
			has_ep2_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = ep2_western_era1_high_nobility
		is_valid_custom = {
			has_ep2_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = ep2_western_era1_nobility
		is_valid_custom = {
			has_ep2_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = ep2_western_era1_common
		is_valid_custom = {
			has_ep2_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = western_wedding
		is_valid_custom = {
			has_ep2_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = mena_wedding
		is_valid_custom = {
			has_ep2_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = byzantine_wedding
		is_valid_custom = {
			has_ep2_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = ep2_western_era1_war_nobility
		is_valid_custom = {
			has_ep2_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = ep2_western_era2_war_nobility
		is_valid_custom = {
			has_ep2_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = ep2_western_era3_war_nobility
		is_valid_custom = {
			has_ep2_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = ep2_western_era4_war_nobility
		is_valid_custom = {
			has_ep2_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = ep2_mena_war_nobility
		is_valid_custom = {
			has_ep2_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = ep2_steppe_war_nobility
		is_valid_custom = {
			has_ep2_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = ep2_byzantine_war_nobility
		is_valid_custom = {
			has_ep2_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = ep2_indian_war_nobility
		is_valid_custom = {
			has_ep2_dlc_trigger = yes
		}
	}

	### FP2 ###

	add_accessory_modifiers = {
		gene = headgear
		template = fp2_christian_common
		is_valid_custom = {
			has_fp2_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = fp2_christian_low_nobility
		is_valid_custom = {
			has_fp2_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = fp2_christian_high_nobility
		is_valid_custom = {
			has_fp2_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = fp2_christian_royalty
		is_valid_custom = {
			has_fp2_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = fp2_christian_war_nobility
		is_valid_custom = {
			has_fp2_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = fp2_muslim_common
		is_valid_custom = {
			has_fp2_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = fp2_muslim_low_nobility
		is_valid_custom = {
			has_fp2_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = fp2_muslim_high_nobility
		is_valid_custom = {
			has_fp2_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = fp2_muslim_royalty
		is_valid_custom = {
			has_fp2_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = fp2_muslim_war_nobility
		is_valid_custom = {
			has_fp2_dlc_trigger = yes
		}
	}

	### EP1 ###

	add_accessory_modifiers = {
		gene = headgear
		template = ep1_western_royalty
		is_valid_custom = {
			has_ep1_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = ep1_mena_royalty
		is_valid_custom = {
			has_ep1_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = ep1_steppe_royalty
		is_valid_custom = {
			has_ep1_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = ep1_sub_saharan_royalty
		is_valid_custom = {
			has_ep1_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = ep1_indian_royalty
		is_valid_custom = {
			has_ep1_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = ep1_indian_imperial
		is_valid_custom = {
			has_ep1_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = ep1_byzantine_imperial
		is_valid_custom = {
			has_ep1_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = ep1_italian_royalty
		is_valid_custom = {
			has_ep1_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = ep1_persian_imperial
		is_valid_custom = {
			has_ep1_dlc_trigger = yes
		}
	}

	### FP1 ###

	add_accessory_modifiers = {
		gene = headgear
		template = fp1_common
		is_valid_custom = {
			has_fp1_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = fp1_low_nobility
		is_valid_custom = {
			has_fp1_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = fp1_nobility
		is_valid_custom = {
			has_fp1_dlc_trigger = yes
		}
	}
	
	add_accessory_modifiers = {
		gene = headgear
		template = fp1_war
		is_valid_custom = {
			has_fp1_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = fp1_royalty
		is_valid_custom = {
			has_fp1_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = fp1_imperial
		is_valid_custom = {
			has_fp1_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = western_common
	}

	add_accessory_modifiers = {
		gene = headgear
		template = western_nobility
	}

	add_accessory_modifiers = {
		gene = headgear
		# is_valid_custom = {
		# 	highest_held_title_tier >= tier_duchy
		# }
		template = western_high_nobility
	}

	add_accessory_modifiers = {
		gene = headgear
		# is_valid_custom = {
		# 	highest_held_title_tier >= tier_kingdom
		# }
		template = western_royalty
	}

	add_accessory_modifiers = {
		gene = headgear
		# is_valid_custom = {
		# 	highest_held_title_tier >= tier_kingdom
		# }
		template = western_imperial
	}

	add_accessory_modifiers = {
		gene = headgear
		template = western_war
	}

	add_accessory_modifiers = {
		gene = headgear
		template = crusades_western_war
	}

	add_accessory_modifiers = {
		gene = headgear
		template = northern_common
	}

	add_accessory_modifiers = {
		gene = headgear
		template = northern_war
	}

	add_accessory_modifiers = {
		gene = headgear
		template = byzantine_common
		is_valid_custom = {
			has_ep3_dlc_trigger = yes   # Has DLC items in it so it needs the trigger, or needs to be split out into it's own thing with a DLC trigger
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = byzantine_low_nobility
		is_valid_custom = {
			has_ep3_dlc_trigger = yes   # Has DLC items in it so it needs the trigger, or needs to be split out into it's own thing with a DLC trigger
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = byzantine_high_nobility
		is_valid_custom = {
			has_ep3_dlc_trigger = yes   # Has DLC items in it so it needs the trigger, or needs to be split out into it's own thing with a DLC trigger
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = byzantine_royalty
		is_valid_custom = {
			has_ep3_dlc_trigger = yes   # Has DLC items in it so it needs the trigger, or needs to be split out into it's own thing with a DLC trigger
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = byzantine_imperial
		is_valid_custom = {
			has_ep3_dlc_trigger = yes   # Has DLC items in it so it needs the trigger, or needs to be split out into it's own thing with a DLC trigger
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = byzantine_war
		is_valid_custom = {
			has_ep3_dlc_trigger = yes   # Has DLC items in it so it needs the trigger, or needs to be split out into it's own thing with a DLC trigger
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = mena_common
	}

	add_accessory_modifiers = {
		gene = headgear
		template = mena_low_nobility
	}

	add_accessory_modifiers = {
		gene = headgear
		template = mena_high_nobility
	}

	add_accessory_modifiers = {
		gene = headgear
		template = mena_royalty
	}

	add_accessory_modifiers = {
		gene = headgear
		template = mena_imperial
	}

	add_accessory_modifiers = {
		gene = headgear
		template = mena_war
	}

	add_accessory_modifiers = {
		gene = headgear
		template = steppe_common
	}

	add_accessory_modifiers = {
		gene = headgear
		template = steppe_nobility
	}

	add_accessory_modifiers = {
		gene = headgear
		template = steppe_high_nobility
	}

	add_accessory_modifiers = {
		gene = headgear
		template = steppe_royalty
	}

	add_accessory_modifiers = {
		gene = headgear
		template = steppe_war
	}

	add_accessory_modifiers = {
		gene = headgear
		template = sub_saharan_common
	}

	add_accessory_modifiers = {
		gene = headgear
		template = sub_saharan_high_nobility
	}

	add_accessory_modifiers = {
		gene = headgear
		template = sub_saharan_royalty
	}

	add_accessory_modifiers = {
		gene = headgear
		template = sub_saharan_imperial
	}

	add_accessory_modifiers = {
		gene = headgear
		template = indian_common
	}

	add_accessory_modifiers = {
		gene = headgear
		template = indian_nobility
	}

	add_accessory_modifiers = {
		gene = headgear
		template = indian_high_nobility
	}

	add_accessory_modifiers = {
		gene = headgear
		template = indian_royalty
	}

	add_accessory_modifiers = {
		gene = headgear
		template = indian_imperial
	}

	add_accessory_modifiers = {
		gene = headgear
		template = indian_war
	}

	add_accessory_modifiers = {
		gene = headgear
		template = dde_hre_common
		is_valid_custom = {
			has_dlc = "Garments of the Holy Roman Empire"
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = dde_hre_nobility
		is_valid_custom = {
			has_dlc = "Garments of the Holy Roman Empire"
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = dde_hre_high_nobility
		is_valid_custom = {
			has_dlc = "Garments of the Holy Roman Empire"
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = dde_hre_royalty
		is_valid_custom = {
			has_dlc = "Garments of the Holy Roman Empire"
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = dde_hre_imperial
	}

	add_accessory_modifiers = {
		gene = headgear
		template = dde_hre_war
		is_valid_custom = {
			has_dlc = "Garments of the Holy Roman Empire"
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = dde_abbasid_common
		is_valid_custom = {
			has_dlc = "Fashion of the Abbasid Court"
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = dde_abbasid_high_nobility
		is_valid_custom = {
			has_dlc = "Fashion of the Abbasid Court"
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = dde_abbasid_royalty
		is_valid_custom = {
			has_dlc = "Fashion of the Abbasid Court"
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = dde_abbasid_imperial
		is_valid_custom = {
			has_dlc = "Fashion of the Abbasid Court"
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = dde_abbasid_war
		is_valid_custom = {
			has_dlc = "Fashion of the Abbasid Court"
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = religious_catholic_devoted
	}

	add_accessory_modifiers = {
		gene = headgear
		template = catholic_high
	}

	add_accessory_modifiers = {
		gene = headgear
		template = catholic_head
	}

	add_accessory_modifiers = {
		gene = headgear
		template = religious_orthodox_high
	}

	add_accessory_modifiers = {
		gene = headgear
		template = religious_orthodox_head
	}

	add_accessory_modifiers = {
		gene = headgear
		template = religious_zoroastrian_high
	}

	add_accessory_modifiers = {
		gene = headgear
		template = religious_jewish_high
	}

	add_accessory_modifiers = {
		gene = headgear
		template = religious_jewish_head
	}

	add_accessory_modifiers = {
		gene = headgear
		template = religious_muslim_high
	}

	add_accessory_modifiers = {
		gene = headgear
		template = religious_muslim_head
	}

	add_accessory_modifiers = {
		gene = headgear
		template = religious_african_high
	}

	add_accessory_modifiers = {
		gene = headgear
		template = religious_steppe_high
	}

	add_accessory_modifiers = {
		gene = headgear
		template = religious_northern_high
	}

	#add_accessory_modifiers = {
	#	gene = hairstyles
	#	template = rtt_hairstyles
	#
	#	is_valid_custom = {
	#		monarchs_journey_unlock = 1
	#	}
	#}
	add_accessory_modifiers = {
		gene = headgear
		template = religious_northern_high
	}


	add_accessory_modifiers = {
		gene = headgear
		template = monarchs_journey_low

		weight = {
			base = 0
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = monarchs_journey_high

		weight = {
			base = 0
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = ep1_jester

		weight = {
			base = 0
		}
	}

	add_accessory_modifiers = {
		gene = special_headgear_spectacles
		template = spectacles
	}

	add_accessory_modifiers = {
		gene = headgear
		template = reward_western_royalty
		is_valid_custom = {
			has_reward_item = newsletter_crown
		}
	}
	
	
	
	##############################################################################################################################
	######################################################### EPE  ###############################################################
	##############################################################################################################################

	add_accessory_modifiers = {
		gene = headgear
		template = epe_scripted_character_headgears
	}


	##########################################################################
	#### Bulgarian 
	##########################################################################			
		
	add_accessory_modifiers = {
		gene = headgear
		template = epe_balkan_royalty
		is_valid_custom = {
			has_ep3_dlc_trigger = yes
		}		
	}	
	
	

	
	##########################################################################
	#### East Slavic
	##########################################################################

	add_accessory_modifiers = {
		gene = headgear
		template = east_slav_headgear
		is_valid_custom = {
			has_fp1_dlc_trigger = yes  # Has DLC items in it so it needs the trigger, or needs to be split out into it's own thing with a DLC trigger
		}
	}	

	##########################################################################
	#### Western Slavs, Balto-Finnic
	##########################################################################
	
	add_accessory_modifiers = {
		gene = headgear
		template = western_slav_balto_finnic_headgear
		is_valid_custom = {
			has_fp1_dlc_trigger = yes  # Has DLC items in it so it needs the trigger, or needs to be split out into it's own thing with a DLC trigger
		}
	}	

	##########################################################################
	#### Norman-Sicilian era 2-4
	##########################################################################

	add_accessory_modifiers = {
		gene = headgear
		template = norman_sicilian_high_nobility
		is_valid_custom = {
			has_ep3_dlc_trigger = yes   # Has DLC items in it so it needs the trigger, or needs to be split out into it's own thing with a DLC trigger
		}
	}	
	add_accessory_modifiers = {
		gene = headgear
		template = norman_sicilian_royalty
		is_valid_custom = {
			has_ep3_dlc_trigger = yes   # Has DLC items in it so it needs the trigger, or needs to be split out into it's own thing with a DLC trigger
		}
	}	
	add_accessory_modifiers = {
		gene = headgear
		template = norman_sicilian_imperial
		is_valid_custom = {
			has_ep3_dlc_trigger = yes   # Has DLC items in it so it needs the trigger, or needs to be split out into it's own thing with a DLC trigger
		}
	}
	add_accessory_modifiers = {
		gene = headgear
		template = norman_sicilian_war
	}	

	
	##########################################################################
	#### Spymaster
	##########################################################################	
	
	add_accessory_modifiers = {
		gene = headgear
		template = epe_spymaster_headgears
	}		
	
	##########################################################################
	#### EPE Crown Titles
	##########################################################################			
	
	add_accessory_modifiers = {
		gene = headgear
		template = epe_crown_titles
	}		

	## TFE Roman Headgear ##

	add_accessory_modifiers = {
		gene = headgear
		template = roman_war_officer
	}

	add_accessory_modifiers = {
		gene = headgear
		template = hunnic_diadem_01
	}

	add_accessory_modifiers = {
		gene = headgear
		template = roman_crown
	}

	add_accessory_modifiers = {
		gene = headgear
		template = roman_diadem
	}

	add_accessory_modifiers = {
		gene = headgear
		template = roman_diadem_female
	}

	add_accessory_modifiers = {
		gene = headgear
		template = roman_pannonian_hat_common
	}

	add_accessory_modifiers = {
		gene = headgear
		template = roman_pannonian_hat_high
	}

	add_accessory_modifiers = {
		gene = headgear
		template = roman_pannonian_hat_low
	}

	add_accessory_modifiers = {
		gene = headgear
		template = roman_prefect_diadem
	}

	add_accessory_modifiers = {
		gene = headgear
		template = roman_prefect_diadem_female
	}

	add_accessory_modifiers = {
		gene = headgear
		template = roman_war
	}

	add_accessory_modifiers = {
		gene = headgear
		template = tfe_sasanian_war_nobility_headgear
	}

	add_accessory_modifiers = {
		gene = headgear
		template = aurelianhelmet
	}

	add_accessory_modifiers = {
		gene = headgear
		template = centurionhelmet
	}

	add_accessory_modifiers = {
		gene = headgear
		template = galeahelmet
	}

	add_accessory_modifiers = {
		gene = headgear
		template = thracianInfantry
	}

	add_accessory_modifiers = {
		gene = headgear
		template = gladiator_war
	}

	add_accessory_modifiers = {
		gene = headgear
		template = celtic_waterloo
	}

	add_accessory_modifiers = {
		gene = headgear
		template = celtic_berru
	}

	add_accessory_modifiers = {
		gene = headgear
		template = celtic_torque_01
	}

	add_accessory_modifiers = {
		gene = headgear
		template = celtic_torque_02
	}

	add_accessory_modifiers = {
		gene = headgear
		template = celtic_torque_03
	}

	add_accessory_modifiers = {
		gene = headgear
		template = male_imperial_crown_zoroastrian
	}	
		
}




#####################################
#									#
# 			  HEADGEAR 	2		    #
#									#
#####################################

custom_headgear_2 = {
	usage = customization
	interface_position = 10


	add_accessory_modifiers = {
		gene = headgear_2
		template = no_headgear
	}	


}


#####################################
#									#
# 		Special	  HEADGEAR 		    #
#									#
#####################################


custom_additive_headgear = {
	usage = customization
	interface_position = 11


	add_accessory_modifiers = {
		gene = additive_headgear
		template = no_additive
	}	

	add_accessory_modifiers = {
		gene = additive_headgear
		template = western_veils
	}
	add_accessory_modifiers = {
		gene = additive_headgear
		template = ep2_western_era1_veils
	}
	add_accessory_modifiers = {
		gene = additive_headgear
		template = ep2_western_era2_veils
	}
	add_accessory_modifiers = {
		gene = additive_headgear
		template = ep2_western_era3_veils
	}
	add_accessory_modifiers = {
		gene = additive_headgear
		template = sp3_western_royalty_headdress
	}
	add_accessory_modifiers = {
		gene = additive_headgear
		template = fp4_western_era2_veils
	}
	add_accessory_modifiers = {
		gene = additive_headgear
		template = pol_crest
	}
	add_accessory_modifiers = {
		gene = additive_headgear
		template = pol_crown
	}


}	













