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