mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-07-04 01:02:13 +08:00
fix(武器/管道): 限制子弹速度最大值
防止子弹速度因攻击力过高而变得不合理,将速度限制在0到30之间
This commit is contained in:
@@ -16,5 +16,5 @@ func attack(entity: EntityBase):
|
|||||||
var e = charged(readStore("atk"), 0.1)
|
var e = charged(readStore("atk"), 0.1)
|
||||||
bullet.baseDamage = e
|
bullet.baseDamage = e
|
||||||
bullet.energy = e
|
bullet.energy = e
|
||||||
bullet.speed = sqrt(e)
|
bullet.speed = clamp(e, 0, 30)
|
||||||
return true
|
return true
|
||||||
|
|||||||
Reference in New Issue
Block a user