Pulls remaining

From Kolmafia
Revision as of 16:20, 7 July 2011 by imported>That FN Ninja (pulls_remaining returns -1 if you can_interact())
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Function Syntax

int pulls_remaining()

Returns the number of pulls remaining for the day for characters in-Ronin, 0 if you are in hardcore, and -1 otherwise.

Code Sample

The following checks to see if you've forgotten to use up your daily pulls.

if (pulls_remaining() > 0) {
   print("You still have " + pulls_remaining() + " pulls you can make today.");
} else {
   print("You're all set on daily pulls.");
}

Special

Returns 0 when not logged in.