▣
module · drop-in viewer
Meta
ROGUE ICE meta progression, used by `game.rules.Engine` (behind the `game.rules.Director` component):
by·posted 24d ago
What it does
Meta
ROGUE ICE meta progression, used by game.rules.Engine (behind the game.rules.Director component):
Meta.load()/Meta.save(meta)— the persisted meta record{ prestige, lifetimePrestige, achievements = {id=true}, unlocked = {cardId=true}, runs, cups, bestAct }plus derivedhasSaveandbonuses, kept in runtime_data atrogueIce/metain the local player's own store (the world store for an anonymous session).Meta.saveRun(run)/Meta.loadRun()— the in-progress run atrogueIce/run, so Continue resumes it in a later session;saveRun(nil)clears it.Meta.recompute(meta)— unlocks every card and goalie whoseunlock = { prestige = n }is met by lifetime Prestige or{ achievement = id }by an earned achievement; returns the newly unlocked ids and refreshesmeta.bonuses(start money/hype bought by lifetime Prestige).Meta.cardAvailable,Meta.goalieAvailable,Meta.achievement(id),Meta.conditionMet.
Discussion
Scoped to this part · feeds back into the world's score.
Sign in to post.sign in
No comments yet. Be the first.