custom_headgear = {
	usage = customization
	interface_position = 4

	add_accessory_modifiers = {
		gene = headgear
		template = no_headgear
	}

	##ccp9

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

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

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

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

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

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

    add_accessory_modifiers = {
        gene = headgear
        template = ccp9_uyghur_royalty_headgear
        is_valid_custom = {
			has_cp9_dlc_trigger = yes
		} 
    }       
    add_accessory_modifiers = {
        gene = headgear
        template = ccp9_uyghur_high_nobility_headgear
        is_valid_custom = {
			has_cp9_dlc_trigger = yes
		} 
    }   
    add_accessory_modifiers = {
        gene = headgear
        template = ccp9_tangut_high_nobility_headgear
        is_valid_custom = {
			has_cp9_dlc_trigger = yes
		} 
    }   

    add_accessory_modifiers = {
        gene = headgear
        template = ccp9_tangut_royalty_headgear
        is_valid_custom = {
			has_cp9_dlc_trigger = yes
		}
    }   
    
    add_accessory_modifiers = {
        gene = headgear
        template = ccp9_jurchen_nobility_headgear
        is_valid_custom = {
			has_cp9_dlc_trigger = yes
		} 
    }   

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

	## CCP7 Emishi Ainu ##

	add_accessory_modifiers = {
		gene = headgear
		template = ccp7_emishi_com
		is_valid_custom = {
			has_cp7_dlc_trigger = yes
		}
	}
	add_accessory_modifiers = {
		gene = headgear
		template = ccp7_emishi_lo_nob
		is_valid_custom = {
			has_cp7_dlc_trigger = yes
		}
	}
	add_accessory_modifiers = {
		gene = headgear
		template = ccp7_emishi_hi_nob
		is_valid_custom = {
			has_cp7_dlc_trigger = yes
		}
	}
	add_accessory_modifiers = {
		gene = headgear
		template = ccp7_ainu_sapanpe
		is_valid_custom = {
			has_cp7_dlc_trigger = yes
		}
	}
	add_accessory_modifiers = {
		gene = headgear
		template = ccp7_emishi_war_nob
		is_valid_custom = {
			has_cp7_dlc_trigger = yes
		}
	}

	## CCP7 Nivkh ##

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

	## TGP Chinese ##

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

	# add_accessory_modifiers = {
	# 	gene = headgear
	# 	template = tgp_shinto_priest
	# 	is_valid_custom = {
	# 		has_tgp_dlc_trigger = yes
	# 	}
	# }

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

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

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

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

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

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

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

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

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

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

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

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

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

	add_accessory_modifiers = {
		gene = headgear
		template = sp4_rus_royalty
		is_valid_custom = {
			has_sp4_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = sp4_western_royalty
		is_valid_custom = {
			has_sp4_dlc_trigger = yes
		}
	}

	## CCP4 Sami ##

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

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

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

	## CCP4 Khanty ##

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

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

	add_accessory_modifiers = {
		gene = headgear
		template = ccp4_khanty_high_nobility
		is_valid_custom = {
			has_cp4_dlc_trigger = yes
		}	
	}	
	
	add_accessory_modifiers = {
		gene = headgear
		template = ccp4_khanty_war
		is_valid_custom = {
			has_cp4_dlc_trigger = yes
		}	
	}	

	add_accessory_modifiers = {
		gene = headgear
		template = ccp4_religious_siberian_commoner
		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_common
		is_valid_custom = {
			has_pol_dlc_trigger = yes
		}
	}

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

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

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

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

	add_accessory_modifiers = {
		gene = headgear
		template = pol_war
		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 = 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
	}


	## EP3 ##
	add_accessory_modifiers = {
		gene = headgear
		template = ep3_byzantine_era1_commoner
		is_valid_custom = {
			has_ep3_dlc_trigger = yes
		}
	}
	add_accessory_modifiers = {
		gene = headgear
		template = ep3_byzantine_era1_low_nobility
		is_valid_custom = {
			has_ep3_dlc_trigger = yes
		}
	}
	add_accessory_modifiers = {
		gene = headgear
		template = ep3_byzantine_era1_high_nobility
		is_valid_custom = {
			has_ep3_dlc_trigger = yes
		}
	}
	add_accessory_modifiers = {
		gene = headgear
		template = ep3_byzantine_era1_royalty
		is_valid_custom = {
			has_ep3_dlc_trigger = yes
		}
	}
	add_accessory_modifiers = {
		gene = headgear
		template = ep3_byzantine_era1_imperial
		is_valid_custom = {
			has_ep3_dlc_trigger = yes
		}
	}
	add_accessory_modifiers = {
		gene = headgear
		template = ep3_byzantine_era1_war_nobility
		is_valid_custom = {
			has_ep3_dlc_trigger = yes
		}
	}
	add_accessory_modifiers = {
		gene = headgear
		template = ep3_byzantine_era2_low_nobility
		is_valid_custom = {
			has_ep3_dlc_trigger = yes
		}
	}
	add_accessory_modifiers = {
		gene = headgear
		template = ep3_byzantine_era2_high_nobility
		is_valid_custom = {
			has_ep3_dlc_trigger = yes
		}
	}
	add_accessory_modifiers = {
		gene = headgear
		template = ep3_byzantine_era2_royalty
		is_valid_custom = {
			has_ep3_dlc_trigger = yes
		}
	}
	add_accessory_modifiers = {
		gene = headgear
		template = ep3_byzantine_era2_imperial
		is_valid_custom = {
			has_ep3_dlc_trigger = yes
		}
	}
	add_accessory_modifiers = {
		gene = headgear
		template = ep3_byzantine_era2_war_nobility
		is_valid_custom = {
			has_ep3_dlc_trigger = yes
		}
	}


	## 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_cloak_hoods
		is_valid_custom = {
			has_ce1_dlc_trigger = yes
		}
	}
	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_imperial
		is_valid_custom = {
			OR = {
				has_fp3_dlc_trigger = yes
				has_mpo_dlc_trigger = yes
			}
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = fp3_iranian_royalty
		is_valid_custom = {
			OR = {
				has_fp3_dlc_trigger = yes
				has_mpo_dlc_trigger = yes
			}
		}
	}

	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_nobility
		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 = fp3_turkic_low_nobility
		is_valid_custom = {
			OR = {
				has_fp3_dlc_trigger = yes
				has_mpo_dlc_trigger = yes
			}
		}
	}

	add_accessory_modifiers = {
		gene = headgear
		template = fp3_turkic_nobility
		is_valid_custom = {
			OR = {
				has_fp3_dlc_trigger = yes
				has_mpo_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 = 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 = {
			OR = {
				has_ep1_dlc_trigger = yes
				has_mpo_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
	}

	add_accessory_modifiers = {
		gene = headgear
		template = byzantine_nobility
	}

	add_accessory_modifiers = {
		gene = headgear
		template = byzantine_high_nobility
	}

	add_accessory_modifiers = {
		gene = headgear
		template = byzantine_royalty
	}

	add_accessory_modifiers = {
		gene = headgear
		template = byzantine_imperial
	}

	add_accessory_modifiers = {
		gene = headgear
		template = byzantine_war
	}

	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 = 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
	}
      
}