fx: prey-predator interactions
This commit is contained in:
@@ -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