From e02ecfba4b84f6c3314ce3c744a352879a3dcd56 Mon Sep 17 00:00:00 2001 From: "Jill \"oatmealine\" Monoids" Date: Wed, 22 Nov 2023 22:34:41 +0300 Subject: [PATCH] fix isDefaultItem check --- src/lib/rpg/items.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/rpg/items.ts b/src/lib/rpg/items.ts index fa0876e..06b200b 100644 --- a/src/lib/rpg/items.ts +++ b/src/lib/rpg/items.ts @@ -368,7 +368,7 @@ export function getMaxStack(item: Item) { } export function isDefaultItem(item: Item): item is DefaultItem { - return (item as DefaultItem).behaviors !== undefined; // ough + return item.id < 0; } export function formatItem(item: Item | undefined, disableBold = false) {