mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
1fa8263667
移除所有子弹类中的register方法,将属性初始化移至其他位置 在BulletBase的trySplit和tryRefract方法中添加子子弹标记
18 lines
428 B
GDScript
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
|