﻿custom_cloaks = {
	usage = customization
	interface_position = 3

	add_accessory_modifiers = {
		gene = cloaks
		template = no_cloak
	}
	
	#AGOT Added
	add_accessory_modifiers = {
		gene = cloaks
		is_valid_custom = {
			has_ep1_dlc_trigger = yes
		}
		template = agot_all_ep1_cloaks
	}

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

	add_accessory_modifiers = {
		gene = cloaks
		template = agot_all_no_dlc_cloaks
	}

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

	add_accessory_modifiers = {
		gene = cloaks
		is_valid_custom = {
			has_dlc_feature = elegance_of_the_empire
		}
		template = agot_coa_cloaks_sp2
	}
	
	add_accessory_modifiers = {
		gene = cloaks
		template = andal_wedding_cloak
	}
	
	add_accessory_modifiers = {
		gene = cloaks
		template = agot_historic_capes
	}
	
	### AGOT Submod Core ###
	add_accessory_modifiers = {
		gene = cloaks
		is_valid_custom = {
			is_aotk_loaded_trigger = yes
			has_ep1_dlc_trigger = yes
		}
		template = kingsguard_cloak_aotk
	}

	add_accessory_modifiers = { #AGOT+
		gene = cloaks
		is_valid_custom = {
			is_agot_plus_loaded_trigger = yes
		}
		template = asoiaf_lannister_war_cloak
	}

	add_accessory_modifiers = { #AGOT+
		gene = cloaks
		is_valid_custom = {
			is_agot_plus_loaded_trigger = yes
		}
		template = asoiaf_gold_cloak_cloaks
	}
	
	add_accessory_modifiers = { #AGOT+
		gene = cloaks
		is_valid_custom = {
			exists = global_var:app_enabled
			is_agot_plus_loaded_trigger = yes
		}
		template = asoiaf_kingsguard_cloaks
	}

	add_accessory_modifiers = { #AGOT+
		gene = cloaks
		is_valid_custom = {
			is_agot_plus_loaded_trigger = yes
		}
		template = asoiaf_unique_cloaks
	}

	## CCP4 Sami ##

	add_accessory_modifiers = {
		gene = cloaks
		template = ccp4_sami_cloaks_com
		is_valid_custom = {
			has_cp4_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = cloaks
		template = ccp4_sami_cloaks_lo_nob
		is_valid_custom = {
			has_cp4_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = cloaks
		template = ccp4_sami_cloaks_hi_nob
		is_valid_custom = {
			has_cp4_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = cloaks
		template = ep3_byzantine_era1_nob
		is_valid_custom = {
			has_ep3_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = cloaks
		template = ep3_byzantine_era1_imperial
		is_valid_custom = {
			has_ep3_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = cloaks
		template = ep3_byzantine_era2_nob
		is_valid_custom = {
			has_ep3_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = cloaks
		template = ep3_byzantine_era2_roy_01_loros
		is_valid_custom = {
			has_ep3_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = cloaks
		template = ep3_byzantine_era2_imp_01_loros
		is_valid_custom = {
			has_ep3_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = cloaks
		template = fp4_cloak_western
		is_valid_custom = {
			has_ce1_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = cloaks
		template = sp3_cloak
		is_valid_custom = {
			has_dlc_feature = couture_of_the_capets
		}
	}

	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 = 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
	}
	
	add_accessory_modifiers = {
		gene = cloaks
		is_valid_custom = {
			has_afr_dlc_trigger = yes
		}
		template = afr_cloaks
	}
}
