﻿### Hiraeth Dynasty Legacies - Legends of the Dead Patch ###

### HEROISM LEGACIES

ce1_heroic_legacy_1 = { # Fellowship
	legacy = ce1_heroic_track
	
	character_modifier = {
		martial = 1
		prowess = 3
		ai_boldness = 20
	}
	effect = {
		custom_description_no_bullet = { ## Custom Effect 
			text = hth_heroism_legacy_1_effect
		}
		custom_description_no_bullet = { ## AI 
			text = hth_heroism_legacy_1_ai_effect
		}
		custom_description_no_bullet = { ## Legacy Requirement
			text = hth_heroism_legacy_1_req_effect
		}
	}
	can_be_picked = {
		has_dlc_feature = legends_of_the_dead
		hth_heroism_1_legacy_trigger = yes
	}
	ai_chance = {
		value = 11
		if = {
			limit = {
				dynasty = {
					dynasty_prestige_level >= high_dynasty_prestige_level
				}
			}
			multiply = 10
		}
		if = {
			limit = {
				can_start_new_legacy_track_trigger = no
			}
			multiply = 0
		}
	}
}
ce1_heroic_legacy_3 = { # Legend of Gold
	legacy = ce1_heroic_track

	character_modifier = {
		accolade_glory_gain_mult = 0.10
		knight_effectiveness_mult = 0.25
		ai_boldness = 20
		# cheaper legends
	}
	effect = {
		custom_description_no_bullet = { ## Custom Effect
			text = ce1_heroic_legacy_3_effect
		}
		custom_description_no_bullet = { ## AI
			text = hth_heroism_legacy_1_ai_effect
		}
		custom_description_no_bullet = { ## Legacy Requirement
			text = hth_heroism_legacy_2_req_effect
		}
	}
	traits = {
		saint = 100
	}
	can_be_picked = {
		has_dlc_feature = legends_of_the_dead
		hth_heroism_2_legacy_trigger = yes
	}
}
ce1_heroic_legacy_2 = { # Tapestry of the Dynasty
	legacy = ce1_heroic_track

	character_modifier = {
		monthly_martial_lifestyle_xp_gain_mult = 0.20
		ai_boldness = 20
	}
	effect = {
		custom_description_no_bullet = { ## Make a founder trait more common, handled in on_birth_child
			text = ce1_heroic_legacy_2_effect
		}
		custom_description_no_bullet = { ## AI
			text = hth_heroism_legacy_1_ai_effect
		}
		custom_description_no_bullet = { ## Legacy Requirement
			text = hth_heroism_legacy_3_req_effect
		}
	}
	can_be_picked = {
		has_dlc_feature = legends_of_the_dead
		hth_heroism_3_legacy_trigger = yes
	}
}
ce1_heroic_legacy_4 = { # Nay, a Legend of Man
	legacy = ce1_heroic_track

	character_modifier = {
		active_accolades = 2
		knight_effectiveness_mult = 0.25
		ai_boldness = 20
		# cheaper legends
	}
	effect = {
		custom_description_no_bullet = { ## Custom Effect
			text = ce1_heroic_legacy_4_effect
		}
		custom_description_no_bullet = { ## AI
			text = hth_heroism_legacy_1_ai_effect
		}
		custom_description_no_bullet = { ## Legacy Requirement
			text = hth_heroism_legacy_4_req_effect
		}
	}
	traits = {
		legend = 100
	}
	can_be_picked = {
		has_dlc_feature = legends_of_the_dead
		hth_heroism_4_legacy_trigger = yes
	}
}
hth_ce1_heroic_legacy_5 = { # Once More Unto the Breach
	legacy = ce1_heroic_track
	
	character_modifier = {
		martial = 1
		prowess = 3
		#knight_effectiveness_per_prowess = 0.02
		knight_limit = 5
		ai_boldness = 20
	}
	effect = {
		#custom_description_no_bullet = { ## Custom Effect
		#	text = hth_heroism_legacy_5_effect
		#}
		custom_description_no_bullet = { ## AI
			text = hth_heroism_legacy_1_ai_effect
		}
		custom_description_no_bullet = { ## Legacy Requirement
			text = hth_heroism_legacy_5_req_effect
		}
	}
	can_be_picked = {
		has_dlc_feature = legends_of_the_dead
		hth_heroism_5_legacy_trigger = yes
	}
}

### LEGITIMACY LEGACIES

hth_ce1_legitimacy_legacy_1 = { # Once Blessed
	legacy = ce1_legitimacy_legacy_track

	character_modifier = {
		learning = 1
		diplomacy = 1
		ai_zeal = 10
		county_opinion_add = 10
	}
	effect = {
		custom_description_no_bullet = { ## AI
			text = hth_legitimacy_legacy_1_ai_effect
		}
		custom_description_no_bullet = { ## Legacy Requirement
			text = hth_legitimacy_legacy_1_req_effect
		}
	}
	can_be_picked = {
		always = no
		is_ai = no
	}
}
hth_ce1_legitimacy_legacy_2 = { # Divine Mandate
	legacy = ce1_legitimacy_legacy_track
	
	character_modifier = {
		legitimacy_gain_mult = 0.15
		zealot_levy_contribution_mult = 0.25
		holy_order_hire_cost_mult = -0.30
		ai_zeal = 10
	}
	effect = {
		custom_description_no_bullet = { ## AI
			text = hth_legitimacy_legacy_1_ai_effect
		}
		custom_description_no_bullet = { ## Legacy Requirement
			text = hth_legitimacy_legacy_2_req_effect
		}
	}
	can_be_picked = {
		always = no
		is_ai = no
	}
}
hth_ce1_legitimacy_legacy_4 = { # Kingdom of CreatorName
	legacy = ce1_legitimacy_legacy_track

	character_modifier = {
		legitimacy_gain_mult = 0.15
		ai_zeal = 10
		monthly_piety_gain_per_legitimacy_level_add = 0.40
	}
	doctrine_character_modifier = {
		name = hth_ce1_legitimacy_legacy_4_modifier_name
		doctrine = doctrine_no_head
		domain_tax_same_faith_mult = 0.10
	}
	doctrine_character_modifier = {
		name = hth_ce1_legitimacy_legacy_4_modifier_name
		doctrine = doctrine_spiritual_head
		religious_head_opinion = 20
	}
	doctrine_character_modifier = {
		name = hth_ce1_legitimacy_legacy_4_modifier_name
		doctrine = doctrine_temporal_head
		tolerance_advantage_mod = 5
	}
	effect = {
		custom_description_no_bullet = { ## AI
			text = hth_legitimacy_legacy_1_ai_effect
		}
		custom_description_no_bullet = { ## Legacy Requirement
			text = hth_legitimacy_legacy_4_req_effect
		}
	}
	can_be_picked = {
		always = no
		is_ai = no
	}
}
ce1_heroic_legacy_5 = { # CreatorName and My Right
	legacy = ce1_legitimacy_legacy_track

	character_modifier = {
		learning = 1
		diplomacy = 1
		ai_zeal = 10
		monthly_prestige_gain_per_legitimacy_level_add = 0.40
	}
	effect = {
		custom_description_no_bullet = { ## Custom Effect
			text = ce1_legitimacy_legacy_5_effect
		}
		custom_description_no_bullet = { ## AI
			text = hth_legitimacy_legacy_1_ai_effect
		}
		custom_description_no_bullet = { ## Legacy Requirement
			text = hth_legitimacy_legacy_5_req_effect
		}
	}
	can_be_picked = {
		always = no
		is_ai = no
	}
}