fix: ensure nightwave daily challenges are unique #2422
@ -159,7 +159,7 @@ export class SRng {
|
||||
}
|
||||
}
|
||||
|
||||
export const sequentallyUniqueRandomElement = <T>(
|
||||
export const sequentiallyUniqueRandomElement = <T>(
|
||||
deck: readonly T[],
|
||||
idx: number,
|
||||
lookbehind: number,
|
||||
|
@ -9,7 +9,7 @@ import darvoDeals from "@/static/fixed_responses/worldState/darvoDeals.json";
|
||||
import { buildConfig } from "@/src/services/buildConfigService";
|
||||
import { unixTimesInMs } from "@/src/constants/timeConstants";
|
||||
import { config } from "@/src/services/configService";
|
||||
import { getRandomElement, getRandomInt, sequentallyUniqueRandomElement, SRng } from "@/src/services/rngService";
|
||||
import { getRandomElement, getRandomInt, sequentiallyUniqueRandomElement, SRng } from "@/src/services/rngService";
|
||||
import { eMissionType, ExportRegions, ExportSyndicates, IRegion } from "warframe-public-export-plus";
|
||||
import {
|
||||
ICalendarDay,
|
||||
@ -390,7 +390,7 @@ const getSeasonDailyChallenge = (pools: IRotatingSeasonChallengePools, day: numb
|
||||
Daily: true,
|
||||
Activation: { $date: { $numberLong: dayStart.toString() } },
|
||||
Expiry: { $date: { $numberLong: dayEnd.toString() } },
|
||||
Challenge: sequentallyUniqueRandomElement(pools.daily, day, 2, 605732938)!
|
||||
Challenge: sequentiallyUniqueRandomElement(pools.daily, day, 2, 605732938)!
|
||||
};
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user