防偷渡

This commit is contained in:
FA507RM-KALOSPA\Kalo 2023-06-07 22:29:39 +08:00
parent d08bfd8dcd
commit b7ecd5b299
5 changed files with 133 additions and 60 deletions

View File

@ -10,7 +10,7 @@ ship_design = {
component = {
slot = "PLANET_KILLER_GUN_01"
template = "PLANET_KILLER_NEUTRON"
template = "RG_PLANET_KILLER_SMALL"
}
component = {
slot = "TITAN_01"

View File

@ -51,6 +51,7 @@ on_monthly_pulse_country = {
rg.8 #领袖等级检测更新
rg.16 #陆军压制舰更新
# rg.22 #小灰复活检测
rg.23 #月检移除L星门认知防止收容失效
# rg_skill.9
}
}

View File

@ -2083,3 +2083,71 @@ rg_timeline_attract_field_init = {
remove_global_flag = gray_goo_empire_set
}
}
RG_const_auto_build_effect_event = {
if = {
limit = {
solar_system = {
#星系必须完成扫描
is_surveyed = {
who = root.controller
status = yes
}
#星系内不能有其他自动工蜂
NOT = { any_fleet_in_system = { any_controlled_ship = { is_ship_size = RG_armed_constructor_ship } } }
}
}
#创建自动工蜂国家
if = {
limit = {
NOT = { exists = event_target:RG_const_country }
}
create_country = {
name = RG_const_country
type = RG_gray_friendly
auto_delete = no
flag = root.controller
effect = {
save_global_event_target_as = RG_const_country
establish_communications_no_message = root.controller
set_faction_hostility = {
target = root.controller
set_friendly = yes
}
#对野怪国家中立
every_country = {
limit = {
OR = {
is_amoeba_country_type = yes
is_tiyanki_country_type = yes
is_crystal_country_type = yes
is_drone_country_type = yes
}
}
set_faction_hostility = {
target = prev
set_neutral = yes
}
}
}
}
controller = {
add_intel = {
who = event_target:RG_const_country
amount = 1000
}
}
}
#释放工蜂
switch = {
trigger = has_component
RG_AUTOCONST_HANGER = {
RG_const_auto_build_effect = {
count = 1
starbase_time = 30
station_time = 150
}
}
}
}
}

View File

@ -139,6 +139,11 @@ ship_event = {
immediate = {
if = {
limit = {
owner = {
NOT = {
is_same_value = origin_rg_gray_country
}
}
solar_system = {
NOT = { #星系内不能有敌舰
any_fleet_in_system = {
@ -148,71 +153,48 @@ ship_event = {
}
}
}
if = {
limit = {
solar_system = {
#星系必须完成扫描
is_surveyed = {
who = root.controller
status = yes
}
#星系内不能有其他自动工蜂
NOT = { any_fleet_in_system = { any_controlled_ship = { is_ship_size = RG_armed_constructor_ship } } }
#创建自动工程船暂存国家
RG_const_auto_build_effect_event = yes
}
else_if = {
limit = {
owner = {
is_same_value = origin_rg_gray_country
NOT = {
has_global_flag = l_cluster_opened
}
}
#创建自动工蜂国家
if = {
limit = {
NOT = { exists = event_target:RG_const_country }
}
create_country = {
name = RG_const_country
type = RG_gray_friendly
auto_delete = no
flag = root.controller
effect = {
save_global_event_target_as = RG_const_country
establish_communications_no_message = root.controller
set_faction_hostility = {
target = root.controller
set_friendly = yes
}
#对野怪国家中立
every_country = {
limit = {
OR = {
is_amoeba_country_type = yes
is_tiyanki_country_type = yes
is_crystal_country_type = yes
is_drone_country_type = yes
}
}
set_faction_hostility = {
target = prev
set_neutral = yes
}
}
}
}
controller = {
add_intel = {
who = event_target:RG_const_country
amount = 1000
}
}
}
#释放工蜂
switch = {
trigger = has_component
RG_AUTOCONST_HANGER = {
RG_const_auto_build_effect = {
count = 1
starbase_time = 30
station_time = 150
solar_system = {
has_star_flag = lcluster
NOT = { #星系内不能有敌舰
any_fleet_in_system = {
exists = controller
controller = { is_hostile = root.controller }
}
}
}
}
#创建自动工程船暂存国家
RG_const_auto_build_effect_event = yes
}
else_if = {
limit = {
owner = {
is_same_value = origin_rg_gray_country # 是小灰起源
has_global_flag = l_cluster_opened # L星门已开启
}
solar_system = {
# has_star_flag = lcluster
NOT = { #星系内不能有敌舰
any_fleet_in_system = {
exists = controller
controller = { is_hostile = root.controller }
}
}
}
}
#创建自动工程船暂存国家
RG_const_auto_build_effect_event = yes
}
#循环检查
ship_event = {

View File

@ -869,6 +869,28 @@ country_event = {
}
}
# looping check for escape lcluster
country_event = {
id = rg.23
hide_window = yes
is_triggered_only = yes
trigger = {
is_same_value = event_target:origin_rg_gray_country
has_country_flag = origin_rg_gray
}
immediate = {
if = {
limit = {
has_event_chain = "l_cluster_chain"
}
end_event_chain = "l_cluster_chain"
}
}
}
# 拆毁工厂小灰通讯
country_event = {
id = rg.200