mirror of
https://github.com/Such-Software/wownerogue.git
synced 2026-12-04 12:54:08 +01:00
feat(catalog): graduated cosmetic ladder + per-session test-unlock
Step 1 — real tiered unlocks (was flat: any credit unlocked skins+iso+3D):
- entitlements DEFAULT_CATALOG + migration 025 graduate the ladder — unlock by
lifetime credit spend OR subscription tier, whichever first:
Fancy (generated-skins) 1 credit / supporter (tier 1)
Iso (iso-dungeon) 10 credits / premium (tier 2)
3D (kenney-3d-characters) 25 credits / operator (tier 3)
- Migration 025 UPDATEs the already-seeded 024 rows (idempotent).
- Tests updated to assert the ladder (1cr -> Fancy only; 10 -> +Iso; 25 -> all).
Step 2 — test the premium modes without paying:
- renderModes: ?unlock=1 (sticky via localStorage) flips RENDER_MODE_TEST_UNLOCKS
for THAT browser only, so Fancy/Iso/3D are all clickable; ?unlock=0 turns it off.
Suite 57 suites / 414 tests green.
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
-- 025: graduate the cosmetic ladder.
|
||||
--
|
||||
-- Migration 024 seeded every premium pack at tier 1 / unlock_min_credits 1, so buying ANY credit
|
||||
-- unlocked skins + iso + 3D at once (flat, not tiered). Turn it into a real ladder — unlock by
|
||||
-- lifetime credit spend OR by subscription tier, whichever comes first:
|
||||
-- Fancy (generated-skins) 1 credit / supporter (tier 1)
|
||||
-- Iso (iso-dungeon) 10 credits / premium (tier 2)
|
||||
-- 3D (kenney-3d-characters) 25 credits / operator (tier 3)
|
||||
-- Idempotent (plain UPDATEs); the free roguelike-interior pack is untouched.
|
||||
|
||||
UPDATE cosmetic_catalog SET tier = 1, unlock_min_credits = 1 WHERE pack_id = 'generated-skins';
|
||||
UPDATE cosmetic_catalog SET tier = 2, unlock_min_credits = 10 WHERE pack_id = 'iso-dungeon';
|
||||
UPDATE cosmetic_catalog SET tier = 3, unlock_min_credits = 25 WHERE pack_id = 'kenney-3d-characters';
|
||||
Reference in New Issue
Block a user