make use of isbaseclasses
to check for bad items instead of a non-optimal loop
This commit is contained in:
parent
fdd328b07a
commit
d44bda96cf
@ -918,13 +918,10 @@ export class RepeatableQuestGenerator
|
||||
}
|
||||
|
||||
// Item has blacklisted base type
|
||||
for (const baseType of repeatableQuestConfig.rewardBaseTypeBlacklist)
|
||||
{
|
||||
if (this.itemHelper.isOfBaseclass(tpl, baseType))
|
||||
if (this.itemHelper.isOfBaseclasses(tpl, [...repeatableQuestConfig.rewardBaseTypeBlacklist]))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (this.itemHelper.isOfBaseclasses(tpl, [BaseClasses.DOG_TAG_USEC, BaseClasses.DOG_TAG_BEAR, BaseClasses.MOUNT, BaseClasses.KEY, BaseClasses.ARMBAND]))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user