From d4368db35bb34430660612a52c5c48f42c2d7631763a820a1adb891bcec40046 Mon Sep 17 00:00:00 2001 From: aslan Date: Wed, 21 Jan 2026 14:55:22 -0500 Subject: [PATCH] Inventory item info --- src/modules/game/game.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/game/game.ts b/src/modules/game/game.ts index f738e5b..fdd7703 100644 --- a/src/modules/game/game.ts +++ b/src/modules/game/game.ts @@ -98,7 +98,7 @@ const onStatus = (_text: string, roomId: string, sender: string) => { const onInventory = (text: string, roomId: string, sender: string) => { const player = getPlayerById(sender); - const itemIndex = text.replace(`${gamePrefix} location `, "").trim(); + const itemIndex = text.replace(`${gamePrefix} inventory `, "").trim(); const itemIndexInt = Number(itemIndex); if (!isNaN(itemIndexInt)) { const item = player.inventory.items[itemIndexInt];