Eat: Difference between revisions
Jump to navigation
Jump to search
imported>StDoodle |
imported>StDoodle No edit summary |
||
Line 1: | Line 1: | ||
{{#vardefine:name|eat}} | |||
{{#vardefine:return_type|boolean}} | |||
{{FunctionPage| | |||
name={{#var:name}}| | |||
function_category=Item Management| | |||
function1={{Function| | |||
name={{#var:name}}| | |||
aggregate={{#var:aggregate}}| | |||
return_type={{#var:return_type}}| | |||
return_also={{#var:return_also}}| | |||
parameter1={{Param|int|qty}}| | |||
parameter2={{Param|item|consume}}| | |||
p1desc={{Pspan|qty}} is the quantity to eat| | |||
p2desc={{Pspan|consume}} is the item to eat| | |||
}}| | |||
function_description=Will attempt to eat {{pspan|qty}} amount of item {{pspan|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.)| | |||
needscode=yes| | |||
see_also={{SeeAlso|can_eat|fullness_limit|my_fullness}}| | |||
cli_equiv=The CLI command "eat" works similarly.| | |||
}} | |||
Revision as of 18:33, 5 March 2010
needs(code_samples);
Function Syntax
boolean eat(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.)
CLI Equivalent
The CLI command "eat" works similarly.
See Also