urefotm crash fix

This commit is contained in:
ProjectKoi-Kalo\Kalo 2024-05-15 22:50:36 +08:00
parent e156eba77f
commit 9329faccc7
4 changed files with 89 additions and 89 deletions

View File

@ -622,12 +622,9 @@ event = {
} }
} }
AND = { AND = {
OR = { has_country_flag = gray_official_active
has_country_flag = gray_official_active
has_country_flag = gray_governor_active #旧版flag
}
NOT = { NOT = {
exists = event_target:gray_governor exists = event_target:gray_official
} }
} }
AND = { AND = {
@ -641,10 +638,8 @@ event = {
} }
immediate = { immediate = {
event_target:gray_owner = { event_target:gray_owner = {
OR = { remove_country_flag = gray_official_active #新版flag
has_country_flag = gray_official_active remove_country_flag = gray_governor_active #旧版flag #总督
has_country_flag = gray_governor_active #旧版flag
} #总督
remove_country_flag = gray_warship_active #旗舰 remove_country_flag = gray_warship_active #旗舰
remove_country_flag = gray_army_active #陆军 remove_country_flag = gray_army_active #陆军
remove_country_flag = gray_constship_active #科舰 remove_country_flag = gray_constship_active #科舰
@ -653,12 +648,8 @@ event = {
modifier = "gray_scattered" modifier = "gray_scattered"
days = 3600 days = 3600
} }
country_event = { country_event = { id = graygoo.511 }
id = graygoo.511 country_event = { id = graygoo.512 days = 3600 }
}
country_event = {
id = rg_event.22
}
} }
} }
} }
@ -683,11 +674,20 @@ country_event = {
desc = "graygoo.512.a.desc" desc = "graygoo.512.a.desc"
desc = "graygoo.512.b.desc" desc = "graygoo.512.b.desc"
desc = "graygoo.512.c.desc" desc = "graygoo.512.c.desc"
diplomatic = yes
event_window_type = leader_story
picture = GFX_evt_gray_gooed_planet
picture_event_data = {
portrait = event_target:rg_gray_country_leader
room = root
}
is_triggered_only = yes is_triggered_only = yes
immediate = { immediate = {
remove_country_flag = gray_reforming remove_country_flag = gray_reforming
} }
option = { option = {
name = graygoo.512.a name = graygoo.512.a
} }

View File

@ -1041,35 +1041,35 @@ country_event = {
} }
} }
# looping check for grayreforming # # looping check for grayreforming
country_event = { # country_event = {
id = rg_event.22 # id = rg_event.22
hide_window = yes # hide_window = yes
is_triggered_only = yes # is_triggered_only = yes
trigger = { # trigger = {
is_same_value = event_target:gray_owner # is_same_value = event_target:gray_owner
has_country_flag = gray_reforming # has_country_flag = gray_reforming
} # }
immediate = { # immediate = {
if = { # if = {
limit = { # limit = {
NOT = { # NOT = {
has_modifier = "gray_scattered" # has_modifier = "gray_scattered"
} # }
} # }
country_event = { # country_event = {
id = graygoo.512 # id = graygoo.512
} # }
} # }
else = { # else = {
country_event = { # country_event = {
id = rg_event.22 # id = rg_event.22
years = 1 # years = 1
} # }
# *THIS* looping check # # *THIS* looping check
} # }
} # }
} # }
# 拆毁工厂小灰通讯 # 拆毁工厂小灰通讯
country_event = { country_event = {

View File

@ -1156,28 +1156,28 @@ country_event = {
option = { option = {
name = OK name = OK
} }
option = { # option = {
name = rg_graygoo.504.a # name = rg_graygoo.504.a
allow = { # allow = {
has_country_flag = gray_reforming # has_country_flag = gray_reforming
resource_stockpile_compare = { # resource_stockpile_compare = {
resource = nanites # resource = nanites
value >= 1000 # value >= 1000
} # }
resource_stockpile_compare = { # resource_stockpile_compare = {
resource = alloys # resource = alloys
value >= 50000 # value >= 50000
} # }
} # }
add_resource = { # add_resource = {
nanites = -1000 # nanites = -1000
alloys = -50000 # alloys = -50000
} # }
remove_modifier = "gray_scattered" # remove_modifier = "gray_scattered"
country_event = { # country_event = {
id = graygoo.512 # id = graygoo.512
} # }
} # }
} }
# Main Menu (const) # Main Menu (const)

View File

@ -1225,28 +1225,28 @@ country_event = {
} }
} }
} }
option = { # option = {
name = rg_graygoo.504.a # name = rg_graygoo.504.a
allow = { # allow = {
has_country_flag = gray_reforming # has_country_flag = gray_reforming
resource_stockpile_compare = { # resource_stockpile_compare = {
resource = nanites # resource = nanites
value >= 1000 # value >= 1000
} # }
resource_stockpile_compare = { # resource_stockpile_compare = {
resource = alloys # resource = alloys
value >= 50000 # value >= 50000
} # }
} # }
add_resource = { # add_resource = {
nanites = -1000 # nanites = -1000
alloys = -50000 # alloys = -50000
} # }
remove_modifier = "gray_scattered" # remove_modifier = "gray_scattered"
country_event = { # country_event = {
id = graygoo.512 # id = graygoo.512
} # }
} # }
} }
# Main Menu (const) # Main Menu (const)