###############
# DYNASTY
###############

# Dynasty Warfare CB Discount Perk
warfare_legacy_2_discount = 0.8 # 20% discount

# Dynasty Glory Marriage Acceptance Perk
glory_legacy_1_marriage_acceptance = 30

# Dynasty Kin Personal Scheme Success Chance on Dynasty Perk
kin_legacy_4_success_chance = 30

# Dynasty House Scheme Success Chance on Cultural Paramater
cultural_house_personal_scheme_success_chance = 30

# Dynasty Blood 4 extra Genetic Trait chance
blood_legacy_4_chance = 5
blood_legacy_4_extra_player_chance = 5

# What age does Graceful Aging start
kin_legacy_5_start_age = 30

# How often should the effect fire
kin_legacy_5_every_x_year = 5

# Calculate whether the effect should be applied this year
kin_legacy_5_age_modulo = {
	value = age
	modulo = kin_legacy_5_every_x_year
}

erudition_legacy_5_percentage = 10

customs_legacy_percentage = 30

fp1_adventure_legacy_2_success_chance_seduction = 15

fp1_adventure_legacy_2_prestige_value = {
	value = 100
	if = {
		limit = {
			exists = scope:target.primary_title
		}
		multiply = {
			value = scope:target.primary_title.tier
			add = 1
		}
	}
	if = {
		limit = {
			scope:target = {
				NOT = {
					exists = scope:target.primary_title
				}
				exists = scope:target.primary_spouse
				NOT = {
					scope:target.primary_spouse = prev
				}
				exists = scope:target.primary_spouse.primary_title
			}
		}
		multiply = {
			value = scope:target.primary_spouse.primary_title.tier
			add = 1
		}
	}
	if = {
		limit = {
			any_liege_or_above = {
				scope:target = {
					OR = {
						is_close_family_of = prev
						is_consort_of = prev
					}
				}
			}
		}
		multiply = 1.5
	}
	if = {
		limit = {
			scope:target = {
				is_courtier_of = prev
			}
		}
		multiply = 0.5
	}
}

ep2_activities_legacy_2_grand_weddings_discount_value = 0.5

ep2_activities_legacy_2_grand_weddings_acceptance_boost_value = 15

ep2_activities_legacy_1_pilgrimages_discount_value = 0.5

ep2_activities_legacy_1_pilgrimages_learning_add_value = 2

ep2_activities_legacy_1_pilgrimages_learning_learning_per_holy_site_value = 2

ep2_activities_legacy_1_pilgrimages_learning_visitable_holy_sites_cap_value = 5

ep2_activities_legacy_1_pilgrimages_learning_cap_value = {
	value = ep2_activities_legacy_1_pilgrimages_learning_learning_per_holy_site_value
	multiply = ep2_activities_legacy_1_pilgrimages_learning_visitable_holy_sites_cap_value
}

ep2_activities_legacy_3_tours_modifier_duration_value = 20

#FP3 Values

khvarenah_legacy_marriage_acceptance = 10

khvarenah_legacy_aptitude = 10
