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.