feat(monetization): lock the cosmetic ladder (loyalty model) + free Original pack

Nails down the premium unlock system per the design pass:
- FREE `original` topdown pack (NEW): the game's bare tiles — floor/wall/door/
  torch/features only, no furniture, so the free tavern reads plain (the intended
  "reason to unlock"). Registered in assetPacks (RK.THEMES.original) as the free
  default topdown pack; plain ASCII stays free (accessibility).
- Loyalty ladder (lifetime credits PURCHASED, cumulative, NOT deducted → buying to
  play also unlocks cosmetics): Interior 1, skins 5, iso 10, +tilepack 20, +iso 40,
  3D 50. Each row is data (tilepack OR skin) → operator appends more at any rung.
  DEFAULT_CATALOG (entitlements.js) + migration 028 + MONETIZATION.md ladder table.
- Tests updated to the new thresholds (catalogEntitlements_ultra, directEntryCredit_ultra).

Note: this reprices roguelike-interior from free → 1cr, so once deployed the free
tavern becomes bare (by design). Deploy is bundled with the single-player render-kit
migration so the free-tier change lands with its payoff. Suite 61/432 green.
This commit is contained in:
jwinterm
2026-07-12 09:52:13 -04:00
parent d8abe89cb7
commit 42ed51af69
6 changed files with 101 additions and 23 deletions
+4 -3
View File
@@ -47,9 +47,10 @@ describe('recordDirectEntryPurchase', () => {
expect(insert[0]).toMatch(/'direct_entry'/); // audits the purchase leg
expect(insert[0]).toMatch(/'game_entry'/); // audits the spend leg
// A direct entry = 1 credit, which unlocks Fancy (generated-skins, threshold 1) but not the
// pricier Iso (10) / 3D (25) tiers.
expect(rec.entitlements.packs['generated-skins']).toBe(true);
// A direct entry = 1 credit, which unlocks the first tilepack (roguelike-interior, threshold
// 1) but not skins (5) / Iso (10) / 3D (50).
expect(rec.entitlements.packs['roguelike-interior']).toBe(true);
expect(rec.entitlements.packs['generated-skins']).toBe(false);
expect(rec.entitlements.packs['iso-dungeon']).toBe(false);
expect(rec.entitlements.premium).toBe(true);
// ...but a direct buyer is still NOT a premium tier.