mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 23:11:54 +08:00
33e6758965
调整Cat角色的攻击冷却时间和冲刺倍数 为BulletBase添加speedScale属性和setupCuttable方法 将Volcano的animator速度设置移至ai方法并应用speedScale
15 lines
331 B
GDScript
15 lines
331 B
GDScript
extends BulletBase
|
|
class_name ChickSprint
|
|
|
|
func register():
|
|
speed = 0
|
|
penerate = 1
|
|
func ai():
|
|
baseDamage = launcher.velocity.length() / 500.0
|
|
PresetBulletAI.lockLauncher(self, launcher, true)
|
|
if !launcher.sprinting:
|
|
tryDestroy()
|
|
func destroy(beacuseMap: bool):
|
|
if beacuseMap:
|
|
launcher.bulletHit(self, MathTool.rate(0.5))
|