1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-01 17:01:53 +08:00

fix(武器/子弹): 调整子弹速度和能量衰减

修改Pipe武器的子弹速度计算方式,使用平方根函数平滑速度增长
将Pipe子弹命中后的能量衰减系数从0.8改为0.6,加快能量消耗
This commit is contained in:
2026-02-11 17:20:54 +08:00
parent a38ec5536d
commit 6ed8278158
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -16,5 +16,5 @@ func attack(entity: EntityBase):
var e = charged(readStore("atk"), 0.1)
bullet.baseDamage = e
bullet.energy = e
bullet.speed = e
bullet.speed = sqrt(e)
return true