﻿#######################################
# KNIGHTLY ACCOLADE VALUES
#######################################

accolade_low_value = 5
accolade_medium_value = 10
accolade_high_value = 20

accolade_prowess_requirement_value = 8
accolade_prowess_requirement_high_value = 15

accolade_opinion_multiplier_value = {
	value = 0
	## Below the minimum opinion, we don't want to factor them in at all.
	if = {
		limit = {
			reverse_opinion = {
				target = scope:owner
				value < -25
			}
		}
		# Here, we do nothing. Zero is the desired multiplier.
	}
	## Below the recommended opinion, we like them less.
	else_if = {
		limit = {
			reverse_opinion = {
				target = scope:owner
				value < 10
			}
		}
		add = 0.5
	}
	## Above the nepotistic opinion, we prioritise their wants more heavily.
	else_if = {
		limit = {
			reverse_opinion = {
				target = scope:owner
				value >= 90
			}
		}
		add = 2
	}
	## Or else they're in the default range, so x1 is good enough.
	else = { add = 1 }
}

accolade_uninteresting_base_value = 0
accolade_standard_base_value = 200
accolade_fascinating_base_value = 400
accolade_must_have_base_value = 800

accolade_weighted_up_in_earlier_eras_value = {
	value = 0
	culture ?= {
		# If we're in the TE, weight this attribute up a bit.
		if = {
			limit = {
				NOT = { has_cultural_era_or_later = culture_era_early_medieval }
			}
			add = 50
		}
		# If we're in the EME, weight this attribute up even further.
		if = {
			limit = {
				NOT = { has_cultural_era_or_later = culture_era_high_medieval }
			}
			add = 100
		}
	}
}

accolade_weighted_up_in_later_eras_value = {
	value = 0
	culture ?= {
		# If we're in the HME, weight this attribute up a bit.
		if = {
			limit = { has_cultural_era_or_later = culture_era_high_medieval }
			add = 100
		}
		# If we're in the LME, weight this attribute up even further.
		if = {
			limit = { has_cultural_era_or_later = culture_era_late_medieval }
			add = 200
		}
	}
}

maa_accolade_minimum_martial_value = medium_skill_rating

###############
# COMMON ATTRIBUTES
###############

accolade_agent_acceptance_chance_bonus = accolade_medium_value
accolade_agent_acceptance_chance_bonus_high = accolade_high_value
accolade_invite_courtiers_value = accolade_high_value
accolade_imprisonment_chance_value = 15
accolade_imprisonment_chance_value_high = 25
accolade_wise_educator_prestige = 100
accolade_wise_educator_prestige_high = 250
accolade_wise_educator_prowess = 1
accolade_wise_educator_prowess_high = 3
accolade_white_peace_prestige_value = major_prestige_value
accolade_seduction_vulnerability_value = 15
accolade_politicker_join_scheme_value = 25
accolade_charmer_fertility_value = 0.25
accolade_charmer_fertility_high_value = 0.5
accolade_charmer_attraction_opinion_value = accolade_medium_value
accolade_charmer_attraction_opinion_high_value = accolade_high_value
accolade_piety_reduction_value = 0.5
accolade_piety_reduction_value_high = 0.25

###############
# SKILLED ATTRIBUTES
###############

accolade_scales_of_power_value = -10
accolade_scales_of_power_value_high = -15

accolade_development_growth_on_tournament_completion_value = 50
accolade_development_level_on_tournament_completion_value = 1
accolade_county_control_gain_value = medium_county_control_gain

accolade_contender_trait_xp_low_value = 10
accolade_contender_trait_xp_medium_value = 15
accolade_contender_trait_xp_high_value = 20

accolade_all_knights_trait_xp_low_value = 5
accolade_all_knights_trait_xp_high_value = 10


###############
# MAA ATTRIBUTES
###############

accolade_hostile_knight_death_in_battle_low_value = 0.25
accolade_hostile_knight_death_in_battle_medium_value = 0.5
accolade_hostile_knight_death_in_battle_high_value = 0.75

accolade_hostile_knight_death_in_battle_actual_low_value = {
	value = accolade_hostile_knight_death_in_battle_low_value
	add = 1
}
accolade_hostile_knight_death_in_battle_actual_medium_value = {
	value = accolade_hostile_knight_death_in_battle_medium_value
	add = 1
}
accolade_hostile_knight_death_in_battle_actual_high_value = {
	value = accolade_hostile_knight_death_in_battle_high_value
	add = 1
}

###############
# EMINENT ATTRIBUTES
###############

acclaimed_knight_hunt_danger_value = 10
acclaimed_knight_hunt_danger_value_high = 15
accolade_tournament_invite_acceptance_value = 20
accolade_feast_wedding_invite_acceptance_value = 20
acclaimed_knight_prestige_from_victory_value = miniscule_prestige_value
acclaimed_knight_prestige_from_victory_value_high = minor_prestige_value

accolade_defends_family_low_value = -0.25
accolade_defends_family_medium_value = -0.5
accolade_defends_family_high_value = -0.75

accolade_defends_family_actual_low_value = {
	value = accolade_defends_family_low_value
	add = 1
}
accolade_defends_family_actual_medium_value = {
	value = accolade_defends_family_medium_value
	add = 1
}
accolade_defends_family_actual_high_value = {
	value = accolade_defends_family_high_value
	add = 1
}

num_accolades_multiplier = {
	value = 0
	every_accolade = {
		limit = {
			is_accolade_active = no
			NOT = { exists = accolade_successor }
			has_potential_accolade_successors = no
			NOT = {
				primary_type = {
					this = accolade_type:house_knight_attribute 
				}
			}
		}
		add = 1
		if = {
			limit = {
				accolade_rank = 3
			}
			add = 1
		}
		else_if = {
			limit = {
				accolade_rank > 3
			}
			add = 2
		}
	}
}
