int [item] food_fullness;
food_fullness[ $item[ grue egg omelette ]] = 4;
food_fullness[ $item[ hell ramen ]] = 6;
food_fullness[ $item[ hot wing ]] = 1;
# yadda yadda yadda
void all_you_can_eat()
{
boolean nearly_full = false;
foreach food in food_fullness
while ( !nearly_full && food_fullness[food] > 1 && item_amount( food ) > 0)
if ( !eat( 1, food ))
nearly_full = true;
foreach food in food_fullness
while ( food_fullness[food] == 1 && item_amount( food ) > 0)
if ( !eat( 1, food ))
return;
print( "You ran out of food and might not be full yet!" );
}