From 590b58a8a9c8785b001856a26f0c3f9dc67588d5 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: Thu, 5 Feb 2026 07:27:41 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=AD=A6=E5=99=A8):=20=E8=B0=83=E6=95=B4HX?= =?UTF-8?q?D=E6=AD=A6=E5=99=A8=E7=9A=84=E4=BC=A4=E5=AE=B3=E5=80=8D?= =?UTF-8?q?=E7=8E=87=E6=9C=BA=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将Boss命中效果从攻击速度加成改为伤害倍率加成,并调整delta值为0.05 同时更新武器描述文本以反映机制变更 --- components/Weapons/HXD.tscn | 4 ++-- scripts/Contents/Bullets/HXD.gd | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/Weapons/HXD.tscn b/components/Weapons/HXD.tscn index 0e69a41..f7eb85f 100644 --- a/components/Weapons/HXD.tscn +++ b/components/Weapons/HXD.tscn @@ -19,7 +19,7 @@ storeType = { "atk": 1, "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]攻击速度+10%[/color]直到当前茴香豆被销毁。" +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]伤害倍率+5%[/color]直到当前茴香豆被销毁。" cooldown = 1000.0 debugRebuild = true @@ -35,4 +35,4 @@ quality = 3 typeTopic = 3 [node name="description" parent="container" index="2"] -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]攻击速度+10%[/color]直到当前茴香豆被销毁。[/center]" +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]伤害倍率+5%[/color]直到当前茴香豆被销毁。[/center]" diff --git a/scripts/Contents/Bullets/HXD.gd b/scripts/Contents/Bullets/HXD.gd index c74d56e..1f53f44 100644 --- a/scripts/Contents/Bullets/HXD.gd +++ b/scripts/Contents/Bullets/HXD.gd @@ -5,14 +5,14 @@ var bouncedTime: int = 0 var maxBouncedTime: int = 0 var lastHit: EntityBase var addTimes = 0 -var delta = 0.1 +var delta = 0.05 func spawn(): texture.play(str(randi_range(0, 2))) func ai(): PresetBulletAI.forward(self, rotation) func destroy(_beacuseMap: bool): - launcher.fields[FieldStore.Entity.ATTACK_SPEED] -= addTimes * delta + launcher.fields[FieldStore.Entity.DAMAGE_MULTIPILER] -= addTimes * delta func succeedToHit(_dmg: float, entity: EntityBase): if entity.isBoss: launcher.fields[FieldStore.Entity.ATTACK_SPEED] += delta