Alignment
This commit is contained in:
parent
f7a954eb51
commit
15a5108e23
250 changed files with 31104 additions and 25806 deletions
|
|
@ -15,7 +15,8 @@
|
|||
is_shown = {
|
||||
scope:recipient = {
|
||||
this != scope:actor
|
||||
liege ?= scope:actor # this excludes tributary contracts by default
|
||||
liege = scope:actor
|
||||
is_tributary = no # this excludes tributary contracts by default
|
||||
is_ruler = yes
|
||||
vassal_contract_has_modifiable_obligations = yes
|
||||
NOT = { government_allows = administrative }
|
||||
|
|
@ -30,7 +31,7 @@
|
|||
can_send = {
|
||||
#Mandala gets special treatment
|
||||
trigger_if = {
|
||||
limit = {
|
||||
limit = {
|
||||
scope:actor = { government_has_flag = government_is_mandala }
|
||||
}
|
||||
custom_tooltip = {
|
||||
|
|
@ -339,12 +340,14 @@ vassal_modify_vassal_contract_interaction = {
|
|||
|
||||
is_shown = {
|
||||
scope:recipient = {
|
||||
top_liege != this
|
||||
liege = scope:actor
|
||||
this != scope:actor
|
||||
liege ?= scope:actor # this excludes tributary contracts by default
|
||||
is_tributary = no # this excludes tributary contracts by default
|
||||
vassal_contract_has_modifiable_obligations = yes
|
||||
NOT = { government_allows = administrative }
|
||||
NOT = { government_has_flag = government_is_nomadic }
|
||||
NOR = {
|
||||
government_allows = administrative
|
||||
government_has_flag = government_is_nomadic
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -355,7 +358,7 @@ vassal_modify_vassal_contract_interaction = {
|
|||
can_send = {
|
||||
#Mandala gets special treatment
|
||||
trigger_if = {
|
||||
limit = {
|
||||
limit = {
|
||||
scope:recipient = { government_has_flag = government_is_mandala }
|
||||
}
|
||||
custom_tooltip = {
|
||||
|
|
@ -595,10 +598,11 @@ ai_only_liege_modify_vassal_contract_interaction = {
|
|||
}
|
||||
scope:recipient = {
|
||||
this != scope:actor
|
||||
liege = scope:actor
|
||||
NOT = {
|
||||
has_strong_hook = scope:actor
|
||||
}
|
||||
liege ?= scope:actor # this excludes tributary contracts by default
|
||||
is_tributary = no # this excludes tributary contracts by default
|
||||
is_ruler = yes
|
||||
vassal_contract_can_be_modified_trigger = yes
|
||||
does_ai_liege_in_vassal_contract_desire_obligation_change = yes
|
||||
|
|
@ -634,7 +638,7 @@ ai_only_liege_modify_vassal_contract_interaction = {
|
|||
ai_targets = {
|
||||
ai_recipients = vassals
|
||||
}
|
||||
|
||||
|
||||
ai_frequency_by_tier = {
|
||||
barony = 0
|
||||
county = 12
|
||||
|
|
@ -683,10 +687,11 @@ ai_only_liege_modify_vassal_contract_admin_province_interaction = {
|
|||
}
|
||||
scope:recipient = {
|
||||
this != scope:actor
|
||||
liege = scope:actor
|
||||
is_tributary = no
|
||||
NOT = {
|
||||
has_strong_hook = scope:actor
|
||||
}
|
||||
liege ?= scope:actor # this excludes tributary contracts by default
|
||||
is_ruler = yes
|
||||
government_has_flag = government_uses_admin_province_obligations
|
||||
|
||||
|
|
@ -748,10 +753,11 @@ ai_only_vassal_modify_vassal_contract_interaction = {
|
|||
has_usable_hook = scope:recipient
|
||||
vassal_contract_can_be_modified_trigger = yes
|
||||
does_ai_vassal_in_vassal_contract_desire_obligation_change = yes
|
||||
is_tributary = no # this excludes tributary contracts by default
|
||||
liege = scope:recipient
|
||||
}
|
||||
scope:recipient = {
|
||||
this != scope:actor
|
||||
liege ?= scope:actor # this excludes tributary contracts by default
|
||||
is_ruler = yes
|
||||
NOT = {
|
||||
has_strong_hook = scope:actor
|
||||
|
|
@ -824,11 +830,12 @@ admin_liege_modify_vassal_contract_interaction = {
|
|||
is_shown = {
|
||||
scope:recipient = {
|
||||
this != scope:actor
|
||||
liege = scope:actor
|
||||
OR = {
|
||||
is_landed = yes
|
||||
is_councillor_of = scope:actor.top_liege
|
||||
}
|
||||
liege ?= scope:actor # this excludes tributary contracts by default
|
||||
is_tributary = no # this excludes tributary contracts by default
|
||||
is_ruler = yes
|
||||
vassal_contract_has_modifiable_obligations = yes
|
||||
government_allows = administrative
|
||||
|
|
@ -989,7 +996,7 @@ admin_liege_modify_vassal_contract_interaction = {
|
|||
type = msg_vassal_contract_change
|
||||
title = modify_vassal_contract_interaction_notification
|
||||
right_icon = scope:recipient
|
||||
|
||||
|
||||
scope:recipient = {
|
||||
hidden_effect = {
|
||||
set_variable = {
|
||||
|
|
@ -1010,14 +1017,13 @@ admin_liege_modify_vassal_contract_interaction = {
|
|||
type = scope:obligation.vassal_contract_type
|
||||
level = scope:obligation
|
||||
}
|
||||
|
||||
|
||||
# Update the succession law for celestial province types if applicable - That way, we don't have to wait until the current law invalidates.
|
||||
if = {
|
||||
limit = {
|
||||
government_has_flag = government_is_celestial
|
||||
scope:obligation.vassal_contract_type = vassal_contract:celestial_provinces
|
||||
}
|
||||
|
||||
if = {
|
||||
limit = {
|
||||
OR = {
|
||||
|
|
@ -1040,6 +1046,51 @@ admin_liege_modify_vassal_contract_interaction = {
|
|||
add_realm_law_skip_effects = celestial_appointment_succession_law
|
||||
}
|
||||
}
|
||||
# Update the succession law for meritocratic province types if applicable - That way, we don't have to wait until the current law invalidates.
|
||||
else_if = {
|
||||
limit = {
|
||||
government_has_flag = government_is_meritocratic
|
||||
scope:obligation.vassal_contract_type = vassal_contract:meritocratic_provinces
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
vassal_contract_has_flag = meritocratic_province_military
|
||||
NOT = { has_realm_law = meritocratic_military_appointment_succession_law }
|
||||
}
|
||||
add_realm_law_skip_effects = meritocratic_military_appointment_succession_law
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
OR = {
|
||||
vassal_contract_has_flag = meritocratic_province_standard
|
||||
vassal_contract_has_flag = meritocratic_province_industrial
|
||||
}
|
||||
NOT = { has_realm_law = meritocratic_appointment_succession_law }
|
||||
}
|
||||
add_realm_law_skip_effects = meritocratic_appointment_succession_law
|
||||
}
|
||||
}
|
||||
# Update the succession law for japanese province types if applicable - That way, we don't have to wait until the current law invalidates.
|
||||
else_if = {
|
||||
limit = {
|
||||
government_has_flag = government_is_japanese_administrative
|
||||
scope:obligation.vassal_contract_type = vassal_contract:japan_administrative_provinces
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
NOT = { vassal_contract_has_flag = japan_administrative_military_appointment }
|
||||
NOT = { has_realm_law = japanese_appointment_succession_law }
|
||||
}
|
||||
add_realm_law_skip_effects = japanese_appointment_succession_law
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
vassal_contract_has_flag = japan_administrative_military_appointment
|
||||
NOT = { has_realm_law = japanese_military_appointment_succession_law }
|
||||
}
|
||||
add_realm_law_skip_effects = japanese_military_appointment_succession_law
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1060,7 +1111,7 @@ admin_vassal_modify_vassal_contract_interaction = {
|
|||
common_interaction = yes
|
||||
icon = icon_contract_modification_single
|
||||
|
||||
filter_tags = { admin_liege rep_liege }
|
||||
filter_tags = { admin_liege }
|
||||
|
||||
send_name = "admin_vassal_modify_vassal_contract_interaction_send"
|
||||
desc = admin_vassal_modify_vassal_contract_interaction_desc
|
||||
|
|
@ -1069,7 +1120,8 @@ admin_vassal_modify_vassal_contract_interaction = {
|
|||
scope:actor = {
|
||||
top_liege != this
|
||||
this != scope:recipient
|
||||
liege ?= scope:recipient # this excludes tributary contracts by default
|
||||
liege = scope:recipient
|
||||
is_tributary = no # this excludes tributary contracts by default
|
||||
vassal_contract_has_modifiable_obligations = yes
|
||||
government_allows = administrative
|
||||
tgp_is_ceremonial_liege_trigger = no
|
||||
|
|
@ -1205,14 +1257,14 @@ admin_vassal_modify_vassal_contract_interaction = {
|
|||
type = scope:obligation.vassal_contract_type
|
||||
level = scope:obligation
|
||||
}
|
||||
|
||||
|
||||
# Update the succession law for celestial province types if applicable - That way, we don't have to wait until the current law invalidates.
|
||||
if = {
|
||||
limit = {
|
||||
government_has_flag = government_is_celestial
|
||||
scope:obligation.vassal_contract_type = vassal_contract:celestial_provinces
|
||||
}
|
||||
|
||||
|
||||
if = {
|
||||
limit = {
|
||||
OR = {
|
||||
|
|
@ -1235,6 +1287,51 @@ admin_vassal_modify_vassal_contract_interaction = {
|
|||
add_realm_law_skip_effects = celestial_appointment_succession_law
|
||||
}
|
||||
}
|
||||
# Update the succession law for meritocratic province types if applicable - That way, we don't have to wait until the current law invalidates.
|
||||
else_if = {
|
||||
limit = {
|
||||
government_has_flag = government_is_meritocratic
|
||||
scope:obligation.vassal_contract_type = vassal_contract:meritocratic_provinces
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
vassal_contract_has_flag = meritocratic_province_military
|
||||
NOT = { has_realm_law = meritocratic_military_appointment_succession_law }
|
||||
}
|
||||
add_realm_law_skip_effects = meritocratic_military_appointment_succession_law
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
OR = {
|
||||
vassal_contract_has_flag = meritocratic_province_standard
|
||||
vassal_contract_has_flag = meritocratic_province_industrial
|
||||
}
|
||||
NOT = { has_realm_law = meritocratic_appointment_succession_law }
|
||||
}
|
||||
add_realm_law_skip_effects = meritocratic_appointment_succession_law
|
||||
}
|
||||
}
|
||||
# Update the succession law for japanese province types if applicable - That way, we don't have to wait until the current law invalidates.
|
||||
else_if = {
|
||||
limit = {
|
||||
government_has_flag = government_is_japanese_administrative
|
||||
scope:obligation.vassal_contract_type = vassal_contract:japan_administrative_provinces
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
NOT = { vassal_contract_has_flag = japan_administrative_military_appointment }
|
||||
NOT = { has_realm_law = japanese_appointment_succession_law }
|
||||
}
|
||||
add_realm_law_skip_effects = japanese_appointment_succession_law
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
vassal_contract_has_flag = japan_administrative_military_appointment
|
||||
NOT = { has_realm_law = japanese_military_appointment_succession_law }
|
||||
}
|
||||
add_realm_law_skip_effects = japanese_military_appointment_succession_law
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1427,8 +1524,9 @@ nomad_liege_modify_vassal_contract_interaction = {
|
|||
|
||||
is_shown = {
|
||||
scope:recipient = {
|
||||
NOT = { this = scope:actor }
|
||||
liege ?= scope:actor # this excludes tributary contracts by default
|
||||
this != scope:actor
|
||||
liege = scope:actor
|
||||
is_tributary = no # this excludes tributary contracts by default
|
||||
is_ruler = yes
|
||||
vassal_contract_has_modifiable_obligations = yes
|
||||
government_has_flag = government_is_nomadic
|
||||
|
|
@ -1647,7 +1745,7 @@ nomad_liege_modify_vassal_contract_interaction = {
|
|||
# Additional Flavor Titles
|
||||
scope:recipient = { additional_flavor_check_effect = yes }
|
||||
}
|
||||
|
||||
|
||||
send_option = {
|
||||
is_valid = {
|
||||
scope:actor = {
|
||||
|
|
@ -1674,7 +1772,7 @@ nomad_vassal_modify_vassal_contract_interaction = {
|
|||
|
||||
send_name = "nomad_vassal_modify_vassal_contract_interaction_send"
|
||||
desc = nomad_vassal_modify_vassal_contract_interaction_desc
|
||||
|
||||
|
||||
redirect = {
|
||||
# need to reverse the role for the UI to work properly
|
||||
scope:recipient = {
|
||||
|
|
@ -1692,8 +1790,9 @@ nomad_vassal_modify_vassal_contract_interaction = {
|
|||
is_shown = {
|
||||
scope:recipient = {
|
||||
is_independent_ruler = no
|
||||
NOT = { this = scope:actor }
|
||||
liege ?= scope:actor # this excludes tributary contracts by default
|
||||
this != scope:actor
|
||||
liege = scope:actor
|
||||
is_tributary = no # this excludes tributary contracts by default
|
||||
vassal_contract_has_modifiable_obligations = yes
|
||||
government_has_flag = government_is_nomadic
|
||||
}
|
||||
|
|
@ -1874,7 +1973,7 @@ suzerain_modify_tributary_contract_interaction = {
|
|||
scope:recipient = {
|
||||
is_tributary_of = scope:actor # excludes vassals by default
|
||||
subject_contract_has_modifiable_obligations = yes
|
||||
NOT = { government_has_flag = government_is_true_herder }
|
||||
NOT = { government_has_flag = government_is_herder }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1885,7 +1984,7 @@ suzerain_modify_tributary_contract_interaction = {
|
|||
can_send = {
|
||||
#Mandala gets special treatment
|
||||
trigger_if = {
|
||||
limit = {
|
||||
limit = {
|
||||
scope:actor = { government_has_flag = government_is_mandala }
|
||||
}
|
||||
custom_tooltip = {
|
||||
|
|
@ -2025,7 +2124,7 @@ suzerain_modify_tributary_contract_interaction = {
|
|||
add_piety = major_piety_loss
|
||||
}
|
||||
else = { add_prestige = medium_prestige_loss }
|
||||
|
||||
|
||||
scope:recipient = {
|
||||
add_opinion = {
|
||||
modifier = outraged_opinion
|
||||
|
|
@ -2121,7 +2220,7 @@ subject_modify_tributary_contract_interaction = {
|
|||
can_send = {
|
||||
#Mandala gets special treatment
|
||||
trigger_if = {
|
||||
limit = {
|
||||
limit = {
|
||||
scope:recipient = { government_has_flag = government_is_mandala }
|
||||
}
|
||||
custom_tooltip = {
|
||||
|
|
@ -2136,9 +2235,9 @@ subject_modify_tributary_contract_interaction = {
|
|||
trigger_if = {
|
||||
limit = { scope:hook = no } # no cost
|
||||
trigger_if = {
|
||||
limit = { subject_standing < 0 } # this means we don't use subject standing
|
||||
limit = { subject_standing < 0 } # this means we don't use subject standing
|
||||
trigger_if = {
|
||||
limit = {
|
||||
limit = {
|
||||
government_has_flag = government_is_nomadic
|
||||
scope:recipient = { government_has_flag = government_is_nomadic }
|
||||
}
|
||||
|
|
@ -2193,9 +2292,9 @@ subject_modify_tributary_contract_interaction = {
|
|||
trigger_if = {
|
||||
limit = { scope:hook = no } # no cost
|
||||
trigger_if = {
|
||||
limit = { subject_standing < 0 } # this means we don't use subject standing
|
||||
limit = { subject_standing < 0 } # this means we don't use subject standing
|
||||
trigger_if = {
|
||||
limit = {
|
||||
limit = {
|
||||
government_has_flag = government_is_nomadic
|
||||
scope:recipient = { government_has_flag = government_is_nomadic }
|
||||
}
|
||||
|
|
@ -2235,9 +2334,9 @@ subject_modify_tributary_contract_interaction = {
|
|||
}
|
||||
else = {
|
||||
if = {
|
||||
limit = { subject_standing < 0 } # this means we don't use subject standing
|
||||
limit = { subject_standing < 0 } # this means we don't use subject standing
|
||||
if = {
|
||||
limit = {
|
||||
limit = {
|
||||
government_has_flag = government_is_nomadic
|
||||
scope:recipient = { government_has_flag = government_is_nomadic }
|
||||
}
|
||||
|
|
@ -2363,14 +2462,14 @@ subject_modify_tributary_contract_interaction = {
|
|||
add = scope:new_value
|
||||
multiply = -20 #Overlord favoring options have a negative score
|
||||
if = { # the Chinese Emperor cares less since they get tribute through missions as well
|
||||
limit = {
|
||||
limit = {
|
||||
scope:new_value < 0
|
||||
scope:actor = {
|
||||
scope:actor = {
|
||||
OR = {
|
||||
has_subject_contract_group = tributary_celestial
|
||||
has_subject_contract_group = tributary_hegemonic
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
multiply = 0.5
|
||||
}
|
||||
|
|
@ -2406,7 +2505,7 @@ ai_only_hegemonic_tributary_modify_tributary_contract_interaction = {
|
|||
scope:actor = {
|
||||
if = {
|
||||
# if the subject has a Seal of Investiture, they will always ask for an Investiture Privilege if they can
|
||||
limit = {
|
||||
limit = {
|
||||
any_character_artifact = {
|
||||
OR = {
|
||||
artifact_type = seal_of_investiture
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue