Can eat

From Kolmafia
Revision as of 14:09, 1 March 2010 by imported>Grotfang (moved Can eat() to Can eat)
Jump to navigation Jump to search

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.

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

When not logged in, this function returns true.