﻿tradition_agot_vale_andal_heritage = {
	category = regional

	is_shown = {
		scope:character = {
			any_held_county = {
				title_province = { geographical_region = world_westeros_the_vale }
			}
		}
	}

	layers = {
		0 = martial
		1 = mediterranean
		4 = swords.dds
	}

	parameters = {
		marriage_acceptance_bonus = yes
		cheaper_to_hybridize = yes
		zealous_trait_more_common = yes
	}

	character_modifier = {
		tolerance_advantage_mod = 10
		knight_effectiveness_mult = 0.25
	}

	cost = {
		prestige = {
			add = {
				value = tradition_base_cost
				desc = BASE
				format = "BASE_VALUE_FORMAT"
			}
			if = {
				limit = {
					NOR = {
						culture_pillar:ethos_bellicose = { is_in_list = traits }
						culture_pillar:ethos_bureaucratic = { is_in_list = traits }
					}
				}
				add = {
					value = tradition_incompatible_ethos_penalty
					desc = not_bellicose_or_bureaucratic_desc
				}
			}
			if = {
				limit = {
					trigger_if = {
						limit = {
							scope:character = {
								is_ai = no
							}
						}
						NOT = {
							any_ruler = {
								count >= 3
								culture = prev
								primary_title.tier >= tier_county
								OR = {
									has_trait = reaver
								}
							}
						}
					}
					trigger_else = {
						NOR = {
							culture_pillar:heritage_first_man = { is_in_list = traits }
							culture_pillar:heritage_rhoynar = { is_in_list = traits }
							culture_pillar:heritage_valyrian = { is_in_list = traits }
						}
					}
				}
				add = {
					value = tradition_unfulfilled_criteria_penalty
					desc = rulers_with_reaver_desc
				}
			}

			multiply = tradition_replacement_cost_if_relevant
		}
	}

	ai_will_do = {
		value = 100
		if = {
			limit = {
				NOR = {
					culture_pillar:heritage_first_man = { is_in_list = traits }
					culture_pillar:heritage_rhoynar = { is_in_list = traits }
					culture_pillar:heritage_valyrian = { is_in_list = traits }
					scope:character = {
						has_government = tribal_government
					}
				}
			}
			multiply = 0
		}
	}
}

tradition_agot_valeman_finger = {
	category = regional

	layers = {
		0 = intrigue
		1 = western
		4 = mountain.dds
	}

	is_shown = {
		scope:character = {
			any_held_county = {
				title_province = { geographical_region = world_westeros_the_vale }
			}
		}
	}

	character_modifier = {
		hills_advantage = 5
		majorroad_hills_advantage = 5
		minorroad_hills_advantage = 5
		mountains_advantage = 5
		majorroad_mountains_advantage = 5
		minorroad_mountains_advantage = 5
		highlands_advantage = 5
		majorroad_highlands_advantage = 5
		minorroad_highlands_advantage = 5
		coastal_advantage = 5
	}

	parameters = {
		trade_ports_give_control_growth = yes
		trade_ports_give_levies = yes
		unlock_maa_finger_scouts = yes
		unlock_maa_vale_knights = yes
		unlock_maa_vale_pikes = yes
		unlock_maa_vale_footmen = yes
	}

	cost = {
		prestige = {
			add = {
				value = tradition_base_cost
				desc = BASE
				format = "BASE_VALUE_FORMAT"
			}
			if = {
				limit = {
					NOR = {
						culture_pillar:ethos_bellicose = { is_in_list = traits }
						culture_pillar:ethos_stoic = { is_in_list = traits }
						culture_pillar:ethos_communal = { is_in_list = traits }
					}
				}
				add = {
					value = tradition_incompatible_ethos_penalty
					desc = not_bellicose_stoic_or_communal_desc
				}
			}
			if = {
				limit = {
					NOT = {
						any_culture_county = {
							percent >= 0.3
							any_county_province = {
								OR = {
									agot_is_hills_terrain = yes
									agot_is_mountains_terrain = yes
									agot_is_highlands_terrain = yes
								}
							}
						}
					}
				}
				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 = {
							percent >= 0.2
							culture = scope:character.culture
							any_county_province = {
								OR = {
									agot_is_hills_terrain = yes
									agot_is_mountains_terrain = yes
									agot_is_highlands_terrain = yes
								}
							}
						}
					}
				}
			}
			multiply = 0
		}
	}
}

