ft: nucleotide prey FSM

This commit is contained in:
2026-01-26 23:54:15 +01:00
parent c11afd9ddd
commit adf1438bc8
18 changed files with 121 additions and 45 deletions

View File

@@ -63,7 +63,7 @@ func _on_attack_hit(body: Node2D) -> void:
var hit_hittable = false
if body.is_in_group("prey") or body.is_in_group("predators"):
if body.has_method("handle_damage"):
body.handle_damage(damage)
body.handle_damage(damage, self)
hit_hittable = true
elif body.is_in_group("resources"):
pass