Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sumankun committed Nov 2, 2023
1 parent 9817127 commit fb9674d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 8 additions & 1 deletion common/decisions/wc_pol_faction_decisions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,10 @@ join_universal_union = {

effect = {
set_this_union_cooldown_effect = { years_number = 1 }
if = {
limit = { is_ai = yes }
add_character_flag = { flag = ai_joined_cooldown years = 4 }
}

if = {
limit = { scope:alliance_union_join = yes }
Expand Down Expand Up @@ -642,7 +646,10 @@ leave_universal_union = {
}
modifier = {
factor = 0
leads_any_this_union_trigger = yes
OR = {
leads_any_this_union_trigger = yes
has_character_flag = ai_joined_cooldown
}
}
}
}
2 changes: 2 additions & 0 deletions common/script_values/wc_pol_faction_values.txt
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,8 @@ centralization_influencce_value = {
}
if = {
limit = {
is_alive = yes
has_variable = this_union
any_in_global_list = {
variable = all_unions
var:this_union = prev.var:this_union
Expand Down

0 comments on commit fb9674d

Please sign in to comment.