revive check

This commit is contained in:
John Doe 2023-06-07 11:16:10 +08:00
parent d15f4d8818
commit 53ce39ceb9
5 changed files with 34 additions and 5 deletions

View File

@ -45,10 +45,12 @@ on_game_start_country = {
} }
# This = country # This = country
# 最高优先级检测才放月检
on_monthly_pulse_country = { on_monthly_pulse_country = {
events = { events = {
rg.8 rg.8 #领袖等级检测更新
rg.16 rg.16 #陆军压制舰更新
# rg.22 #小灰复活检测
# rg_skill.9 # rg_skill.9
} }
} }

View File

@ -585,7 +585,7 @@ event = {
days = 3600 days = 3600
} }
country_event = { id = graygoo.511 } country_event = { id = graygoo.511 }
country_event = { id = graygoo.512 days = 3600 } country_event = { id = rg.22 }
} }
} }
} }

View File

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

View File

@ -1137,8 +1137,8 @@ country_event = {
nanites = -1000 nanites = -1000
alloys = -50000 alloys = -50000
} }
remove_country_flag = gray_reforming
remove_modifier = "gray_scattered" remove_modifier = "gray_scattered"
country_event = { id = graygoo.512 }
} }
} }

View File

@ -1090,8 +1090,8 @@ country_event = {
nanites = -1000 nanites = -1000
alloys = -50000 alloys = -50000
} }
remove_country_flag = gray_reforming
remove_modifier = "gray_scattered" remove_modifier = "gray_scattered"
country_event = { id = graygoo.512 }
} }
} }