78 lines
1.7 KiB
Text
78 lines
1.7 KiB
Text
admin_governor = {
|
|
default_candidates = { holder_close_family }
|
|
|
|
candidate_score = {
|
|
value = {
|
|
# Base - Based on skills
|
|
add = {
|
|
value = martial
|
|
add = diplomacy
|
|
add = stewardship
|
|
add = intrigue
|
|
add = learning
|
|
multiply = 1
|
|
desc = sum_of_skills_desc
|
|
}
|
|
|
|
add = appointment_score_base
|
|
add = appointment_score_non_military
|
|
add = appointment_score_non_merit
|
|
add = appointment_score_governor
|
|
|
|
if = {
|
|
limit = {
|
|
government_has_flag = government_is_ecclesiastical
|
|
}
|
|
subtract = {
|
|
value = 8000
|
|
desc = ecclesiastical_government
|
|
}
|
|
}
|
|
if = {
|
|
limit = {
|
|
government_has_flag = government_is_theocracy
|
|
}
|
|
subtract = {
|
|
value = 8000
|
|
desc = theocracy_government
|
|
}
|
|
}
|
|
# PIETY LEVEL (from admin family attribute)
|
|
if = {
|
|
limit = {
|
|
piety_level >= 1
|
|
house ?= {
|
|
OR = {
|
|
has_house_aspiration_parameter = candidate_score_per_piety_level_1
|
|
has_house_aspiration_parameter = candidate_score_per_piety_level_2
|
|
has_house_aspiration_parameter = candidate_score_per_piety_level_3
|
|
}
|
|
}
|
|
}
|
|
add = {
|
|
value = 0
|
|
add = {
|
|
if = {
|
|
limit = {
|
|
house ?= { has_house_aspiration_parameter = candidate_score_per_piety_level_3 }
|
|
}
|
|
add = candidate_score_per_piety_level_3_value
|
|
}
|
|
else_if = {
|
|
limit = {
|
|
house ?= { has_house_aspiration_parameter = candidate_score_per_piety_level_2 }
|
|
}
|
|
add = candidate_score_per_piety_level_2_value
|
|
}
|
|
else = {
|
|
add = candidate_score_per_piety_level_1_value
|
|
}
|
|
}
|
|
multiply = piety_level
|
|
desc = "family_attribute_desc"
|
|
}
|
|
}
|
|
add = appointment_score_final_factors
|
|
}
|
|
}
|
|
}
|