防偷渡

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 = { component = {
slot = "PLANET_KILLER_GUN_01" slot = "PLANET_KILLER_GUN_01"
template = "PLANET_KILLER_NEUTRON" template = "RG_PLANET_KILLER_SMALL"
} }
component = { component = {
slot = "TITAN_01" slot = "TITAN_01"

View File

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

View File

@ -2083,3 +2083,71 @@ rg_timeline_attract_field_init = {
remove_global_flag = gray_goo_empire_set 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 = { immediate = {
if = { if = {
limit = { limit = {
owner = {
NOT = {
is_same_value = origin_rg_gray_country
}
}
solar_system = { solar_system = {
NOT = { #星系内不能有敌舰 NOT = { #星系内不能有敌舰
any_fleet_in_system = { any_fleet_in_system = {
@ -148,71 +153,48 @@ ship_event = {
} }
} }
} }
if = { #创建自动工程船暂存国家
RG_const_auto_build_effect_event = yes
}
else_if = {
limit = { limit = {
owner = {
is_same_value = origin_rg_gray_country
NOT = {
has_global_flag = l_cluster_opened
}
}
solar_system = { solar_system = {
#星系必须完成扫描 has_star_flag = lcluster
is_surveyed = { NOT = { #星系内不能有敌舰
who = root.controller any_fleet_in_system = {
status = yes exists = controller
} controller = { is_hostile = root.controller }
#星系内不能有其他自动工蜂
NOT = { any_fleet_in_system = { any_controlled_ship = { is_ship_size = RG_armed_constructor_ship } } }
} }
} }
#创建自动工蜂国家 }
if = { }
#创建自动工程船暂存国家
RG_const_auto_build_effect_event = yes
}
else_if = {
limit = { limit = {
NOT = { exists = event_target:RG_const_country } owner = {
is_same_value = origin_rg_gray_country # 是小灰起源
has_global_flag = l_cluster_opened # L星门已开启
} }
create_country = { solar_system = {
name = RG_const_country # has_star_flag = lcluster
type = RG_gray_friendly NOT = { #星系内不能有敌舰
auto_delete = no any_fleet_in_system = {
flag = root.controller exists = controller
effect = { controller = { is_hostile = root.controller }
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
} }
} }
} }
} }
#创建自动工程船暂存国家
RG_const_auto_build_effect_event = yes
} }
#循环检查 #循环检查
ship_event = { 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 = { country_event = {
id = rg.200 id = rg.200