I found that many of the issues that I have been experiencing are around mealtime mechanics. In this when the AI segment surrounding the hearthlings eating habits, the code implements a drop and forget method that derails other continuous systems.
At this time I would recommend revisiting the implementation and procedures used to complete this task as to allow it to suspend and remember the last known task in a more procedurally correct order. My studies are more around LISP and not LUA or what have you. So I will be more pseudo for this example.
Currently the code implements a problem where the last object held by the worker is lost to the world as unclaimed items and drops them where they last stood. In this we find objects in unintended and often unrecoverable locations. Such as on the middle of ladders, on roof tops and even inside other objects.
Would that the code require the hearthling to place the object into a temporary pocket/inventory and then retrieve the object after they have finished eating it may alleviate much of the issues currently arising in the current builds.
Other solutions could be dropping the object to a special temporary work zone style resource table that is created at the beginning of the feeding process and destroyed as the individual hearthlings return and collect their objects, final destruction being the last hearthling to pick up the last object; then the table would be removed.
Further, the AI could implement a more structured object management approach and allow for object tagging. In this any object could receive a tag say called [hearthlingName]_constructionResource and then the hearthling would be tasked to recover the object with their tag on it after finishing their mealtime.
I thank you all for your time and consideration of these matters at hand and I look forward to your feedback. I also want to thank everyone working on this project as it has been a resource of inspiration for my children to learn programming and game design. It is a wonderful game and I hope to see it mature and be shared with the wider world.
Respectfully
Illian Amerond