#AVIALABLE CUSTOM LOCALISATION KEYS
#When adding new custom loc keys, add them to the appropriate category (or add a new one) and describe them. Name the strings "String_X" where x is its content.
# To not display anything, you can use 'localisation_key = ""'

#######Mounted Combat#########

defined_text = {
	name = GetMountType
	use_first_valid = yes
	
	text = {
		trigger = { has_artifact_flag = horse }
		localisation_key = mount_type_horse
	}
	text = {
		trigger = { has_artifact_flag = camel }
		localisation_key = mount_type_camel
	}
	text = {
		trigger = { has_artifact_flag = elephant }
		localisation_key = mount_type_elephant
	}
	text = {
		trigger = { has_artifact_flag = yak }
		localisation_key = mount_type_yak
	}
	text = {
		trigger = { has_artifact_flag = wolf }
		localisation_key = mount_type_wolf
	}
	text = {
		trigger = { has_artifact_flag = tiger }
		localisation_key = mount_type_tiger
	}
	text = {
		trigger = { has_artifact_flag = bear }
		localisation_key = mount_type_bear
	}
	text = {
		trigger = { has_artifact_flag = reindeer }
		localisation_key = mount_type_reindeer
	}
}

defined_text = {
	name = GetFoalType
	use_first_valid = yes
	
	###tier 1
	text = {
		trigger = { FROM = { has_artifact_flag = change_to_dray_horse } }
		localisation_key = dray_horse
	}
	text = {
		trigger = { FROM = { has_artifact_flag = change_to_rouncey } }
		localisation_key = rouncey
	}
	
	###tier 2
	text = {
		trigger = { FROM = { has_artifact_flag = change_to_hobby } }
		localisation_key = hobby
	}
	text = {
		trigger = { FROM = { has_artifact_flag = change_to_jennet } }
		localisation_key = jennet
	}
	text = {
		trigger = { FROM = { has_artifact_flag = change_to_palfry } }
		localisation_key = palfry
	}
	
	###tier 3
	text = {
		trigger = { FROM = { has_artifact_flag = change_to_courser } }
		localisation_key = courser
	}
	text = {
		trigger = { FROM = { has_artifact_flag = change_to_destrier } }
		localisation_key = destrier
	}
	text = {
		trigger = { FROM = { has_artifact_flag = change_to_galician_mountain_horse } }
		localisation_key = galician_mountain_horse
	}
	text = {
		trigger = { FROM = { has_artifact_flag = change_to_barbary_destrier } }
		localisation_key = barbary_destrier
	}
	text = {
		trigger = { FROM = { has_artifact_flag = change_to_chinese_ceromonial_horse } }
		localisation_key = chinese_ceromonial_horse
	}
	
	###tier 4
	text = {
		trigger = { FROM = { has_artifact_flag = change_to_charger } }
		localisation_key = charger
	}
	text = {
		trigger = { FROM = { has_artifact_flag = change_to_chinese_war_horse } }
		localisation_key = chinese_war_horse
	}
	text = {
		trigger = { FROM = { has_artifact_flag = change_to_steppe_courser } }
		localisation_key = steppe_courser
	}
	text = {
		trigger = { FROM = { has_artifact_flag = change_to_arabian_courser } }
		localisation_key = arabian_courser
	}
	text = {
		trigger = { FROM = { has_artifact_flag = change_to_moorish_courser } }
		localisation_key = moorish_courser
	}
	text = {
		trigger = { FROM = { has_artifact_flag = change_to_nisean_horse } }
		localisation_key = nisean_horse
	}
	
	###tier 5
	text = {
		trigger = { FROM = { has_artifact_flag = change_to_jurchen_steppe_horse } }
		localisation_key = jurchen_steppe_horse
	}
	text = {
		trigger = { FROM = { has_artifact_flag = change_to_mongolian_war_horse } }
		localisation_key = mongolian_war_horse
	}
	text = {
		trigger = { FROM = { has_artifact_flag = change_to_arabian_charger } }
		localisation_key = arabian_charger
	}
	text = {
		trigger = { FROM = { has_artifact_flag = change_to_frankish_charger } }
		localisation_key = frankish_charger
	}
}

