﻿custom_legwear = {
	usage = customization
	interface_position = 6
	
	add_accessory_modifiers = {
		gene = legwear
		template = no_legwear
	}

	#AGOT Added
	add_accessory_modifiers = {
		gene = legwear
		template = agot_all_legwear
	}
	
	## TGP Chinese ##

	add_accessory_modifiers = {
		gene = legwear
		is_valid_custom = {
			has_tgp_dlc_trigger = yes
		}
		template = tgp_chinese_commoner_legwear
	}

	add_accessory_modifiers = {
		gene = legwear
		is_valid_custom = {
			has_tgp_dlc_trigger = yes
		}
		template = tgp_chinese_war_legwear
	}

	add_accessory_modifiers = {
		gene = legwear
		is_valid_custom = {
			has_tgp_dlc_trigger = yes
		}
		template = tgp_chinese_nobility_legwear
	}

	add_accessory_modifiers = {
		gene = legwear
		is_valid_custom = {
			has_tgp_dlc_trigger = yes
		}
		template = tgp_japanese_commoner_legwear
	}

	add_accessory_modifiers = {
		gene = legwear
		is_valid_custom = {
			has_tgp_dlc_trigger = yes
		}
		template = tgp_japanese_war_legwear
	}
	
	add_accessory_modifiers = {
		gene = legwear
		is_valid_custom = {
			has_tgp_dlc_trigger = yes
		}
		template = tgp_japanese_imperial_legwear
	}

		add_accessory_modifiers = {
		gene = legwear
		is_valid_custom = {
			has_tgp_dlc_trigger = yes
		}
		template = tgp_chinese_high_nobility_legwear
	}

		add_accessory_modifiers = {
		gene = legwear
		is_valid_custom = {
			has_tgp_dlc_trigger = yes
		}
		template = tgp_southeast_commoner_legwear
	}
	
	### AGOT Submod Core ###
	add_accessory_modifiers = {
		gene = legwear
		is_valid_custom = {
			is_aotk_loaded_trigger = yes
		}
		template = kingsguard_legwear_01
	}

	### AGOT Submod Core ###
	add_accessory_modifiers = {
		gene = legwear
		is_valid_custom = {
			is_tgc_loaded_trigger = yes
		}
		template = tgc_pants
	}
	### AGOT Submod Core ###
	add_accessory_modifiers = {
		gene = legwear
		is_valid_custom = {
			is_tgc_loaded_trigger = yes
		}
		template = tgc_pants_black
	}	### AGOT Submod Core ###
	add_accessory_modifiers = {
		gene = legwear
		is_valid_custom = {
			is_tgc_loaded_trigger = yes
		}
		template = tgc_pants_blackfyre
	}
	add_accessory_modifiers = {
		gene = legwear
		is_valid_custom = {
			is_lotd_loaded_trigger = yes
		}
		template = valyrian_nobility_legwear
	}

	add_accessory_modifiers = { #AGOT+
		gene = legwear
		is_valid_custom = {
			is_agot_plus_loaded_trigger = yes
		}
		template = asoiaf_all_legwears
	}

	add_accessory_modifiers = {
		gene = legwear
		is_valid_custom = {
			has_tgp_dlc_trigger = yes
		}
		template = tgp_japanese_imperial_legwear
	}

	## CCP4 ##

	add_accessory_modifiers = {
		gene = legwear
		is_valid_custom = {
			has_cp4_dlc_trigger = yes
		}
		template = ccp4_sami_common_legwear
	}

	add_accessory_modifiers = {
		gene = legwear
		is_valid_custom = {
			has_cp4_dlc_trigger = yes
		}
		template = ccp4_khanty_common_legwear
	}

	## EP1 ##
	
	add_accessory_modifiers = {
		gene = legwear
		is_valid_custom = {
			has_ep1_dlc_trigger = yes
		}
		template = ep1_jester_legwear
	}
	## EP2 ##
	
	add_accessory_modifiers = {
		gene = legwear
		is_valid_custom = {
			has_ep2_dlc_trigger = yes
		}
		template = ep2_western_war_legwear
	}
	
	## EP3 ##
	
	add_accessory_modifiers = {
		gene = legwear
		is_valid_custom = {
			has_ep3_dlc_trigger = yes
		}
		template = ep3_byzantine_imperial_legwear
	}

	add_accessory_modifiers = {
		gene = legwear
		is_valid_custom = {
			has_ep3_dlc_trigger = yes
		}
		template = ep3_byzantine_war_nobility_legwear
	}

	add_accessory_modifiers = {
		gene = legwear
		is_valid_custom = {
			has_ep3_dlc_trigger = yes
		}
		template = ep3_byzantine_nobility_legwear
	}
	
	## POL ##
	
	add_accessory_modifiers = {
		gene = legwear
		is_valid_custom = {
			has_pol_dlc_trigger = yes
		}
		template = pol_common_legwear
	}
	
	## AFR ##
	
	add_accessory_modifiers = {
		gene = legwear
		is_valid_custom = {
			has_afr_dlc_trigger = yes
		}
		template = afr_common_legwear
	}

	add_accessory_modifiers = {
		gene = legwear
		is_valid_custom = {
			has_fp1_dlc_trigger = yes
		}
		template = fp1_common_legwear
	}
	add_accessory_modifiers = {
		gene = legwear
		template = western_common_legwear
	}
	add_accessory_modifiers = {
		gene = legwear
		template = western_legwear
	}
	add_accessory_modifiers = {
		gene = legwear
		template = western_war_legwear
	}
	add_accessory_modifiers = {
		gene = legwear
		template = mena_common_legwear
	}
	add_accessory_modifiers = {
		gene = legwear
		template = mena_nobility_legwear
	}
	add_accessory_modifiers = {
		gene = legwear
		template = mena_war_legwear
	}
}
