﻿### Hiraeth Dynasty Legacies - Royal Court Patch ###
### Renamed to Culture ###

hth_ep1_culture_legacy_1 = { # Probis Pateo
	legacy = ep1_culture_legacy_track
	
	character_modifier = {
		name = hth_ep1_culture_legacy_1_name
		#councillor_opinion = 10
		cultural_head_fascination_mult = 0.1
		learning = 1
		stewardship = 1
		ai_compassion = 20
	}
	effect = {
		custom_description_no_bullet = { ## AI 
			text = hth_culture_legacy_1_ai_effect
		}
		custom_description_no_bullet = { ## Legacy Requirement
			text = hth_society_legacy_1_req_effect
		}
	}
	can_be_picked = { 
		hth_society_1_legacy_trigger = yes
	}
	ai_chance = {
		value = 11
		if = {
			limit = {
				can_start_new_legacy_track_trigger = no
			}
			multiply = 0
		}
		if = { # Avoid having AI's pick this legacy if they are unlikely to benefit
			limit = {
				NOT = {
					any_vassal_or_below = {
						count >= 2
						primary_title.tier >= tier_county
						NOT = {
							culture = prev.culture
						}
					}
				}
			}
			multiply = 0
		}
	}
}
hth_ep1_culture_legacy_2 = { # Roots of a Tree
	legacy = ep1_culture_legacy_track
	
	character_modifier = {
		max_learn_language_schemes_add = 1
		cultural_head_acceptance_gain_mult = 0.25
		ai_compassion = 20
		# cultural emissary
	}
	
	can_be_picked = { 
		hth_society_2_legacy_trigger = yes
	}

	effect = {
		custom_description_no_bullet = { text = legacy_more_acceptance_from_council_job_effect }
		custom_description_no_bullet = { ## AI 
			text = hth_culture_legacy_1_ai_effect
		}
		custom_description_no_bullet = { ##Legacy Requirement
			text = hth_society_legacy_2_req_effect
		}
	}
}
ep1_culture_legacy_5 = { # People of the Land
	legacy = ep1_culture_legacy_track
	character_modifier = {
		monthly_stewardship_lifestyle_xp_gain_mult = 0.10
		monthly_learning_lifestyle_xp_gain_mult = 0.10
		ai_compassion = 20
	}
	can_be_picked = { 
		hth_society_3_legacy_trigger = yes
	}
	effect = {
		custom_description_no_bullet = { ## Unique Decision
			text = hth_society_legacy_3_effect
		}
		custom_description_no_bullet = { ## AI
			text = hth_culture_legacy_1_ai_effect
		}
		custom_description_no_bullet = { ## Legacy Requirement
			text = hth_society_legacy_3_req_effect
		}
	}
}
ep1_culture_legacy_4 = { # Under an Old Tree
	legacy = ep1_culture_legacy_track

	character_modifier = {
		same_culture_opinion = 5
		same_culture_mercenary_hire_cost_mult = -0.2
		ai_compassion = 20
	}
	can_be_picked = { 
		hth_society_4_legacy_trigger = yes
	}
	effect = {
		custom_description_no_bullet = { ## Cultural Emissary
			text = hth_unlock_cultural_emissary_court_position
		}
		custom_description_no_bullet = { ## AI
			text = hth_culture_legacy_1_ai_effect
		}
		custom_description_no_bullet = { ## Legacy Requirement
			text = hth_society_legacy_4_req_effect
		}
	}
}
hth_ep1_culture_legacy_5 = { # Pentimento
	legacy = ep1_culture_legacy_track

	character_modifier = {
		name = ep1_culture_legacy_4_name
		learning = 1
		stewardship = 1
		ai_compassion = 20
	}
	can_be_picked = { 
		hth_society_5_legacy_trigger = yes
	}
	effect = {
		culture = { add_random_innovation = yes }
		custom_description_no_bullet = { ## AI 
			text = hth_culture_legacy_1_ai_effect
		}
		custom_description_no_bullet = { ## Legacy Requirement
			text = hth_society_legacy_5_req_effect
		}
	}
}