Difference between revisions of "Eatsilent"

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
(Created page with '{{ #vardefine:name|eatsilent}}{{ #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 "eat" works similarly.|
 
cli_equiv=The CLI command "eat" works similarly.|
 
}}
 
}}
 +
 +
[[Category:Item Management]]

Revision as of 22:05, 21 May 2010

needs(code_samples);

Function Syntax

boolean eatsilent(int qty ,item consume )

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

Will attempt to eat qty amount of item consume. Returns true for food items and false for items that are not. (The return value does not reflect whether or not the items were actually consumed.) Using this function, rather than eat(), will suppress the warning dialogs that may otherwise appear, such as for eating without Got Milk.

CLI Equivalent

The CLI command "eat" works similarly.

See Also

can_eat() | eat() | fullness_limit() | my_fullness()