1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-29 07:21:54 +08:00
Files
Dog-Lynx-And-HCN/scripts/Contents/Bullets/BossAttack/KukeMC/HeavyCrystal.gd
T
fallingshrimp aeda27ef61 fix(BossAttack/HeavyCrystal): 修复伤害计算逻辑并优化速度增长
调整伤害计算方式,改为基于速度动态计算伤害值
移除初始固定伤害值,避免与动态计算冲突
优化子弹速度增长逻辑
2025-09-19 21:59:15 +08:00

20 lines
465 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:
track.visible = false
hitbox.disabled = false
PresetBulletAI.forward(self, rotation)
damage = speed / 5
speed *= 1.15