warframe-worldstate-parser 4.4.0 → 4.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/WorldState.js +14 -2
- package/package.json +1 -1
- package/types/lib/WorldState.d.ts +5 -0
package/lib/WorldState.js
CHANGED
|
@@ -368,14 +368,26 @@ export class WorldState {
|
|
|
368
368
|
|
|
369
369
|
this.kinepage = new Kinepage(tmp.pgr, deps.locale);
|
|
370
370
|
|
|
371
|
-
|
|
371
|
+
const lqo = Object.keys(tmp).find((k) => k.startsWith('lqo'));
|
|
372
|
+
if (lqo) {
|
|
372
373
|
const { activation, expiry } = this.nightwave.activeChallenges.filter((c) => !c.isDaily)[0];
|
|
373
374
|
|
|
374
375
|
/**
|
|
375
376
|
* The current Deep Archimedea missions and modifiers
|
|
376
377
|
* @type {DeepArchimedea}
|
|
377
378
|
*/
|
|
378
|
-
this.deepArchimedea = new DeepArchimedea(activation, expiry, tmp
|
|
379
|
+
this.deepArchimedea = new DeepArchimedea(activation, expiry, tmp[lqo]);
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
const hqo = Object.keys(tmp).find((k) => k.startsWith('hqo'));
|
|
383
|
+
if (hqo) {
|
|
384
|
+
const { activation, expiry } = this.nightwave.activeChallenges.filter((c) => !c.isDaily)[0];
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* The current Temporal Archimedea missions and modifiers
|
|
388
|
+
* @type {DeepArchimedea}
|
|
389
|
+
*/
|
|
390
|
+
this.temporalArchimedea = new DeepArchimedea(activation, expiry, tmp[hqo]);
|
|
379
391
|
}
|
|
380
392
|
|
|
381
393
|
this.calendar = parseArray(Calendar, data.KnownCalendarSeasons, deps);
|
package/package.json
CHANGED
|
@@ -154,6 +154,11 @@ export class WorldState {
|
|
|
154
154
|
* @type {DeepArchimedea}
|
|
155
155
|
*/
|
|
156
156
|
deepArchimedea: DeepArchimedea;
|
|
157
|
+
/**
|
|
158
|
+
* The current Temporal Archimedea missions and modifiers
|
|
159
|
+
* @type {DeepArchimedea}
|
|
160
|
+
*/
|
|
161
|
+
temporalArchimedea: DeepArchimedea;
|
|
157
162
|
calendar: WorldstateObject[];
|
|
158
163
|
}
|
|
159
164
|
declare function _default(json: any, deps: any): Promise<WorldState>;
|