执行前判断检查
This commit is contained in:
parent
64893852ac
commit
519606651a
|
@ -89,6 +89,8 @@ rg_global_gray_location_check = {
|
||||||
}
|
}
|
||||||
#创造灰风总督
|
#创造灰风总督
|
||||||
rg_create_gray_governor = {
|
rg_create_gray_governor = {
|
||||||
|
if = { limit = { has_country_flag = gray_governor_active } }
|
||||||
|
else = {
|
||||||
#延迟执行
|
#延迟执行
|
||||||
optimize_memory
|
optimize_memory
|
||||||
#删除战舰
|
#删除战舰
|
||||||
|
@ -178,8 +180,11 @@ rg_create_gray_governor = {
|
||||||
set_skill = owner.rg_gray_level
|
set_skill = owner.rg_gray_level
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
#创造灰风战舰
|
#创造灰风战舰
|
||||||
rg_create_gray_warship = {
|
rg_create_gray_warship = {
|
||||||
|
if = { limit = { has_country_flag = gray_warship_active } }
|
||||||
|
else = {
|
||||||
optimize_memory
|
optimize_memory
|
||||||
#舰船刷新位置检测
|
#舰船刷新位置检测
|
||||||
rg_global_gray_location_check = yes
|
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 = {
|
every_owned_army = {
|
||||||
limit = { army_type = gray_army }
|
limit = { army_type = gray_army }
|
||||||
|
@ -414,7 +409,6 @@ rg_create_gray_warship = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
remove_country_flag = gray_constship_active
|
remove_country_flag = gray_constship_active
|
||||||
remove_country_flag = gray_governor_active
|
remove_country_flag = gray_governor_active
|
||||||
remove_country_flag = gray_army_active
|
remove_country_flag = gray_army_active
|
||||||
|
@ -423,11 +417,12 @@ rg_create_gray_warship = {
|
||||||
limit = { has_leader_flag = gray_admiral }
|
limit = { has_leader_flag = gray_admiral }
|
||||||
set_skill = owner.rg_gray_level
|
set_skill = owner.rg_gray_level
|
||||||
}
|
}
|
||||||
|
}
|
||||||
set_country_flag = rg_kac_grayfleet_active
|
|
||||||
}
|
}
|
||||||
#创造灰风地面单位
|
#创造灰风地面单位
|
||||||
rg_create_gray_army = {
|
rg_create_gray_army = {
|
||||||
|
if = { limit = { has_leader_flag = gray_army_active } }
|
||||||
|
else = {
|
||||||
optimize_memory
|
optimize_memory
|
||||||
#舰船刷新位置检测
|
#舰船刷新位置检测
|
||||||
rg_global_gray_location_check = yes
|
rg_global_gray_location_check = yes
|
||||||
|
@ -531,8 +526,11 @@ rg_create_gray_army = {
|
||||||
set_skill = owner.rg_gray_level
|
set_skill = owner.rg_gray_level
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
#创造灰风科学舰
|
#创造灰风科学舰
|
||||||
rg_create_gray_const = {
|
rg_create_gray_const = {
|
||||||
|
if = { limit = { has_country_flag = gray_constship_active } }
|
||||||
|
else = {
|
||||||
optimize_memory
|
optimize_memory
|
||||||
#舰船刷新位置检测
|
#舰船刷新位置检测
|
||||||
rg_global_gray_location_check = yes
|
rg_global_gray_location_check = yes
|
||||||
|
@ -640,6 +638,7 @@ rg_create_gray_const = {
|
||||||
set_skill = owner.rg_gray_level
|
set_skill = owner.rg_gray_level
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue