﻿# Our special Regula appointment for Admin realms
# Magister sets a law, which then sets a Paelex law which uses these
# Also uses standard vanilla weightings

# This succession appointment is the Regula default
# Has modifiers based on age and traits
# The goal here is to favour candidates that would make good Paelices for the magister
# Other succession laws below allow you to further weight towards a particular style
regula_admin_governor_regula = {
	default_candidates = { holder_close_family holder_close_extended_family }
	allow_children = yes

	candidate_score = {
		value = {

			# Regula modifiers
			# Age, only accept candidates below 30
			add = {
				value = regula_age_young_blood_appointment_succession_scoring
			}

			# Traits
			add = {
				value = regula_good_breeding_appointment_succession_scoring
			}
			
			# Consanguinity
			add = {
				value = regula_marital_appointment_succession_scoring
			}

			# Vanilla CK3 values
			add = {
				value = regula_vanilla_appointment_succession_scoring
			}
		}
	}
}

# This succession appointment favours "young blood"
# Characters aged between 10 - 20 are heavily favoured
regula_admin_governor_young_blood = {
	default_candidates = { holder_close_family holder_close_extended_family }
	allow_children = yes

	candidate_score = {
		value = {

			# Regula modifiers
			# Age, only accept candidates below 30
			add = {
				value = regula_age_young_blood_appointment_succession_scoring

				# As this is the "young blood" succession, we score this much higher
				multiply = {
					value = 2
					desc = regula_young_blood_succession_bonus
				}
			}

			# Traits
			add = {
				value = regula_good_breeding_appointment_succession_scoring
			}
			
			# Consanguinity
			add = {
				value = regula_marital_appointment_succession_scoring
			}

			# Vanilla CK3 values
			add = {
				value = regula_vanilla_appointment_succession_scoring
			}
		}
	}
}

# This succession appointment favours characters with good genetic traits
# Similar to above, but weights congenital traits over age
regula_admin_governor_good_breeding = {
	default_candidates = { holder_close_family holder_close_extended_family }
	allow_children = yes

	candidate_score = {
		value = {
			# Regula modifiers
			# Age, only accept candidates below 30
			add = {
				value = regula_age_young_blood_appointment_succession_scoring
			}

			# Traits
			add = {
				value = regula_good_breeding_appointment_succession_scoring
				# Multiply by two because this is "Good Breeding" appointment succession
				multiply = {
					value = 2
					desc = regula_good_breeding_succession_bonus
				}
			}

			# Consanguinity
			add = {
				value = regula_marital_appointment_succession_scoring
			}

			# Vanilla CK3 values
			add = {
				value = regula_vanilla_appointment_succession_scoring
			}
		}
	}
}

# This succession appointment favours stats
# Basically vanilla but multiple stats by 3
regula_admin_governor_talented = {
	default_candidates = { holder_close_family holder_close_extended_family }
	allow_children = yes

	candidate_score = {
		value = {
			# Regula modifiers
			# Age, only accept candidates below 30
			add = {
				value = regula_age_young_blood_appointment_succession_scoring
			}

			# Traits
			add = {
				value = regula_good_breeding_appointment_succession_scoring
			}

			# Consanguinity
			add = {
				value = regula_marital_appointment_succession_scoring
			}

			# Vanilla CK3 values
			add = {
				value = regula_vanilla_appointment_succession_scoring
			}

			# Base - Based on skills
			add = {
				value = martial
				add = diplomacy
				add = stewardship
				add = intrigue
				add = learning
				multiply = 2	# Multiply by 3 because this is "Talented" succession modifier, first addition is from vanilla CK3 modifier
				desc = regula_talented_succession_bonus
			}
		}
	}
}