Have bartender

From Kolmafia
Revision as of 21:45, 21 May 2010 by imported>Bale
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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()