Difference between revisions of "Overdrink"

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
(Created page with '{{ #vardefine:name|overdrink}}{{ #vardefine:return_type|boolean}}{{ FunctionPage| name={{#var:name}}| function_category=Item Management| function1={{Function| name={{#var:name}…')
 
imported>Bale
m
Line 5: Line 5:
 
FunctionPage|
 
FunctionPage|
 
name={{#var:name}}|
 
name={{#var:name}}|
function_category=Item Management|
 
  
 
function1={{Function|
 
function1={{Function|
Line 25: Line 24:
 
cli_equiv=The CLI command "drink" works similarly.|
 
cli_equiv=The CLI command "drink" works similarly.|
 
}}
 
}}
 +
 +
[[Category:Item Management]]

Revision as of 22:06, 21 May 2010

needs(code_samples);

Function Syntax

boolean overdrink(int qty ,item consume )

  • qty is the quantity to drink
  • consume is the item to drink

Will attempt to drink qty amount of item consume. Returns true for drinkable items and false for items that are not. (The return value does not reflect whether or not the items were actually consumed.) Using this command, rather than drink(), suppresses warning dialogs for overdrinking and drinking without Ode to Booze.

CLI Equivalent

The CLI command "drink" works similarly.

See Also

can_drink() | drink() | inebriety_limit() | my_inebriety()