mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
174f24e3fe
- 将BigLaser的父场景从LaserCommoner改为LaserSummoner - 增加激光震动强度从100到150 - 移除succeedToHit方法的伤害加成效果 - 更新激光粒子效果和材质参数 - 修改水杯和蛋糕的字段属性 - 优化调试组件FeedHasField的目标字段 - 更新激光圆圈SVG资源
17 lines
731 B
GDScript
17 lines
731 B
GDScript
extends BulletBase
|
|
class_name BigLaser # 这个子弹是玩家的超级武器,耗能高,dps也高
|
|
|
|
func spawn():
|
|
CameraManager.shake(5000, 150) # 激光会运行5秒(5000毫秒),期间震屏超高强度
|
|
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(100 / launcher.fields[FieldStore.Entity.ATTACK_SPEED])
|
|
hitbox.disabled = false
|
|
await TickTool.millseconds(100 / launcher.fields[FieldStore.Entity.ATTACK_SPEED])
|
|
return true
|