From 7b5b52067277cdf435f0d1375b9c684bcf1aac19 Mon Sep 17 00:00:00 2001 From: "FA507RM-KALOSPA\\Kalo" Date: Sun, 11 Jun 2023 17:42:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E5=89=8D=E6=94=B6=E8=B4=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/scripted_effects/RG_scripted_effects.txt | 8 ++++---- common/scripted_triggers/rg_leader_scripted_triggers.txt | 8 ++++++++ 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/common/scripted_effects/RG_scripted_effects.txt b/common/scripted_effects/RG_scripted_effects.txt index 1b92e72..17dbf86 100644 --- a/common/scripted_effects/RG_scripted_effects.txt +++ b/common/scripted_effects/RG_scripted_effects.txt @@ -2549,6 +2549,10 @@ RG_gray_mod1_effect = { type = situation_rg_gray_mod1 target = this } + add_resource = { + energy = -15000 + alloys = -15000 + } } RG_gray_mod1_effect_project = { custom_tooltip = rg_levelup_2.tooltip @@ -2557,10 +2561,6 @@ RG_gray_mod1_effect_project = { location = event_target:gray_owner_capital_starbase owner = event_target:gray_owner } - add_resource = { - energy = -15000 - alloys = -15000 - } } RG_gray_mod2_effect = { custom_tooltip = rg_levelup_2.tooltip diff --git a/common/scripted_triggers/rg_leader_scripted_triggers.txt b/common/scripted_triggers/rg_leader_scripted_triggers.txt index 417a012..95aeb40 100644 --- a/common/scripted_triggers/rg_leader_scripted_triggers.txt +++ b/common/scripted_triggers/rg_leader_scripted_triggers.txt @@ -38,6 +38,14 @@ RG_gray_mod1_allow_trigger = { has_skill >= 10 } } + resource_stockpile_compare = { + resource = energy + value >= 15000 + } + resource_stockpile_compare = { + resource = alloys + value >= 15000 + } } RG_gray_mod2_trigger = {