ducks choose the closest feed

This commit is contained in:
2025-02-15 18:03:43 +03:00
parent 954277688f
commit 6a952a221b
3 changed files with 38 additions and 13 deletions

View File

@ -99,7 +99,7 @@ end
function Duck:start_chase(feed)
if self.state == States.CHASE then return end
print("duck " .. self.index .. " starting chase")
-- print("duck " .. self.index .. " starting chase")
self.state = States.CHASE
self.target = feed
feed.occupied = true