From f9a1cb350b7561cafefc03dc98ef4a9f0e9ba0f7 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 21:05:21 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=A7=92=E8=89=B2):=20=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E5=85=AC=E9=B8=A1=E8=A7=92=E8=89=B2=E7=9A=84=E6=94=BB=E5=87=BB?= =?UTF-8?q?=E9=80=9F=E5=BA=A6=E8=AE=A1=E7=AE=97=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改公鸡角色的攻击蓄力逻辑,将攻击速度属性(FieldStore.Entity.ATTACK_SPEED)纳入计算,影响粒子效果速度和武器蓄力时间 --- scripts/Contents/Characters/Rooster.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/Contents/Characters/Rooster.gd b/scripts/Contents/Characters/Rooster.gd index b22022f..dccb410 100644 --- a/scripts/Contents/Characters/Rooster.gd +++ b/scripts/Contents/Characters/Rooster.gd @@ -55,7 +55,7 @@ func tryLaunch(action: String, weaponIndex: int): chargeParticle.speed_scale = 1 if Input.is_action_pressed(action): if chargeStartTime.has(weaponIndex): - chargeParticle.speed_scale += 0.01 + chargeParticle.speed_scale += 0.01 * self.fields.get(FieldStore.Entity.ATTACK_SPEED) else: tryAttack(weaponIndex) if Input.is_action_just_released(action): @@ -67,6 +67,6 @@ func tryLaunch(action: String, weaponIndex: int): if len(weapons) > weaponIndex: var weapon = weapons[weaponIndex] if weapon.chargable: - weapon.chargedTime = chargedTime + weapon.chargedTime = chargedTime * self.fields.get(FieldStore.Entity.ATTACK_SPEED) tryAttack(weaponIndex) chargeParticle.emitting = false