﻿custom_clothes = {
	usage = customization
	interface_position = 2

	add_accessory_modifiers = {
		gene = clothes
		template = no_clothes
		is_valid_custom = {
			NOT = { cfp_allow_nudity_in_barbershop_trigger = no }
		}
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = sp2_western_royalty_clothes
		is_valid_custom = {
			has_dlc_feature = elegance_of_the_empire
		}
	}

## EP2 ##

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

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

	add_accessory_modifiers = {
		gene = clothes
		template = byzantine_high_nobility_clothes
	}

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

	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 = clothes
		template = tfe_sasanian_war_nobility_clothes
	}
	add_accessory_modifiers = {
		gene = clothes
		template = male_clothes_roman_war
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = male_clothes_roman_war_high
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = male_clothes_roman_nobility_01
	}

	add_accessory_modifiers = {
		gene = clothes
		template = male_clothes_roman_nobility_02
	}

	add_accessory_modifiers = {
		gene = clothes
		template = male_clothes_roman_nobility_03
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = male_clothes_greek_war
	}
	
	add_accessory_modifiers = {
		gene = clothes
		template = roman_senate_clothes
	}
	#add_accessory_modifiers = {
	#	gene = hairstyles
	#	template = rtt_hairstyles
	#	
	#	is_valid_custom = {
	#		monarchs_journey_unlock = 1
	#	}
	#}

}
