feedback3: a prep-end item may sit unmerged through the fight, and bonds.json matches the offline build

This commit is contained in:
sganggs committed 2026-10-04 22:20:20 +08:00
1 parent 351ead3603
commit 9f3785636a
3 files changed
+7 -2

No files matched your search

+3 -1
View File
@@ -72,7 +72,9 @@ export function collectViolations(m, { limit = 25 } = {}) {
const boardChessUids = new Set();
for (const p of ps.board.values()) if (p.kind === 'chess') boardChessUids.add(p.uid);
const itemCounts = new Map();
const countItem = (it) => itemCounts.set(it.id, (itemCounts.get(it.id) || 0) + 1);
// A copy gained as the previous prep ended (PlayerState.acquireItem deferMerge) waits until the next prep.
// It does not count toward "merges are immediate" until that prep's checkItemMerges consumes it.
const countItem = (it) => { if (it.deferMerge) return; itemCounts.set(it.id, (itemCounts.get(it.id) || 0) + 1); };
for (const p of all) {
note(ps, p);
if (p.kind === 'chess') {