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
fallingshrimp e70918a391 fix(战斗平衡): 调整角色和子弹的攻击冷却时间及参数
修改KukeChild和KukeMC的攻击冷却时间,优化HeavyCrystal子弹的追踪逻辑
减少KukeMC技能2的分支数量范围,从2-4调整为1-3
2025-09-18 22:17:38 +08:00

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