From 43020550865a8b417cdfb12c9d1c8e7ca0151762 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=A8=E8=90=BD=E5=9F=BA=E5=9B=B4=E8=99=BE?= <3161880837@qq.com> Date: Sat, 4 Apr 2026 09:03:58 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=AD=A6=E5=99=A8=E5=8D=A1=E7=89=87):?= =?UTF-8?q?=20=E9=87=8D=E6=9E=84=E6=AD=A6=E5=99=A8=E5=8D=A1=E7=89=87?= =?UTF-8?q?=E8=8A=82=E7=82=B9=E7=BB=93=E6=9E=84=EF=BC=8C=E5=B0=86=E5=90=8D?= =?UTF-8?q?=E7=A7=B0=E8=8A=82=E7=82=B9=E7=A7=BB=E8=87=B3displays=E5=AE=B9?= =?UTF-8?q?=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 统一将武器卡片的名称节点从container/info移动到container/info/displays容器中,提高代码组织性 同时清理了部分调试属性和冗余代码,更新了部分武器的来源信息 --- components/Abstracts/WeaponCardBase.tscn | 8 ++++---- components/Weapons/AcidWind.tscn | 2 +- components/Weapons/BigLaser.tscn | 21 ++++++++++++++------- components/Weapons/BlueCrystal.tscn | 2 +- components/Weapons/Bow.tscn | 2 +- components/Weapons/ChainGun.tscn | 19 ++++++++++--------- components/Weapons/Cogwheel.tscn | 2 +- components/Weapons/CursorKnife.tscn | 2 +- components/Weapons/DaoStatue.tscn | 10 +++++----- components/Weapons/Gobo.tscn | 12 ++++++------ components/Weapons/GrassWall.tscn | 17 +++++++++-------- components/Weapons/HJM.tscn | 16 ++++++++-------- components/Weapons/HXD.tscn | 14 +++++++------- components/Weapons/Hetun.tscn | 12 ++++++------ components/Weapons/LGBT.tscn | 2 +- components/Weapons/Meowmere.tscn | 18 +++++++++--------- components/Weapons/MushroomPickaxe.tscn | 18 ++++++++---------- components/Weapons/NuclearBomb.tscn | 2 +- components/Weapons/Oxygener.tscn | 2 +- components/Weapons/Pipe.tscn | 15 ++++++++------- components/Weapons/PurpleCrystal.tscn | 2 +- components/Weapons/RedCrystal.tscn | 2 +- components/Weapons/SevenSoul.tscn | 24 +++++++++--------------- components/Weapons/Shield.tscn | 2 +- components/Weapons/Tree.tscn | 14 +++++++------- components/Weapons/VectorStar.tscn | 2 +- components/Weapons/Volcano.tscn | 18 ++++++++---------- components/Weapons/WhiteSoul.tscn | 21 +++++++++++---------- scripts/Contents/Weapons/Gobo.gd | 22 +++++++++++----------- 29 files changed, 152 insertions(+), 151 deletions(-) diff --git a/components/Abstracts/WeaponCardBase.tscn b/components/Abstracts/WeaponCardBase.tscn index c08ced8..5695420 100644 --- a/components/Abstracts/WeaponCardBase.tscn +++ b/components/Abstracts/WeaponCardBase.tscn @@ -121,11 +121,11 @@ size_flags_horizontal = 4 type = 4 count = 1 -[node name="VBoxContainer" type="VBoxContainer" parent="container/info" unique_id=784441328] +[node name="displays" type="VBoxContainer" parent="container/info" unique_id=784441328] layout_mode = 2 theme_override_constants/separation = 0 -[node name="name" parent="container/info/VBoxContainer" unique_id=1576068972 instance=ExtResource("3_qv0b1")] +[node name="name" parent="container/info/displays" unique_id=1576068972 instance=ExtResource("3_qv0b1")] unique_name_in_owner = true layout_mode = 2 typeTopicColorMap = { @@ -143,10 +143,10 @@ soulLevelColorMap = { 5: Color(1, 0.57713, 0.247421, 1) } -[node name="source" type="Label" parent="container/info/VBoxContainer" unique_id=365191794] +[node name="source" type="Label" parent="container/info/displays" unique_id=365191794] unique_name_in_owner = true layout_mode = 2 -text = "CVB" +text = "无灵" label_settings = SubResource("LabelSettings_b3nsw") horizontal_alignment = 1 diff --git a/components/Weapons/AcidWind.tscn b/components/Weapons/AcidWind.tscn index 620e13a..434f7a5 100644 --- a/components/Weapons/AcidWind.tscn +++ b/components/Weapons/AcidWind.tscn @@ -52,7 +52,7 @@ text = "10.0" [node name="beachball" parent="container/info/infos" index="1"] count = 200 -[node name="name" parent="container/info" index="2"] +[node name="name" parent="container/info/displays" index="0"] displayName = "酸蚀风暴" quality = 4 typeTopic = 3 diff --git a/components/Weapons/BigLaser.tscn b/components/Weapons/BigLaser.tscn index 013fae2..49348de 100644 --- a/components/Weapons/BigLaser.tscn +++ b/components/Weapons/BigLaser.tscn @@ -1,11 +1,11 @@ -[gd_scene load_steps=5 format=3 uid="uid://cxabqjo7skxev"] +[gd_scene format=3 uid="uid://cxabqjo7skxev"] [ext_resource type="PackedScene" uid="uid://ckq2cq6m23hq3" path="res://components/Abstracts/WeaponCardBase.tscn" id="1_wrvv5"] -[ext_resource type="Script" path="res://scripts/Contents/Weapons/BigLaser.gd" id="2_gmch0"] +[ext_resource type="Script" uid="uid://dx3ctln16ynbl" path="res://scripts/Contents/Weapons/BigLaser.gd" id="2_gmch0"] [ext_resource type="Texture2D" uid="uid://dy4op6n6vxef3" path="res://resources/bullets/laser-circle/circle.svg" id="2_qe8gb"] [ext_resource type="AudioStream" uid="uid://b10u6iir6uvqn" path="res://resources/sounds/effect/BigLaser.wav" id="4_cb5nh"] -[node name="BigLaser" instance=ExtResource("1_wrvv5")] +[node name="BigLaser" unique_id=906291376 instance=ExtResource("1_wrvv5")] script = ExtResource("2_gmch0") avatarTexture = ExtResource("2_qe8gb") displayName = "湮灭激光" @@ -21,19 +21,26 @@ storeType = { "time": 0.0 } descriptionTemplate = "每$time秒造成$atk点伤害。" +sources = Array[String](["Magic Craft"]) needEnergy = 200.0 cooldown = 6000.0 -[node name="attack" parent="sounds" index="0"] +[node name="attack" parent="sounds" parent_id_path=PackedInt32Array(1775425991) index="0" unique_id=853583292] stream = ExtResource("4_cb5nh") -[node name="avatar" parent="container/info" index="0"] +[node name="avatar" parent="container/info" parent_id_path=PackedInt32Array(1625294072) index="0" unique_id=1021985889] texture = ExtResource("2_qe8gb") -[node name="name" parent="container/info" index="2"] +[node name="energy" parent="container/info/infos/energyInfo" parent_id_path=PackedInt32Array(644675021) index="1" unique_id=1664028115] +text = "200.0" + +[node name="beachball" parent="container/info/infos" parent_id_path=PackedInt32Array(492799150) index="1" unique_id=653442983] +count = 300 + +[node name="name" parent="container/info/displays" parent_id_path=PackedInt32Array(784441328) index="0" unique_id=1576068972] displayName = "湮灭激光" quality = 2 typeTopic = 1 -[node name="description" parent="container" index="2"] +[node name="description" parent="container" parent_id_path=PackedInt32Array(575698869) index="2" unique_id=566230682] text = "[center]每[color=cyan]0.10[/color]秒造成[color=cyan]40[/color]点伤害。[/center]" diff --git a/components/Weapons/BlueCrystal.tscn b/components/Weapons/BlueCrystal.tscn index a98cdfc..71897d5 100644 --- a/components/Weapons/BlueCrystal.tscn +++ b/components/Weapons/BlueCrystal.tscn @@ -28,7 +28,7 @@ stream = ExtResource("4_fewtg") [node name="avatar" parent="container/info" index="0"] texture = ExtResource("3_fewtg") -[node name="name" parent="container/info" index="2"] +[node name="name" parent="container/info/displays" index="0"] displayName = "蓝水晶簇" typeTopic = 3 diff --git a/components/Weapons/Bow.tscn b/components/Weapons/Bow.tscn index 39bebb4..a6642b9 100644 --- a/components/Weapons/Bow.tscn +++ b/components/Weapons/Bow.tscn @@ -30,7 +30,7 @@ texture = ExtResource("2_ex3jl") [node name="beachball" parent="container/info/infos" index="1"] count = 50 -[node name="name" parent="container/info" index="2"] +[node name="name" parent="container/info/displays" index="0"] displayName = "鸡毛弓" quality = 2 diff --git a/components/Weapons/ChainGun.tscn b/components/Weapons/ChainGun.tscn index 20edfbe..db3a146 100644 --- a/components/Weapons/ChainGun.tscn +++ b/components/Weapons/ChainGun.tscn @@ -1,11 +1,11 @@ -[gd_scene load_steps=5 format=3 uid="uid://dlaks67h2osms"] +[gd_scene format=3 uid="uid://dlaks67h2osms"] [ext_resource type="PackedScene" uid="uid://ckq2cq6m23hq3" path="res://components/Abstracts/WeaponCardBase.tscn" id="1_x1nyl"] [ext_resource type="Texture2D" uid="uid://ccxdfsg5071t4" path="res://resources/bullets/chain-gun/Chain_Gun.webp" id="2_ghn43"] [ext_resource type="Script" uid="uid://dev0urlc13rxc" path="res://scripts/Contents/Weapons/ChainGun.gd" id="2_ponmu"] [ext_resource type="AudioStream" uid="uid://bdcyao3e6xs63" path="res://resources/sounds/effect/chainshoot.wav" id="4_g38si"] -[node name="ChainGun" instance=ExtResource("1_x1nyl")] +[node name="ChainGun" unique_id=1992324853 instance=ExtResource("1_x1nyl")] script = ExtResource("2_ponmu") avatarTexture = ExtResource("2_ghn43") displayName = "链式机枪" @@ -21,23 +21,24 @@ storeType = { "split": 3 } descriptionTemplate = "超高速发射$count个[b]微型水晶[/b],可造成$atk点伤害,散射+$split。" +sources = Array[String](["Terraria"]) needEnergy = 0.75 cooldown = 66.0 -[node name="attack" parent="sounds" index="0"] +[node name="attack" parent="sounds" parent_id_path=PackedInt32Array(1775425991) index="0" unique_id=853583292] stream = ExtResource("4_g38si") -[node name="avatar" parent="container/info" index="0"] +[node name="avatar" parent="container/info" parent_id_path=PackedInt32Array(1625294072) index="0" unique_id=1021985889] texture = ExtResource("2_ghn43") -[node name="energy" parent="container/info/infos/energyInfo" index="1"] +[node name="energy" parent="container/info/infos/energyInfo" parent_id_path=PackedInt32Array(644675021) index="1" unique_id=1664028115] text = "0.8" -[node name="beachball" parent="container/info/infos" index="1"] +[node name="beachball" parent="container/info/infos" parent_id_path=PackedInt32Array(492799150) index="1" unique_id=653442983] count = 400 -[node name="name" parent="container/info" index="2"] +[node name="name" parent="container/info/displays" parent_id_path=PackedInt32Array(784441328) index="0" unique_id=1576068972] displayName = "链式机枪" -[node name="description" parent="container" index="2"] -text = "[center]超高速发射[color=cyan]1[/color]个[b]微型水晶[/b],可造成[color=cyan]3[/color]点伤害,散射+[color=cyan]15.0°[/color]。[/center]" +[node name="description" parent="container" parent_id_path=PackedInt32Array(575698869) index="2" unique_id=566230682] +text = "[center]超高速发射[color=cyan]1[/color]个[b]微型水晶[/b],可造成[color=cyan]5[/color]点伤害,散射+[color=cyan]15.0°[/color]。[/center]" diff --git a/components/Weapons/Cogwheel.tscn b/components/Weapons/Cogwheel.tscn index a421064..3b168a8 100644 --- a/components/Weapons/Cogwheel.tscn +++ b/components/Weapons/Cogwheel.tscn @@ -27,7 +27,7 @@ debugRebuild = true [node name="avatar" parent="container/info" index="0"] texture = ExtResource("2_qs30c") -[node name="name" parent="container/info" index="2"] +[node name="name" parent="container/info/displays" index="0"] displayName = "齿轮回旋镖" quality = 3 diff --git a/components/Weapons/CursorKnife.tscn b/components/Weapons/CursorKnife.tscn index 38b8f1c..2a6a399 100644 --- a/components/Weapons/CursorKnife.tscn +++ b/components/Weapons/CursorKnife.tscn @@ -32,7 +32,7 @@ texture = ExtResource("3_mdipf") [node name="beachball" parent="container/info/infos" index="1"] count = 350 -[node name="name" parent="container/info" index="2"] +[node name="name" parent="container/info/displays" index="0"] displayName = "光标刃轮" typeTopic = 1 diff --git a/components/Weapons/DaoStatue.tscn b/components/Weapons/DaoStatue.tscn index 9f3a0b8..66a960a 100644 --- a/components/Weapons/DaoStatue.tscn +++ b/components/Weapons/DaoStatue.tscn @@ -28,20 +28,20 @@ descriptionTemplate = "挥出[b]天地之剑[/b],蓄力一段时间后, 攻击速度每降低[color=yellow]1%[/color],伤害+$rate2; 每失去[color=yellow]1[/color]点生命值,伤害+$rate1; 命中时每拥有[color=yellow]1[/color]层[b]气[/b],伤害+$rate3;" +sources = Array[String](["Nine Sols"]) cooldown = 4000.0 -debugRebuild = true -[node name="attack" parent="sounds" index="0"] +[node name="attack" parent="sounds" parent_id_path=PackedInt32Array(1775425991) index="0" unique_id=853583292] stream = ExtResource("4_y3oaj") -[node name="avatar" parent="container/info" index="0"] +[node name="avatar" parent="container/info" parent_id_path=PackedInt32Array(1625294072) index="0" unique_id=1021985889] texture = ExtResource("2_gx1sf") -[node name="name" parent="container/info" index="2"] +[node name="name" parent="container/info/displays" parent_id_path=PackedInt32Array(784441328) index="0" unique_id=1576068972] displayName = "道教石像" typeTopic = 1 -[node name="description" parent="container" index="2"] +[node name="description" parent="container" parent_id_path=PackedInt32Array(575698869) index="2" unique_id=566230682] text = "[center]挥出[b]天地之剑[/b],蓄力一段时间后, 发射一道[b]无量斩[/b],造成[color=cyan]30[/color]点伤害。 diff --git a/components/Weapons/Gobo.tscn b/components/Weapons/Gobo.tscn index 09017f7..72b6b7c 100644 --- a/components/Weapons/Gobo.tscn +++ b/components/Weapons/Gobo.tscn @@ -1,10 +1,10 @@ -[gd_scene load_steps=4 format=3 uid="uid://blwoev5sencdh"] +[gd_scene format=3 uid="uid://blwoev5sencdh"] [ext_resource type="PackedScene" uid="uid://ckq2cq6m23hq3" path="res://components/Abstracts/WeaponCardBase.tscn" id="1_0udcw"] [ext_resource type="Script" uid="uid://cbg3xkg1giv35" path="res://scripts/Contents/Weapons/Gobo.gd" id="2_7yxbe"] [ext_resource type="Texture2D" uid="uid://xen2edbhf052" path="res://resources/characters/gobo/gobo-a.svg" id="2_tw58e"] -[node name="Gobo" instance=ExtResource("1_0udcw")] +[node name="Gobo" unique_id=129053016 instance=ExtResource("1_0udcw")] script = ExtResource("2_7yxbe") avatarTexture = ExtResource("2_tw58e") displayName = "Gobo" @@ -23,16 +23,16 @@ storeType = { "percent": 2 } descriptionTemplate = "召唤[b]Gobo[/b],Gobo会自主行动,每受到$atk点伤害后会生产$count颗[b]苹果[/b]。Gobo初始拥有$health点生命值。" +sources = Array[String](["Scratch"]) cooldown = 1000.0 -debugRebuild = true -[node name="avatar" parent="container/info" index="0"] +[node name="avatar" parent="container/info" parent_id_path=PackedInt32Array(1625294072) index="0" unique_id=1021985889] texture = ExtResource("2_tw58e") -[node name="name" parent="container/info" index="2"] +[node name="name" parent="container/info/displays" parent_id_path=PackedInt32Array(784441328) index="0" unique_id=1576068972] displayName = "Gobo" quality = 4 typeTopic = 4 -[node name="description" parent="container" index="2"] +[node name="description" parent="container" parent_id_path=PackedInt32Array(575698869) index="2" unique_id=566230682] text = "[center]召唤[b]Gobo[/b],Gobo会自主行动,每受到[color=cyan]100[/color]点伤害后会生产[color=cyan]1[/color]颗[b]苹果[/b]。Gobo初始拥有[color=cyan]200[/color]点生命值。[/center]" diff --git a/components/Weapons/GrassWall.tscn b/components/Weapons/GrassWall.tscn index d6ba401..19b763f 100644 --- a/components/Weapons/GrassWall.tscn +++ b/components/Weapons/GrassWall.tscn @@ -1,10 +1,10 @@ -[gd_scene load_steps=4 format=3 uid="uid://dldnbpubu2jgm"] +[gd_scene format=3 uid="uid://dldnbpubu2jgm"] [ext_resource type="PackedScene" uid="uid://ckq2cq6m23hq3" path="res://components/Abstracts/WeaponCardBase.tscn" id="1_wvaxu"] [ext_resource type="Texture2D" uid="uid://bbv5j71jkdo42" path="res://resources/weapons/grass-wall.png" id="2_kh4xg"] [ext_resource type="Script" uid="uid://7bmrk88b4ipd" path="res://scripts/Contents/Weapons/GrassWall.gd" id="2_us6b7"] -[node name="GrassWall" instance=ExtResource("1_wvaxu")] +[node name="GrassWall" unique_id=1743572542 instance=ExtResource("1_wvaxu")] script = ExtResource("2_us6b7") avatarTexture = ExtResource("2_kh4xg") displayName = "草方块菌落" @@ -14,21 +14,22 @@ store = { "atk": 100 } descriptionTemplate = "分泌一堵[b]肽聚墙[/b],可抵挡$atk点伤害,敌人更有可能瞄准你。" +sources = Array[String](["UDA"]) needEnergy = 35.0 cooldown = 1000.0 -[node name="avatar" parent="container/info" index="0"] +[node name="avatar" parent="container/info" parent_id_path=PackedInt32Array(1625294072) index="0" unique_id=1021985889] texture = ExtResource("2_kh4xg") -[node name="energy" parent="container/info/infos/energyInfo" index="1"] +[node name="energy" parent="container/info/infos/energyInfo" parent_id_path=PackedInt32Array(644675021) index="1" unique_id=1664028115] text = "35.0" -[node name="beachball" parent="container/info/infos" index="1"] +[node name="beachball" parent="container/info/infos" parent_id_path=PackedInt32Array(492799150) index="1" unique_id=653442983] count = 10 -[node name="name" parent="container/info" index="2"] +[node name="name" parent="container/info/displays" parent_id_path=PackedInt32Array(784441328) index="0" unique_id=1576068972] displayName = "草方块菌落" typeTopic = 4 -[node name="description" parent="container" index="2"] -text = "[center]分泌一堵[b]肽聚墙[/b],可抵挡[color=cyan]200[/color]点伤害,敌人更有可能瞄准你。[/center]" +[node name="description" parent="container" parent_id_path=PackedInt32Array(575698869) index="2" unique_id=566230682] +text = "[center]分泌一堵[b]肽聚墙[/b],可抵挡[color=cyan]100[/color]点伤害,敌人更有可能瞄准你。[/center]" diff --git a/components/Weapons/HJM.tscn b/components/Weapons/HJM.tscn index 8711cd2..fa82c05 100644 --- a/components/Weapons/HJM.tscn +++ b/components/Weapons/HJM.tscn @@ -1,10 +1,10 @@ -[gd_scene load_steps=4 format=3 uid="uid://dbxu15g1pd3cx"] +[gd_scene format=3 uid="uid://dbxu15g1pd3cx"] [ext_resource type="PackedScene" uid="uid://ckq2cq6m23hq3" path="res://components/Abstracts/WeaponCardBase.tscn" id="1_73eho"] [ext_resource type="Script" uid="uid://crx7hojhwqlyl" path="res://scripts/Contents/Weapons/HJM.gd" id="2_2in6n"] [ext_resource type="Texture2D" uid="uid://bv7iu8qylxp70" path="res://resources/weapons/hjm.png" id="2_74sfb"] -[node name="HJM" instance=ExtResource("1_73eho")] +[node name="HJM" unique_id=796560287 instance=ExtResource("1_73eho")] script = ExtResource("2_2in6n") avatarTexture = ExtResource("2_74sfb") displayName = "耄耋" @@ -20,23 +20,23 @@ storeType = { "time": 0 } descriptionTemplate = "召唤[b]抓狂的哈基米[/b],跟踪敌人,每$time秒造成$atk点伤害。" +sources = Array[String](["Internet"]) needEnergy = 75.0 cooldown = 1000.0 -debugRebuild = true -[node name="avatar" parent="container/info" index="0"] +[node name="avatar" parent="container/info" parent_id_path=PackedInt32Array(1625294072) index="0" unique_id=1021985889] texture = ExtResource("2_74sfb") -[node name="energy" parent="container/info/infos/energyInfo" index="1"] +[node name="energy" parent="container/info/infos/energyInfo" parent_id_path=PackedInt32Array(644675021) index="1" unique_id=1664028115] text = "75.0" -[node name="beachball" parent="container/info/infos" index="1"] +[node name="beachball" parent="container/info/infos" parent_id_path=PackedInt32Array(492799150) index="1" unique_id=653442983] count = 600 -[node name="name" parent="container/info" index="2"] +[node name="name" parent="container/info/displays" parent_id_path=PackedInt32Array(784441328) index="0" unique_id=1576068972] displayName = "耄耋" quality = 0 typeTopic = 4 -[node name="description" parent="container" index="2"] +[node name="description" parent="container" parent_id_path=PackedInt32Array(575698869) index="2" unique_id=566230682] text = "[center]召唤[b]抓狂的哈基米[/b],跟踪敌人,每[color=cyan]0.25[/color]秒造成[color=cyan]7[/color]点伤害。[/center]" diff --git a/components/Weapons/HXD.tscn b/components/Weapons/HXD.tscn index 7086914..10abe32 100644 --- a/components/Weapons/HXD.tscn +++ b/components/Weapons/HXD.tscn @@ -1,10 +1,10 @@ -[gd_scene load_steps=4 format=3 uid="uid://bm5sw6mr71acq"] +[gd_scene format=3 uid="uid://bm5sw6mr71acq"] [ext_resource type="PackedScene" uid="uid://ckq2cq6m23hq3" path="res://components/Abstracts/WeaponCardBase.tscn" id="1_h4ls7"] [ext_resource type="Script" uid="uid://0xfj35jvi7ym" path="res://scripts/Contents/Weapons/HXD.gd" id="2_7tnwq"] [ext_resource type="Texture2D" uid="uid://cvvtr2mmwo18r" path="res://resources/weapons/HXD.png" id="2_d5bd0"] -[node name="HXD" instance=ExtResource("1_h4ls7")] +[node name="HXD" unique_id=1383383596 instance=ExtResource("1_h4ls7")] script = ExtResource("2_7tnwq") avatarTexture = ExtResource("2_d5bd0") displayName = "咸亨记账簿" @@ -20,19 +20,19 @@ storeType = { "count": 1 } descriptionTemplate = "发射$count颗[b]茴香豆[/b],在敌人间反弹,每颗茴香豆最多可以反弹$atk次,每次反弹对敌人造成$atk点伤害,有[color=yellow]1/4[/color]的概率反弹次数[color=yellow]+1[/color]。散射[color=red]+4°[/color],反弹时伤害[color=red]-4%[/color],命中同类敌人时额外造成一次[color=yellow]必定暴击[/color]的伤害,命中Boss时,[color=orange]伤害倍率+1%[/color]。" +sources = Array[String](["鲁迅"]) cooldown = 1000.0 -debugRebuild = true -[node name="avatar" parent="container/info" index="0"] +[node name="avatar" parent="container/info" parent_id_path=PackedInt32Array(1625294072) index="0" unique_id=1021985889] texture = ExtResource("2_d5bd0") -[node name="beachball" parent="container/info/infos" index="1"] +[node name="beachball" parent="container/info/infos" parent_id_path=PackedInt32Array(492799150) index="1" unique_id=653442983] count = 4000 -[node name="name" parent="container/info" index="2"] +[node name="name" parent="container/info/displays" parent_id_path=PackedInt32Array(784441328) index="0" unique_id=1576068972] displayName = "咸亨记账簿" quality = 3 typeTopic = 3 -[node name="description" parent="container" index="2"] +[node name="description" parent="container" parent_id_path=PackedInt32Array(575698869) index="2" unique_id=566230682] text = "[center]发射[color=cyan]4[/color]颗[b]茴香豆[/b],在敌人间反弹,每颗茴香豆最多可以反弹[color=cyan]4[/color]次,每次反弹对敌人造成[color=cyan]4[/color]点伤害,有[color=yellow]1/4[/color]的概率反弹次数[color=yellow]+1[/color]。散射[color=red]+4°[/color],反弹时伤害[color=red]-4%[/color],命中同类敌人时额外造成一次[color=yellow]必定暴击[/color]的伤害,命中Boss时,[color=orange]伤害倍率+1%[/color]。[/center]" diff --git a/components/Weapons/Hetun.tscn b/components/Weapons/Hetun.tscn index c432b6c..7d43312 100644 --- a/components/Weapons/Hetun.tscn +++ b/components/Weapons/Hetun.tscn @@ -1,10 +1,10 @@ -[gd_scene load_steps=4 format=3 uid="uid://c65tbxm3tclw0"] +[gd_scene format=3 uid="uid://c65tbxm3tclw0"] [ext_resource type="PackedScene" uid="uid://ckq2cq6m23hq3" path="res://components/Abstracts/WeaponCardBase.tscn" id="1_021hd"] [ext_resource type="Script" uid="uid://tfptal3sgfmy" path="res://scripts/Contents/Weapons/Hetun.gd" id="2_t2ywh"] [ext_resource type="Texture2D" uid="uid://c1xrf8255jafi" path="res://resources/weapons/hetun.png" id="2_y0xe1"] -[node name="Hetun" instance=ExtResource("1_021hd")] +[node name="Hetun" unique_id=819619036 instance=ExtResource("1_021hd")] script = ExtResource("2_t2ywh") avatarTexture = ExtResource("2_y0xe1") displayName = "河豚" @@ -20,15 +20,15 @@ storeType = { "penerate": 2 } descriptionTemplate = "散射5~$count针[b]河豚刺针[/b],每根针造成$atk点伤害,撞上敌人后有$penerate概率反弹。" +sources = Array[String](["Minecraft", "Pathogenic"]) cooldown = 2000.0 -debugRebuild = true -[node name="avatar" parent="container/info" index="0"] +[node name="avatar" parent="container/info" parent_id_path=PackedInt32Array(1625294072) index="0" unique_id=1021985889] texture = ExtResource("2_y0xe1") -[node name="name" parent="container/info" index="2"] +[node name="name" parent="container/info/displays" parent_id_path=PackedInt32Array(784441328) index="0" unique_id=1576068972] displayName = "河豚" quality = 0 -[node name="description" parent="container" index="2"] +[node name="description" parent="container" parent_id_path=PackedInt32Array(575698869) index="2" unique_id=566230682] text = "[center]散射5~[color=cyan]10[/color]针[b]河豚刺针[/b],每根针造成[color=cyan]15[/color]点伤害,撞上敌人后有[color=cyan]20.0%[/color]概率反弹。[/center]" diff --git a/components/Weapons/LGBT.tscn b/components/Weapons/LGBT.tscn index f02c480..9694af2 100644 --- a/components/Weapons/LGBT.tscn +++ b/components/Weapons/LGBT.tscn @@ -43,7 +43,7 @@ text = "95.0" [node name="beachball" parent="container/info/infos" index="1"] count = 200 -[node name="name" parent="container/info" index="2"] +[node name="name" parent="container/info/displays" index="0"] displayName = "彩虹旗" typeTopic = 4 diff --git a/components/Weapons/Meowmere.tscn b/components/Weapons/Meowmere.tscn index 099c42f..5240b0d 100644 --- a/components/Weapons/Meowmere.tscn +++ b/components/Weapons/Meowmere.tscn @@ -1,11 +1,11 @@ -[gd_scene load_steps=5 format=3 uid="uid://frwt0fgrpskb"] +[gd_scene format=3 uid="uid://frwt0fgrpskb"] [ext_resource type="PackedScene" uid="uid://ckq2cq6m23hq3" path="res://components/Abstracts/WeaponCardBase.tscn" id="1_xhgkg"] [ext_resource type="Script" uid="uid://jr5idpte8epy" path="res://scripts/Contents/Weapons/Meowmere.gd" id="2_4rd12"] [ext_resource type="Texture2D" uid="uid://cwr2pud7h8o3e" path="res://resources/bullets/meowmere/Meowmere.webp" id="2_kiocs"] [ext_resource type="AudioStream" uid="uid://cx203jnrkto4u" path="res://resources/sounds/effect/swordshoot.wav" id="4_hvtvi"] -[node name="Meowmere" instance=ExtResource("1_xhgkg")] +[node name="Meowmere" unique_id=1965287972 instance=ExtResource("1_xhgkg")] script = ExtResource("2_4rd12") avatarTexture = ExtResource("2_kiocs") displayName = "彩虹猫之刃" @@ -25,23 +25,23 @@ storeType = { "reduce": 2 } descriptionTemplate = "发射$count只伤害以$reduce衰减的造成$childatk点伤害的[b]彩虹猫[/b]的同时挥舞造成$atk点伤害。" +sources = Array[String](["Terraria"]) cooldown = 230.0 -debugRebuild = true -[node name="attack" parent="sounds" index="0"] +[node name="attack" parent="sounds" parent_id_path=PackedInt32Array(1775425991) index="0" unique_id=853583292] stream = ExtResource("4_hvtvi") volume_db = 10.0 -[node name="avatar" parent="container/info" index="0"] +[node name="avatar" parent="container/info" parent_id_path=PackedInt32Array(1625294072) index="0" unique_id=1021985889] texture = ExtResource("2_kiocs") -[node name="beachball" parent="container/info/infos" index="1"] +[node name="beachball" parent="container/info/infos" parent_id_path=PackedInt32Array(492799150) index="1" unique_id=653442983] count = 600 -[node name="name" parent="container/info" index="2"] +[node name="name" parent="container/info/displays" parent_id_path=PackedInt32Array(784441328) index="0" unique_id=1576068972] displayName = "彩虹猫之刃" quality = 2 typeTopic = 3 -[node name="description" parent="container" index="2"] -text = "[center]发射[color=cyan]1[/color]只伤害以[color=cyan]25%[/color]衰减的造成[color=cyan]6[/color]点伤害的[b]彩虹猫[/b]的同时挥舞造成[color=cyan]5[/color]点伤害。[/center]" +[node name="description" parent="container" parent_id_path=PackedInt32Array(575698869) index="2" unique_id=566230682] +text = "[center]发射[color=cyan]1[/color]只伤害以[color=cyan]25.0%[/color]衰减的造成[color=cyan]6[/color]点伤害的[b]彩虹猫[/b]的同时挥舞造成[color=cyan]5[/color]点伤害。[/center]" diff --git a/components/Weapons/MushroomPickaxe.tscn b/components/Weapons/MushroomPickaxe.tscn index 211c2a3..b3321b8 100644 --- a/components/Weapons/MushroomPickaxe.tscn +++ b/components/Weapons/MushroomPickaxe.tscn @@ -1,10 +1,10 @@ -[gd_scene load_steps=4 format=3 uid="uid://dwsyn746hr25d"] +[gd_scene format=3 uid="uid://dwsyn746hr25d"] [ext_resource type="PackedScene" uid="uid://ckq2cq6m23hq3" path="res://components/Abstracts/WeaponCardBase.tscn" id="1_aoaad"] [ext_resource type="Script" uid="uid://bmmf864uc3atu" path="res://scripts/Contents/Weapons/MushroomPickaxe.gd" id="2_5dp3e"] [ext_resource type="Texture2D" uid="uid://cqg0aluvegqfe" path="res://resources/bullets/MushroomPickaxe/frames/Shroomite_Digging_Claw.webp" id="2_u2d30"] -[node name="MushroomPickaxe" instance=ExtResource("1_aoaad")] +[node name="MushroomPickaxe" unique_id=1903474011 instance=ExtResource("1_aoaad")] script = ExtResource("2_5dp3e") avatarTexture = ExtResource("2_u2d30") displayName = "蘑菇矿挖爪" @@ -20,18 +20,16 @@ storeType = { "rate": 2 } descriptionTemplate = "命中时造成$atk点伤害,有$rate概率挖出1~$count个随机物品。" +sources = Array[String](["Terraria"]) -[node name="avatar" parent="container/info" index="0"] +[node name="avatar" parent="container/info" parent_id_path=PackedInt32Array(1625294072) index="0" unique_id=1021985889] texture = ExtResource("2_u2d30") -[node name="energy" parent="container/info/infos/energyInfo" index="1"] -text = "2.0" - -[node name="beachball" parent="container/info/infos" index="1"] +[node name="beachball" parent="container/info/infos" parent_id_path=PackedInt32Array(492799150) index="1" unique_id=653442983] count = 750 -[node name="name" parent="container/info" index="2"] +[node name="name" parent="container/info/displays" parent_id_path=PackedInt32Array(784441328) index="0" unique_id=1576068972] displayName = "蘑菇矿挖爪" -[node name="description" parent="container" index="2"] -text = "[center]命中时造成[color=cyan]1[/color]点伤害,有[color=cyan]10%[/color]概率挖出1~[color=cyan]3[/color]个随机物品。[/center]" +[node name="description" parent="container" parent_id_path=PackedInt32Array(575698869) index="2" unique_id=566230682] +text = "[center]命中时造成[color=cyan]1[/color]点伤害,有[color=cyan]10.0%[/color]概率挖出1~[color=cyan]3[/color]个随机物品。[/center]" diff --git a/components/Weapons/NuclearBomb.tscn b/components/Weapons/NuclearBomb.tscn index 165fa0f..7209146 100644 --- a/components/Weapons/NuclearBomb.tscn +++ b/components/Weapons/NuclearBomb.tscn @@ -29,7 +29,7 @@ texture = ExtResource("2_5nh8i") -[node name="name" parent="container/info" index="2"] +[node name="name" parent="container/info/displays" index="0"] displayName = "核弹控制器" quality = 4 typeTopic = 2 diff --git a/components/Weapons/Oxygener.tscn b/components/Weapons/Oxygener.tscn index a1c91a2..2bd9e7b 100644 --- a/components/Weapons/Oxygener.tscn +++ b/components/Weapons/Oxygener.tscn @@ -31,7 +31,7 @@ debugRebuild = true [node name="avatar" parent="container/info" index="0"] texture = ExtResource("2_xmkcx") -[node name="name" parent="container/info" index="2"] +[node name="name" parent="container/info/displays" index="0"] displayName = "氧化加农炮" quality = 0 typeTopic = 2 diff --git a/components/Weapons/Pipe.tscn b/components/Weapons/Pipe.tscn index 37848d7..88e634d 100644 --- a/components/Weapons/Pipe.tscn +++ b/components/Weapons/Pipe.tscn @@ -1,10 +1,10 @@ -[gd_scene load_steps=4 format=3 uid="uid://dyanyf044boxp"] +[gd_scene format=3 uid="uid://dyanyf044boxp"] [ext_resource type="PackedScene" uid="uid://ckq2cq6m23hq3" path="res://components/Abstracts/WeaponCardBase.tscn" id="1_sqbqm"] [ext_resource type="Texture2D" uid="uid://7yeb0e4ahcee" path="res://resources/weapons/pipe.png" id="2_mmtf8"] [ext_resource type="Script" uid="uid://l1v3boq8ei12" path="res://scripts/Contents/Weapons/Pipe.gd" id="2_p67v7"] -[node name="Pipe" instance=ExtResource("1_sqbqm")] +[node name="Pipe" unique_id=946948425 instance=ExtResource("1_sqbqm")] script = ExtResource("2_p67v7") avatarTexture = ExtResource("2_mmtf8") displayName = "钢管" @@ -14,20 +14,21 @@ store = { "atk": 5 } descriptionTemplate = "按住蓄力扔出钢管,蓄力越久伤害越高,至少造成$atk点伤害,发射钢管后继续按住鼠标可进行连续发射。" +sources = Array[String](["MEME"]) needEnergy = 2.0 cooldown = 3000.0 -[node name="avatar" parent="container/info" index="0"] +[node name="avatar" parent="container/info" parent_id_path=PackedInt32Array(1625294072) index="0" unique_id=1021985889] texture = ExtResource("2_mmtf8") -[node name="energy" parent="container/info/infos/energyInfo" index="1"] +[node name="energy" parent="container/info/infos/energyInfo" parent_id_path=PackedInt32Array(644675021) index="1" unique_id=1664028115] text = "2.0" -[node name="beachball" parent="container/info/infos" index="1"] +[node name="beachball" parent="container/info/infos" parent_id_path=PackedInt32Array(492799150) index="1" unique_id=653442983] count = 350 -[node name="name" parent="container/info" index="2"] +[node name="name" parent="container/info/displays" parent_id_path=PackedInt32Array(784441328) index="0" unique_id=1576068972] displayName = "钢管" -[node name="description" parent="container" index="2"] +[node name="description" parent="container" parent_id_path=PackedInt32Array(575698869) index="2" unique_id=566230682] text = "[center]按住蓄力扔出钢管,蓄力越久伤害越高,至少造成[color=cyan]5[/color]点伤害,发射钢管后继续按住鼠标可进行连续发射。[/center]" diff --git a/components/Weapons/PurpleCrystal.tscn b/components/Weapons/PurpleCrystal.tscn index 51856c0..21a6bfa 100644 --- a/components/Weapons/PurpleCrystal.tscn +++ b/components/Weapons/PurpleCrystal.tscn @@ -24,7 +24,7 @@ texture = ExtResource("2_wgtcw") [node name="beachball" parent="container/info/infos" index="1"] count = 200 -[node name="name" parent="container/info" index="2"] +[node name="name" parent="container/info/displays" index="0"] displayName = "紫水晶簇" [node name="description" parent="container" index="2"] diff --git a/components/Weapons/RedCrystal.tscn b/components/Weapons/RedCrystal.tscn index 1e4599b..b5e9fb3 100644 --- a/components/Weapons/RedCrystal.tscn +++ b/components/Weapons/RedCrystal.tscn @@ -35,7 +35,7 @@ texture = ExtResource("2_3e8g7") [node name="beachball" parent="container/info/infos" index="1"] count = 400 -[node name="name" parent="container/info" index="2"] +[node name="name" parent="container/info/displays" index="0"] displayName = "红水晶簇" typeTopic = 1 diff --git a/components/Weapons/SevenSoul.tscn b/components/Weapons/SevenSoul.tscn index dabf217..970c2f6 100644 --- a/components/Weapons/SevenSoul.tscn +++ b/components/Weapons/SevenSoul.tscn @@ -1,11 +1,11 @@ -[gd_scene load_steps=5 format=3 uid="uid://c5y4g70evwy46"] +[gd_scene format=3 uid="uid://c5y4g70evwy46"] [ext_resource type="PackedScene" uid="uid://ckq2cq6m23hq3" path="res://components/Abstracts/WeaponCardBase.tscn" id="1_0f84s"] [ext_resource type="Script" uid="uid://bxcyflpnuajnn" path="res://scripts/Contents/Weapons/SevenSoul.gd" id="2_n7gtb"] [ext_resource type="Texture2D" uid="uid://ckqfe3a61hw7" path="res://resources/weapons/bill.webp" id="3_nq3bo"] [ext_resource type="AudioStream" uid="uid://dy4k5mni7d7wo" path="res://resources/sounds/weapon/Finale - Toby Fox.wav" id="4_tmgox"] -[node name="SevenSoul" instance=ExtResource("1_0f84s")] +[node name="SevenSoul" unique_id=33662415 instance=ExtResource("1_0f84s")] script = ExtResource("2_n7gtb") avatarTexture = ExtResource("3_nq3bo") displayName = "bilioicik" @@ -22,30 +22,24 @@ storeType = { "heal": 1 } descriptionTemplate = "召唤7条灵魂,每条造成$atk点伤害,命中敌人时将伤害的$dmg转换为能量并提供$heal点治疗。" +sources = Array[String](["Undertale"]) needEnergy = 150.0 cooldown = 180000.0 -debugRebuild = true -[node name="attack" parent="sounds" index="0"] +[node name="attack" parent="sounds" parent_id_path=PackedInt32Array(1775425991) index="0" unique_id=853583292] stream = ExtResource("4_tmgox") volume_db = 20.0 -[node name="avatar" parent="container/info" index="0"] +[node name="avatar" parent="container/info" parent_id_path=PackedInt32Array(1625294072) index="0" unique_id=1021985889] texture = ExtResource("3_nq3bo") -[node name="energy" parent="container/info/infos/energyInfo" index="1"] +[node name="energy" parent="container/info/infos/energyInfo" parent_id_path=PackedInt32Array(644675021) index="1" unique_id=1664028115] text = "150.0" -[node name="beachball" parent="container/info/infos" index="1"] -count = 500 - -[node name="soul" parent="container/info/infos" index="2"] -count = 1 - -[node name="name" parent="container/info" index="2"] +[node name="name" parent="container/info/displays" parent_id_path=PackedInt32Array(784441328) index="0" unique_id=1576068972] displayName = "bilioicik" quality = 2 typeTopic = 3 -[node name="description" parent="container" index="2"] -text = "[center]召唤7条灵魂,每条造成[color=cyan]2[/color]点伤害,命中敌人时将伤害的[color=cyan]10%[/color]转换为能量并提供[color=cyan]1[/color]点治疗。[/center]" +[node name="description" parent="container" parent_id_path=PackedInt32Array(575698869) index="2" unique_id=566230682] +text = "[center]召唤7条灵魂,每条造成[color=cyan]2[/color]点伤害,命中敌人时将伤害的[color=cyan]10.0%[/color]转换为能量并提供[color=cyan]1[/color]点治疗。[/center]" diff --git a/components/Weapons/Shield.tscn b/components/Weapons/Shield.tscn index 762c4ad..3d036ba 100644 --- a/components/Weapons/Shield.tscn +++ b/components/Weapons/Shield.tscn @@ -27,7 +27,7 @@ text = "50.0" [node name="beachball" parent="container/info/infos" index="1"] count = 1000 -[node name="name" parent="container/info" index="2"] +[node name="name" parent="container/info/displays" index="0"] displayName = "回响水晶" quality = 3 typeTopic = 4 diff --git a/components/Weapons/Tree.tscn b/components/Weapons/Tree.tscn index ed9c787..c218185 100644 --- a/components/Weapons/Tree.tscn +++ b/components/Weapons/Tree.tscn @@ -1,10 +1,10 @@ -[gd_scene load_steps=4 format=3 uid="uid://cx7nogfnv7s8t"] +[gd_scene format=3 uid="uid://cx7nogfnv7s8t"] [ext_resource type="PackedScene" uid="uid://ckq2cq6m23hq3" path="res://components/Abstracts/WeaponCardBase.tscn" id="1_0lbwr"] [ext_resource type="Script" uid="uid://bqdyhwcd4jwmj" path="res://scripts/Contents/Weapons/Tree.gd" id="2_jsuc8"] [ext_resource type="Texture2D" uid="uid://74n7umby4d4w" path="res://resources/weapons/ParryCounter.png" id="3_nwamk"] -[node name="Tree" instance=ExtResource("1_0lbwr")] +[node name="Tree" unique_id=185228402 instance=ExtResource("1_0lbwr")] script = ExtResource("2_jsuc8") avatarTexture = ExtResource("3_nwamk") displayName = "扶桑元神" @@ -35,21 +35,21 @@ descriptionTemplate = "进行[b]格挡[/b],化解飞来的子弹。 每化解[color=yellow]1[/color]点伤害, 乾坤剑造成的伤害+$atk点。 格挡时机越精确,成功率越高。" +sources = Array[String](["Nine Sols", "Terraria"]) cooldown = 250.0 -debugRebuild = true -[node name="avatar" parent="container/info" index="0"] +[node name="avatar" parent="container/info" parent_id_path=PackedInt32Array(1625294072) index="0" unique_id=1021985889] texture = ExtResource("3_nwamk") -[node name="beachball" parent="container/info/infos" index="1"] +[node name="beachball" parent="container/info/infos" parent_id_path=PackedInt32Array(492799150) index="1" unique_id=653442983] count = 900 -[node name="name" parent="container/info" index="2"] +[node name="name" parent="container/info/displays" parent_id_path=PackedInt32Array(784441328) index="0" unique_id=1576068972] displayName = "扶桑元神" quality = 4 typeTopic = 3 -[node name="description" parent="container" index="2"] +[node name="description" parent="container" parent_id_path=PackedInt32Array(575698869) index="2" unique_id=566230682] text = "[center]进行[b]格挡[/b],化解飞来的子弹。 每成功格挡一次,获得一点[b]气力[/b]。 每拥有一点气力,增加[color=yellow]1[/color]点冲刺初速度,闪避穿过敌人时对其贴上一层[b]符咒[/b],符咒会自动引爆,召唤[b]乾坤剑[/b]穿透敌人。 diff --git a/components/Weapons/VectorStar.tscn b/components/Weapons/VectorStar.tscn index 21d09a1..ee23a64 100644 --- a/components/Weapons/VectorStar.tscn +++ b/components/Weapons/VectorStar.tscn @@ -36,7 +36,7 @@ text = "5.0" [node name="beachball" parent="container/info/infos" index="1"] count = 400 -[node name="name" parent="container/info" index="2"] +[node name="name" parent="container/info/displays" index="0"] displayName = "矢量核心" quality = 2 diff --git a/components/Weapons/Volcano.tscn b/components/Weapons/Volcano.tscn index ab17d03..62390da 100644 --- a/components/Weapons/Volcano.tscn +++ b/components/Weapons/Volcano.tscn @@ -1,10 +1,10 @@ -[gd_scene load_steps=4 format=3 uid="uid://u0djqwuuysp8"] +[gd_scene format=3 uid="uid://u0djqwuuysp8"] [ext_resource type="PackedScene" uid="uid://ckq2cq6m23hq3" path="res://components/Abstracts/WeaponCardBase.tscn" id="1_3uhfa"] [ext_resource type="Texture2D" uid="uid://ctmxadaowx5ps" path="res://resources/weapons/Volcano.webp" id="2_hh01t"] [ext_resource type="Script" uid="uid://cbihum34xs8ev" path="res://scripts/Contents/Weapons/Volcano.gd" id="2_ihngx"] -[node name="Volcano" instance=ExtResource("1_3uhfa")] +[node name="Volcano" unique_id=204992396 instance=ExtResource("1_3uhfa")] clip_contents = true script = ExtResource("2_ihngx") avatarTexture = ExtResource("2_hh01t") @@ -33,21 +33,19 @@ storeType = { "rotate": 2 } descriptionTemplate = "召唤1支[b]火山[/b],以$rotate的效率跟随鼠标指向,进行基础伤害为$atk的4段挥舞攻击。造成的伤害分别为$dmg1,$dmg2,$dmg3,$dmg4,第4段攻击的同时发射$count支[b]火山幻影[/b],造成$dmg5伤害。" +sources = Array[String](["Terraria"]) cooldown = 1750.0 -[node name="avatar" parent="container/info" index="0"] +[node name="avatar" parent="container/info" parent_id_path=PackedInt32Array(1625294072) index="0" unique_id=1021985889] texture = ExtResource("2_hh01t") -[node name="beachball" parent="container/info/infos" index="1"] +[node name="beachball" parent="container/info/infos" parent_id_path=PackedInt32Array(492799150) index="1" unique_id=653442983] count = 200 -[node name="soul" parent="container/info/infos" index="2"] -count = 1 - -[node name="name" parent="container/info" index="2"] +[node name="name" parent="container/info/displays" parent_id_path=PackedInt32Array(784441328) index="0" unique_id=1576068972] displayName = "火山" quality = 4 typeTopic = 2 -[node name="description" parent="container" index="2"] -text = "[center]召唤1支[b]火山[/b],以[color=cyan]5%[/color]的效率跟随鼠标指向,进行基础伤害为[color=cyan]10[/color]的4段挥舞攻击。造成的伤害分别为[color=cyan]100%[/color],[color=cyan]50%[/color],[color=cyan]114%[/color],[color=cyan]123%[/color],第4段攻击的同时发射[color=cyan]1[/color]支[b]火山幻影[/b],造成[color=cyan]40%[/color]伤害。[/center]" +[node name="description" parent="container" parent_id_path=PackedInt32Array(575698869) index="2" unique_id=566230682] +text = "[center]召唤1支[b]火山[/b],以[color=cyan]5.0%[/color]的效率跟随鼠标指向,进行基础伤害为[color=cyan]20[/color]的4段挥舞攻击。造成的伤害分别为[color=cyan]100.0%[/color],[color=cyan]50.0%[/color],[color=cyan]115.0%[/color],[color=cyan]123.0%[/color],第4段攻击的同时发射[color=cyan]1[/color]支[b]火山幻影[/b],造成[color=cyan]40.0%[/color]伤害。[/center]" diff --git a/components/Weapons/WhiteSoul.tscn b/components/Weapons/WhiteSoul.tscn index 6d4a7be..2c303f9 100644 --- a/components/Weapons/WhiteSoul.tscn +++ b/components/Weapons/WhiteSoul.tscn @@ -1,10 +1,10 @@ -[gd_scene load_steps=4 format=3 uid="uid://bt4b7ks26fcgi"] +[gd_scene format=3 uid="uid://bt4b7ks26fcgi"] [ext_resource type="PackedScene" uid="uid://ckq2cq6m23hq3" path="res://components/Abstracts/WeaponCardBase.tscn" id="1_4hjdm"] [ext_resource type="Texture2D" uid="uid://bgj2i5q2rst27" path="res://resources/weapons/Daedalus_Stormbow.png" id="2_kcegs"] [ext_resource type="Script" uid="uid://cyvl1b2trt25e" path="res://scripts/Contents/Weapons/WhiteSoul.gd" id="2_ti114"] -[node name="WhiteSoul" instance=ExtResource("1_4hjdm")] +[node name="WhiteSoul" unique_id=274428909 instance=ExtResource("1_4hjdm")] script = ExtResource("2_ti114") avatarTexture = ExtResource("2_kcegs") displayName = "代达罗斯风暴魂" @@ -21,19 +21,20 @@ storeType = { "radius": 0.0 } descriptionTemplate = "从天而降$count支目标位于鼠标位置半径$radius内的怪物灵魂,造成$atk点伤害。" +sources = Array[String](["Terraria", "Undertale"]) -[node name="avatar" parent="container/info" index="0"] +[node name="avatar" parent="container/info" parent_id_path=PackedInt32Array(1625294072) index="0" unique_id=1021985889] texture = ExtResource("2_kcegs") -[node name="beachball" parent="container/info/infos" index="1"] +[node name="beachball" parent="container/info/infos" parent_id_path=PackedInt32Array(492799150) index="1" unique_id=653442983] count = 300 -[node name="soul" parent="container/info/infos" index="2"] -count = 1 - -[node name="name" parent="container/info" index="2"] +[node name="name" parent="container/info/displays" parent_id_path=PackedInt32Array(784441328) index="0" unique_id=1576068972] displayName = "代达罗斯风暴魂" quality = 3 -[node name="description" parent="container" index="2"] -text = "[center]从天而降[color=cyan]1[/color]支目标位于鼠标位置半径[color=cyan]200.00[/color]内的怪物灵魂,造成[color=cyan]10[/color]点伤害。[/center]" +[node name="source" parent="container/info/displays" parent_id_path=PackedInt32Array(784441328) index="1" unique_id=365191794] +text = "Terraria × Undertale" + +[node name="description" parent="container" parent_id_path=PackedInt32Array(575698869) index="2" unique_id=566230682] +text = "[center]从天而降[color=cyan]1[/color]支目标位于鼠标位置半径[color=cyan]100.00[/color]内的怪物灵魂,造成[color=cyan]10[/color]点伤害。[/center]" diff --git a/scripts/Contents/Weapons/Gobo.gd b/scripts/Contents/Weapons/Gobo.gd index b1c84a3..bb17592 100644 --- a/scripts/Contents/Weapons/Gobo.gd +++ b/scripts/Contents/Weapons/Gobo.gd @@ -2,15 +2,15 @@ extends Weapon func update(to: int, origin: Dictionary, _entity: EntityBase): - origin["health"] += 5 * to * soulLevel - origin["percent"] += 0.02 * to * soulLevel - origin["count"] *= to * soulLevel - return origin + origin["health"] += 5 * to * soulLevel + origin["percent"] += 0.02 * to * soulLevel + origin["count"] *= to * soulLevel + return origin func attack(entity: EntityBase): - var gobo = entity.summon(ComponentManager.getSummon("Gobo")) - if gobo is GoboSummon: - gobo.targetDamage = readStore("atk") - gobo.percent = readStore("percent") - gobo.count = readStore("count") - gobo.initHealth(readStore("health")) - return true + var gobo = entity.summon(ComponentManager.getSummon("Gobo")) + if gobo is GoboSummon: + gobo.targetDamage = readStore("atk") + gobo.percent = readStore("percent") + gobo.count = readStore("count") + gobo.initHealth(readStore("health")) + return true