Skip to content

Commit

Permalink
feat(sniper): give L20 sniper when progression is disabled
Browse files Browse the repository at this point in the history
Closes #457
  • Loading branch information
AnthonyFuller committed Jan 4, 2025
1 parent a9230a8 commit 319ee28
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions components/menus/sniper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import type {
import { getSubLocationByName } from "../contracts/dataGen"
import { InventoryItem } from "../inventory"
import assert from "assert"
import { getFlag } from "../flags"

export type SniperCharacter = {
Id: string
Expand Down Expand Up @@ -117,8 +118,11 @@ export function createSniperLoadouts(
const curUnlockable =
masteryData.CompletionData.Level === 1
? masteryData.Unlockable
: masteryData.Drops[masteryData.CompletionData.Level - 2]
.Unlockable
: masteryData.Drops[
(getFlag("enableMasteryProgression")
? masteryData.CompletionData.Level
: 20) - 2
].Unlockable

assert.ok(curUnlockable, "Unlockable not found")
assert.ok(
Expand Down

0 comments on commit 319ee28

Please sign in to comment.