﻿
#######################
# MAA TRADITIONS #
#######################

tradition_guanche_warrior = {
	category = regional

	layers = {
		0 = steward
		1 = mena
		4 = mountain.dds
	}

	#Replaces Highland Warriors
	is_shown = {
		OR = {
			this = culture:guanches
			any_parent_culture_or_above = {
				this = culture:guanches
			}
		}
		NOT = { has_cultural_tradition = tradition_highland_warriors }
	}
	can_pick = {
		OR = {
			this = culture:guanches
			any_parent_culture_or_above = {
				this = culture:guanches
			}
		}
		custom_description = {
			text = culture_in_hills_desc
			any_culture_county = {
				any_county_province = {
					terrain = hills
				}
			}
		}
	}

	character_modifier = {
		hills_travel_danger = hills_low_danger_reduction
		mountains_travel_danger = mountains_low_danger_reduction
		desert_mountains_travel_danger = desert_mountains_low_danger_reduction
	}
	
	parameters = {
		unlock_maa_guanche_warrior = yes
		unlock_rain_ritual = yes
		unlock_benesmen_festival = yes

		rough_terrain_expert_trait_more_common = yes
		hill_trait_bonuses = yes
		can_recruit_hill_specialist = yes
	}
	province_modifier = {
		hills_levy_size = 0.1
		hills_supply_limit_mult = 0.25
	}

	cost = {
		prestige = {
			add = {
				value = tradition_base_cost
				desc = BASE
				format = "BASE_VALUE_FORMAT"
			}
			if = {
				limit = {
					NOR = {
						culture_pillar:ethos_communal = { is_in_list = traits }
						culture_pillar:ethos_egalitarian = { is_in_list = traits }
					}
				}
				add = {
					value = tradition_incompatible_ethos_penalty
					desc = not_communal_or_egalitarian_desc
				}
			}
			if = {
				limit = {
					NOT = {
						any_culture_county = {
							percent >= 0.3
							any_county_province = {
								terrain = hills
							}
						}
					}
				}
				add = {
					value = tradition_unfulfilled_criteria_penalty
					desc = hill_percentage_desc
				}
			}
			
			multiply = tradition_replacement_cost_if_relevant
		}
	}
	
	ai_will_do = {
		value = 100
		if = {
			limit = {
				NOT = {
					scope:character = {
						any_sub_realm_county = {
							culture = scope:character.culture
							any_county_province = {
								terrain = hills
							}
						}
					}
				}
			}
			multiply = 0
		}
	}
}

