Can drink: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>Zarqon
m more links, consistent formatting
imported>Grotfang
(No difference)

Revision as of 14:12, 1 March 2010

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.

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

When not logged in, this function returns true.