1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-29 07:21:54 +08:00
Files
Dog-Lynx-And-HCN/scripts/Contents/Bullets/ChickSprint.gd
T
fallingshrimp 76b5d40b28 feat(战斗系统): 调整熊Boss的攻击行为和冲刺机制
- 修改ChickSprint子弹伤害计算公式的分母参数
- 在EntityBase中新增targetableSprinting状态变量
- 优化熊Boss的攻击模式,包括增加攻击次数随机性、调整移动速度和冲刺倍率
- 改进冲刺逻辑,增加目标位置随机性和冲刺后返回机制
2025-09-13 20:39:05 +08:00

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))