Have bartender: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
Created page with '{{#vardefine:name|have_bartender}} {{#vardefine:return_type|boolean}} {{FunctionPage| name={{#var:name}}| function_category=Item Management| function1={{Function| name={{#var:n…'
 
imported>StDoodle
No edit summary
Line 13: Line 13:
}}|
}}|


function_description=Returns '''[[true]]''' if you have a bartender (regular or clockwork) installed at your campground, and '''[[false]]''' if not.|
function_description=Returns true if you have a bartender (regular or clockwork) installed at your campground, and false if not.|


code1={{CodeSample|
code1={{CodeSample|

Revision as of 14:21, 1 March 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");
}

See Also

have_chef() | print()