From f9b08635740b2ef8b9ce1d80a6e65a616603be74 Mon Sep 17 00:00:00 2001 From: nesszerra <90105158+Finesssee@users.noreply.github.com> Date: Tue, 20 Oct 2026 13:53:41 +0700 Subject: [PATCH] Style dollars: channel point rewards buy looks, never pets (0.12.0) Channel point redemptions add to a separate profiles.style_dollars balance. The shop spends it first on hats, cosmetics and build slots and never on pets, the only stat purchase. !give/!pay and mod gifts touch dollars only, so channel points can't buy duel strength. !wallet, the fighter page, the shop result and the export show it; the public leaderboard strips it. Test site gets /api/devtools/:channel/style. --- CHANGELOG.md | 8 ++++ admin/index.html | 6 +-- changelog/index.html | 12 +++++- docs/CONTRACTS.md | 19 +++++---- docs/DEVTOOLS.md | 6 ++- docs/DUELS.md | 13 +++--- docs/STREAMER_SETUP.md | 16 ++++---- index.html | 1 + package.json | 2 +- scripts/devtools.ts | 9 +++++ server/channel.ts | 85 ++++++++++++++++++++++++++++++++++------ server/developer.ts | 1 + server/points.ts | 25 +++++++----- server/release.ts | 2 +- server/streamelements.ts | 7 ++-- server/worker.ts | 14 ++++++- src/admin.ts | 2 +- src/dashboard.ts | 30 ++++++++++++-- src/parse.ts | 9 +++-- tests/channel.test.ts | 77 ++++++++++++++++++++++++++++++++++++ tests/points.test.ts | 35 +++++++++++------ tests/ui.ts | 2 +- tests/worker.test.ts | 20 ++++++++++ 23 files changed, 325 insertions(+), 76 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3aee103..9fa853a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,14 @@ Rules (checked by `tests/changelog.test.ts`): and behind-the-scenes work. 0.1.0 to 0.7.1 were cut after the fact from git history. +## 0.12.0 - 2026-10-20 + +- Channel point redemptions add to a new `profiles.style_dollars` balance instead of `dollars` (server/points.ts). + `buy` in `server/channel.ts` spends style dollars first on hats, cosmetics and slots and never on pets; `give` and + `giftDollars` stay on `dollars`. `!wallet`, the profile, the shop result and the export carry it; the public + leaderboard strips it. +- Test site: `POST /api/devtools/:channel/style` and `scripts/devtools.ts style `. + ## 0.11.0 - 2026-10-20 - Channel point rewards section on the mod page's Stream setup tab (`renderPoints` in `src/admin.ts`): the diff --git a/admin/index.html b/admin/index.html index 76448ad..7ad08b2 100644 --- a/admin/index.html +++ b/admin/index.html @@ -292,8 +292,8 @@

Counters