tradition_agot_valeman_upper = {
	category = regional

	layers = {
		0 = intrigue
		1 = western
		4 = mountain.dds
	}

	is_shown = {
		scope:character = {
			any_held_county = {
				title_province = { geographical_region = world_westeros_the_vale }
			}
		}
	}

	parameters = {
		diplomacy_education_better_outcomes = yes
		charming_trait_more_common = yes
		unlock_maa_hunters_of_the_moon = yes
		unlock_maa_vale_knights = yes
		unlock_maa_vale_pikes = yes
		unlock_maa_vale_footmen = yes
	}

	character_modifier = {
		hills_advantage = 5
		majorroad_hills_advantage = 5
		minorroad_hills_advantage = 5
		mountains_advantage = 5
		majorroad_mountains_advantage = 5
		minorroad_mountains_advantage = 5
		highlands_advantage = 5
		majorroad_highlands_advantage = 5
		minorroad_highlands_advantage = 5
	}

	cost = {
		prestige = {
			add = {
				value = tradition_base_cost
				desc = BASE
				format = "BASE_VALUE_FORMAT"
			}
			if = {
				limit = {
					NOR = {
						culture_pillar:ethos_bellicose = { is_in_list = traits }
						culture_pillar:ethos_stoic = { is_in_list = traits }
						culture_pillar:ethos_communal = { is_in_list = traits }
					}
				}
				add = {
					value = tradition_incompatible_ethos_penalty
					desc = not_bellicose_stoic_or_communal_desc
				}
			}
			if = {
				limit = {
					NOT = {
						any_culture_county = {
							percent >= 0.3
							any_county_province = {
								OR = {
									agot_is_hills_terrain = yes
									agot_is_mountains_terrain = yes
									agot_is_highlands_terrain = yes
								}
							}
						}
					}
				}
				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 = {
							percent >= 0.2
							culture = scope:character.culture
							any_county_province = {
								OR = {
									agot_is_hills_terrain = yes
									agot_is_mountains_terrain = yes
									agot_is_highlands_terrain = yes
								}
							}
						}
					}
				}
			}
			multiply = 0
		}
	}
}

tradition_agot_reachman = {
	category = regional

	layers = {
		0 = steward
		1 = mediterranean
		4 = tools.dds
	}

	is_shown = {
		scope:character = {
			any_held_county = {
				title_province = { geographical_region = world_westeros_the_reach }
			}
		}
	}

	parameters = {
		enable_garden_duchy_building = yes
		can_appoint_court_gardener = yes
		can_recruit_gardeners = yes
		close_family_better_councillors = yes
		close_family_better_court_positions = yes
		unlock_maa_summer_knights = yes
		unlock_maa_reach_pikes = yes
		unlock_maa_reach_swords = yes
		unlock_maa_reach_scouts = yes
		coastal_agriculture_building_bonuses = yes
		coastal_holding_bonuses = yes
	}
	character_modifier = {
		close_relative_opinion = 10
	}
	cost = {
		prestige = {
			add = {
				value = tradition_base_cost
				desc = BASE
				format = "BASE_VALUE_FORMAT"
			}
			if = {
				limit = {
					NOR = {
						culture_pillar:ethos_courtly = { is_in_list = traits }
						culture_pillar:ethos_communal = { is_in_list = traits }
						culture_pillar:ethos_spiritual = { is_in_list = traits }
					}
				}
				add = {
					value = tradition_incompatible_ethos_penalty
					desc = not_courtly_communal_or_spiritual_desc
				}
			}
			if = {
				limit = {
					NOT = {
						any_culture_county = {
							count >= 10
							any_county_province = {
								OR = {
									has_building_or_higher = orchards_01
									has_building_or_higher = plantations_01
									has_building_or_higher = cereal_fields_01
								}
							}
						}
					}
				}
				add = {
					value = tradition_unfulfilled_criteria_penalty
					desc = gardening_buildings_percentage_desc
				}
			}

			multiply = tradition_replacement_cost_if_relevant
		}
	}

	ai_will_do = {
		value = 100
		if = {
			limit = {
				NOT = {
					culture_pillar:ethos_courtly = { is_in_list = traits }
				}
			}
			multiply = 0
		}
	}
}

tradition_agot_rushlander = {
	category = regional

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

	is_shown = {
		scope:character = {
			any_held_county = {
				title_province ?= { geographical_region = world_westeros_the_riverlands }
			}
		}
	}

	parameters = {
		hill_farms_building_bonuses = yes
		just_trait_more_common = yes
		just_trait_gives_bonuses = yes
		can_recruit_forder_specialist = yes
		forder_trait_bonuses = yes
		rough_terrain_trait_bonuses = yes
		unlock_maa_river_bows = yes
		unlock_maa_river_footmen = yes
		unlock_maa_river_scouts = yes
	}
	character_modifier = {
		opinion_of_liege = 10
		fellow_vassal_opinion = 10
	}

	province_modifier = {

	}

	cost = {
		prestige = {
			add = {
				value = tradition_base_cost
				desc = BASE
				format = "BASE_VALUE_FORMAT"
			}
			if = {
				limit = {
					culture_pillar:ethos_bellicose = { is_in_list = traits }
				}
				add = {
					value = tradition_incompatible_ethos_penalty
					desc = culture_not_bellicose
				}
			}
			if = {
				limit = {
					NOT = {
						any_culture_county = {
							percent >= 0.3
							any_county_province = {
								OR = {
									agot_is_forest_terrain = yes
									agot_is_taiga_terrain = yes
								}
							}
						}
					}
				}
				add = {
					value = tradition_unfulfilled_criteria_penalty
					desc = forest_percentage_desc
				}
			}

			multiply = tradition_replacement_cost_if_relevant
		}
	}

	ai_will_do = {
		value = 100
		if = {
			limit = {
				NOT = {
					scope:character = {
						any_sub_realm_county = {
							percent >= 0.2
							culture = scope:character.culture
							any_county_province = {
								OR = {
									agot_is_forest_terrain = yes
									agot_is_taiga_terrain = yes
								}
							}
						}
					}
				}
			}
			multiply = 0
		}
	}
}

