fx: prey-predator interactions

This commit is contained in:
2026-03-01 14:55:25 +01:00
parent f83b290f5c
commit 2b46fd18f7
8 changed files with 15 additions and 16 deletions

View File

@@ -83,12 +83,9 @@ func _on_attack_hit(body: Node2D) -> void:
if body.has_method("handle_damage"):
body.handle_damage(damage, self)
hit_hittable = true
elif body.is_in_group("resources"):
pass
if hit_hittable:
await get_tree().create_timer(0.2).timeout
sprite.play("default")
# TODO: resource handling logic
func _on_invulnerable_cooldown_timeout() -> void:
hasiframes = false