Skip to content

Commit

Permalink
fixed mutation loot filter
Browse files Browse the repository at this point in the history
  • Loading branch information
giniedp committed Jun 2, 2022
1 parent 03c13e9 commit 325cfb3
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions apps/web/app/pages/dungeons/dungeons.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const MAP_DUNGEON_TO_MAP: Record<string, string> = {
DungeonShatterMtn00: 'https://mapgenie.io/new-world/maps/tempests-heart?embed=light&popup=false',
}

const MUTATION_LOOT_TAGS = [
const MUTATION_DIFFICULTY_LOOT_TAGS = [
'MutDiff',
'MutDiff1',
'MutDiff2',
Expand All @@ -70,7 +70,11 @@ const MUTATION_LOOT_TAGS = [
'MutDiff7',
'MutDiff8',
'MutDiff9',
'MutDiff10',
'MutDiff10'
]

const MUTATION_LOOT_TAGS = [
...MUTATION_DIFFICULTY_LOOT_TAGS,
'Restless01_Mut',
'Ebonscale00_Mut'
]
Expand Down Expand Up @@ -153,7 +157,7 @@ export class DungeonsService {
.pipe(map(({ bossTags, lootTags }) => uniq([...bossTags, ...lootTags])))
.pipe(
switchMap((tags) => {
return this.nw.lootbuckets.all().filter(tags).items()
return this.nw.lootbuckets.all().filter(tags).exclude(MUTATION_DIFFICULTY_LOOT_TAGS).items()
})
)
}
Expand Down

0 comments on commit 325cfb3

Please sign in to comment.