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 8e68d8775b fix(BossAttack): 调整重型水晶子弹的伤害计算比例
将伤害计算从速度的1/4改为1/5,以平衡游戏难度
2025-09-18 22:30:56 +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 / 5
PresetBulletAI.forward(self, rotation)
speed *= 1.2
track.visible = false
hitbox.disabled = false