Difference between revisions of "Can drink"

From Kolmafia
Jump to navigation Jump to search
imported>Efilnikufecin
(No difference)

Revision as of 13:46, 26 June 2007

boolean can_drink()

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

An example:

if(can_drink()) 
  {
  drink(3,$item[bottle of gin]);
  }