tradition_agot_westerlands = {
	category = regional

	layers = {
		0 = steward
		1 = western
		4 = diplomacy.dds
	}

	is_shown = {
		scope:character.culture = {
			any_culture_county = {
				title_province = { geographical_region = world_westeros_the_westerlands }
				count >= 9
			}
		}
	}


	parameters = {
		curious_trait_more_common = yes
		hill_trait_bonuses = yes
		rough_terrain_expert_trait_more_common = yes
		wanderers_gain_extra_economic_skills = yes
		peasant_and_populist_factions_less_common = yes
		dull_trait_looked_down_upon = yes
		arrogant_trait_more_common = yes
		quarries_building_bonuses = yes
		can_build_quarries_everywhere = yes
		unlock_maa_rain_bringers = yes
		unlock_maa_westerland_billmen = yes
		unlock_maa_westerland_footmen = yes
		unlock_maa_westerland_knights = yes
	}
	character_modifier = {
		dread_per_tyranny_add = 0.3
		dread_decay_mult = -0.3
		revolting_siege_morale_loss_mult = 0.25
		general_opinion = -35
	}

	cost = {
		prestige = {
			add = {
				value = tradition_base_cost
				desc = BASE
				format = "BASE_VALUE_FORMAT"
			}
			if = {
				limit = {
					NOR = {
						culture_pillar:ethos_spiritual = { is_in_list = traits }
						culture_pillar:ethos_courtly = { is_in_list = traits }
					}
				}
				add = {
					value = tradition_incompatible_ethos_penalty
					desc = not_spiritual_or_courtly_desc
				}
			}
			if = {
				limit = {
					scope:character = {
						any_councillor = {
							NOR = {
								culture = scope:character.culture
								is_spouse_of = scope:character # Might be hard to have the right culture for the Spouse; but we can remove this helper if needed
							}
						}
					}
				}
				add = {
					value = tradition_unfulfilled_criteria_penalty
					desc = has_other_cultures_in_council_desc
				}
			}

			multiply = tradition_replacement_cost_if_relevant
		}
	}

	ai_will_do = {
		value = 100
		if = {
			limit = {
				scope:character.dread < 25
			}
			multiply = 0.5
		}
		if = {
			limit = {
				scope:character.tyranny < 25
			}
			multiply = 0.5
		}
	}
}

tradition_agot_wildling = {
	category = regional

	layers = {
	   0 = martial
	   1 = western
	   4 = shieldmaiden.dds
   }

	is_shown = {
		scope:character = {
			any_held_county = {
				title_province ?= { geographical_region = world_westeros_beyond_the_wall }
			}
		}
	}

	parameters = {
		rowdy_trait_more_common = yes
		winter_trait_bonuses = yes
		winter_soldier_trait_more_common = yes
		craven_looked_down_upon = yes
		disloyal_trait_more_common = yes
		culture_can_raid_at_sea_even_if_feudal_no_restrictions = yes
		wanderers_gain_extra_combat_skills = yes
	}
	character_modifier = {
		diplomatic_range_mult = -0.50
	}

	cost = {
		prestige = {
			add = {
				value = tradition_base_cost
				desc = BASE
				format = "BASE_VALUE_FORMAT"
			}
			if = {
				limit = {
					NOR = {
						culture_pillar:ethos_bellicose = { is_in_list = traits }
						culture_pillar:ethos_spiritual = { is_in_list = traits }
					}
				}
				add = {
					value = tradition_incompatible_ethos_penalty
					desc = not_bellicose_or_spiritual_desc
				}
			}
			if = {
				limit = {
					trigger_if = {
						limit = {
							scope:character = {
								is_ai = no
							}
						}
						NOT = {
							any_ruler = {
								count >= 5
								culture = prev
								primary_title.tier >= tier_county
								is_at_war = yes
							}
						}
					}
					trigger_else = {
						always = no
					}
				}
				add = {
					value = tradition_unfulfilled_criteria_penalty
					desc = rulers_at_war_desc
				}
			}

			multiply = tradition_replacement_cost_if_relevant
		}
	}

	ai_will_do = {
		value = 100
		if = {
			limit = {
				NOT = {
					scope:character = {
						has_government = tribal_government
					}
				}
			}
			multiply = 0.25
		}
		if = {
			limit = {
				NOR = {
					culture_pillar:heritage_andal = { is_in_list = traits }
					culture_pillar:heritage_rhoynar = { is_in_list = traits }
					culture_pillar:heritage_valyrian = { is_in_list = traits }
					is_divergent_culture = yes
				}
			}
			multiply = 0
		}
	}
}

