1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-07 20:27:13 +08:00

refactor(bullets): 重命名PresetsAI为PresetAIs并添加地图碰撞检测

将子弹AI预设类从PresetsAI重命名为PresetAIs
为BulletBase添加autoDestroyOnHitMap选项控制地图碰撞销毁
修改多个子弹脚本使用新的PresetAIs类名
为ChickSprint子弹添加地图碰撞伤害逻辑
This commit is contained in:
2025-08-29 18:34:58 +08:00
parent b8887d8d0c
commit a7e05cff65
10 changed files with 24 additions and 13 deletions
+2 -2
View File
@@ -7,6 +7,6 @@ func register():
damage = 2
func ai():
canDamageSelf = !(timeLived() >= traceTime)
PresetsAI.forward(self, rotation)
PresetAIs.forward(self, rotation)
if timeLived() < traceTime:
PresetsAI.trace(self, launcher.currentFocusedBoss.position, 0.05)
PresetAIs.trace(self, launcher.currentFocusedBoss.position, 0.05)