Improve readability of valid item check
This commit is contained in:
parent
5c52e13064
commit
62f51be3aa
@ -70,7 +70,7 @@ export class ItemHelper
|
|||||||
// Is item valid
|
// Is item valid
|
||||||
return !itemDetails[1]._props.QuestItem
|
return !itemDetails[1]._props.QuestItem
|
||||||
&& itemDetails[1]._type === "Item"
|
&& itemDetails[1]._type === "Item"
|
||||||
&& invalidBaseTypes.every((x) => !this.isOfBaseclass(tpl, x))
|
&& !this.isOfBaseclasses(tpl, invalidBaseTypes)
|
||||||
&& this.getItemPrice(tpl) > 0
|
&& this.getItemPrice(tpl) > 0
|
||||||
&& !this.itemFilterService.isItemBlacklisted(tpl);
|
&& !this.itemFilterService.isItemBlacklisted(tpl);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user