From 540b34584eda398147691a0def2a1c5cf582da95 Mon Sep 17 00:00:00 2001 From: "FA507RM-KALOSPA\\Kalo" Date: Sat, 3 Jun 2023 18:08:09 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E6=A3=80=E6=9F=A5=E5=BC=80=E9=97=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- events/RG_events.txt | 80 ++++++++++++++++++++++++++++++++++---------- 1 file changed, 63 insertions(+), 17 deletions(-) diff --git a/events/RG_events.txt b/events/RG_events.txt index 36c266b..ee19c3f 100644 --- a/events/RG_events.txt +++ b/events/RG_events.txt @@ -713,28 +713,38 @@ country_event = { } } immediate = { - every_system_within_border = { + give_technology = tech_lgate_activation + if = { limit = { - OR = { - has_star_flag = lcluster_lgate - has_star_flag = lgate_originating_system - } - any_system_megastructure = { - is_megastructure_type = l_gate_base + any_system_within_border = { + OR = { + has_star_flag = lcluster_lgate + has_star_flag = lgate_originating_system + } + any_system_megastructure = { + is_megastructure_type = l_gate_base + } } } - save_event_target_as = candidate_gateway + every_system_within_border = { + limit = { + OR = { + has_star_flag = lcluster_lgate + has_star_flag = lgate_originating_system + } + any_system_megastructure = { + is_megastructure_type = l_gate_base + } + } + save_event_target_as = candidate_gateway + } + country_event = { id = distar.10905 } # enable project } - - abort_special_project = { - type = LCLUSTER_PROJECT + else = { + country_event = { + id = rg.21 days = 120 + } } - - enable_special_project = { - name = RG_LCLUSTER_PROJECT - location = event_target:candidate_gateway - } - } } @@ -810,6 +820,42 @@ country_event = { } } +# looping check for owning gateway, once every two months +country_event = { + id = rg.21 + hide_window = yes + + is_triggered_only = yes + + trigger = { + NOR = { + has_global_flag = l_cluster_opened + has_special_project = RG_LCLUSTER_PROJECT + } + } + + immediate = { + if = { + limit = { + any_owned_megastructure = { + is_megastructure_type = lgate_base + } + has_technology = tech_lgate_activation + } + random_owned_megastructure = { + limit = { + is_megastructure_type = lgate_base + } + save_event_target_as = candidate_gateway + } + country_event = { id = distar.10905 } # enable project + } + else = { + country_event = { id = rg.21 days = 120 } # *THIS* looping check + } + } +} + # 拆毁工厂小灰通讯 country_event = { id = rg.200