fix: omit nightwave challenges for versions before 38.0.8 #1969
@ -763,6 +763,8 @@ export const getWorldState = (buildLabel?: string): IWorldState => {
|
||||
}
|
||||
|
||||
// Nightwave Challenges
|
||||
// Current nightwave season was introduced in 38.0.8 so omitting challenges before that to avoid UI bugs and even crashes on really old versions.
|
||||
if (!buildLabel || version_compare(buildLabel, "2025.02.05.11.19") >= 0) {
|
||||
worldState.SeasonInfo.ActiveChallenges.push(getSeasonDailyChallenge(day - 2));
|
||||
worldState.SeasonInfo.ActiveChallenges.push(getSeasonDailyChallenge(day - 1));
|
||||
worldState.SeasonInfo.ActiveChallenges.push(getSeasonDailyChallenge(day - 0));
|
||||
@ -773,6 +775,7 @@ export const getWorldState = (buildLabel?: string): IWorldState => {
|
||||
if (isBeforeNextExpectedWorldStateRefresh(weekEnd)) {
|
||||
pushWeeklyActs(worldState, week + 1);
|
||||
}
|
||||
}
|
||||
|
||||
// Elite Sanctuary Onslaught cycling every week
|
||||
worldState.NodeOverrides.find(x => x.Node == "SolNode802")!.Seed = new CRng(week).randomInt(0, 0xffff);
|
||||
|
Loading…
x
Reference in New Issue
Block a user