defined_text = {
	name = GetMountPrefix
	use_first_valid = yes
	
	###fair+
	text = {
		trigger = { 
			FROM = { 
				has_artifact_flag = fair 
				has_artifact_flag = robust
			} 
		}
		localisation_key = mount_prefix_fair_robust
	}
	text = {
		trigger = { 
			FROM = { 
				has_artifact_flag = fair 
				has_artifact_flag = fertile
			} 
		}
		localisation_key = mount_prefix_fair_fertile
	}
	text = {
		trigger = { 
			FROM = { 
				has_artifact_flag = fair 
				has_artifact_flag = powerful
			} 
		}
		localisation_key = mount_prefix_fair_powerful
	}
	text = {
		trigger = { 
			FROM = { 
				has_artifact_flag = fair 
				has_artifact_flag = swift
			} 
		}
		localisation_key = mount_prefix_fair_swift
	}
	
	###robust+
	text = {
		trigger = { 
			FROM = { 
				has_artifact_flag = robust 
				has_artifact_flag = fertile
			} 
		}
		localisation_key = mount_prefix_robust_fertile
	}
	text = {
		trigger = { 
			FROM = { 
				has_artifact_flag = robust 
				has_artifact_flag = powerful
			} 
		}
		localisation_key = mount_prefix_robust_powerful
	}
	text = {
		trigger = { 
			FROM = { 
				has_artifact_flag = robust 
				has_artifact_flag = swift
			} 
		}
		localisation_key = mount_prefix_robust_swift
	}
	
	###fertile+
	text = {
		trigger = { 
			FROM = { 
				has_artifact_flag = fertile 
				has_artifact_flag = powerful
			} 
		}
		localisation_key = mount_prefix_fertile_powerful
	}
	text = {
		trigger = { 
			FROM = { 
				has_artifact_flag = fertile 
				has_artifact_flag = swift
			} 
		}
		localisation_key = mount_prefix_fertile_swift
	}
	
	###powerful+
	text = {
		trigger = {
			FROM = { 
				has_artifact_flag = powerful 
				has_artifact_flag = swift
			} 
		}
		localisation_key = mount_prefix_powerful_swift
	}
	
	
	###basics
	text = {
		trigger = { FROM = { has_artifact_flag = fair } }
		localisation_key = mount_prefix_fair
	}
	text = {
		trigger = { FROM = { has_artifact_flag = robust } }
		localisation_key = mount_prefix_robust
	}
	text = {
		trigger = { FROM = { has_artifact_flag = fertile } }
		localisation_key = mount_prefix_fertile
	}
	text = {
		trigger = { FROM = { has_artifact_flag = powerful } }
		localisation_key = mount_prefix_powerful
	}
	text = {
		trigger = { FROM = { has_artifact_flag = swift } }
		localisation_key = mount_prefix_swift
	}
}

defined_text = {
	name = GetMountPrefixDesc
	use_first_valid = yes

	text = {
		trigger = { FROM = { has_artifact_flag = fair } }
		localisation_key = mount_prefix_fair_desc
	}
	text = {
		trigger = { FROM = { has_artifact_flag = robust } }
		localisation_key = mount_prefix_robust_desc
	}
	text = {
		trigger = { FROM = { has_artifact_flag = fertile } }
		localisation_key = mount_prefix_fertile_desc
	}
	text = {
		trigger = { FROM = { has_artifact_flag = powerful } }
		localisation_key = mount_prefix_powerful_desc
	}
	text = {
		trigger = { FROM = { has_artifact_flag = swift } }
		localisation_key = mount_prefix_swift_desc
	}
	text = {
		trigger = { FROM = { has_artifact_flag = immortal } }
		localisation_key = mount_prefix_immortal_desc
	}
}

defined_text = {
	name = GetMountPrefixDesc2
	use_first_valid = yes

	#reverse order so same trait doesnt show twice
	
	text = {
		trigger = { 
			FROM = { 
				has_artifact_flag = immortal
				has_artifact_flag = mount_trait_limit_2
			} 
		}
		localisation_key = mount_prefix_immortal_desc2
	}
	text = {
		trigger = { 
			FROM = { 
				has_artifact_flag = swift
				has_artifact_flag = mount_trait_limit_2
			} 
		}
		localisation_key = mount_prefix_swift_desc2
	}
	text = {
		trigger = { 
			FROM = { 
				has_artifact_flag = powerful
				has_artifact_flag = mount_trait_limit_2
			} 
		}
		localisation_key = mount_prefix_powerful_desc2
	}
	text = {
		trigger = { 
			FROM = { 
				has_artifact_flag = fertile
				has_artifact_flag = mount_trait_limit_2
			} 
		}
		localisation_key = mount_prefix_fertile_desc2
	}
	text = {
		trigger = { 
			FROM = { 
				has_artifact_flag = robust
				has_artifact_flag = mount_trait_limit_2
			} 
		}
		localisation_key = mount_prefix_robust_desc2
	}
	text = {
		trigger = { 
			FROM = { 
				has_artifact_flag = fair
				has_artifact_flag = mount_trait_limit_2
			} 
		}
		localisation_key = mount_prefix_fair_desc2
	}
}