﻿### Hiraeth Dynasty Legacies - Fate of Iberia Patch ###

# DEVELOPMENT LEGACIES

fp2_urbanism_legacy_2 = { # Merchant Lord
	legacy = fp2_urbanism_legacy_track

	can_be_picked = { 
		hth_metropolitan_1_legacy_trigger = yes
		eligible_for_fp2_dynasty_legacies_trigger = yes
	}

	effect = {
		custom_description_no_bullet = { text = fp2_urbanism_legacy_2_effect } ## Custom Effect
		custom_description_no_bullet = { text = hth_law_legacy_1_ai_effect } ## AI
		custom_description_no_bullet = { text = hth_metropolitan_legacy_1_req_effect } ## Legacy Requirement
	}
	
	character_modifier = {
		stewardship = 1
		learning = 1
		ai_greed = 20
	}

	ai_chance = {
		value = 11
		if = {
			limit = {
				culture = {
					OR = {
						has_cultural_pillar = heritage_iberian
						has_cultural_pillar = heritage_arabic
					}
				}
			}
			multiply = 10
		}
		if = {
			limit = {
				can_start_new_legacy_track_trigger = no
			}
			multiply = 0
		}
	}
}
hth_fp2_urbanism_legacy_2 = { # Architects of Change
	legacy = fp2_urbanism_legacy_track

	effect = {
		custom_description_no_bullet = { text = hth_law_legacy_1_ai_effect } ## AI
		custom_description_no_bullet = { text = hth_metropolitan_legacy_2_req_effect } ## Legacy Requirement
	}
	character_modifier = {
		city_holding_build_speed = -0.1
		city_holding_build_gold_cost = -0.1
		city_holding_holding_build_speed = -0.1
		city_holding_holding_build_gold_cost = -0.1
		ai_greed = 20
	}
	can_be_picked = { 
		hth_metropolitan_2_legacy_trigger = yes
	}
	ai_chance = {
		value = 100
	}
}
fp2_urbanism_legacy_4 = { # Glory of the Dynasty
	legacy = fp2_urbanism_legacy_track

	character_modifier = {
		monthly_stewardship_lifestyle_xp_gain_mult = 0.10
		monthly_learning_lifestyle_xp_gain_mult = 0.10
		ai_greed = 20
	}
	effect = {
		custom_description_no_bullet = { text = fp2_urbanism_legacy_4_effect } # Custom Effect
		custom_description_no_bullet = { text = hth_law_legacy_1_ai_effect } # AI
		custom_description_no_bullet = { text = hth_metropolitan_legacy_3_req_effect } # Legacy Requirement
	}
	can_be_picked = { 
		hth_metropolitan_3_legacy_trigger = yes
	}
	ai_chance = {
		value = 100
	}
}
fp2_urbanism_legacy_1 = { # Road to Prosperity
	legacy = fp2_urbanism_legacy_track

	effect = {
		custom_description_no_bullet = { text = fp2_urbanism_legacy_1_effect } # Custom Effect
		custom_description_no_bullet = { text = hth_law_legacy_1_ai_effect } # AI
		custom_description_no_bullet = { text = hth_metropolitan_legacy_4_req_effect } # Legacy Requirement
	}
	character_modifier = {
		court_grandeur_baseline_add = 5
		parochial_tax_contribution_mult = 0.25
		ai_greed = 20
	}
	
	can_be_picked = { 
		hth_metropolitan_4_legacy_trigger = yes
	}
	
	ai_chance = {
		value = 100
	}
}
fp2_urbanism_legacy_5 = { # Golden Age
	legacy = fp2_urbanism_legacy_track

	effect = {
		custom_description_no_bullet = { text = hth_metropolitan_legacy_3_effect } # Custom Effect
		custom_description_no_bullet = { text = hth_law_legacy_1_ai_effect } # AI
		custom_description_no_bullet = { text = hth_metropolitan_legacy_5_req_effect } # Legacy Requirement
	}
	character_modifier = {
		stewardship = 1
		learning = 1
		ai_greed = 20
	}
	can_be_picked = { 
		hth_metropolitan_5_legacy_trigger = yes
	}
	ai_chance = {
		value = 100
	}
}

