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/BigLaser.gd
T
fallingshrimp 766a894879 feat(BigLaser): 降低能量消耗并增强伤害计算
调整BigLaser的能量需求从150降至100,同时根据发射者的攻击速度增强伤害
2025-08-28 15:45:38 +08:00

23 lines
725 B
GDScript

extends BulletBase
class_name BigLaser # 这个子弹是玩家的超级武器,耗能高,dps也高
func spawn():
CameraManager.shake(5000, 100) # 激光会运行5秒,期间震屏100强度
CameraManager.playAnimation("bigLaser")
fields[FieldStore.Bullet.DAMAGE] *= launcher.fields[FieldStore.Entity.ATTACK_SPEED]
func ai():
rotation = lerp_angle(rotation, ((get_global_mouse_position() - position).angle()), 0.1)
position = launcher.texture.global_position
func applyDot():
hitbox.disabled = true
await TickTool.millseconds(50)
hitbox.disabled = false
await TickTool.millseconds(50)
BulletBase.generate(
preload("res://components/Bullets/LaserPluse.tscn"),
launcher,
position,
rotation
)
return true