Roguelike Fairness Architecture: Controlled 3-Slot RNG, Anti-SL Hashing & Zero-Creep Meta Unlocks
How to stop save-scumming without punishing misclicks, prevent infinite tiny decks with escalating shop sinks, and keep roguelike progression crisp with 3-layer zero-stat-creep unlocks.
Great roguelike deckbuilders (Slay the Spire, Balatro, and our live martial roguelike Zhaoshi Wulin) rely on invisible mathematical rails that keep randomness fair, dramatic, and exploit-proof.
You can play each of these 4 systems live right in your browser, or install our unified zero-dependency commercial kit: Roguelike Core Systems Kit v1.0.0.
1. Anti-SL Without Cruelty: Lock Outcomes, Not Mistakes
If players can Alt+F4 to reroll a gambling event until they win, the optimal strategy becomes tedious save-scumming. Yet deleting mid-combat retries punishes honest UI misclicks.
The clean architectural seam is deterministic node hashing (FNV-1a + Mulberry32):
// Reloading 100 times always yields the exact same gamble/shop roll:
const rng = deriveNodeRng(runSeed, nodeId, 'gamble');
// Meanwhile, tactical combat retries remain free and unpunished!
Play this black-box test live in EP20 · Deterministic Anti-SL Seed Lab.
2. Controlled 3-Slot Reward Dealing & Rare Pity
Pure uniform random card rewards bury archetypes and show frustrating duplicates. Assign distinct structural roles to your 3 slots:
- Slot 1 (Synergy): Ramps build-tag weight (
1 -> 3 -> 5 -> 7, capped at7) as the player drafts deeper into an archetype. - Slot 2 (Wild): Non-rare discovery slot keeping build pivots alive.
- Slot 3 (Rare Pity + Elite Floor): Starts at
10%, ramps+5%per consecutive miss up to60%, resets on hit, and never drops Commons in Elite battles.
Test 500 deals instantly in EP18 · Controlled RNG Lab.
3. Escalating Shop Purge Sink (15 -> 20 -> 25 vs MIN_DECK = 5)
Fixed-price card removal turns Act 2 into trivial 3-card infinite loops. Scale removal prices monotonically (15 -> 20 -> 25 -> 30) so removing the 2nd and 3rd card competes directly with buying a 20-gold Rare Relic, and enforce MIN_DECK = 5. Verify how UR draw probability climbs cleanly (13% -> 44%+) without breaking the economy in EP19 · Escalating Shop Sink Lab.
4. Three-Layer Meta Unlocks Without +10% ATK Stat Creep
Passive permanent stat inflation forces early runs to be artificially unwinnable. Split your 70-item pool into 40 core starter items + 30 unlockables, drive unlocks via a dual XP-floor + skill-milestone track, and award a ×3.5 spotlight weight boost for 2 runs whenever a player unlocks a new card so they actually see and play their new toy right away. Try it live in EP21 · Meta-Unlock Engine Lab.
- Ready to ship all 4 modules together? Check Roguelike Core Systems Kit v1.0.0.