mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
97ec81f05e
添加熊boss的四种攻击方式: 1. 箭雨攻击(ArrowSeven) 2. 太阳舞攻击(SunDance) 3. 永恒彩虹攻击(ForeverRainbow) 4. 冲刺攻击(BearSprint) 新增对应攻击音效资源 调整子弹追踪和伤害计算逻辑 添加冲刺粒子特效
15 lines
326 B
GDScript
15 lines
326 B
GDScript
extends BulletBase
|
|
class_name ChickSprint
|
|
|
|
func register():
|
|
speed = 0
|
|
penerate = 1
|
|
func ai():
|
|
damage = launcher.velocity.length() / 300
|
|
PresetBulletAI.lockLauncher(self, launcher, true)
|
|
if !launcher.sprinting:
|
|
tryDestroy()
|
|
func destroy(beacuseMap: bool):
|
|
if beacuseMap:
|
|
launcher.takeDamage(self, MathTool.rate(0.5))
|