Show a full reserve count on the Sokko TCG menu icon and remaining openings while opening a pack

A gold count now sits on the Sokko TCG menu icon while the opening reserve is
full, so players notice it from any page. A light reserve route keeps it up to
date outside the game, and the game page updates it with every state it gets.
The opening stage also lists the remaining openings, apart for the automatic
recharge and for openings bought one at a time, since the sidebar reserve is
hidden there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Shinuwa 2026-11-07 23:16:47 +01:00
parent 2231bf05e1
commit 498e171bc3
14 changed files with 186 additions and 4 deletions

View file

@ -21,6 +21,10 @@ export async function loadCardsSession() {
return session;
}
export function loadCardsReserve() {
return request("/reserve");
}
export function loadCardsState() {
return request("/state");
}