1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-29 23:41:54 +08:00
Files
Dog-Lynx-And-HCN/scripts/Contents/Bullets/BossAttack/KukeMC/HeavyCrystal.gd
T

18 lines
428 B
GDScript
Raw Normal View History

extends BulletBase
@onready var track: Node2D = $"%track"
var readyTime: float = 1000
func ai():
if timeLived() < readyTime:
PresetBulletAI.lockLauncher(self, launcher, true)
PresetBulletAI.trace(self, launcher.currentFocusedBoss.getTrackingAnchor(), 0.8)
hitbox.disabled = true
else:
track.visible = false
hitbox.disabled = false
PresetBulletAI.forward(self, rotation)
baseDamage = speed / 5
speed *= 1.15