omit PVPChallengeInstances from worldState
All checks were successful
Build / build (push) Successful in 1m9s
Build / build (pull_request) Successful in 1m3s

This commit is contained in:
Sainan 2025-05-05 14:16:29 +02:00
parent 1ea7a5f059
commit 732fba955b
2 changed files with 20 additions and 0 deletions

View File

@ -742,6 +742,10 @@ export const getWorldState = (buildLabel?: string): IWorldState => {
// Omit void fissures for versions prior to Dante Unbound to avoid script errors.
if (buildLabel && version_compare(buildLabel, "2024.03.24.20.00") < 0) {
worldState.ActiveMissions = [];
if (version_compare(buildLabel, "2017.10.12.17.04") < 0) {
// Old versions seem to really get hung up on not being able to load these.
worldState.PVPChallengeInstances = [];
}
}
if (config.worldState?.starDays) {

View File

@ -12,6 +12,7 @@ export interface IWorldState {
GlobalUpgrades: IGlobalUpgrade[];
ActiveMissions: IFissure[];
NodeOverrides: INodeOverride[];
PVPChallengeInstances: IPVPChallengeInstance[];
EndlessXpChoices: IEndlessXpChoice[];
SeasonInfo: {
Activation: IMongoDate;
@ -130,6 +131,21 @@ export interface ILiteSortie {
}[];
}
export interface IPVPChallengeInstance {
_id: IOid;
challengeTypeRefID: string;
startDate: IMongoDate;
endDate: IMongoDate;
params: {
n: string; // "ScriptParamValue";
v: number;
}[];
isGenerated: boolean;
PVPMode: string;
subChallenges: IOid[];
Category: string; // "PVPChallengeTypeCategory_WEEKLY" | "PVPChallengeTypeCategory_WEEKLY_ROOT" | "PVPChallengeTypeCategory_DAILY";
}
export interface IEndlessXpChoice {
Category: string;
Choices: string[];