tradition_agot_moon_clan = {
	category = regional

	layers = {
		0 = martial
		1 = mediterranean
		4 = speech.dds
	}

	is_shown = {
		scope:character = {
			any_held_county = {
				title_province ?= { geographical_region = world_westeros_moonclans }
			}
		}
	}

	parameters = {
		cheaper_cbs = yes
		gender_equal_inheritance = yes
		gain_gold_from_battles = yes
		culture_can_raid_at_sea_even_if_feudal_no_restrictions = yes
		zealous_trait_more_common = yes
		disloyal_trait_less_spurned = yes
		disloyal_trait_more_common = yes
		unlock_maa_stolen_spears = yes
		unlock_maa_clan_champions = yes
	}

	province_modifier = {
		mountains_supply_limit_mult = 0.25
		majorroad_mountains_supply_limit_mult = 0.25
		minorroad_mountains_supply_limit_mult = 0.25
		forest_supply_limit_mult = 0.25
		majorroad_forest_supply_limit_mult = 0.25
		minorroad_forest_supply_limit_mult = 0.25
	}
	character_modifier = {
		diplomatic_range_mult = -0.50
		army_maintenance_mult = -0.20
		knight_effectiveness_mult = -0.15
		men_at_arms_recruitment_cost = -0.20
	}

	cost = {
		prestige = {
			add = {
				value = tradition_base_cost
				desc = BASE
				format = "BASE_VALUE_FORMAT"
			}
			if = {
				limit = {
					NOR = {
						culture_pillar:ethos_bellicose = { is_in_list = traits }
						culture_pillar:ethos_spiritual = { is_in_list = traits }
					}
				}
				add = {
					value = tradition_incompatible_ethos_penalty
					desc = not_bellicose_or_spiritual_desc
				}
			}
			if = {
				limit = {
					trigger_if = {
						limit = {
							scope:character = {
								is_ai = no
							}
						}
						NOT = {
							any_ruler = {
								count >= 5
								culture = prev
								primary_title.tier >= tier_county
								is_at_war = yes
							}
						}
					}
					trigger_else = {
						always = no
					}
				}
				add = {
					value = tradition_unfulfilled_criteria_penalty
					desc = rulers_at_war_desc
				}
			}

			multiply = tradition_replacement_cost_if_relevant
		}
	}

	ai_will_do = {
		value = 100
		if = {
			limit = {
				NOT = {
					scope:character = {
						has_government = tribal_government
					}
				}
			}
			multiply = 0.25
		}
		if = {
			limit = {
				NOR = {
					culture_pillar:heritage_andal = { is_in_list = traits }
					culture_pillar:heritage_rhoynar = { is_in_list = traits }
					culture_pillar:heritage_valyrian = { is_in_list = traits }
					is_divergent_culture = yes
				}
			}
			multiply = 0
		}
	}
}

tradition_agot_sisterman = {
	category = regional

	layers = {
		0 = martial
		1 = indian
		4 = battle.dds
	}

	is_shown = {
		scope:character = {
			any_held_county = {
				title_province ?= { geographical_region = world_westeros_the_vale }
			}
		}
	}

	parameters = {
		disloyal_trait_more_common = yes
		expensive_convert_to_local_culture = yes
		harder_to_hybridize = yes
		unlock_maa_sistermen_pirates = yes
		the_mark_trait_gives_bonuses = yes

	}

	character_modifier = {
		hostile_scheme_phase_duration_add = medium_scheme_phase_duration_bonus_value
	}

	cost = {
		prestige = {
			add = {
				value = tradition_base_cost
				desc = BASE
				format = "BASE_VALUE_FORMAT"
			}
			if = {
				limit = {
					NOR = {
						culture_pillar:ethos_bellicose = { is_in_list = traits }
						culture_pillar:ethos_spiritual = { is_in_list = traits }
						culture_pillar:ethos_stoic = { is_in_list = traits }
					}
				}
				add = {
					value = tradition_incompatible_ethos_penalty
					desc = not_bellicose_spiritual_or_stoic_desc
				}
			}
			if = {
				limit = {
					NOT = {
						scope:character = {
							number_maa_soldiers_of_base_type = {
								type = heavy_infantry
								value >= 500
							}
							number_maa_soldiers_of_base_type = {
								type = pikemen
								value >= 500
							}
						}
					}
				}
				add = {
					value = tradition_unfulfilled_criteria_penalty
					desc = culture_head_heavy_inf_and_pikemen_desc
				}
			}

			multiply = tradition_replacement_cost_if_relevant
		}
	}

	ai_will_do = {
		value = 100
		if = {
			limit = {
				NOR = {
					culture_has_heavy_infantry_maa = yes
					culture_has_heavy_cavalry_maa = yes
					culture_has_pikemen_maa = yes
				}
			}
			multiply = 0.25
		}
	}
}

tradition_agot_dorne_rhoynish_heritage = {
	category = regional

	layers = {
		0 = learning
		1 = indian
		4 = speech.dds
	}

	is_shown = {
		scope:character = {
			any_held_county = {
				title_province ?= { geographical_region = world_westeros_dorne }
			}
		}
	}

	parameters = {
		mystic_trait_gives_bonuses = yes
		mystic_trait_more_common = yes
		number_of_spouses = 1
		number_of_consorts = 2
	}

	character_modifier = {
		heavy_infantry_toughness_mult = 0.1
		heavy_infantry_maintenance_mult = 0.2
		heavy_cavalry_toughness_mult = 0.1
		heavy_cavalry_maintenance_mult = 0.1
		pikemen_toughness_mult = 0.1
		pikemen_maintenance_mult = 0.2
		hard_casualty_modifier = -0.1
		defender_advantage = 2
	}

	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_spiritual = { is_in_list = traits }
					}
				}
				add = {
					value = tradition_incompatible_ethos_penalty
					desc = not_communal_or_spiritual_desc
				}
			}
			if = {
				limit = {
					trigger_if = {
						limit = {
							scope:character = {
								is_ai = no
							}
						}
						NOT = {
							any_ruler = {
								count >= 3
								culture = prev
								primary_title.tier >= tier_county
								has_trait = lifestyle_mystic
							}
						}
					}
					trigger_else = {
						always = no
					}
				}
				add = {
					value = tradition_unfulfilled_criteria_penalty
					desc = rulers_with_mystic_desc
				}
			}

			multiply = tradition_replacement_cost_if_relevant
		}
	}

	ai_will_do = {
		value = 100
		if = {
			limit = {
				NOT = {
					culture_pillar:ethos_spiritual = { is_in_list = traits }
				}
			}
			multiply = 0.7
		}
	}
}

