Difference between revisions of "Have chef"
Jump to navigation
Jump to search
imported>StDoodle |
imported>Bale m |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
− | {{#vardefine:name|have_chef}} | + | {{ |
− | {{#vardefine:return_type|boolean}} | + | #vardefine:name|have_chef}}{{ |
+ | #vardefine:return_type|boolean}}{{ | ||
− | + | FunctionPage| | |
name={{#var:name}}| | name={{#var:name}}| | ||
− | |||
function1={{Function| | function1={{Function| | ||
Line 29: | Line 29: | ||
see_also={{SeeAlso|have_bartender|print}}| | see_also={{SeeAlso|have_bartender|print}}| | ||
}} | }} | ||
+ | |||
+ | [[Category:Item Management]] |
Latest revision as of 21:44, 21 May 2010
Function Syntax
boolean have_chef()
Returns true if you have a chef (regular or clockwork) installed at your campground, and false if not.
Code Sample
This example tells you if it's turn-safe to cook.
if (have_chef()) {
print("It's safe to do a little cooking." , "blue");
} else {
print("Warning, cooking will consume turns!" , "red");
}