Can eat

From Kolmafia
Revision as of 13:42, 26 June 2007 by imported>Efilnikufecin
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.

An example:

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