Is accessible

From Kolmafia
Revision as of 10:08, 20 July 2011 by imported>Bale (r9555)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Function Syntax

boolean is_accessible(coinmaster master )

  • master is the coinmaster to purchase from

Returns true if master is currently available.

Code Sample

Check if a coinmaster is available and if not, explains why.

boolean check(coinmaster master) {
   if(is_accessible(master))
      return true;
   print(master+ " is not accesible! "
      + inaccessible_reason(master));
   return false;
}

See Also

inaccessible_reason() | sells_item() | buys_item()