fx: readded merged function
This commit is contained in:
@@ -15,7 +15,7 @@ var can_attack: bool = true
|
||||
|
||||
func _ready() -> void:
|
||||
health = maxHealth
|
||||
sprite.play("Healthy")
|
||||
sprite.play("Healthy") # TODO: add play_sprite function which calls both sprite and wrapper
|
||||
wrapper.play_sprite("Healthy")
|
||||
if starting_pos:
|
||||
collision.set_position(starting_pos)
|
||||
@@ -42,9 +42,6 @@ func attack(target: Node) -> void:
|
||||
if target.has_method("handle_damage"):
|
||||
target.handle_damage(damage, self.collision)
|
||||
hit_hittable = true
|
||||
elif target.is_in_group("resources"):
|
||||
# TODO: resource handling logic
|
||||
pass
|
||||
if hit_hittable:
|
||||
attack_cooldown_timer.start()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user