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
View File
@@ -721,6 +721,9 @@ export class PlayerState {
const rec = this.gd.item(itemId);
if (!rec) return null;
let piece = this.newPiece('item', itemId);
// A prep-end grant may sit beside an identical copy until the next prep. The invariant counts only copies
// without this mark, so the fight that is about to start is not reported as a missed merge.
if (deferMerge) piece.deferMerge = true;
if (!deferMerge && this.completesItemMerge(itemId)) {
piece = this._mergeItem(itemId, piece);
if (!piece) return null;