﻿# Make sure the weights here match up best as possible with the hairstyles set
custom_hair = {
	usage = customization
	interface_position = 0
	priority = 5

	no_hair = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = hairstyles
				template = no_hairstyles
				value = 0
			}
		}

		weight = {
			base = 0
			modifier = {
				add = 200
				exists = this
				exists = character:easteregg_joe_parkin
				this = character:easteregg_joe_parkin
			}
			modifier = {
				add = 200
				exists = this
				exists = character:easteregg_alessandro_bragalini
				this = character:easteregg_alessandro_bragalini
			}
		}
	}

	### SP3 - Couture of the Capets ###

	add_accessory_modifiers = {
		gene = hairstyles
		template = sp3_hairstyles
		is_valid_custom = {
			has_dlc_feature = couture_of_the_capets
		}
	}

	### Ep3 Hair ###
	#byzantine
	add_accessory_modifiers = {
		gene = hairstyles
		is_valid_custom = {
			has_ep3_dlc_trigger = yes
		}
		template = ep3_byzantine_hairstyle
	}

	add_accessory_modifiers = {
		gene = hairstyles
		template = ep3_byzantine_hairstyles_wavy
		is_valid_custom = {
			has_ep3_dlc_trigger = yes
		}
		weight = {
			base = 0
			portrait_byzantine_clothing_modifier = yes
		}
	}

	add_accessory_modifiers = {
		gene = hairstyles
		template = ep3_byzantine_hairstyles_curly
		is_valid_custom = {
			has_ep3_dlc_trigger = yes
		}
		weight = {
			base = 0
			portrait_byzantine_clothing_modifier = yes
		}
	}

	add_accessory_modifiers = {
		gene = hairstyles
		template = ep3_byzantine_hairstyles_straight
		is_valid_custom = {
			has_ep3_dlc_trigger = yes
		}
		weight = {
			base = 0
			portrait_byzantine_clothing_modifier = yes
		}
	}

	### FP3 Hair ###
	#iranian
	add_accessory_modifiers = {
		gene = hairstyles
		is_valid_custom = {
			has_fp3_dlc_trigger = yes
		}
		template = fp3_hairstyles_iranian_straight

		weight = {
			base = 0
			portrait_fp3_iranian_clothing_modifier = yes
		}
	}

	add_accessory_modifiers = {
		gene = hairstyles
		is_valid_custom = {
			has_fp3_dlc_trigger = yes
		}
		template = fp3_hairstyles_iranian_wavy

		weight = {
			base = 0
			portrait_fp3_iranian_clothing_modifier = yes
		}
	}

	#turkic
	add_accessory_modifiers = {
		gene = hairstyles
		is_valid_custom = {
			has_fp3_dlc_trigger = yes
		}
		template = fp3_hairstyles_turkic_straight

		weight = {
			base = 0
			portrait_fp3_turkic_clothing_modifier = yes
		}
	}

	add_accessory_modifiers = {
		gene = hairstyles
		is_valid_custom = {
			has_fp3_dlc_trigger = yes
		}
		template = fp3_hairstyles_turkic_wavy

		weight = {
			base = 0
			portrait_fp3_turkic_clothing_modifier = yes
		}
	}

	### EP2 Hair ###
	add_accessory_modifiers = {
		gene = hairstyles
		is_valid_custom = {
			has_ep2_dlc_trigger = yes
		}
		template = ep2_hairstyles_western
	}

	### FP2 Hair ###
	add_accessory_modifiers = {
		gene = hairstyles
		is_valid_custom = {
			has_fp2_dlc_trigger = yes
		}
		template = fp2_hairstyles_iberian_muslim_straight

		weight = {
			base = 0
			portrait_fp2_iberian_muslim_clothing_modifier = yes
		}
	}

	add_accessory_modifiers = {
		gene = hairstyles
		is_valid_custom = {
			has_fp2_dlc_trigger = yes
		}
		template = fp2_hairstyles_iberian_muslim_wavy

		weight = {
			base = 0
			portrait_fp2_iberian_muslim_clothing_modifier = yes
		}
	}

	add_accessory_modifiers = {
		gene = hairstyles
		is_valid_custom = {
			has_fp2_dlc_trigger = yes
		}
		template = fp2_hairstyles_iberian_christian_straight

		weight = {
			base = 0
			portrait_fp2_iberian_christian_clothing_modifier = yes
		}
	}

	add_accessory_modifiers = {
		gene = hairstyles
		is_valid_custom = {
			has_fp2_dlc_trigger = yes
		}
		template = fp2_hairstyles_iberian_christian_wavy

		weight = {
			base = 0
			portrait_fp2_iberian_christian_clothing_modifier = yes
		}
	}

	### FP1 Hair ###

	add_accessory_modifiers = {
		gene = hairstyles
		is_valid_custom = {
			has_fp1_dlc_trigger = yes
		}
		template = fp1_hairstyles_straight

		weight = {
			base = 0
			portrait_fp1_norse_clothing_modifier = yes
		}
	}

	add_accessory_modifiers = {
		gene = hairstyles
		is_valid_custom = {
			has_fp1_dlc_trigger = yes
		}
		template = fp1_hairstyles_wavy

		weight = {
			base = 0
			portrait_fp1_norse_clothing_modifier = yes
		}
	}

	add_accessory_modifiers = {
		gene = hairstyles
		template = western_hairstyles_straight

		weight = {
			base = 0
			portrait_western_clothing_modifier = yes
		}
	}

	add_accessory_modifiers = {
		gene = hairstyles
		template = western_hairstyles_wavy

		weight = {
			base = 0
			portrait_western_clothing_modifier = yes
		}
	}

	add_accessory_modifiers = {
		gene = hairstyles
		template = western_hairstyles_curly

		weight = {
			base = 0
			portrait_western_clothing_modifier = yes
		}
	}
	## CFP
	add_accessory_modifiers = {
		gene = hairstyles
		template = cfp_western_hairstyles_aging
	}
	## /CFP

	add_accessory_modifiers = {
		gene = hairstyles
		template = mena_hairstyles_straight

		weight = {
			base = 0
			portrait_mena_clothing_modifier = yes
		}
	}

	add_accessory_modifiers = {
		gene = hairstyles
		template = mena_hairstyles_wavy

		weight = {
			base = 0
			portrait_mena_clothing_modifier = yes
		}
	}

	add_accessory_modifiers = {
		gene = hairstyles
		template = mena_hairstyles_curly

		weight = {
			base = 0
			portrait_mena_clothing_modifier = yes
		}
	}

	add_accessory_modifiers = {
		gene = hairstyles
		template = byzantine_hairstyles_straight

		weight = {
			base = 0
			portrait_byzantine_clothing_modifier = yes
		}
	}

	add_accessory_modifiers = {
		gene = hairstyles
		template = byzantine_hairstyles_wavy

		weight = {
			base = 0
			portrait_byzantine_clothing_modifier = yes
		}
	}

	add_accessory_modifiers = {
		gene = hairstyles
		template = byzantine_hairstyles_curly

		weight = {
			base = 0
			portrait_byzantine_clothing_modifier = yes
		}
	}

	add_accessory_modifiers = {
		gene = hairstyles
		template = indian_hairstyles_straight

		weight = {
			base = 0
			portrait_indian_clothing_modifier = yes
		}
	}

	add_accessory_modifiers = {
		gene = hairstyles
		template = indian_hairstyles_wavy

		weight = {
			base = 0
			portrait_indian_clothing_modifier = yes
		}
	}

	add_accessory_modifiers = {
		gene = hairstyles
		template = indian_hairstyles_curly

		weight = {
			base = 0
			portrait_indian_clothing_modifier = yes
		}
	}

	## CFP
	add_accessory_modifiers = {
		gene = hairstyles
		template = cfp_slavic_hairstyles_warrior
	}
	add_accessory_modifiers = {
		gene = hairstyles
		template = cfp_hungarian_hairstyles_warrior
	}
	add_accessory_modifiers = {
		gene = hairstyles
		template = catholic_devoted_hairstyles
	}
	## / CFP
	add_accessory_modifiers = {
		gene = hairstyles
		template = steppe_hairstyles_straight

		weight = {
			base = 0
			portrait_steppe_clothing_modifier = yes
		}
	}

	add_accessory_modifiers = {
		gene = hairstyles
		template = steppe_hairstyles_wavy

		weight = {
			base = 0
			portrait_steppe_clothing_modifier = yes
		}
	}

	add_accessory_modifiers = {
		gene = hairstyles
		template = steppe_hairstyles_curly

		weight = {
			base = 0
			portrait_steppe_clothing_modifier = yes
		}
	}

	add_accessory_modifiers = {
		gene = hairstyles
		template = northern_hairstyles_straight

		weight = {
			base = 0
			portrait_northern_clothing_modifier = yes
		}
	}

	add_accessory_modifiers = {
		gene = hairstyles
		template = northern_hairstyles_wavy

		weight = {
			base = 0
			portrait_northern_clothing_modifier = yes
		}
	}

	add_accessory_modifiers = {
		gene = hairstyles
		template = northern_hairstyles_curly

		weight = {
			base = 0
			portrait_northern_clothing_modifier = yes
		}
	}

	add_accessory_modifiers = {
		gene = hairstyles
		template = sub_saharan_hairstyles_afro

		weight = {
			base = 0
			portrait_african_clothing_modifier = yes
		}
	}

	add_accessory_modifiers = {
		gene = hairstyles
		template = byzantine_hairstyles

		weight = {
			base = 0
			portrait_byzantine_clothing_modifier = yes
		}
	}

	add_accessory_modifiers = {
		gene = hairstyles
		template = sub_saharan_hairstyles

		weight = {
			base = 0
			portrait_african_clothing_modifier = yes
		}
	}

	add_accessory_modifiers = {
		gene = hairstyles
		template = indian_hairstyles

		weight = {
			base = 0
			portrait_indian_clothing_modifier = yes
		}
	}

	add_accessory_modifiers = {
		gene = hairstyles
		template = northern_hairstyles

		weight = {
			base = 0
			portrait_northern_clothing_modifier = yes
		}
	}

	add_accessory_modifiers = {
		gene = hairstyles
		template = steppe_hairstyles

		weight = {
			base = 0
			portrait_steppe_clothing_modifier = yes
		}
	}

	add_accessory_modifiers = {
		gene = hairstyles
		template = rtt_hairstyles

		weight = {
			base = 0
			portrait_scottish_unique_haircut = yes
			portrait_frankish_unique_haircut = yes
		}
	}

	add_accessory_modifiers = {
		gene = hairstyles
		template = special_hairstyles
	}


	############################################################################################################################################
	######################################################### EPE ADDED HEADGEAR ###############################################################
	############################################################################################################################################



			##########################################################################
			####East Slav
			##########################################################################

	add_accessory_modifiers = {
		gene = hairstyles
		template = east_slav_hairstyles_straight

		weight = {
			base = 0
			portrait_epe_east_slav_clothing_modifier = yes
		}
	}

	add_accessory_modifiers = {
		gene = hairstyles
		template = east_slav_hairstyles_wavy

		weight = {
			base = 0
			portrait_epe_east_slav_clothing_modifier = yes
		}
	}

	add_accessory_modifiers = {
		gene = hairstyles
		template = east_slav_hairstyles_curly

		weight = {
			base = 0
			portrait_epe_east_slav_clothing_modifier = yes
		}
	}


			##########################################################################
			####Balto-Finnic
			##########################################################################

	add_accessory_modifiers = {
		gene = hairstyles
		template = balto_finnic_hairstyles_straight

		weight = {
			base = 0
			portrait_epe_balto_finnic_clothing_modifier = yes
		}
	}

	add_accessory_modifiers = {
		gene = hairstyles
		template = balto_finnic_slav_hairstyles_wavy

		weight = {
			base = 0
			portrait_epe_balto_finnic_clothing_modifier = yes
		}
	}

			##########################################################################
			####Gaelic/Irish
			##########################################################################

	add_accessory_modifiers = {
		gene = hairstyles
		is_valid_custom = {
			has_fp1_dlc_trigger = yes
		}
		template = gaelic_hairstyles_straight

		weight = {
			base = 0
			portrait_epe_gaelic_clothing_modifier = yes
		}
	}

	add_accessory_modifiers = {
		gene = hairstyles
		is_valid_custom = {
			has_fp1_dlc_trigger = yes
		}
		template = gaelic_hairstyles_wavy

		weight = {
			base = 0
			portrait_epe_gaelic_clothing_modifier = yes
		}
	}

	add_accessory_modifiers = {
		gene = hairstyles
		template = northern_hairstyles_curly

		weight = {
			base = 0
			portrait_epe_gaelic_clothing_modifier = yes
		}
	}

			##########################################################################
			####Eastern Turkic/Default Turk
			##########################################################################

	add_accessory_modifiers = {
		gene = hairstyles
		template = turkic_hairstyles_straight

		weight = {
			base = 0
			portrait_epe_eastern_turk_clothing_modifier = yes
		}
	}

	add_accessory_modifiers = {
		gene = hairstyles
		template = turkic_hairstyles_wavy

		weight = {
			base = 0
			portrait_epe_eastern_turk_clothing_modifier = yes
		}
	}

			##########################################################################
			####Seljuk Turk
			##########################################################################

	add_accessory_modifiers = {
		gene = hairstyles
		template = turkic_hairstyles_straight

		weight = {
			base = 0
			portrait_epe_seljuk_clothing_modifier = yes
		}
	}

	add_accessory_modifiers = {
		gene = hairstyles
		template = turkic_hairstyles_wavy

		weight = {
			base = 0
			portrait_epe_seljuk_clothing_modifier = yes
		}
	}


			##########################################################################
			####North africa/maghreb
			##########################################################################

	add_accessory_modifiers = {
		gene = hairstyles
		is_valid_custom = {
			has_fp2_dlc_trigger = yes
		}
		template = fp2_hairstyles_maghrebi_straight_common

		weight = {
			base = 0
			portrait_afr_berber_clothing_modifier = yes
		}
	}

	add_accessory_modifiers = {
		gene = hairstyles
		is_valid_custom = {
			has_fp2_dlc_trigger = yes
		}
		template = fp2_hairstyles_maghrebi_wavy_common

		weight = {
			base = 0
			portrait_afr_berber_clothing_modifier = yes
		}
	}

	add_accessory_modifiers = {
		gene = hairstyles
		is_valid_custom = {
			has_fp2_dlc_trigger = yes
		}
		template = fp2_hairstyles_maghrebi_curly_common

		weight = {
			base = 0
			portrait_afr_berber_clothing_modifier = yes
		}
	}


			##########################################################################
			####Iranian Muslim
			##########################################################################

	add_accessory_modifiers = {
		gene = hairstyles
		template = iranian_hairstyles_straight

		weight = {
			base = 0
			portrait_epe_islamic_iranian_clothing_modifier = yes
		}
	}

	add_accessory_modifiers = {
		gene = hairstyles
		template = iranian_hairstyles_wavy

		weight = {
			base = 0
			portrait_epe_islamic_iranian_clothing_modifier = yes
		}
	}

	add_accessory_modifiers = {
		gene = hairstyles
		template = iranian_hairstyles_curly

		weight = {
			base = 0
			portrait_epe_islamic_iranian_clothing_modifier = yes
		}
	}

			##########################################################################
			####Iranian non-muslim
			##########################################################################

	add_accessory_modifiers = {
		gene = hairstyles
		template = eastern_iranian_hairstyles_straight

		weight = {
			base = 0
			portrait_epe_non_islamic_iranian_clothing_modifier = yes
		}
	}

	add_accessory_modifiers = {
		gene = hairstyles
		template = eastern_iranian_hairstyles_wavy

		weight = {
			base = 0
			portrait_epe_non_islamic_iranian_clothing_modifier = yes
		}
	}

	add_accessory_modifiers = {
		gene = hairstyles
		template = eastern_iranian_hairstyles_curly

		weight = {
			base = 0
			portrait_epe_non_islamic_iranian_clothing_modifier = yes
		}
	}

			##########################################################################
			####Han Chinese
			##########################################################################

	add_accessory_modifiers = {
		gene = hairstyles
		template = han_hairstyles_straight

		weight = {
			base = 0
			portrait_epe_han_chinese_clothing_modifier = yes
		}
	}

	add_accessory_modifiers = {
		gene = hairstyles
		template = han_hairstyles_wavy

		weight = {
			base = 0
			portrait_epe_han_chinese_clothing_modifier = yes
		}
	}


			##########################################################################
			####Uyghur
			##########################################################################

	add_accessory_modifiers = {
		gene = hairstyles
		template = turkic_hairstyles_straight

		weight = {
			base = 0
			portrait_epe_uyghur_clothing_modifier = yes
		}
	}

	add_accessory_modifiers = {
		gene = hairstyles
		template = turkic_hairstyles_wavy

		weight = {
			base = 0
			portrait_epe_uyghur_clothing_modifier = yes
		}
	}

	#######################
	###  Rajas of Asia  ###
	#######################

	add_accessory_modifiers = {
		gene = hairstyles
		template = chinese_hairstyles_straight

		weight = {
			base = 0
			portrait_chinese_clothing_modifier = yes
		}
	}

	add_accessory_modifiers = {
		gene = hairstyles
		template = chinese_hairstyles_wavy

		weight = {
			base = 0
			portrait_chinese_clothing_modifier = yes
		}
	}

	add_accessory_modifiers = {
		gene = hairstyles
		template = chinese_hairstyles_curly

		weight = {
			base = 0
			portrait_chinese_clothing_modifier = yes
		}
	}

	add_accessory_modifiers = {
		gene = hairstyles
		template = chinese_hairstyles_afro

		weight = {
			base = 0
			portrait_chinese_clothing_modifier = yes
		}
	}

	add_accessory_modifiers = {
		gene = hairstyles
		template = japanese_hairstyles

		weight = {
			base = 0
			portrait_japanese_clothing_modifier = yes
		}
	}

	add_accessory_modifiers = {
		gene = hairstyles
		template = ainu_hairstyles

		weight = {
			base = 0
			portrait_ainu_clothing_modifier = yes
		}
	}

	add_accessory_modifiers = {
		gene = hairstyles
		template = tai_generic

		weight = {
			base = 0
			portrait_tai_clothing_modifier = yes
		}
	}

}
