feedback7: the co-op browser test counts an empty new shop slot as a chess slot (§27.52 — the slot a 调度中心 upgrade opens stays empty and shows an empty card until the next roll); found by the 0.2.2 full pass

This commit is contained in:
sganggs committed 2026-10-09 00:07:17 +08:00
1 parent ab7379e789
commit e5e3f05bb2
1 file changed
+3 -1
+3 -1
View File
@@ -56,7 +56,9 @@ async function checkHud(c, where) {
const s = globalThis.__SP__.store.get(); const s = globalThis.__SP__.store.get();
const pub = s.match.public; const priv = s.match.private; const pub = s.match.public; const priv = s.match.private;
const txt = (sel) => document.querySelector(sel)?.textContent?.trim() ?? null; const txt = (sel) => document.querySelector(sel)?.textContent?.trim() ?? null;
const shopChess = (priv?.shop?.slots || []).filter((x) => x && x.kind !== 'item').length; // a chess slot is any slot but the item's: a slot a 调度中心 upgrade opened stays null until the next roll and shows an
// empty card (DESIGN §27.52, ui/shopBar.js chessSlots)
const shopChess = (priv?.shop?.slots || []).filter((x) => !x || x.kind !== 'item').length;
return { return {
phase: pub?.phase, round: pub?.round, lastRound: pub?.lastRound, players: (pub?.players || []).length, phase: pub?.phase, round: pub?.round, lastRound: pub?.lastRound, players: (pub?.players || []).length,
lp: priv?.lp, teamLp: pub?.teamLp, funds: priv?.funds, cap: priv?.deployCap, count: priv?.deployCount, lp: priv?.lp, teamLp: pub?.teamLp, funds: priv?.funds, cap: priv?.deployCap, count: priv?.deployCount,