fx: prey-predator interactions

This commit is contained in:
djaidjai committed 2026-03-01 14:55:25 +01:00
1 parent f83b290f5c
commit 2b46fd18f7
8 files changed
+15 -16

No files matched your search

@@ -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
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.