From 3cc7c6b4efd6b71d90b62fe74562c3b940c0b5e4 Mon Sep 17 00:00:00 2001 From: "FA507RM-KALOSPA\\Kalo" Date: Tue, 20 Jun 2023 14:05:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/on_actions/RG_on_actions.txt | 22 ++++ .../RG_combat_skill_effects.txt | 7 ++ .../RG_gray_leader_init_effects.txt | 3 +- common/traits/!_RG_gray_goo_traits.txt | 26 +++++ events/RG_combat_skill_events.txt | 107 ++++++++++++++++++ .../traits/leader_trait_icons/nanorebuild.dds | Bin 0 -> 4512 bytes .../icons/traits/rg_leader_traits.gfx | 6 + .../simp_chinese/RG_l_simp_chinese.yml | 3 + 8 files changed, 173 insertions(+), 1 deletion(-) create mode 100644 gfx/interface/icons/traits/leader_trait_icons/nanorebuild.dds create mode 100644 gfx/interface/icons/traits/rg_leader_traits.gfx diff --git a/common/on_actions/RG_on_actions.txt b/common/on_actions/RG_on_actions.txt index e59655b..b94f094 100644 --- a/common/on_actions/RG_on_actions.txt +++ b/common/on_actions/RG_on_actions.txt @@ -190,5 +190,27 @@ on_ship_destroyed_perp = { rg_skill.11 rg_story.10 rg_story.22 + rg_skill.12 + rg_skill.13 + } +} + +# This = owner of fleet 1 (winner) +# From = owner of fleet 2 (loser) +# FromFrom = fleet 1 +# FromFromFrom = fleet 2 +on_space_battle_won = { + events = { + rg_skill.14 + } +} + +# This = owner of fleet 1 (loser) +# From = owner of fleet 2 (winner) +# FromFrom = fleet 1 +# FromFromFrom = fleet 2 +on_space_battle_lost = { + events = { + rg_skill.14 } } diff --git a/common/scripted_effects/RG_combat_skill_effects.txt b/common/scripted_effects/RG_combat_skill_effects.txt index 8916454..5370f4e 100644 --- a/common/scripted_effects/RG_combat_skill_effects.txt +++ b/common/scripted_effects/RG_combat_skill_effects.txt @@ -279,3 +279,10 @@ RG_leader_trait_tempest_incoming_random_kill_effect = { } } } + +RG_leader_trait_admiral_nanorebuild_gray_counter_init_effect = { + set_variable = { + which = rg_nanorebuild_counter + value = 0 + } +} diff --git a/common/scripted_effects/RG_gray_leader_init_effects.txt b/common/scripted_effects/RG_gray_leader_init_effects.txt index 4fef65b..908c64b 100644 --- a/common/scripted_effects/RG_gray_leader_init_effects.txt +++ b/common/scripted_effects/RG_gray_leader_init_effects.txt @@ -196,6 +196,7 @@ rg_gray_admiral_init = { } set_leader_flag = rg_gray_leader add_trait_no_notify = RG_leader_trait_admiral_gray + add_trait_no_notify = RG_leader_trait_admiral_nanorebuild_gray # 缺少特质RG_leader_trait_admiral_gray将导致小灰改造项目无法完成 add_trait_no_notify = subclass_admiral_aggressor add_trait_no_notify = leader_trait_carrier_specialization @@ -243,7 +244,7 @@ rg_gray_admiral_init = { rg_set_gray_portrait = yes } } - + RG_leader_trait_admiral_nanorebuild_gray_counter_init_effect = yes } rg_gray_general_init = { diff --git a/common/traits/!_RG_gray_goo_traits.txt b/common/traits/!_RG_gray_goo_traits.txt index 75dc14f..48222c3 100644 --- a/common/traits/!_RG_gray_goo_traits.txt +++ b/common/traits/!_RG_gray_goo_traits.txt @@ -246,6 +246,32 @@ RG_leader_trait_admiral_gray = { randomized = no } +RG_leader_trait_admiral_nanorebuild_gray = { + #3级舰长(默认 + cost = 0 + inline_script = { + script = trait/icon_psionic + CLASS = admiral + ICON = "GFX_leader_trait_nanorebuild" + RARITY = paragon + COUNCIL = no + TIER = none + } + custom_tooltip_with_modifiers = RG_leader_trait_admiral_nanorebuild_effect + modifier = { + ship_armor_mult = 0.5 + ship_hull_mult = 0.5 + ships_upkeep_mult = -0.1 + ship_hull_regen_add_perc = 0.5 + ship_armor_regen_add_perc = 0.5 + } + leader_class = { + admiral + } + initial = no + randomized = no +} + RG_leader_trait_scientist_gray = { #科学家特质 cost = 0 diff --git a/events/RG_combat_skill_events.txt b/events/RG_combat_skill_events.txt index a6a5440..87da855 100644 --- a/events/RG_combat_skill_events.txt +++ b/events/RG_combat_skill_events.txt @@ -597,3 +597,110 @@ country_event = { } } } + +# 纳米重塑 +country_event = { + id = rg_skill.12 + hide_window = yes + is_triggered_only = yes + trigger = { + FromFromFrom = { + is_in_combat = yes + NOT = { + is_same_value = event_target:gray_warship + } + } + FromFrom.leader = { + has_trait = RG_leader_trait_admiral_nanorebuild_gray + } + } + immediate = { + if = { + limit = { + event_target:gray_owner = { + check_variable = { + which = rg_nanorebuild_counter + value >= 1 + } + } + } + FromFromFrom = { + save_event_target_as = event_ship + } + FromFromFrom.fleet = { + create_ship = { + name = event_target:event_ship + design = event_target:event_ship + } + } + event_target:gray_owner = { + change_variable = { + which = rg_nanorebuild_counter + value = -1 + } + } + } + } +} + +country_event = { + id = rg_skill.13 + hide_window = yes + is_triggered_only = yes + trigger = { + FromFromFrom = { + is_in_combat = yes + } + FromFrom.solar_system = { + any_fleet_in_system = { + leader = { + has_trait = RG_leader_trait_admiral_nanorebuild_gray + } + } + } + this = { + NOT = { + is_same_value = event_target:gray_owner + is_in_federation_with = event_target:gray_owner + } + } + } + immediate = { + event_target:gray_owner = { + change_variable = { + which = rg_nanorebuild_counter + value = 1 + } + } + } +} + +country_event = { + id = rg_skill.14 + hide_window = yes + is_triggered_only = yes + trigger = { + event_target:gray_warship = { + is_in_combat = no + fleet.leader = { + has_trait = RG_leader_trait_admiral_nanorebuild_gray + } + } + NOT = { + event_target:gray_owner = { + check_variable = { + which = rg_nanorebuild_counter + value = 0 + } + } + } + } + immediate = { + event_target:gray_owner = { + change_variable = { + which = rg_nanorebuild_counter + value = 0 + } + } + } +} diff --git a/gfx/interface/icons/traits/leader_trait_icons/nanorebuild.dds b/gfx/interface/icons/traits/leader_trait_icons/nanorebuild.dds new file mode 100644 index 0000000000000000000000000000000000000000..e247e4c0b17715d84946f144274976161f644d9e GIT binary patch literal 4512 zcmchZZD^KN7=T|>H_fb-T3BgsX=`Q_8J3ahrmM|nevpeyD~iy}T0!>1h#*3x52lbm zimde`+>e%K_Vpt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;E$Ee!_jtS>LHJP9LvK_tv*RTb)!pra_ zY=e5}2eH^TPi}|DU?cdJcz*7A5wbR@4vTYl-Ahx#9vmJJRm_De!QYM3;UrMhUkevO zJ=_X6fqL_B3XF%#VLo`i?yY{bse=pPEHIZmw+5&O&%yn_4yJ+r^t%>50r$(&^$rJR c1k8ceFgI;eBspo0ddJLpvE2esrRD5@0EfLip8x;= literal 0 HcmV?d00001 diff --git a/gfx/interface/icons/traits/rg_leader_traits.gfx b/gfx/interface/icons/traits/rg_leader_traits.gfx new file mode 100644 index 0000000..533e650 --- /dev/null +++ b/gfx/interface/icons/traits/rg_leader_traits.gfx @@ -0,0 +1,6 @@ +spriteTypes = { + spriteType = { + name = "GFX_leader_trait_nanorebuild" + texturefile = "gfx/interface/icons/traits/leader_trait_icons/nanorebuild.dds" + } +} diff --git a/localisation/simp_chinese/RG_l_simp_chinese.yml b/localisation/simp_chinese/RG_l_simp_chinese.yml index db6be9b..28a55cf 100644 --- a/localisation/simp_chinese/RG_l_simp_chinese.yml +++ b/localisation/simp_chinese/RG_l_simp_chinese.yml @@ -18,6 +18,9 @@ RG_leader_trait_general_gray_skill:0 "§Y风暴将至§!" RG_leader_trait_general_gray_skill_desc:0 "灰色风暴在L星团中席卷无数纪元。倘若风暴再度到来,想必那星球上的人们所看到的景色一定永生难忘吧。" RG_leader_trait_tempest_incoming_effect:0 "\n$t$§Y每击杀一个敌军单位§!:\n$tt$§G 额外陆军伤害 +5%§!\n§G 额外陆军生命值 +5%§!$t$\n当前BUFF层数:§G[owner.rg_general_skill_combat_daypassed_variable]§!£time£\n$tt$§G直接击杀一支敌对陆军的概率增加:§!§Y1%§!\n当前概率为:§R[owner.rg_general_skill_combat_killed_variable]%§!" + RG_leader_trait_admiral_nanorebuild_gray:0 "§Y灰质重塑§!" + RG_leader_trait_admiral_nanorebuild_gray_desc:0 "分解与重组,纳米机器席卷之处我们无所不能。" + RG_leader_trait_admiral_nanorebuild_effect:0 "\n$t$§Y每击杀一个敌军单位§!:\n$tt$§G 重组计数器 +1§!\n当前计数器层数:§G[owner.rg_nanorebuild_counter]§!\n$tt$§Y该特质领袖所在舰队损失舰船时:消耗1计数器层数立即重塑舰船。灰风母舰无法被该技能重组。§!" SMALL_GRAY_MIX_ARMOR:0 "§Y纳米能量装甲§!" MEDIUM_GRAY_MIX_ARMOR:0 "§Y纳米能量装甲§!"