CleverRaven/Cataclysm-DDA — pull request #3399 by Gatleos (2013-10-02 07:18:34+00:00)
Title: Adds autoeat command [WIP]

This is still very much a work in progress. So far I have a function that cycles through all items in the player's inventory, as well as within a 1 square radius around them. It finds all comestibles, determines if they're safe to eat, then eats until the player is full/slaked.

I still have to work out some bugs and figure out a good place to store the command, but I was thinking of separating the command into two: autoeat and autodrink. Pressing 1 or 2 on the eat screen would activate them. There should also probably be an additional delay when eating items from the map, like the time it takes to pick them up.