From a2b3cd407f1eca0aff46ad25612b628d90059dcf 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: Wed, 11 Feb 2026 17:22:50 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=AD=A6=E5=99=A8/=E7=AE=A1=E9=81=93):=20?= =?UTF-8?q?=E9=99=90=E5=88=B6=E5=AD=90=E5=BC=B9=E9=80=9F=E5=BA=A6=E6=9C=80?= =?UTF-8?q?=E5=A4=A7=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 防止子弹速度因攻击力过高而变得不合理,将速度限制在0到30之间 --- scripts/Contents/Weapons/Pipe.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Contents/Weapons/Pipe.gd b/scripts/Contents/Weapons/Pipe.gd index 3badbdd..eed72a2 100644 --- a/scripts/Contents/Weapons/Pipe.gd +++ b/scripts/Contents/Weapons/Pipe.gd @@ -16,5 +16,5 @@ func attack(entity: EntityBase): var e = charged(readStore("atk"), 0.1) bullet.baseDamage = e bullet.energy = e - bullet.speed = sqrt(e) + bullet.speed = clamp(e, 0, 30) return true