From 62f51be3aa8427cea9f37c95489af3111fb2de17 Mon Sep 17 00:00:00 2001 From: Dev Date: Tue, 6 Feb 2024 12:18:41 +0000 Subject: [PATCH] Improve readability of valid item check --- project/src/helpers/ItemHelper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/src/helpers/ItemHelper.ts b/project/src/helpers/ItemHelper.ts index c3c06a6b..096bdf46 100644 --- a/project/src/helpers/ItemHelper.ts +++ b/project/src/helpers/ItemHelper.ts @@ -70,7 +70,7 @@ export class ItemHelper // Is item valid return !itemDetails[1]._props.QuestItem && itemDetails[1]._type === "Item" - && invalidBaseTypes.every((x) => !this.isOfBaseclass(tpl, x)) + && !this.isOfBaseclasses(tpl, invalidBaseTypes) && this.getItemPrice(tpl) > 0 && !this.itemFilterService.isItemBlacklisted(tpl); }