﻿custom_headgear = {
	usage = customization
	interface_position = 1

	add_accessory_modifiers = {
		gene = headgear
		template = western_common
	}
	
	add_accessory_modifiers = {
		gene = headgear
		template = western_nobility
	}

	add_accessory_modifiers = {
		gene = headgear
		template = catholic_head
	}

	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 = 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_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 = hairstyles
	#	template = rtt_hairstyles
	#	
	#	is_valid_custom = {
	#		monarchs_journey_unlock = 1
	#	}
	#}
	male_headgear_secular_rtt_nobility_01_low = {
		usage = customization
		dna_modifiers = {
			accessory = {
				mode = add

				gene = headgear
				template = monarchs_journey_low
				value = 0
			}
		}
		
		is_valid_custom = {
			is_male = yes
		}
	}

	male_headgear_secular_rtt_jester_01_low = {
		usage = customization
		dna_modifiers = {
			accessory = {
				mode = add

				gene = headgear
				template = monarchs_journey_low
				value = 1
			}
		}
		
		is_valid_custom = {
			is_male = yes
		}
	}

	female_headgear_secular_rtt_nobility_01_low = {
		usage = customization
		dna_modifiers = {
			accessory = {
				mode = add

				gene = headgear
				template = monarchs_journey_low
				value = 1
			}
		}
		
		is_valid_custom = {
			is_male = no
		}
	}
}
