执行前判断检查

This commit is contained in:
FA507RM-KALOSPA\Kalo 2023-06-06 11:03:08 +08:00
parent 64893852ac
commit 519606651a
1 changed files with 499 additions and 500 deletions

View File

@ -89,6 +89,8 @@ rg_global_gray_location_check = {
}
#创造灰风总督
rg_create_gray_governor = {
if = { limit = { has_country_flag = gray_governor_active } }
else = {
#延迟执行
optimize_memory
#删除战舰
@ -177,9 +179,12 @@ rg_create_gray_governor = {
limit = { has_leader_flag = gray_governor }
set_skill = owner.rg_gray_level
}
}
}
#创造灰风战舰
rg_create_gray_warship = {
if = { limit = { has_country_flag = gray_warship_active } }
else = {
optimize_memory
#舰船刷新位置检测
rg_global_gray_location_check = yes
@ -386,16 +391,6 @@ rg_create_gray_warship = {
}
}
}
last_created_fleet = {
if = {
limit = {
NOT = {
has_country_flag = rg_kac_grayfleet_active
}
}
set_fleet_flag = rg_kac_gray_fleet
}
}
every_owned_army = {
limit = { army_type = gray_army }
@ -414,7 +409,6 @@ rg_create_gray_warship = {
}
}
remove_country_flag = gray_constship_active
remove_country_flag = gray_governor_active
remove_country_flag = gray_army_active
@ -423,11 +417,12 @@ rg_create_gray_warship = {
limit = { has_leader_flag = gray_admiral }
set_skill = owner.rg_gray_level
}
set_country_flag = rg_kac_grayfleet_active
}
}
#创造灰风地面单位
rg_create_gray_army = {
if = { limit = { has_leader_flag = gray_army_active } }
else = {
optimize_memory
#舰船刷新位置检测
rg_global_gray_location_check = yes
@ -530,9 +525,12 @@ rg_create_gray_army = {
limit = { has_leader_flag = gray_general }
set_skill = owner.rg_gray_level
}
}
}
#创造灰风科学舰
rg_create_gray_const = {
if = { limit = { has_country_flag = gray_constship_active } }
else = {
optimize_memory
#舰船刷新位置检测
rg_global_gray_location_check = yes
@ -639,6 +637,7 @@ rg_create_gray_const = {
limit = { has_leader_flag = gray_scientist }
set_skill = owner.rg_gray_level
}
}
}