From fd58948b3fa72cffac4c1b4f48f7706073201ba6 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: Mon, 9 Feb 2026 13:10:15 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=AD=A6=E5=99=A8/=E5=AD=90=E5=BC=B9):=20?= =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=AE=A1=E9=81=93=E6=AD=A6=E5=99=A8=E5=92=8C?= =?UTF-8?q?=E5=AD=90=E5=BC=B9=E7=9A=84=E6=95=B0=E5=80=BC=E8=AE=A1=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复管道武器的充能计算方式,改为基于灵魂等级减1的乘法 修改子弹旋转速度计算,使用初始速度替代能量值 添加子弹基础伤害与能量值的关联 调整子弹命中后的能量衰减系数 --- scripts/Contents/Bullets/PipeBullet.gd | 5 ++++- scripts/Contents/Weapons/Pipe.gd | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/Contents/Bullets/PipeBullet.gd b/scripts/Contents/Bullets/PipeBullet.gd index 38383f0..6c8a0ab 100644 --- a/scripts/Contents/Bullets/PipeBullet.gd +++ b/scripts/Contents/Bullets/PipeBullet.gd @@ -5,7 +5,10 @@ var energy: float = 0 func ai(): PresetBulletAI.forward(self, rotation) - texture.rotation += energy * (1 - lifeTimePercent()) / 100 + texture.rotation += initialSpeed * (1 - lifeTimePercent()) / 100 speed = initialSpeed * (1 - lifeTimePercent()) + baseDamage = energy func destroy(_beacuseMap: bool): EffectController.create(ComponentManager.getEffect("PipeFall"), position).shot() +func succeedToHit(_dmg: float, _entity: EntityBase): + energy *= 0.95 diff --git a/scripts/Contents/Weapons/Pipe.gd b/scripts/Contents/Weapons/Pipe.gd index bd4f0e3..88a6ed7 100644 --- a/scripts/Contents/Weapons/Pipe.gd +++ b/scripts/Contents/Weapons/Pipe.gd @@ -3,7 +3,7 @@ extends Weapon func update(to: int, origin: Dictionary, _entity: EntityBase): origin["atk"] += 1 * to * soulLevel - origin["charge"] += 0.005 * to * soulLevel + origin["charge"] += 0.05 * (soulLevel - 1) return origin func attack(entity: EntityBase): var weaponPos = entity.findWeaponAnchor("normal")