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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user