mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-29 23:41:54 +08:00
e70918a391
修改KukeChild和KukeMC的攻击冷却时间,优化HeavyCrystal子弹的追踪逻辑 减少KukeMC技能2的分支数量范围,从2-4调整为1-3
20 lines
464 B
GDScript
20 lines
464 B
GDScript
extends BulletBase
|
|
|
|
@onready var track: Node2D = $"%track"
|
|
|
|
var readyTime: float = 1000
|
|
|
|
func register():
|
|
speed = 10
|
|
func ai():
|
|
if timeLived() < readyTime:
|
|
PresetBulletAI.lockLauncher(self, launcher, true)
|
|
rotation = launcher.position.angle_to_point(launcher.currentFocusedBoss.getTrackingAnchor())
|
|
hitbox.disabled = true
|
|
else:
|
|
damage = speed / 4
|
|
PresetBulletAI.forward(self, rotation)
|
|
speed *= 1.2
|
|
track.visible = false
|
|
hitbox.disabled = false
|