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

@@ -39,7 +39,7 @@ func attack(target: Node) -> void:
var hit_hittable = false
if target.is_in_group("prey") or target.is_in_group("player"):
if target.has_method("handle_damage"):
target.handle_damage(damage, self)
target.handle_damage(damage, self.collision)
hit_hittable = true
elif target.is_in_group("resources"):
# TODO: resource handling logic