﻿custom_clothes = {
	usage = customization
	interface_position = 2
	
	add_accessory_modifiers = {
		gene = clothes
		template = no_clothes
		is_valid_custom = {
			OR = {
				NOT = { cfp_allow_nudity_in_barbershop_trigger = no }
				NOT = { epe_allow_nudity_in_barbershop_trigger = no }
			}
		}
	}

	add_accessory_modifiers = {
		gene = clothes
		template = epe_scripted_character_clothes
		is_valid_custom = {
			has_ep3_dlc_trigger = yes
		}
	}
	add_accessory_modifiers = {
		gene = clothes
		template = sp3_western_royalty_clothes
		is_valid_custom = {
			has_dlc_feature = couture_of_the_capets
		}
	}

	add_accessory_modifiers = {
		gene = clothes
		template = sp2_western_royalty_clothes
		is_valid_custom = {
			has_dlc_feature = elegance_of_the_empire
		}
	}

	# add_accessory_modifiers = { # This is adding every dlc item in the clothes category, probably not what we want
	# 	gene = clothes
	# 	template = most_clothes
	# }

	## CCP4 Sami ##

	add_accessory_modifiers = {
		gene = clothes
		template = ccp4_sami_commoner_clothes
		is_valid_custom = {
			has_cp4_dlc_trigger = yes
		}
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = ccp4_sami_low_nobility_clothes
		is_valid_custom = {
			has_cp4_dlc_trigger = yes
		}
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = ccp4_sami_high_nobility_clothes
		is_valid_custom = {
			has_cp4_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = clothes
		template = ccp4_sami_travel_clothes
		is_valid_custom = {
			has_cp4_dlc_trigger = yes
		}
	}
	
	## CCP4 Khanty ##

	add_accessory_modifiers = {
		gene = clothes
		template = ccp4_khanty_commoner_clothes
		is_valid_custom = {
			has_cp4_dlc_trigger = yes
		}
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = ccp4_khanty_low_nobility_clothes
		is_valid_custom = {
			has_cp4_dlc_trigger = yes
		}
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = ccp4_khanty_high_nobility_clothes
		is_valid_custom = {
			has_cp4_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = clothes
		template = ccp4_khanty_war_nobility_clothes
		is_valid_custom = {
			has_cp4_dlc_trigger = yes
		}	
	}
	## POL ##

	add_accessory_modifiers = {
		gene = clothes
		template = pol_commoner_clothes
		is_valid_custom = {
			has_pol_dlc_trigger = yes
		}
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = pol_low_nobility_clothes
		is_valid_custom = {
			has_pol_dlc_trigger = yes
		}
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = pol_high_nobility_clothes
		is_valid_custom = {
			has_pol_dlc_trigger = yes
		}
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = pol_imperial_clothes
		is_valid_custom = {
			has_pol_dlc_trigger = yes
		}
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = pol_war_nobility_clothes
		is_valid_custom = {
			has_pol_dlc_trigger = yes
		}
	}

	## EP3 ##
	add_accessory_modifiers = {
		gene = clothes
		template = ep3_byzantine_era2_royalty_clothes
		is_valid_custom = {
			has_ep3_dlc_trigger = yes
		}
	}	
	add_accessory_modifiers = {
		gene = clothes
		template = ep3_byzantine_era1_imperial_clothes
		is_valid_custom = {
			has_ep3_dlc_trigger = yes
		}
	}	
	add_accessory_modifiers = {
		gene = clothes
		template = ep3_byzantine_era2_imperial_clothes
		is_valid_custom = {
			has_ep3_dlc_trigger = yes
		}
	}	

	
	## CE1 ##
	add_accessory_modifiers = {
		gene = clothes
		template = fp4_western_physician_01
		is_valid_custom = {
			has_ce1_dlc_trigger = yes
		}
	}
	add_accessory_modifiers = {
		gene = clothes
		template = fp4_western_bedchamber_clothes
		is_valid_custom = {
			has_ce1_dlc_trigger = yes
		}
	}
	add_accessory_modifiers = {
		gene = clothes
		template = fp4_western_era3_low_nobility_clothes
		is_valid_custom = {
			has_ce1_dlc_trigger = yes
		}
	}
	add_accessory_modifiers = {
		gene = clothes
		template = fp4_western_era3_high_nobility_clothes
		is_valid_custom = {
			has_ce1_dlc_trigger = yes
		}
	}
	add_accessory_modifiers = {
		gene = clothes
		template = fp4_western_era2_low_nobility_clothes
		is_valid_custom = {
			has_ce1_dlc_trigger = yes
		}
	}
	add_accessory_modifiers = {
		gene = clothes
		template = fp4_western_era2_high_nobility_clothes
		is_valid_custom = {
			has_ce1_dlc_trigger = yes
		}
	}

	## EP2 ##
	add_accessory_modifiers = {
		gene = clothes
		template = ep2_western_era1_commoner_clothes
		is_valid_custom = {
			has_ep2_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = clothes
		template = ep2_western_era1_low_nobility_clothes
		is_valid_custom = {
			has_ep2_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = clothes
		template = ep2_western_era1_high_nobility_clothes
		is_valid_custom = {
			has_ep2_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = clothes
		template = ep2_western_era1_war_nobility_clothes
		is_valid_custom = {
			has_ep2_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = clothes
		template = ep2_western_era2_war_nobility_clothes
		is_valid_custom = {
			has_ep2_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = clothes
		template = ep2_western_era3_low_nobility_clothes
		is_valid_custom = {
			has_ep2_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = clothes
		template = ep2_western_era3_high_nobility_clothes
		is_valid_custom = {
			has_ep2_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = clothes
		template = ep2_western_era4_war_nobility_clothes
		is_valid_custom = {
			has_ep2_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = clothes
		template = ep2_religious_muslim_hajj_clothes
		is_valid_custom = {
			has_ep2_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = clothes
		template = ep2_religious_muslim_ihram_clothes
		is_valid_custom = {
			has_ep2_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = clothes
		template = ep2_mena_war_nobility_clothes
		is_valid_custom = {
			has_ep2_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = clothes
		template = ep2_steppe_war_nobility_clothes
		is_valid_custom = {
			has_ep2_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = clothes
		template = ep2_byzantine_war_nobility_clothes
		is_valid_custom = {
			has_ep2_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = clothes
		template = ep2_indian_war_nobility_clothes
		is_valid_custom = {
			has_ep2_dlc_trigger = yes
		}
	}

	## AFR ##

	add_accessory_modifiers = {
		gene = clothes
		template = afr_commoner_clothes
		is_valid_custom = {
			has_afr_dlc_trigger = yes
		}
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = afr_low_nobility_clothes
		is_valid_custom = {
			has_afr_dlc_trigger = yes
		}
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = afr_high_nobility_clothes
		is_valid_custom = {
			has_afr_dlc_trigger = yes
		}
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = afr_war_nobility_clothes
		is_valid_custom = {
			has_afr_dlc_trigger = yes
		}
	}

	## FP3 - Sands of Time ##

	add_accessory_modifiers = {
		gene = clothes
		template = fp3_iranian_low_nobility_clothes
		is_valid_custom = {
			has_fp3_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = clothes
		template = fp3_iranian_high_nobility_clothes
		is_valid_custom = {
			has_fp3_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = clothes
		template = fp3_iranian_war_nobility_clothes
		is_valid_custom = {
			has_fp3_dlc_trigger = yes
		}
	}

	## FP2 - The Fate of Iberia ##

	add_accessory_modifiers = {
		gene = clothes
		template = fp2_muslim_commoner_clothes
		is_valid_custom = {
			has_fp2_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = clothes
		template = fp2_christian_commoner_clothes
		is_valid_custom = {
			has_fp2_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = clothes
		template = fp2_muslim_low_nobility_clothes
		is_valid_custom = {
			has_fp2_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = clothes
		template = fp2_christian_low_nobility_clothes
		is_valid_custom = {
			has_fp2_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = clothes
		template = fp2_muslim_high_nobility_clothes
		is_valid_custom = {
			has_fp2_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = clothes
		template = fp2_christian_high_nobility_clothes
		is_valid_custom = {
			has_fp2_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = clothes
		template = fp2_muslim_war_nobility_clothes
		is_valid_custom = {
			has_fp2_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = clothes
		template = fp2_christian_war_nobility_clothes
		is_valid_custom = {
			has_fp2_dlc_trigger = yes
		}
	}

	## FP1 ##

	add_accessory_modifiers = {
		gene = clothes
		template = fp1_commoner_clothes
		is_valid_custom = {
			has_fp1_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = clothes
		template = fp1_commoner_clothes
		is_valid_custom = {
			has_fp1_dlc_trigger = yes
		}
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = fp1_low_nobility_clothes
		is_valid_custom = {
			has_fp1_dlc_trigger = yes
		}
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = fp1_high_nobility_clothes
		is_valid_custom = {
			has_fp1_dlc_trigger = yes
		}
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = fp1_war_nobility_clothes
		is_valid_custom = {
			has_fp1_dlc_trigger = yes
		}
	}

	add_accessory_modifiers = {
		gene = clothes
		template = western_commoner_clothes
	}

	add_accessory_modifiers = {
		gene = clothes
		template = western_low_nobility_clothes
	}

	add_accessory_modifiers = {
		gene = clothes
		# is_valid_custom = {
		# 	highest_held_title_tier > tier_county
		# }
		template = western_high_nobility_clothes
	}

	add_accessory_modifiers = {
		gene = clothes
		template = cfp_western_high_nobility_clothes_late
	}

	add_accessory_modifiers = {
		gene = clothes
		# is_valid_custom = {
		# 	highest_held_title_tier > tier_duchy
		# }
		template = western_royal_clothes
	}

	add_accessory_modifiers = {
		gene = clothes
		template = western_war_nobility_clothes
	}

	add_accessory_modifiers = {
		gene = clothes
		template = cfp_western_war_plate_armor
	}

	# add_accessory_modifiers = {
	# 	gene = clothes
	# 	is_valid_custom = {
	# 		highest_held_title_tier > tier_kingdom
	# 	}
	# 	template = western_imperial_clothes
	# }

	add_accessory_modifiers = {
		gene = clothes
		template = western_prison
	}

	# add_accessory_modifiers = {
	#	gene = clothes
	#	template = western_bedchamber
	#}
	
	# western_bedchamber conflicts with nudity unlock in barbershop
	add_accessory_modifiers = {
		gene = clothes
		template = cfp_bedchamber
	}

	add_accessory_modifiers = {
		gene = clothes
		template = western_crusades
	}

	add_accessory_modifiers = {
		gene = clothes
		template = cfp_latin_venetian_royalty_clothes
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = northern_commoner_clothes
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = northern_low_nobility_clothes
	}

	add_accessory_modifiers = {
		gene = clothes
		template = northern_high_nobility_clothes
	}

	add_accessory_modifiers = {
		gene = clothes
		template = northern_war_nobility_clothes
	}

	add_accessory_modifiers = {
		gene = clothes
		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
		}
		template = byzantine_commoner_clothes
	}
	
	add_accessory_modifiers = {
		gene = clothes
		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
		}
		template = byzantine_low_nobility_clothes
	}

	add_accessory_modifiers = {
		gene = clothes
		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
		}
		template = byzantine_high_nobility_clothes
	}

	add_accessory_modifiers = {
		gene = clothes
		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
		}
		template = byzantine_war_nobility_clothes
	}

	add_accessory_modifiers = {
		gene = clothes
		template = mena_commoner_clothes
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = mena_low_nobility_clothes
	}

	add_accessory_modifiers = {
		gene = clothes
		template = mena_high_nobility_clothes
	}

	add_accessory_modifiers = {
		gene = clothes
		template = mena_war_nobility_clothes
	}

	add_accessory_modifiers = {
		gene = clothes
		template = steppe_commoner_clothes
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = steppe_low_nobility_clothes
	}

	add_accessory_modifiers = {
		gene = clothes
		template = steppe_high_nobility_clothes
	}

	add_accessory_modifiers = {
		gene = clothes
		template = steppe_war_nobility_clothes
	}

	add_accessory_modifiers = {
		gene = clothes
		template = indian_commoner_clothes
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = indian_low_nobility_clothes
	}

	add_accessory_modifiers = {
		gene = clothes
		template = indian_high_nobility_clothes
	}

	add_accessory_modifiers = {
		gene = clothes
		template = indian_war_nobility_clothes
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = cfp_javanese_common
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = cfp_javanese_nobility
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = cfp_javanese_royalty
	}	

	add_accessory_modifiers = {
		gene = clothes
		template = sub_saharan_commoner_clothes
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = sub_saharan_low_nobility_clothes
	}

	add_accessory_modifiers = {
		gene = clothes
		template = sub_saharan_high_nobility_clothes
	}

	add_accessory_modifiers = {
		gene = clothes
		template = sub_saharan_war_nobility_clothes
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = cfp_east_african_war_nobility_clothes
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = dde_hre_commoner_clothes
		is_valid_custom = {
			has_dlc = "Garments of the Holy Roman Empire"
		}
	}

	add_accessory_modifiers = {
		gene = clothes
		template = dde_hre_low_nobility_clothes
		is_valid_custom = {
			has_dlc = "Garments of the Holy Roman Empire"
		}
	}

	add_accessory_modifiers = {
		gene = clothes
		template = dde_hre_high_nobility_clothes
		is_valid_custom = {
			has_dlc = "Garments of the Holy Roman Empire"
		}
	}

	add_accessory_modifiers = {
		gene = clothes
		template = dde_hre_war_nobility_clothes
		is_valid_custom = {
			has_dlc = "Garments of the Holy Roman Empire"
		}
	}

	add_accessory_modifiers = {
		gene = clothes
		template = dde_abbasid_commoner_clothes
		is_valid_custom = {
			has_dlc = "Fashion of the Abbasid Court"
		}
	}

	add_accessory_modifiers = {
		gene = clothes
		template = dde_abbasid_low_nobility_clothes
		is_valid_custom = {
			has_dlc = "Fashion of the Abbasid Court"
		}
	}

	add_accessory_modifiers = {
		gene = clothes
		template = dde_abbasid_high_nobility_clothes
		is_valid_custom = {
			has_dlc = "Fashion of the Abbasid Court"
		}
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = dde_abbasid_war_nobility_clothes
		is_valid_custom = {
			has_dlc = "Fashion of the Abbasid Court"
		}
	}
	
	add_accessory_modifiers = {
		## CFP Unlocked vanilla
		gene = clothes
		template = mena_stealth
	}
	
	add_accessory_modifiers = {
		## CFP Unlocked vanilla
		gene = clothes
		template = western_stealth
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = cfp_religious_orthodox_devoted_clothes
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = religious_orthodox_high_clothes
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = religious_orthodox_head_clothes
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = religious_muslim_high_clothes
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = cfp_religious_muslim_high_turkic_clothes
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = religious_muslim_head_clothes
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = religious_catholic_devoted_clothes
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = religious_catholic_high_clothes
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = cfp_religious_catholic_cardinal_clothes
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = cfp_religious_catholic_head_early_clothes
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = religious_catholic_head_clothes
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = religious_african_high_clothes
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = religious_northern_high_clothes
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = religious_hindu_devoted_clothes
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = religious_jain_devoted_clothes
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = religious_buddhist_high_clothes
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = religious_zoroastrian_high_clothes
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = religious_jewish_head_clothes
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = religious_jewish_high_clothes
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = religious_steppe_high_clothes
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = ep1_jester_clothes
	}

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

	##########################################################################
	####Balkans 
	##########################################################################		

	add_accessory_modifiers = {
		gene = clothes
		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
		}
		template = epe_balkan_commoner_clothes
	}
	
	add_accessory_modifiers = {
		gene = clothes
		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
		}
		template = epe_balkan_low_nobility_clothes
	}
	
	add_accessory_modifiers = {
		gene = clothes
		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
		}
		template = epe_balkan_high_nobility_clothes
	}	
	
	
	##########################################################################
	#### East Slav
	##########################################################################

	add_accessory_modifiers = {
		gene = clothes
		template = east_slav_commoner_clothes
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = east_slav_low_nobility_clothes
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = east_slav_high_nobility_clothes
	}

	add_accessory_modifiers = {
		gene = clothes
		template = east_slav_royalty_clothes
	}
	add_accessory_modifiers = {
		gene = clothes
		template = east_slav_war_nobility_clothes
	}	
	
	##########################################################################
	####  Turkic
	##########################################################################

	add_accessory_modifiers = {
		gene = clothes
		template = epe_turkic_commoner_clothes
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = epe_turkic_low_nobility_clothes
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = epe_turkic_high_nobility_clothes
	}	
	
	add_accessory_modifiers = {
		gene = clothes
		template = epe_turkic_war_nobility_clothes
	}		
	
	##########################################################################
	#### Han Chinese
	##########################################################################

	add_accessory_modifiers = {
		gene = clothes
		template = han_chinese_commoner_clothes
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = han_chinese_low_nobility_clothes
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = han_chinese_high_nobility_clothes
	}

	add_accessory_modifiers = {
		gene = clothes
		template = han_chinese_war_nobility_clothes
	}
	


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

	add_accessory_modifiers = {
		gene = clothes
		template = norman_sicilian_high_nobility_clothes
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = norman_sicilian_imperial_clothes
	}
	
	##########################################################################
	#### Spy Master
	##########################################################################

	add_accessory_modifiers = {
		gene = clothes
		template = epe_spymaster_clothes
	}
	
	
	
	
	
	
	
	
	
	
	
	

}
