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:
Erik 2026-04-12 22:19:36 +02:00
parent b68502989e
commit 87598e0952
3 changed files with 6 additions and 2 deletions

View file

@ -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]);

File diff suppressed because one or more lines are too long

View file

@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Mosswart Overlord v2</title>
<link rel="icon" type="image/png" href="/icons/7735.png" />
<script type="module" crossorigin src="/v2/assets/index-BMxg7Nal.js"></script>
<script type="module" crossorigin src="/v2/assets/index-SyvbSo1H.js"></script>
<link rel="stylesheet" crossorigin href="/v2/assets/index-DrsM2PEe.css">
</head>
<body>