This commit is contained in:
ProjectKoi-Kalo\Kalo
2024-09-22 19:32:38 +08:00
parent 732aea91fd
commit 7f928c6f67
9 changed files with 139 additions and 434 deletions

View File

@@ -1,9 +1,14 @@
option = {
name = marry_gray
trigger = {
has_global_flag = has_wsg_mod
check_variable = { which = wg_gray_affection value > @wg_gray_affection_to_lv4 }
NOT = { has_country_flag = married_gray }
RG_OR_has_wsg_mod_trigger = yes
check_variable = {
which = wg_gray_affection
value > @wg_gray_affection_to_lv4
}
NOT = {
has_country_flag = married_gray
}
}
allow = {
OR = {
@@ -19,19 +24,40 @@ option = {
}
}
custom_tooltip = {
check_variable = { which = wsg_rings value >= 1 }
check_variable = {
which = wsg_rings
value >= 1
}
fail_text = not_enough_engagement_rings
}
}
custom_tooltip = {
fail_text = gray_become_ruler
NOT = {
ruler = {
has_leader_flag = "gray_leader"
}
}
}
}
if = {
limit = { has_wg_special_authority = yes }
subtract_variable = { which = wsg_rings value = 1 }
} else = {
limit = {
has_wg_special_authority = yes
}
subtract_variable = {
which = wsg_rings
value = 1
}
}
else = {
add_resource = {
sr_living_metal = -100
rare_crystals = -1000
}
}
hidden_effect = { country_event = { id = wg_affection.30000 }}
hidden_effect = {
country_event = {
id = wg_affection.30000
}
}
}

View File

@@ -1,7 +1,7 @@
option = {
name = marry_gray
trigger = {
has_global_flag = has_wsg_mod
RG_OR_has_wsg_mod_trigger = yes
check_variable = {
which = wg_gray_affection
value > @wg_gray_affection_to_lv4
@@ -12,17 +12,7 @@ option = {
}
allow = {
OR = {
AND = {
has_wg_special_authority = no
resource_stockpile_compare = {
resource = sr_living_metal
value >= 100
}
resource_stockpile_compare = {
resource = rare_crystals
value >= 1000
}
}
has_wg_special_authority = no
custom_tooltip = {
check_variable = {
which = wsg_rings
@@ -31,29 +21,10 @@ option = {
fail_text = not_enough_engagement_rings
}
}
custom_tooltip = {
fail_text = gray_become_ruler
NOT = {
ruler = {
has_leader_flag = "gray_leader"
}
}
}
}
if = {
limit = {
has_wg_special_authority = yes
}
subtract_variable = {
which = wsg_rings
value = 1
}
}
else = {
add_resource = {
sr_living_metal = -100
rare_crystals = -1000
}
subtract_variable = {
which = wsg_rings
value = 1
}
hidden_effect = {
country_event = {

View File

@@ -1,6 +1,7 @@
option = {
name = marry_gray
trigger = {
RG_OR_has_wsg_mod_trigger = yes
check_variable = { which = wg_gray_affection value > @wg_gray_affection_to_lv4 }
NOT = { has_country_flag = married_gray }
}