mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 23:11:54 +08:00
76b5d40b28
- 修改ChickSprint子弹伤害计算公式的分母参数 - 在EntityBase中新增targetableSprinting状态变量 - 优化熊Boss的攻击模式,包括增加攻击次数随机性、调整移动速度和冲刺倍率 - 改进冲刺逻辑,增加目标位置随机性和冲刺后返回机制
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() / 250
|
|
PresetBulletAI.lockLauncher(self, launcher, true)
|
|
if !launcher.sprinting:
|
|
tryDestroy()
|
|
func destroy(beacuseMap: bool):
|
|
if beacuseMap:
|
|
launcher.takeDamage(self, MathTool.rate(0.5))
|