Can eat

From Kolmafia
Revision as of 14:12, 1 March 2010 by imported>Grotfang
Jump to navigation Jump to search



Function Syntax

boolean can_eat()

This function returns true if the logged-in character is not subject to the dietary restrictions of a Boozetafarian or Oxygenarian path. If the character is subject to those restrictions this function returns false.

Code Samples

If the character is able to eat, this example will make them eat 3 hot hi meins.

if(can_eat()) {
   eat(3 , $item[hot hi mein]);
}

See Also

can_drink() | eat()

Special

When not logged in, this function returns true.