From a0372f0867990042368928312d01d1a4c7eaed0a 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: Sun, 10 May 2026 14:36:30 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BC=98=E5=8C=96=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E5=91=BD=E5=90=8D=E5=B9=B6=E8=B0=83=E6=95=B4=E8=A7=92?= =?UTF-8?q?=E8=89=B2=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将匿名函数参数从 `_who`, `_by` 简化为 `_w`, `_b` - 更新 HCN 角色的字段和数值配置 - 调整 MuyangDog 角色的数值和描述文本 --- components/CharacterCards/HCN.tscn | 5 ++--- components/CharacterCards/MuyangDog.tscn | 4 ++-- scripts/Contents/Characters/HCN.gd | 2 +- scripts/Statemachine/EntityBase.gd | 2 +- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/components/CharacterCards/HCN.tscn b/components/CharacterCards/HCN.tscn index f9af238..fad8862 100644 --- a/components/CharacterCards/HCN.tscn +++ b/components/CharacterCards/HCN.tscn @@ -21,9 +21,8 @@ displayName = "氰化氢" slogan = "微量便可颠覆生机" avatar = ExtResource("2_1yfsg") description = "击杀敌人时储能。" -fields = Array[int]([18, 1]) -fieldValues = Array[float]([3.0, -0.15]) -clickToRebuild = true +fields = Array[int]([18, 10, 1]) +fieldValues = Array[float]([3.0, 0.15, -0.15]) [node name="avatarTexture" parent="wrapper" parent_id_path=PackedInt32Array(2023039659) index="0" unique_id=1334645594] texture = ExtResource("2_1yfsg") diff --git a/components/CharacterCards/MuyangDog.tscn b/components/CharacterCards/MuyangDog.tscn index bffbbd2..f0fce00 100644 --- a/components/CharacterCards/MuyangDog.tscn +++ b/components/CharacterCards/MuyangDog.tscn @@ -21,7 +21,7 @@ slogan = "恪守使命不离不弃" avatar = ExtResource("2_fi2nw") description = "每隔3秒发动格挡。" fields = Array[int]([0, 8, 3]) -fieldValues = Array[float]([50.0, 0.15, -0.2]) +fieldValues = Array[float]([50.0, 0.15, -0.35]) [node name="avatarTexture" parent="wrapper" parent_id_path=PackedInt32Array(2023039659) index="0" unique_id=1334645594] texture = ExtResource("2_fi2nw") @@ -33,4 +33,4 @@ text = "牧羊犬" text = "“恪守使命不离不弃”" [node name="descriptionLabel" parent="wrapper/infoContainer" parent_id_path=PackedInt32Array(143242635) index="1" unique_id=808054282] -text = "每3秒发动格挡。" +text = "每隔3秒发动格挡。" diff --git a/scripts/Contents/Characters/HCN.gd b/scripts/Contents/Characters/HCN.gd index fbcd6fe..ddc8ad8 100644 --- a/scripts/Contents/Characters/HCN.gd +++ b/scripts/Contents/Characters/HCN.gd @@ -3,6 +3,6 @@ extends PlayerBase func register(): super.register() killEnemy.connect( - func(_who, _by): + func(_w, _b): storeEnergy(1) ) diff --git a/scripts/Statemachine/EntityBase.gd b/scripts/Statemachine/EntityBase.gd index cc3e773..a9c509c 100644 --- a/scripts/Statemachine/EntityBase.gd +++ b/scripts/Statemachine/EntityBase.gd @@ -171,7 +171,7 @@ func _ready(): ) healthChanged.emit(health) energyChanged.emit(energy, false) - killEnemy.connect(func(): return ) + killEnemy.connect(func(_w, _b): return ) spawn() func _process(_delta): health = clamp(health, 0, fields.get(FieldStore.Entity.MAX_HEALTH))