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