﻿custom_cloaks = {
	usage = customization
	interface_position = 3

	add_accessory_modifiers = {
		gene = cloaks
		template = no_cloak
	}

	add_accessory_modifiers = {
		gene = cloaks
		template = sp2_cloak_imperial
		is_valid_custom = {
			has_dlc_feature = elegance_of_the_empire
		}
	}

	add_accessory_modifiers = {
		gene = cloaks
		is_valid_custom = {
			has_ep2_dlc_trigger = yes
		}
		template = ep2_cloak_western_travel
	}

	add_accessory_modifiers = {
		gene = cloaks
		is_valid_custom = {
			has_ep2_dlc_trigger = yes
		}
		template = ep2_cloak_mena_travel
	}

	add_accessory_modifiers = {
		gene = cloaks
		is_valid_custom = {
			has_ep2_dlc_trigger = yes
		}
		template = ep2_cloak_western_era1_low_nobility
	}
	
	add_accessory_modifiers = {
		gene = cloaks
		is_valid_custom = {
			has_ep2_dlc_trigger = yes
		}
		template = ep2_cloak_western_era1_high_nobility
	}
	add_accessory_modifiers = {
		gene = cloaks
		template = byzantine_imperial
	}
	add_accessory_modifiers = {
		gene = cloaks
		template = sasanian_pauldrons
	}
	add_accessory_modifiers = {
		gene = cloaks
		template = western_royalty
	}

	add_accessory_modifiers = {
		gene = cloaks
		is_valid_custom = {
			has_fp1_dlc_trigger = yes
		}
		template = fp1_cloak
	}

	add_accessory_modifiers = {
		gene = cloaks
		is_valid_custom = {
			has_ep1_dlc_trigger = yes
		}
		template = ep1_cloak_adventurer
	}

	## CFP
	add_accessory_modifiers = {
		gene = cloaks
		template = cfp_western_ermine
	}

	add_accessory_modifiers = {
		gene = cloaks
		template = cfp_western_commoner
	}

	add_accessory_modifiers = {
		gene = cloaks
		template = cfp_western_crusades_commoner
	}

	add_accessory_modifiers = {
		gene = cloaks
		template = cfp_western_crusades
	}

	add_accessory_modifiers = {
		gene = cloaks
		template = cfp_norse_war
	}

	add_accessory_modifiers = {
		gene = cloaks
		template = cfp_norman_war
	}
	
	add_accessory_modifiers = {
		gene = cloaks
		template = cfp_berber_high_nobility
	}
	
	add_accessory_modifiers = {
		gene = cloaks
		template = cfp_religious_catholic_head
	}
	
	add_accessory_modifiers = {
		gene = cloaks
		template = cfp_religious_catholic_high_northern
	}
	
	add_accessory_modifiers = {
		gene = cloaks
		template = cfp_religious_muslim
	}
	
	add_accessory_modifiers = {
		gene = cloaks
		template = cfp_religious_orthodox_high
	}
	
	
	add_accessory_modifiers = {
		gene = cloaks
		template = cfp_african_royalty
	}
	
	add_accessory_modifiers = {
		gene = cloaks
		is_valid_custom = {
			NOT = {	has_game_rule = default_cfp_fantasy }
		}
		template = cfp_fantasy_cloaks
	}
	
}