tradition_agot_harsh_laws = {
	category = regional

	layers = {
		0 = martial
		1 = mediterranean
		4 = king.dds
	}

	is_shown = {
		scope:character = {
			any_held_county = {
				title_province ?= { geographical_region = world_stepstones }
			}
		}
	}

	parameters = {
		cheaper_to_change_laws = yes
		prowess_traits_more_valued = yes
		craven_and_content_traits_looked_down_upon = yes
		vassals_more_likely_accept_punishments = yes
	}
	character_modifier = {
		title_creation_cost_mult = -0.20
		vassal_limit = 25
		dread_per_tyranny_mult = 0.25
		tyranny_loss_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 }
						culture_pillar:heritage_rhoynar = { is_in_list = traits }
					}
				}
				add = {
					value = tradition_incompatible_ethos_penalty
					desc = not_communal_egalitarian_or_courtly_desc
				}
			}
			if = {
				limit = {
					NOT = {
						has_innovation = innovation_baliffs
					}
				}
				add = {
					value = tradition_unfulfilled_criteria_penalty
					desc = lacks_baliffs_innovation_desc
				}
			}
			if = {
				limit = {
					NOT = {
						has_innovation = innovation_development_02
					}
				}
				add = {
					value = tradition_unfulfilled_criteria_penalty
					desc = lacks_development_02_innovation_desc
				}
			}

			multiply = tradition_replacement_cost_if_relevant
		}
	}

	ai_will_do = {
		value = 100
		if = {
			limit = {
				scope:character = {
					any_vassal = {
						count < 30
					}
				}
			}
			multiply = 0.5
		}
		if = {
			limit = {
				NOR = {
					has_innovation = innovation_baliffs
					has_innovation = innovation_development_02
				}
			}
			multiply = 0.25
		}
	}
}

tradition_agot_thenn = {
	category = regional

	layers = {
		0 = martial
		1 = mena
		4 = fight.dds
	}

	is_shown = {
		scope:character = {
			any_held_county = {
				title_province ?= { geographical_region = world_westeros_beyond_the_wall_thenn }
			}
		}
	}

	parameters = {
		zealous_trait_more_common = yes
		can_build_quarries_everywhere = yes
		unlock_maa_bronze_raiders = yes
	}

	character_modifier = {
		faith_conversion_piety_cost_mult = 0.2
		martial_per_piety_level = 1
		health = 0.25
	}

	cost = {
		prestige = {
			add = {
				value = tradition_base_cost
				desc = BASE
				format = "BASE_VALUE_FORMAT"
			}
			if = {
				limit = {
					NOR = {
						culture_pillar:ethos_bellicose = { is_in_list = traits }
						culture_pillar:ethos_spiritual = { is_in_list = traits }
					}
				}
				add = {
					value = tradition_incompatible_ethos_penalty
					desc = not_bellicose_or_spiritual_desc
				}
			}
			if = {
				limit = {
					trigger_if = {
						limit = {
							scope:character = {
								is_ai = no
							}
						}
						NOT = {
							any_ruler = {
								count >= 5
								culture = prev
								primary_title.tier >= tier_county
								is_at_war = yes
							}
						}
					}
					trigger_else = {
						always = no
					}
				}
				add = {
					value = tradition_unfulfilled_criteria_penalty
					desc = rulers_at_war_desc
				}
			}

			multiply = tradition_replacement_cost_if_relevant
		}
	}

	ai_will_do = {
		value = 100
		if = {
			limit = {
				NOT = {
					scope:character = {
						has_government = tribal_government
					}
				}
			}
			multiply = 0.25
		}
		if = {
			limit = {
				NOR = {
					culture_pillar:heritage_andal = { is_in_list = traits }
					culture_pillar:heritage_rhoynar = { is_in_list = traits }
					culture_pillar:heritage_valyrian = { is_in_list = traits }
					is_divergent_culture = yes
				}
			}
			multiply = 0
		}
	}
}

#Essos

tradition_agot_andalos = {
	category = regional

	layers = {
		0 = learning
		1 = western
		4 = greeting.dds
	}

	is_shown = {
		scope:character = {
			any_held_county = {
				title_province = { geographical_region = world_essos_andalos }
			}
		}
	}

	parameters = {
		bossy_trait_more_common = yes
		aggressive_attacker_trait_more_common = yes
		hill_trait_bonuses = yes
		zealous_trait_more_common = yes
		wanderers_gain_extra_combat_skills = yes
		cynical_trait_looked_down_upon = yes
		culture_can_raid_at_sea_even_if_feudal = yes
	}

	character_modifier = {
		different_faith_opinion = -10
	}

	cost = {
		prestige = {
			add = {
				value = tradition_base_cost
				desc = BASE
				format = "BASE_VALUE_FORMAT"
			}
		}
	}

	ai_will_do = {
		value = 100
	}
}

