Improve readability of valid item check

This commit is contained in:
Dev 2024-02-06 12:18:41 +00:00
parent 5c52e13064
commit 62f51be3aa

View File

@ -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);
}