# LOYALTY LEGACIES

hth_fp2_coterie_legacy_1 = { # One House
	legacy = fp2_coterie_legacy_track

	can_be_picked = { 
		hth_coterie_1_legacy_trigger = yes 
		eligible_for_fp2_dynasty_legacies_trigger = yes
	}
	effect = {
		custom_description_no_bullet = { text = hth_coterie_legacy_1_ai_effect } ## AI
		custom_description_no_bullet = { text = hth_coterie_legacy_1_req_effect } ## Legacy Requirement
	}
	character_modifier = {
		intrigue = 1
		diplomacy = 1
		dynasty_house_opinion = 5
		ai_honor = 10
		ai_vengefulness = 10
	}
	ai_chance = {
		value = 11
		if = {
			limit = {
				culture = {
					OR = {
						has_cultural_pillar = heritage_iberian
						has_cultural_pillar = heritage_arabic
					}
				}
			}
			multiply = 10
		}
		if = {
			limit = {
				can_start_new_legacy_track_trigger = no
			}
			multiply = 0
		}
	}
}
fp2_coterie_legacy_1 = { # Inner Circle
	legacy = fp2_coterie_legacy_track

	can_be_picked = { hth_coterie_2_legacy_trigger = yes }
	
	character_modifier = {
		max_sway_schemes_add = 1
		ai_honor = 10
		ai_vengefulness = 10
	}

	effect = {
		custom_description_no_bullet = { text = fp2_coterie_legacy_1_effect } ## Custom Effect
		custom_description_no_bullet = { text = hth_coterie_legacy_1_ai_effect } ## AI
		custom_description_no_bullet = { text = hth_coterie_legacy_2_req_effect } ## Legacy Requirement
	}

	ai_chance = {
		value = 100
	}
}
fp2_coterie_legacy_4 = { # Lineage of Secrets
	legacy = fp2_coterie_legacy_track

	can_be_picked = { hth_coterie_3_legacy_trigger = yes }


	effect = {
		custom_description_no_bullet = { text = fp2_coterie_legacy_4_effect } ## Custom Effect
		custom_description_no_bullet = { text = hth_coterie_legacy_1_ai_effect } ## AI
		custom_description_no_bullet = { text = hth_coterie_legacy_3_req_effect } ## Legacy Requirement
	}

	character_modifier = {
		monthly_diplomacy_lifestyle_xp_gain_mult = 0.10
		monthly_intrigue_lifestyle_xp_gain_mult = 0.10
		ai_honor = 10
		ai_vengefulness = 10
	}

	ai_chance = {
		value = 100
	}
}
fp2_coterie_legacy_3 = { # Banded Blood
	legacy = fp2_coterie_legacy_track

	can_be_picked = { hth_coterie_4_legacy_trigger = yes }

	effect = {
		custom_description_no_bullet = { text = fp2_coterie_legacy_3_effect } ## Custom Effect
		custom_description_no_bullet = { text = hth_coterie_legacy_1_ai_effect } ## AI
		custom_description_no_bullet = { text = hth_coterie_legacy_4_req_effect } ## Legacy Requirement
	}
	
	character_modifier = {
		same_heritage_county_advantage_add = 5
		ai_honor = 10
		ai_vengefulness = 10
	}

	ai_chance = {
		value = 100
	}
}
fp2_coterie_legacy_5 = { # House Rule
	legacy = fp2_coterie_legacy_track

	can_be_picked = { hth_coterie_5_legacy_trigger = yes }

	effect = {
		custom_description_no_bullet = { text = fp2_coterie_legacy_5_effect } ## Custom Effect
		custom_description_no_bullet = { text = hth_coterie_legacy_1_ai_effect } ## AI
		custom_description_no_bullet = { text = hth_coterie_legacy_5_req_effect } ## Legacy Requirement
	}
	
	character_modifier = {
		intrigue = 1
		diplomacy = 1
		ai_honor = 10
		ai_vengefulness = 10
	}

	ai_chance = {
		value = 100
	}
}