tradition_agot_braavos = {
	category = regional

	layers = {
		0 = martial
		1 = mena
		4 = king.dds
	}

	is_shown = {
		scope:character = {
			any_held_county = {
				title_province = { geographical_region = world_essos_braavos }
			}
		}
	}

	parameters = {
		pensive_trait_more_common = yes
		organizer_trait_more_common = yes
		wetlands_trait_bonuses = yes
		temperate_trait_more_common = yes
		slave_master_trait_looked_down_upon = yes
		wanderers_gain_extra_economic_skills = yes
	}

	character_modifier = {
		diplomatic_range_mult = 0.5
		independent_ruler_opinion = -10
	}

	cost = {
		prestige = {
			add = {
				value = tradition_base_cost
				desc = BASE
				format = "BASE_VALUE_FORMAT"
			}
		}
	}

	ai_will_do = {
		value = 100
	}
}

tradition_agot_religious_fc = {
	category = regional

	layers = {
		0 = martial
		1 = mena
		4 = king.dds
	}

	is_shown = {
		always = no
	}

	parameters = {
		hill_trait_bonuses = yes
		pensive_trait_more_common = yes
		holy_warrior_trait_more_common = yes
		zealous_trait_more_common = yes
		cynical_trait_looked_down_upon = yes
		wanderers_gain_extra_learning_skills = yes
	}

	province_modifier = {

	}

	character_modifier = {
		martial_per_piety_level = 2
		different_faith_opinion = -10
	}

	cost = {
		prestige = {
			add = {
				value = tradition_base_cost
				desc = BASE
				format = "BASE_VALUE_FORMAT"
			}
		}
	}

	ai_will_do = {
		value = 100
	}
}

tradition_agot_three_daughters = {
	category = regional

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

	is_shown = {
		scope:character = {
			any_held_county = {
				title_province = {
					OR = {
						geographical_region = world_essos_disputed_lands
						geographical_region = world_essos_lys
						geographical_region = world_essos_myr
						geographical_region = world_essos_tyrosh
					}
				}
			}
		}
	}

	parameters = {
		charming_trait_more_common = yes
		greedy_trait_more_common = yes
		content_trait_looked_down_upon = yes
		logistician_trait_more_common = yes
		hill_trait_bonuses = yes
		wanderers_gain_extra_intrigue_skills = yes
		city_buildings_less_control = yes
	}

	character_modifier = {
		owned_personal_scheme_success_chance_add = 10
		owned_hostile_scheme_success_chance_add = 10
	}

	cost = {
		prestige = {
			add = {
				value = tradition_base_cost
				desc = BASE
				format = "BASE_VALUE_FORMAT"
			}
		}
	}

	ai_will_do = {
		value = 100
	}
}

tradition_agot_pentos = {
	category = regional

	layers = {
		0 = martial
		1 = mena
		4 = king.dds
	}

	is_shown = {
		scope:character = {
			any_held_county = {
				title_province = { geographical_region = world_essos_pentos }
			}
		}
	}

	parameters = {
		charming_trait_more_common = yes
		greedy_trait_more_common = yes
		cautious_leader_trait_more_common = yes
		plains_trait_bonuses = yes
		more_gift_opinion = yes
		zealous_trait_looked_down_upon = yes
		wanderers_gain_extra_economic_skills = yes
	}

	character_modifier = {
		liege_opinion = -10
	}

	cost = {
		prestige = {
			add = {
				value = tradition_base_cost
				desc = BASE
				format = "BASE_VALUE_FORMAT"
			}
		}
	}

	ai_will_do = {
		value = 100
	}
}

tradition_agot_doom = {
	category = regional

	layers = {
		0 = learning
		1 = mediterranean
		4 = laurel.dds
	}

	is_shown = {
		has_cultural_pillar = heritage_valyrian
	}

	parameters = {
		bossy_trait_more_common = yes
		arrogant_trait_more_common = yes
		military_engineer_trait_more_common = yes
		plains_trait_bonuses = yes
		zealous_trait_looked_down_upon = yes
		wanderers_gain_extra_combat_skills = yes
		shortened_truce_period = yes
	}

	character_modifier = {
		religious_vassal_opinion = -10
	}

	cost = {
		prestige = {
			add = {
				value = tradition_base_cost
				desc = BASE
				format = "BASE_VALUE_FORMAT"
			}
		}
	}

	ai_will_do = {
		value = 100
	}
}

tradition_agot_slavers_bay = {
	category = regional

	layers = {
		0 = martial
		1 = mena
		4 = king.dds
	}

	is_shown = {
		always = no
	}

	parameters = {
		charming_trait_more_common = yes
		cautious_leader_trait_more_common = yes
		hill_trait_bonuses = yes
		arrogant_trait_more_common = yes
		humble_trait_looked_down_upon = yes
		wanderers_gain_extra_economic_skills = yes
		more_slaves_from_raiding = yes
	}

	character_modifier = {
		different_faith_opinion = -10
	}

	cost = {
		prestige = {
			add = {
				value = tradition_base_cost
				desc = BASE
				format = "BASE_VALUE_FORMAT"
			}
		}
	}

	ai_will_do = {
		value = 100
	}
}

tradition_agot_ghis = {
	category = regional

	layers = {
		0 = martial
		1 = mena
		4 = king.dds
	}

	is_shown = {
		always = no
	}

	parameters = {
		rowdy_trait_more_common = yes
		organizer_trait_more_common = yes
		plains_trait_bonuses = yes
		arrogant_trait_more_common = yes
		lazy_trait_looked_down_upon = yes
		wanderers_gain_extra_combat_skills = yes
	}

	character_modifier = {
		army_maintenance_mult = -0.10
		different_faith_opinion = -10
	}

	cost = {
		prestige = {
			add = {
				value = tradition_base_cost
				desc = BASE
				format = "BASE_VALUE_FORMAT"
			}
		}
	}

	ai_will_do = {
		value = 100
	}
}

