omit PVPChallengeInstances from worldState
This commit is contained in:
parent
1ea7a5f059
commit
732fba955b
@ -742,6 +742,10 @@ export const getWorldState = (buildLabel?: string): IWorldState => {
|
|||||||
// Omit void fissures for versions prior to Dante Unbound to avoid script errors.
|
// Omit void fissures for versions prior to Dante Unbound to avoid script errors.
|
||||||
if (buildLabel && version_compare(buildLabel, "2024.03.24.20.00") < 0) {
|
if (buildLabel && version_compare(buildLabel, "2024.03.24.20.00") < 0) {
|
||||||
worldState.ActiveMissions = [];
|
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) {
|
if (config.worldState?.starDays) {
|
||||||
|
@ -12,6 +12,7 @@ export interface IWorldState {
|
|||||||
GlobalUpgrades: IGlobalUpgrade[];
|
GlobalUpgrades: IGlobalUpgrade[];
|
||||||
ActiveMissions: IFissure[];
|
ActiveMissions: IFissure[];
|
||||||
NodeOverrides: INodeOverride[];
|
NodeOverrides: INodeOverride[];
|
||||||
|
PVPChallengeInstances: IPVPChallengeInstance[];
|
||||||
EndlessXpChoices: IEndlessXpChoice[];
|
EndlessXpChoices: IEndlessXpChoice[];
|
||||||
SeasonInfo: {
|
SeasonInfo: {
|
||||||
Activation: IMongoDate;
|
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 {
|
export interface IEndlessXpChoice {
|
||||||
Category: string;
|
Category: string;
|
||||||
Choices: string[];
|
Choices: string[];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user