mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
1d9c3fc466
将小鸡的冲刺倍率从60降低到30以平衡游戏性 修改冲刺伤害计算方式,使其与角色速度相关
15 lines
305 B
GDScript
15 lines
305 B
GDScript
extends BulletBase
|
|
class_name ChickSprint
|
|
|
|
func register():
|
|
speed = 0
|
|
penerate = 1
|
|
func ai():
|
|
damage = launcher.velocity.length()
|
|
PresetBulletAI.lockLauncher(self, launcher, true)
|
|
if !launcher.sprinting:
|
|
tryDestroy()
|
|
func destroy(beacuseMap: bool):
|
|
if beacuseMap:
|
|
launcher.takeDamage(self, 0.5)
|