#can have up to 2 Concubines
tradition_agot_rhoynar = {
	category = regional

	layers = {
		0 = diplo
		1 = indian
		4 = water_technology.dds
	}

	is_shown = {
		always = no
	}

	parameters = {
		gender_equal_inheritance = yes
		curious_trait_more_common = yes
		forder_trait_more_common = yes
		wetlands_trait_bonuses = yes
		wrathful_trait_looked_down_upon = yes
		calm_trait_more_common = yes
		wanderers_gain_extra_diplomacy_skills = yes
	}

	character_modifier = {
		min_combat_roll = -5
	}

	cost = {
		prestige = {
			add = {
				value = tradition_base_cost
				desc = BASE
				format = "BASE_VALUE_FORMAT"
			}
		}
	}

	ai_will_do = {
		value = 100
	}
}

tradition_agot_candling = { #silly mode candlings
	category = regional

	layers = {
		0 = martial
		1 = mediterranean
		4 = runestone.dds
	}

	is_shown = {
		always = no
	}

	parameters = {
		mystic_trait_gives_bonuses = yes
		mystic_trait_more_common = yes
		prowess_from_religious_traits = yes
		harder_to_hybridize = yes
		zealous_trait_more_common = yes
		tells_stories = yes
	}

	character_modifier = {
		owned_legend_spread_mult = 0.1
		martial_per_piety_level = 1
	}

	cost = {
		prestige = {
			add = {
				value = tradition_base_cost
				desc = BASE
				format = "BASE_VALUE_FORMAT"
			}
		}
	}

	ai_will_do = {
		value = 100
	}
}

tradition_agot_vale = {
	category = regional

	layers = {
		0 = martial
		1 = western
		4 = mountain.dds
	}

	is_shown = {
		scope:character.culture = {
			any_culture_county = {
				title_province = { geographical_region = world_westeros_the_vale }
				count >= 9
			}
		}
	}

	parameters = {
		bossy_trait_more_common = yes
		mountain_trait_bonuses = yes
		rough_terrain_expert_trait_more_common = yes
		gluttonous_looked_down_upon = yes
		brave_trait_more_common = yes
		wanderers_gain_extra_combat_skills = yes
		unlock_maa_winged_knights = yes
		unlock_maa_vale_knights = yes
		unlock_maa_vale_pikes = yes
		unlock_maa_vale_footmen = yes
	}

	character_modifier = {
		liege_opinion = 15
		councillor_opinion = -35
	}

	cost = {
		prestige = {
			add = {
				value = tradition_base_cost
				desc = BASE
				format = "BASE_VALUE_FORMAT"
			}
		}
	}

	ai_will_do = {
		value = 100
	}
}

tradition_agot_riverlands = {
	category = regional

	layers = {
		0 = steward
		1 = western
		4 = water_technology.dds
	}

	is_shown = {
		scope:character.culture = {
			any_culture_county = {
				title_province = { geographical_region = world_westeros_the_riverlands }
				count >= 9
			}
		}
	}

	parameters = {
		charming_trait_more_common = yes
		wetlands_trait_bonuses = yes
		forder_trait_more_common = yes
		arbitrary_trait_looked_down_upon = yes
		just_trait_more_common = yes
		wanderers_gain_extra_diplomacy_skills = yes
		unlock_maa_river_bows = yes
		unlock_maa_river_footmen = yes
		unlock_maa_river_scouts = yes
	}

	character_modifier = {
		legitimacy_gain_mult = -0.15
		no_water_crossing_penalty = yes
	}

	cost = {
		prestige = {
			add = {
				value = tradition_base_cost
				desc = BASE
				format = "BASE_VALUE_FORMAT"
			}
		}
	}

	ai_will_do = {
		value = 100
	}
}

tradition_agot_blackwater_bay = {
	category = regional

	layers = {
		0 = intrigue
		1 = western
		4 = crown.dds
	}

	is_shown = {
		scope:character.culture = {
			any_culture_county = {
				title_province = { geographical_region = world_westeros_the_crownlands }
				count >= 9
			}
		}
	}

	parameters = {
		curious_trait_more_common = yes
		open_terrain_expert_trait_more_common = yes
		lazy_trait_looked_down_upon = yes
		arrogant_trait_more_common = yes
		wanderers_gain_extra_diplomacy_skills = yes
		urban_trait_bonuses = yes
		doesnt_care_about_culture_faith_in_factions = yes
	}

	character_modifier = {
		zealot_opinion = -35
	}

	cost = {
		prestige = {
			add = {
				value = tradition_base_cost
				desc = BASE
				format = "BASE_VALUE_FORMAT"
			}
		}
	}

	ai_will_do = {
		value = 100
	}
}

tradition_agot_ironmen = {
	category = regional

	layers = {
		0 = martial
		1 = western
		4 = viking.dds
	}

	is_shown = {
		scope:character.culture = {
			any_culture_county = {
				title_province = { geographical_region = world_westeros_the_iron_islands }
				count >= 9
			}
		}
	}

	parameters = {
		rowdy_trait_more_common = yes
		hill_trait_bonuses = yes
		craven_looked_down_upon = yes
		wrathful_trait_more_common = yes
		culture_can_raid_at_sea_even_if_feudal_no_restrictions = yes
		wanderers_gain_extra_combat_skills = yes
		reaver_trait_more_common = yes
	}

	character_modifier = {
		different_faith_opinion = -35
	}

	cost = {
		prestige = {
			add = {
				value = tradition_base_cost
				desc = BASE
				format = "BASE_VALUE_FORMAT"
			}
		}
	}

	ai_will_do = {
		value = 100
	}
}

