debug(v2): add console.log to trace pack item mapping
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
b68502989e
commit
87598e0952
3 changed files with 6 additions and 2 deletions
|
|
@ -246,6 +246,10 @@ export const InventoryWindow: React.FC<Props> = ({ id, charName, zIndex }) => {
|
|||
packItems.get(cid)!.push(item);
|
||||
}
|
||||
});
|
||||
// Debug: log pack mapping
|
||||
console.log('[INV DEBUG] containers:', containers.map((c: any) => ({ id: c.item_id, name: c.name })));
|
||||
console.log('[INV DEBUG] packItems keys:', [...packItems.keys()]);
|
||||
console.log('[INV DEBUG] packItems sizes:', [...packItems.entries()].map(([k, v]) => `${k}: ${v.length}`));
|
||||
return { equippedMap, containers, packItems };
|
||||
}, [items]);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue