In casual

From Kolmafia
Revision as of 18:41, 23 June 2022 by Malibu Stacey (talk | contribs) (Create page, used in_hardcore() as a template)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Function Syntax

boolean in_casual()

This function returns true if the logged-in character is currently in a Casual ascension. In any other path (including Unrestricted) this function returns false.

Code Samples

The following example attempts to buy items from the mall if the character is in a Casual ascension

if(in_casual() && available_amount($item[smut orc keepsake box]) < 1) {
   buy(1 , $item[smut orc keepsake box]);
}

See Also

can_interact() | in_hardcore()

Special

When not logged in, this function returns false.