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);
|
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 };
|
return { equippedMap, containers, packItems };
|
||||||
}, [items]);
|
}, [items]);
|
||||||
|
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -5,7 +5,7 @@
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>Mosswart Overlord v2</title>
|
<title>Mosswart Overlord v2</title>
|
||||||
<link rel="icon" type="image/png" href="/icons/7735.png" />
|
<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">
|
<link rel="stylesheet" crossorigin href="/v2/assets/index-DrsM2PEe.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue