In casual

From Kolmafia
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.