Skip to main content

Module tasks

Module tasks 

Source
Expand description

Task definitions and claim logic. Single source of truth for tiers and rewards.

Constants§

DINE_TIERS
(threshold, reward). Single tier: 1 dine = 1 ticket. UI shows dine_count/1 (e.g. 20/1).
FORGE_TIERS
(level, reward). Sorted by level ascending. Lv.2–7 → 1, 2, 5, 10, 15, 20 tickets.
RECRUIT_TIERS
(threshold, reward). Sorted by threshold ascending. Up to 1000 recruits → 15 tickets.

Functions§

check_collection
Check collection task using cached counts. Mutates tasks.collection_claimed. Returns (completed, reward). collection_index = element×5+rarity (0–24).
collection_index
collection_index = element×5+rarity (0–24).
next_dine_claimable
Returns (threshold, reward) for the next claimable tier, or None.
next_forge_claimable
Returns (level, reward) for the next claimable tier, or None.
next_recruit_claimable
Returns (threshold, reward) for the next claimable tier, or None.