mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-05 03:07:12 +08:00
修了大激光的dot
This commit is contained in:
@@ -13,12 +13,6 @@ func applyDot():
|
||||
await TickTool.millseconds(100 / launcher.fields[FieldStore.Entity.ATTACK_SPEED])
|
||||
hitbox.disabled = false
|
||||
await TickTool.millseconds(100 / launcher.fields[FieldStore.Entity.ATTACK_SPEED])
|
||||
BulletBase.generate(
|
||||
preload("res://components/Bullets/LaserPluse.tscn"),
|
||||
launcher,
|
||||
position,
|
||||
rotation
|
||||
)
|
||||
return true
|
||||
func succeedToHit(_dmg: float):
|
||||
fields[FieldStore.Bullet.DAMAGE] *= 1.05
|
||||
|
||||
@@ -29,6 +29,7 @@ func _ready():
|
||||
spawnInWhen = Time.get_ticks_msec()
|
||||
spawnInWhere = position
|
||||
spawn()
|
||||
dotLoop()
|
||||
if autoSpawnAnimation:
|
||||
animator.play("spawn")
|
||||
await animator.animation_finished
|
||||
@@ -36,7 +37,6 @@ func _ready():
|
||||
destroy()
|
||||
if autoLoopAnimation:
|
||||
animator.play("loop")
|
||||
dotLoop()
|
||||
func _process(_delta: float) -> void:
|
||||
if lifeTime > 0:
|
||||
if Time.get_ticks_msec() - spawnInWhen >= lifeTime:
|
||||
|
||||
Reference in New Issue
Block a user