tradition_agot_north = {
	category = regional

	layers = {
		0 = martial
		1 = western
		4 = fierce_independence.dds
	}

	is_shown = {
		scope:character.culture = {
			any_culture_county = {
				title_province = { geographical_region = world_westeros_the_north }
				count >= 9
			}
		}
	}

	parameters = {
		bossy_trait_more_common = yes
		winter_trait_bonuses = yes
		disloyal_looked_down_upon = yes
		winter_soldier_trait_more_common = yes
		diligent_trait_more_common = yes
		reduced_marriage_acceptance_outside_culture = yes
		wanderers_gain_extra_combat_skills = yes
	}

	character_modifier = {
		diplomatic_range_mult = -0.15
	}

	cost = {
		prestige = {
			add = {
				value = tradition_base_cost
				desc = BASE
				format = "BASE_VALUE_FORMAT"
			}
		}
	}

	ai_will_do = {
		value = 100
	}
}

tradition_agot_stormlands = {
	category = regional

	layers = {
		0 = martial
		1 = western
		4 = indomitable_azatani.dds
	}

	is_shown = {
		scope:character.culture = {
			any_culture_county = {
				title_province = { geographical_region = world_westeros_the_stormlands }
				count >= 9
			}
		}
	}

	parameters = {
		rowdy_trait_more_common = yes
		hill_trait_bonuses = yes
		rough_terrain_expert_trait_more_common = yes
		weak_traits_looked_down_upon = yes
		stubborn_trait_more_common = yes
		wanderers_gain_extra_combat_skills = yes
		hunting_traits_more_common = yes
		more_frequent_hunts = yes
	}

	character_modifier = {
		owned_scheme_secrecy_add  = -10
	}

	cost = {
		prestige = {
			add = {
				value = tradition_base_cost
				desc = BASE
				format = "BASE_VALUE_FORMAT"
			}
		}
	}

	ai_will_do = {
		value = 100
	}
}

tradition_agot_marches = {
	category = regional

	layers = {
		0 = martial
		1 = western
		4 = indomitable_azatani.dds
	}

	is_shown = {
		scope:character.culture = {
			any_culture_county = {
				title_province = {
					OR = {
						geographical_region = world_westeros_dornish_marches_reach
						geographical_region = world_westeros_dornish_marches_stormlands
					}
				}
				count >= 9
			}
		}
	}

	parameters = {
		rowdy_trait_more_common = yes
		hill_trait_bonuses = yes
		rough_terrain_expert_trait_more_common = yes
		weak_traits_looked_down_upon = yes
		stubborn_trait_more_common = yes
		wanderers_gain_extra_combat_skills = yes
		hunting_traits_more_common = yes
		more_frequent_hunts = yes
	}

	character_modifier = {
		owned_scheme_secrecy_add  = -10
	}

	cost = {
		prestige = {
			add = {
				value = tradition_base_cost
				desc = BASE
				format = "BASE_VALUE_FORMAT"
			}
		}
	}

	ai_will_do = {
		value = 100
	}
}

tradition_agot_dorne = {
	category = regional

	layers = {
		0 = intrigue
		1 = mena
		4 = soldiers.dds
	}

	is_shown = {
		scope:character.culture = {
			any_culture_county = {
				title_province = { geographical_region = world_westeros_dorne }
				count >= 9
			}
		}
	}

	parameters = {
		charming_trait_more_common = yes
		desert_warrior_trait_more_common = yes
		desert_warrior_trait_is_better = yes
		eunuch_trait_is_looked_down_upon = yes
		vengeful_trait_more_common = yes
		wanderers_gain_extra_intrigue_skills = yes
		gender_equal_inheritance = yes
		can_have_paramours = yes
	}

	character_modifier = {
		different_culture_opinion = -35
	}

	cost = {
		prestige = {
			add = {
				value = tradition_base_cost
				desc = BASE
				format = "BASE_VALUE_FORMAT"
			}
		}
	}

	ai_will_do = {
		value = 100
	}
}

tradition_agot_reach = {
	category = regional

	layers = {
		0 = steward
		1 = western
		4 = food.dds
	}

	is_shown = {
		scope:character.culture = {
			any_culture_county = {
				title_province = { geographical_region = world_westeros_the_reach }
				count >= 9
			}
		}
	}

	parameters = {
		pensive_trait_more_common = yes
		plains_trait_bonuses = yes
		sadistic_trait_looked_down_upon = yes
		gregarious_trait_more_common = yes
		open_terrain_expert_trait_more_common = yes
		enable_garden_duchy_building = yes
		can_appoint_court_gardener = yes
		wanderers_gain_extra_economic_skills = yes
		unlock_maa_reach_pikes = yes
		unlock_maa_reach_swords = yes
		unlock_maa_reach_scouts = yes
	}
	character_modifier = {
		different_faith_opinion = -35
	}
	cost = {
		prestige = {
			add = {
				value = tradition_base_cost
				desc = BASE
				format = "BASE_VALUE_FORMAT"
			}
		}
	}

	ai_will_do = {
		value = 100
	}
}
