1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 06:51:54 +08:00
Files
Dog-Lynx-And-HCN/scripts/Contents/Bullets/BossAttack/KukeMC/HeavyCrystal.gd
T
fallingshrimp 1fa8263667 refactor(BulletBase): 移除子弹注册方法并添加子子弹标记
移除所有子弹类中的register方法,将属性初始化移至其他位置
在BulletBase的trySplit和tryRefract方法中添加子子弹标记
2026-01-17 12:30:09 +08:00

18 lines
428 B
GDScript

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