chore: gdformat bleed changes
This commit is contained in:
@@ -3,5 +3,6 @@ extends Resource
|
||||
|
||||
var enemy: EnemyBase
|
||||
|
||||
|
||||
func apply(enemy: EnemyBase) -> void:
|
||||
push_error("%s does not implement apply" % self)
|
||||
|
@@ -11,10 +11,12 @@ var _enemy: EnemyBase
|
||||
|
||||
const PUDDLE = preload("res://scenes/puddle.tscn")
|
||||
|
||||
|
||||
func _init(enemy: EnemyBase, bleed_damage: float, duration: float):
|
||||
damage = bleed_damage
|
||||
_timer = Timer.new()
|
||||
|
||||
|
||||
func apply(enemy: EnemyBase) -> void:
|
||||
enemy.effects.append(self)
|
||||
while _remaining_ticks > 0:
|
||||
@@ -26,5 +28,6 @@ func apply(enemy: EnemyBase) -> void:
|
||||
p.global_position = enemy.global_position
|
||||
enemy.effects.erase(self)
|
||||
|
||||
|
||||
static func _is_bleeding(enemy: EnemyBase) -> bool:
|
||||
return false
|
||||
|
Reference in New Issue
Block a user