warframe-worldstate-parser 5.0.4 → 5.0.6
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/dist/{Alert-JQT9Y8z0.d.ts → Alert-qKxRSwBP.d.ts} +3 -3
- package/dist/{Archidemea-DOh4trTM.d.ts → Archidemea-BcCpGmoG.d.ts} +21 -6
- package/dist/{Archidemea-C0EMRUKc.js → Archidemea-ibzHTTNI.js} +21 -6
- package/dist/{CetusCycle-DIZdevob.js → CetusCycle-CTMPsmff.js} +1 -2
- package/dist/{ChallengeInstance-Bi2zg4q-.d.ts → ChallengeInstance-0EYq73Pa.d.ts} +1 -1
- package/dist/{ConclaveChallenge-JbcEcL4s.d.ts → ConclaveChallenge-DsrxV_YV.d.ts} +1 -1
- package/dist/{DailyDeal-Na-EaiFS.d.ts → DailyDeal-BhIF-YQ8.d.ts} +1 -1
- package/dist/{DarkSector-zkCUywz1.d.ts → DarkSector-ot944pCr.d.ts} +3 -3
- package/dist/{Dependency-DkOHLql6.d.ts → Dependency-B0SogTJw.d.ts} +4 -0
- package/dist/{Fissure-Bj61i8dc.d.ts → Fissure-BArZdZUd.d.ts} +1 -1
- package/dist/{FlashSale-PDG4uQq4.d.ts → FlashSale-CeiXLD1w.d.ts} +1 -1
- package/dist/{GlobalUpgrade-BRQXf3JM.d.ts → GlobalUpgrade-C7TMqeZA.d.ts} +1 -1
- package/dist/{Invasion-izHXvygb.d.ts → Invasion-MWCxGflk.d.ts} +3 -3
- package/dist/{Invasion-uloHTxoW.js → Invasion-id1tqiDq.js} +1 -2
- package/dist/{Mission-CWE16ouO.d.ts → Mission-C2XnJAf5.d.ts} +2 -2
- package/dist/{Reward-5VIpHu9A.d.ts → Reward-CCIfcF_s.d.ts} +1 -1
- package/dist/{SentientOutpost-DmlClvel.d.ts → SentientOutpost-DzAQU9UE.d.ts} +2 -2
- package/dist/{Simaris-Bc-jNhED.d.ts → Simaris-CWMNamfA.d.ts} +1 -1
- package/dist/{Sortie-DPv-7SQ-.d.ts → Sortie-DiJNLssz.d.ts} +3 -3
- package/dist/{SortieVariant-BFkYiBho.d.ts → SortieVariant-ByZY5-jt.d.ts} +1 -1
- package/dist/{SteelPathOffering-DyAzr3P9.js → SteelPathOffering-BTZR8wcv.js} +1 -3
- package/dist/{SyndicateJob-BK7OMLmv.js → SyndicateJob-DexLVMfe.js} +2 -4
- package/dist/{SyndicateJob-DOtXWjRF.d.ts → SyndicateJob-irX981dU.d.ts} +1 -1
- package/dist/{SyndicateMission-DmGG5lGy.d.ts → SyndicateMission-DBJwkRdm.d.ts} +2 -2
- package/dist/{SyndicateMission-5PZIEM8P.js → SyndicateMission-tO0E40dz.js} +1 -1
- package/dist/{Tmp-DkQq1arD.js → Tmp-CJSkjzXq.js} +1 -1
- package/dist/{VallisCycle-BX8yyKx3.js → VallisCycle-CXYPClXc.js} +1 -2
- package/dist/{VoidTrader-CihLWgSV.d.ts → VoidTrader-CYVxNiBQ.d.ts} +7 -5
- package/dist/{VoidTrader-CbLMfEVj.js → VoidTrader-D6zkctq1.js} +4 -3
- package/dist/{VoidTraderItem-CkYAKAEn.d.ts → VoidTraderItem-D01b6tH8.d.ts} +1 -1
- package/dist/{VoidTraderSchedule-DKDtu-9d.d.ts → VoidTraderSchedule-C2o7tk70.d.ts} +1 -1
- package/dist/{WeeklyChallenge-C6sc4j7i.d.ts → WeeklyChallenge-BhF9oQzN.d.ts} +1 -1
- package/dist/{WorldEvent-nis9w9cn.js → WorldEvent-C5KY74SD.js} +1 -1
- package/dist/{WorldEvent-BS9QHG_f.d.ts → WorldEvent-tlVPwS2U.d.ts} +3 -3
- package/dist/{WorldState-CXGqeqpS.d.ts → WorldState-D3ksiIhv.d.ts} +17 -17
- package/dist/{WorldState-BHxcC8Lb.js → WorldState-Dtt6FKgl.js} +13 -10
- package/dist/{ZarimanCycle-BJ84QUFg.js → ZarimanCycle-BnT2IiXU.js} +1 -2
- package/dist/lib/Tmp.d.ts +3 -3
- package/dist/lib/Tmp.js +2 -2
- package/dist/lib/WorldState.d.ts +25 -25
- package/dist/lib/WorldState.js +12 -12
- package/dist/lib/models/Alert.d.ts +4 -4
- package/dist/lib/models/Archidemea.d.ts +2 -2
- package/dist/lib/models/Archidemea.js +2 -2
- package/dist/lib/models/CetusCycle.js +1 -1
- package/dist/lib/models/ChallengeInstance.d.ts +2 -2
- package/dist/lib/models/ConclaveChallenge.d.ts +2 -2
- package/dist/lib/models/DailyDeal.d.ts +2 -2
- package/dist/lib/models/DarkSector.d.ts +5 -5
- package/dist/lib/models/Fissure.d.ts +2 -2
- package/dist/lib/models/FlashSale.d.ts +2 -2
- package/dist/lib/models/GlobalUpgrade.d.ts +2 -2
- package/dist/lib/models/Invasion.d.ts +4 -4
- package/dist/lib/models/Invasion.js +1 -1
- package/dist/lib/models/Kuva.d.ts +1 -1
- package/dist/lib/models/Mission.d.ts +3 -3
- package/dist/lib/models/Reward.d.ts +2 -2
- package/dist/lib/models/SentientOutpost.d.ts +3 -3
- package/dist/lib/models/Simaris.d.ts +2 -2
- package/dist/lib/models/Sortie.d.ts +5 -5
- package/dist/lib/models/SortieVariant.d.ts +2 -2
- package/dist/lib/models/SteelPathOffering.js +1 -1
- package/dist/lib/models/SyndicateJob.d.ts +2 -2
- package/dist/lib/models/SyndicateJob.js +1 -1
- package/dist/lib/models/SyndicateMission.d.ts +3 -3
- package/dist/lib/models/SyndicateMission.js +2 -2
- package/dist/lib/models/VallisCycle.js +1 -1
- package/dist/lib/models/VoidTrader.d.ts +4 -4
- package/dist/lib/models/VoidTrader.js +1 -1
- package/dist/lib/models/VoidTraderItem.d.ts +2 -2
- package/dist/lib/models/VoidTraderSchedule.d.ts +2 -2
- package/dist/lib/models/WeeklyChallenge.d.ts +3 -3
- package/dist/lib/models/WorldEvent.d.ts +4 -4
- package/dist/lib/models/WorldEvent.js +2 -2
- package/dist/lib/models/ZarimanCycle.js +1 -1
- package/dist/lib/supporting/Dependency.d.ts +1 -1
- package/dist/main.d.ts +25 -25
- package/dist/main.js +12 -12
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Dependency } from "./Dependency-
|
|
2
|
-
import { Reward } from "./Reward-
|
|
3
|
-
import { Mission, RawMission } from "./Mission-
|
|
1
|
+
import { Dependency } from "./Dependency-B0SogTJw.js";
|
|
2
|
+
import { Reward } from "./Reward-CCIfcF_s.js";
|
|
3
|
+
import { Mission, RawMission } from "./Mission-C2XnJAf5.js";
|
|
4
4
|
import { BaseContentObject, WorldstateObject } from "./WorldstateObject-wfRTeGpm.js";
|
|
5
5
|
|
|
6
6
|
//#region lib/models/Alert.d.ts
|
|
@@ -12,7 +12,10 @@ interface RawArchimedea {
|
|
|
12
12
|
c: string[][];
|
|
13
13
|
fv: string[];
|
|
14
14
|
}
|
|
15
|
-
|
|
15
|
+
/**
|
|
16
|
+
* An Archimedea mission with risk and deviations
|
|
17
|
+
*/
|
|
18
|
+
declare class ArchimedeaMission {
|
|
16
19
|
mission: string;
|
|
17
20
|
deviation: {
|
|
18
21
|
key: string;
|
|
@@ -33,23 +36,35 @@ declare class ArchidemeaMission {
|
|
|
33
36
|
constructor(mission: string, deviation: string, risks: string[], locale: Locale);
|
|
34
37
|
}
|
|
35
38
|
declare class Archimedea {
|
|
39
|
+
/**
|
|
40
|
+
* MD5 generated ID
|
|
41
|
+
*/
|
|
36
42
|
id: string;
|
|
43
|
+
/**
|
|
44
|
+
* Start date
|
|
45
|
+
*/
|
|
37
46
|
activation: Date;
|
|
47
|
+
/**
|
|
48
|
+
* End date
|
|
49
|
+
*/
|
|
38
50
|
expiry: Date;
|
|
39
|
-
|
|
51
|
+
/**
|
|
52
|
+
* Missions along with deviations and risks
|
|
53
|
+
*/
|
|
54
|
+
missions: ArchimedeaMission[];
|
|
55
|
+
/**
|
|
56
|
+
* Modifiers applied to the player
|
|
57
|
+
*/
|
|
40
58
|
personalModifiers: {
|
|
41
59
|
key: string;
|
|
42
60
|
name: string;
|
|
43
61
|
description: string;
|
|
44
62
|
}[];
|
|
45
63
|
/**
|
|
46
|
-
*
|
|
47
|
-
* @param activation Start timestamp
|
|
48
|
-
* @param expiry End timestamp
|
|
49
64
|
* @param data Data to parse
|
|
50
65
|
* @param locale Locale to translate to
|
|
51
66
|
*/
|
|
52
67
|
constructor(data: RawArchimedea, locale?: Locale);
|
|
53
68
|
}
|
|
54
69
|
//#endregion
|
|
55
|
-
export { Archimedea, DeepArchimedea, RawArchimedea };
|
|
70
|
+
export { Archimedea, ArchimedeaMission, DeepArchimedea, RawArchimedea };
|
|
@@ -2,7 +2,10 @@ import { createHash } from "node:crypto";
|
|
|
2
2
|
import { languageDesc, languageString, weeklyReset } from "warframe-worldstate-data/utilities";
|
|
3
3
|
|
|
4
4
|
//#region lib/models/Archidemea.ts
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* An Archimedea mission with risk and deviations
|
|
7
|
+
*/
|
|
8
|
+
var ArchimedeaMission = class {
|
|
6
9
|
mission;
|
|
7
10
|
deviation;
|
|
8
11
|
riskVariables;
|
|
@@ -29,22 +32,34 @@ var ArchidemeaMission = class {
|
|
|
29
32
|
}
|
|
30
33
|
};
|
|
31
34
|
var Archimedea = class {
|
|
35
|
+
/**
|
|
36
|
+
* MD5 generated ID
|
|
37
|
+
*/
|
|
32
38
|
id;
|
|
39
|
+
/**
|
|
40
|
+
* Start date
|
|
41
|
+
*/
|
|
33
42
|
activation;
|
|
43
|
+
/**
|
|
44
|
+
* End date
|
|
45
|
+
*/
|
|
34
46
|
expiry;
|
|
47
|
+
/**
|
|
48
|
+
* Missions along with deviations and risks
|
|
49
|
+
*/
|
|
35
50
|
missions;
|
|
51
|
+
/**
|
|
52
|
+
* Modifiers applied to the player
|
|
53
|
+
*/
|
|
36
54
|
personalModifiers;
|
|
37
55
|
/**
|
|
38
|
-
*
|
|
39
|
-
* @param activation Start timestamp
|
|
40
|
-
* @param expiry End timestamp
|
|
41
56
|
* @param data Data to parse
|
|
42
57
|
* @param locale Locale to translate to
|
|
43
58
|
*/
|
|
44
59
|
constructor(data, locale = "en") {
|
|
45
60
|
({activation: this.activation, expiry: this.expiry} = weeklyReset());
|
|
46
61
|
this.id = createHash("md5").update(JSON.stringify(data), "utf8").digest("hex");
|
|
47
|
-
this.missions = data.mt.map((m, i) => new
|
|
62
|
+
this.missions = data.mt.map((m, i) => new ArchimedeaMission(m, data.mv[i], data.c[i], locale));
|
|
48
63
|
this.personalModifiers = data.fv.map((i) => {
|
|
49
64
|
return {
|
|
50
65
|
key: i,
|
|
@@ -56,4 +71,4 @@ var Archimedea = class {
|
|
|
56
71
|
};
|
|
57
72
|
|
|
58
73
|
//#endregion
|
|
59
|
-
export { Archimedea };
|
|
74
|
+
export { Archimedea, ArchimedeaMission };
|
|
@@ -70,8 +70,7 @@ var CetusCycle = class extends WorldstateObject {
|
|
|
70
70
|
let millisLeft = fromNow(bountiesClone);
|
|
71
71
|
const secondsToNightEnd = Number((millisLeft / 1e3).toFixed(0));
|
|
72
72
|
const dayTime = secondsToNightEnd > nightTime;
|
|
73
|
-
|
|
74
|
-
millisLeft = secondsRemainingInCycle * 1e3;
|
|
73
|
+
millisLeft = (dayTime ? secondsToNightEnd - nightTime : secondsToNightEnd) * 1e3;
|
|
75
74
|
const minutesCoef = 1e3 * 60;
|
|
76
75
|
const expiry = new Date(Math.round((now + millisLeft) / minutesCoef) * minutesCoef);
|
|
77
76
|
const state = dayTime ? "day" : "night";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Dependency } from "./Dependency-
|
|
1
|
+
import { Dependency } from "./Dependency-B0SogTJw.js";
|
|
2
2
|
import { BaseContentObject, WorldstateObject } from "./WorldstateObject-wfRTeGpm.js";
|
|
3
3
|
import { ContentTimestamp } from "warframe-worldstate-data/utilities";
|
|
4
4
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Dependency } from "./Dependency-
|
|
2
|
-
import { Mission, RawMission } from "./Mission-
|
|
1
|
+
import { Dependency } from "./Dependency-B0SogTJw.js";
|
|
2
|
+
import { Mission, RawMission } from "./Mission-C2XnJAf5.js";
|
|
3
3
|
import { BaseContentObject, WorldstateObject } from "./WorldstateObject-wfRTeGpm.js";
|
|
4
4
|
import { DarkSectorBattle, RawDarkSectorBattle } from "./DarkSectorBattle-DY33Bfuq.js";
|
|
5
5
|
import { ContentTimestamp } from "warframe-worldstate-data/utilities";
|
|
@@ -139,4 +139,4 @@ declare class DarkSector extends WorldstateObject {
|
|
|
139
139
|
}?: Dependency);
|
|
140
140
|
}
|
|
141
141
|
//#endregion
|
|
142
|
-
export { DarkSector, RawDarkSector };
|
|
142
|
+
export { DarkSector, DefenderInfo, RawDarkSector };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Dependency } from "./Dependency-
|
|
1
|
+
import { Dependency } from "./Dependency-B0SogTJw.js";
|
|
2
2
|
import { BaseContentObject, WorldstateObject } from "./WorldstateObject-wfRTeGpm.js";
|
|
3
3
|
import { ContentTimestamp } from "warframe-worldstate-data/utilities";
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Dependency } from "./Dependency-
|
|
1
|
+
import { Dependency } from "./Dependency-B0SogTJw.js";
|
|
2
2
|
import { BaseContentObject, WorldstateObject } from "./WorldstateObject-wfRTeGpm.js";
|
|
3
3
|
import { ContentTimestamp } from "warframe-worldstate-data/utilities";
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Dependency } from "./Dependency-
|
|
1
|
+
import { Dependency } from "./Dependency-B0SogTJw.js";
|
|
2
2
|
import { BaseContentObject, WorldstateObject } from "./WorldstateObject-wfRTeGpm.js";
|
|
3
3
|
import { ContentTimestamp } from "warframe-worldstate-data/utilities";
|
|
4
4
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Dependency } from "./Dependency-
|
|
2
|
-
import { RawReward, Reward } from "./Reward-
|
|
1
|
+
import { Dependency } from "./Dependency-B0SogTJw.js";
|
|
2
|
+
import { RawReward, Reward } from "./Reward-CCIfcF_s.js";
|
|
3
3
|
import { BaseContentObject, WorldstateObject } from "./WorldstateObject-wfRTeGpm.js";
|
|
4
4
|
import { ContentTimestamp } from "warframe-worldstate-data/utilities";
|
|
5
5
|
|
|
@@ -110,4 +110,4 @@ declare class Invasion extends WorldstateObject {
|
|
|
110
110
|
private getRemainingTime;
|
|
111
111
|
}
|
|
112
112
|
//#endregion
|
|
113
|
-
export { Invasion, RawInvasion };
|
|
113
|
+
export { Invasion, InvasionParticipant, RawInvasion };
|
|
@@ -100,8 +100,7 @@ var Invasion = class extends WorldstateObject {
|
|
|
100
100
|
getRemainingTime() {
|
|
101
101
|
const completedRuns = Math.abs(this.count);
|
|
102
102
|
const elapsedMillis = toNow(this.activation);
|
|
103
|
-
|
|
104
|
-
return remainingRuns * (elapsedMillis / completedRuns);
|
|
103
|
+
return (this.requiredRuns - completedRuns) * (elapsedMillis / completedRuns);
|
|
105
104
|
}
|
|
106
105
|
};
|
|
107
106
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Dependency } from "./Dependency-
|
|
2
|
-
import { RawReward, Reward } from "./Reward-
|
|
1
|
+
import { Dependency } from "./Dependency-B0SogTJw.js";
|
|
2
|
+
import { RawReward, Reward } from "./Reward-CCIfcF_s.js";
|
|
3
3
|
|
|
4
4
|
//#region lib/models/Mission.d.ts
|
|
5
5
|
interface RawMission {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Dependency } from "./Dependency-
|
|
1
|
+
import { Dependency } from "./Dependency-B0SogTJw.js";
|
|
2
2
|
|
|
3
3
|
//#region lib/models/SentientOutpost.d.ts
|
|
4
4
|
|
|
@@ -44,4 +44,4 @@ declare class SentientOutpost {
|
|
|
44
44
|
}: Dependency);
|
|
45
45
|
}
|
|
46
46
|
//#endregion
|
|
47
|
-
export { SentientOutpost };
|
|
47
|
+
export { Mission, SentientOutpost };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Dependency } from "./Dependency-
|
|
2
|
-
import { Mission, RawMission } from "./Mission-
|
|
1
|
+
import { Dependency } from "./Dependency-B0SogTJw.js";
|
|
2
|
+
import { Mission, RawMission } from "./Mission-C2XnJAf5.js";
|
|
3
3
|
import { BaseContentObject, WorldstateObject } from "./WorldstateObject-wfRTeGpm.js";
|
|
4
|
-
import { RawSortieVariant, SortieVariant } from "./SortieVariant-
|
|
4
|
+
import { RawSortieVariant, SortieVariant } from "./SortieVariant-ByZY5-jt.js";
|
|
5
5
|
|
|
6
6
|
//#region lib/models/Sortie.d.ts
|
|
7
7
|
interface RawSortie extends BaseContentObject {
|
|
@@ -64,9 +64,7 @@ var SteelPathOfferings = class {
|
|
|
64
64
|
incursions;
|
|
65
65
|
constructor({ locale }) {
|
|
66
66
|
const sSinceStart = (Date.now() - start.getTime()) / 1e3;
|
|
67
|
-
const
|
|
68
|
-
const sevenDays = 604800;
|
|
69
|
-
const ind = Math.floor(sSinceStart % eightWeeks / sevenDays);
|
|
67
|
+
const ind = Math.floor(sSinceStart % 4838400 / 604800);
|
|
70
68
|
this.currentReward = steelPath(locale).rotation[ind];
|
|
71
69
|
this.activation = getFirstDayOfWeek();
|
|
72
70
|
this.expiry = getLastDayOfWeek();
|
|
@@ -33,8 +33,7 @@ const determineLocation = (i18n, raw, isVault) => {
|
|
|
33
33
|
}
|
|
34
34
|
if (isDeimos) {
|
|
35
35
|
location = "Deimos/Cambion Drift ";
|
|
36
|
-
|
|
37
|
-
levelClause = `(Level ${levelString} ${variant})`;
|
|
36
|
+
levelClause = `(Level ${levelString} ${isVault ? "Isolation Vault" : "Cambion Drift Bounty"})`;
|
|
38
37
|
}
|
|
39
38
|
const locationWRot = `${location}${levelClause}, Rot ${rotation.length ? rotation : "A"}`;
|
|
40
39
|
return {
|
|
@@ -51,8 +50,7 @@ const getBountyRewards = async (i18n, raw, isVault) => {
|
|
|
51
50
|
}
|
|
52
51
|
if (!location || !locationWRot) ({location, locationWRot} = determineLocation(i18n, raw, isVault));
|
|
53
52
|
const url = `${apiBase}/drops/search/${encodeURIComponent(location)}?grouped_by=location`;
|
|
54
|
-
const
|
|
55
|
-
const pool = reply?.[locationWRot];
|
|
53
|
+
const pool = (await fetch(url).then((res) => res.json()).catch(() => {}))?.[locationWRot];
|
|
56
54
|
if (!pool) return ["Pattern Mismatch. Results inaccurate."];
|
|
57
55
|
const results = pool.rewards;
|
|
58
56
|
if (results) return Array.from(new Set(results.map((result) => result.item)));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Dependency } from "./Dependency-
|
|
1
|
+
import { Dependency } from "./Dependency-B0SogTJw.js";
|
|
2
2
|
import { BaseContentObject, WorldstateObject } from "./WorldstateObject-wfRTeGpm.js";
|
|
3
|
-
import { RawSyndicateJob, SyndicateJob } from "./SyndicateJob-
|
|
3
|
+
import { RawSyndicateJob, SyndicateJob } from "./SyndicateJob-irX981dU.js";
|
|
4
4
|
|
|
5
5
|
//#region lib/models/SyndicateMission.d.ts
|
|
6
6
|
interface RawSyndicateMission extends BaseContentObject {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WorldstateObject } from "./WorldstateObject-BSTYuZwm.js";
|
|
2
|
-
import { SyndicateJob } from "./SyndicateJob-
|
|
2
|
+
import { SyndicateJob } from "./SyndicateJob-DexLVMfe.js";
|
|
3
3
|
import { fromNow, node, syndicate, timeDeltaToString } from "warframe-worldstate-data/utilities";
|
|
4
4
|
|
|
5
5
|
//#region lib/models/SyndicateMission.ts
|
|
@@ -4,8 +4,7 @@ import { fromNow, timeDeltaToString } from "warframe-worldstate-data/utilities";
|
|
|
4
4
|
//#region lib/models/VallisCycle.ts
|
|
5
5
|
const lStart = /* @__PURE__ */ new Date("November 10, 2018 08:13:48 UTC");
|
|
6
6
|
const loopTime = 16e5;
|
|
7
|
-
const
|
|
8
|
-
const coldTime = loopTime - warmTime;
|
|
7
|
+
const coldTime = loopTime - 4e5;
|
|
9
8
|
/**
|
|
10
9
|
* Get the current cycle state for Orb Vallis
|
|
11
10
|
* @returns current cycle state
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Dependency } from "./Dependency-
|
|
1
|
+
import { Dependency } from "./Dependency-B0SogTJw.js";
|
|
2
2
|
import { BaseContentObject, WorldstateObject } from "./WorldstateObject-wfRTeGpm.js";
|
|
3
|
-
import { RawVoidTraderItem, VoidTraderItem } from "./VoidTraderItem-
|
|
4
|
-
import { VoidTraderSchedule } from "./VoidTraderSchedule-
|
|
3
|
+
import { RawVoidTraderItem, VoidTraderItem } from "./VoidTraderItem-D01b6tH8.js";
|
|
4
|
+
import { VoidTraderSchedule } from "./VoidTraderSchedule-C2o7tk70.js";
|
|
5
5
|
import { ContentTimestamp } from "warframe-worldstate-data/utilities";
|
|
6
6
|
|
|
7
7
|
//#region lib/models/VoidTrader.d.ts
|
|
@@ -50,12 +50,14 @@ declare class VoidTrader extends WorldstateObject {
|
|
|
50
50
|
*/
|
|
51
51
|
schedule: VoidTraderSchedule[];
|
|
52
52
|
/**
|
|
53
|
-
* @param data The
|
|
53
|
+
* @param data The trader data
|
|
54
54
|
* @param deps The dependencies object
|
|
55
55
|
* @param deps.locale Locale to use for translations
|
|
56
|
+
* @param deps.character The trader name
|
|
56
57
|
*/
|
|
57
58
|
constructor(data: RawVoidTrader, {
|
|
58
|
-
locale
|
|
59
|
+
locale,
|
|
60
|
+
character
|
|
59
61
|
}?: Dependency);
|
|
60
62
|
/**
|
|
61
63
|
* Whether the trader is active
|
|
@@ -38,14 +38,15 @@ var VoidTrader = class extends WorldstateObject {
|
|
|
38
38
|
*/
|
|
39
39
|
schedule;
|
|
40
40
|
/**
|
|
41
|
-
* @param data The
|
|
41
|
+
* @param data The trader data
|
|
42
42
|
* @param deps The dependencies object
|
|
43
43
|
* @param deps.locale Locale to use for translations
|
|
44
|
+
* @param deps.character The trader name
|
|
44
45
|
*/
|
|
45
|
-
constructor(data, { locale = "en" } = { locale: "en" }) {
|
|
46
|
+
constructor(data, { locale = "en", character } = { locale: "en" }) {
|
|
46
47
|
super(data);
|
|
47
48
|
insist({ ...data }, "Activation", "Expiry");
|
|
48
|
-
this.character = data.Character ? data.Character.replace("Baro'Ki Teel", "Baro Ki'Teer") : "";
|
|
49
|
+
this.character = data.Character ? data.Character.replace("Baro'Ki Teel", "Baro Ki'Teer") : character ?? "";
|
|
49
50
|
this.location = node(data.Node, locale);
|
|
50
51
|
this.inventory = data.Manifest ? data.Manifest.map((i) => new VoidTraderItem(i, { locale })) : [];
|
|
51
52
|
this.psId = `${this.id}${this.inventory.length}`;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseContentObject, WorldstateObject } from "./WorldstateObject-wfRTeGpm.js";
|
|
2
|
-
import { ChallengeInstance, RawChallengeInstance } from "./ChallengeInstance-
|
|
2
|
+
import { ChallengeInstance, RawChallengeInstance } from "./ChallengeInstance-0EYq73Pa.js";
|
|
3
3
|
|
|
4
4
|
//#region lib/models/WeeklyChallenge.d.ts
|
|
5
5
|
interface RawWeeklyChallenge extends BaseContentObject {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Reward } from "./Reward-OauJ45jJ.js";
|
|
2
2
|
import { WorldstateObject } from "./WorldstateObject-BSTYuZwm.js";
|
|
3
|
-
import { SyndicateJob } from "./SyndicateJob-
|
|
3
|
+
import { SyndicateJob } from "./SyndicateJob-DexLVMfe.js";
|
|
4
4
|
import { faction, fromNow, languageString, node, parseDate, syndicate } from "warframe-worldstate-data/utilities";
|
|
5
5
|
|
|
6
6
|
//#region lib/models/WorldEvent.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Dependency } from "./Dependency-
|
|
2
|
-
import { RawReward, Reward } from "./Reward-
|
|
1
|
+
import { Dependency } from "./Dependency-B0SogTJw.js";
|
|
2
|
+
import { RawReward, Reward } from "./Reward-CCIfcF_s.js";
|
|
3
3
|
import { BaseContentObject, Identifier, WorldstateObject } from "./WorldstateObject-wfRTeGpm.js";
|
|
4
|
-
import { RawSyndicateJob, SyndicateJob } from "./SyndicateJob-
|
|
4
|
+
import { RawSyndicateJob, SyndicateJob } from "./SyndicateJob-irX981dU.js";
|
|
5
5
|
import { ContentTimestamp } from "warframe-worldstate-data/utilities";
|
|
6
6
|
|
|
7
7
|
//#region lib/models/WorldEvent.d.ts
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { Archimedea } from "./Archidemea-
|
|
1
|
+
import { Archimedea } from "./Archidemea-BcCpGmoG.js";
|
|
2
2
|
import { Kinepage } from "./Kinepage-CRRKVulq.js";
|
|
3
|
-
import { Dependency } from "./Dependency-
|
|
4
|
-
import { SentientOutpost } from "./SentientOutpost-
|
|
3
|
+
import { Dependency } from "./Dependency-B0SogTJw.js";
|
|
4
|
+
import { SentientOutpost } from "./SentientOutpost-DzAQU9UE.js";
|
|
5
5
|
import { BaseContentObject, WorldstateObject } from "./WorldstateObject-wfRTeGpm.js";
|
|
6
|
-
import { Alert, RawAlert } from "./Alert-
|
|
6
|
+
import { Alert, RawAlert } from "./Alert-qKxRSwBP.js";
|
|
7
7
|
import { Calendar, RawCalender } from "./Calendar-CgEkm6e6.js";
|
|
8
8
|
import { CetusCycle } from "./CetusCycle-ooMM7hkg.js";
|
|
9
9
|
import { CambionCycle } from "./CambionCycle-uEBpbMim.js";
|
|
10
|
-
import { ConclaveChallenge, RawChallenge } from "./ConclaveChallenge-
|
|
10
|
+
import { ConclaveChallenge, RawChallenge } from "./ConclaveChallenge-DsrxV_YV.js";
|
|
11
11
|
import { ConstructionProgress } from "./ConstructionProgress-FAySTEod.js";
|
|
12
|
-
import { DailyDeal, RawDailyDeal } from "./DailyDeal-
|
|
13
|
-
import { DarkSector, RawDarkSector } from "./DarkSector-
|
|
12
|
+
import { DailyDeal, RawDailyDeal } from "./DailyDeal-BhIF-YQ8.js";
|
|
13
|
+
import { DarkSector, RawDarkSector } from "./DarkSector-ot944pCr.js";
|
|
14
14
|
import { RawChoice } from "./DuviriChoice-MIHsOBS7.js";
|
|
15
15
|
import { DuviriCycle } from "./DuviriCycle-B0zp0KxS.js";
|
|
16
16
|
import { EarthCycle } from "./EarthCycle-RELuZL01.js";
|
|
17
|
-
import { Fissure, RawFissure } from "./Fissure-
|
|
18
|
-
import { FlashSale, RawFlashSale } from "./FlashSale-
|
|
19
|
-
import { GlobalUpgrade, RawGlobalUpgrade } from "./GlobalUpgrade-
|
|
20
|
-
import { Invasion, RawInvasion } from "./Invasion-
|
|
17
|
+
import { Fissure, RawFissure } from "./Fissure-BArZdZUd.js";
|
|
18
|
+
import { FlashSale, RawFlashSale } from "./FlashSale-CeiXLD1w.js";
|
|
19
|
+
import { GlobalUpgrade, RawGlobalUpgrade } from "./GlobalUpgrade-C7TMqeZA.js";
|
|
20
|
+
import { Invasion, RawInvasion } from "./Invasion-MWCxGflk.js";
|
|
21
21
|
import { MidrathCycle } from "./MidrathCycle-BfQtfG4p.js";
|
|
22
22
|
import { News, RawNews } from "./News-BfAgbYSY.js";
|
|
23
23
|
import { Nightwave, RawNightwave } from "./Nightwave-_0RzWikV.js";
|
|
24
24
|
import { PersistentEnemy, RawPersistentEnemy } from "./PersistentEnemy-DRcO4V2r.js";
|
|
25
|
-
import { LibraryInfo, Simaris } from "./Simaris-
|
|
26
|
-
import { RawSortie, Sortie } from "./Sortie-
|
|
25
|
+
import { LibraryInfo, Simaris } from "./Simaris-CWMNamfA.js";
|
|
26
|
+
import { RawSortie, Sortie } from "./Sortie-DiJNLssz.js";
|
|
27
27
|
import { SteelPathOfferings } from "./SteelPathOffering-OHNTCFo5.js";
|
|
28
|
-
import { RawSyndicateMission, SyndicateMission } from "./SyndicateMission-
|
|
28
|
+
import { RawSyndicateMission, SyndicateMission } from "./SyndicateMission-DBJwkRdm.js";
|
|
29
29
|
import { VallisCycle } from "./VallisCycle-BXcmzqqG.js";
|
|
30
|
-
import { RawVoidTrader, VoidTrader } from "./VoidTrader-
|
|
31
|
-
import { RawWeeklyChallenge, WeeklyChallenge } from "./WeeklyChallenge-
|
|
32
|
-
import { RawWorldEvent, WorldEvent } from "./WorldEvent-
|
|
30
|
+
import { RawVoidTrader, VoidTrader } from "./VoidTrader-CYVxNiBQ.js";
|
|
31
|
+
import { RawWeeklyChallenge, WeeklyChallenge } from "./WeeklyChallenge-BhF9oQzN.js";
|
|
32
|
+
import { RawWorldEvent, WorldEvent } from "./WorldEvent-tlVPwS2U.js";
|
|
33
33
|
import { ZarimanCycle } from "./ZarimanCycle-CjNQXhVO.js";
|
|
34
34
|
import { ExternalMission } from "./ExternalMission-DCzJkPC8.js";
|
|
35
35
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Alert } from "./Alert-CXEOqvgh.js";
|
|
2
2
|
import { Calendar } from "./Calendar-CtzZQXj7.js";
|
|
3
3
|
import { CambionCycle } from "./CambionCycle-C6NHUjOU.js";
|
|
4
|
-
import { CetusCycle } from "./CetusCycle-
|
|
4
|
+
import { CetusCycle } from "./CetusCycle-CTMPsmff.js";
|
|
5
5
|
import { ConclaveChallenge } from "./ConclaveChallenge-Dp5yOxVu.js";
|
|
6
6
|
import { ConstructionProgress } from "./ConstructionProgress-DfcpaGL5.js";
|
|
7
7
|
import { DailyDeal } from "./DailyDeal-BGqZAp-j.js";
|
|
@@ -11,7 +11,7 @@ import { EarthCycle } from "./EarthCycle-B9aIOAEY.js";
|
|
|
11
11
|
import { Fissure } from "./Fissure-7yFmOet3.js";
|
|
12
12
|
import { FlashSale } from "./FlashSale-BxVI0J6A.js";
|
|
13
13
|
import { GlobalUpgrade } from "./GlobalUpgrade-B_TKK1m_.js";
|
|
14
|
-
import { Invasion } from "./Invasion-
|
|
14
|
+
import { Invasion } from "./Invasion-id1tqiDq.js";
|
|
15
15
|
import { Kuva } from "./Kuva-DqkxvPUg.js";
|
|
16
16
|
import { MidrathCycle } from "./MidrathCycle-DDfT7zVx.js";
|
|
17
17
|
import { News } from "./News-7F8Nbp4A.js";
|
|
@@ -19,15 +19,15 @@ import { Nightwave } from "./Nightwave-DDX0_zJU.js";
|
|
|
19
19
|
import { PersistentEnemy } from "./PersistentEnemy-axYxYzv_.js";
|
|
20
20
|
import { Simaris } from "./Simaris-B9Mvso2q.js";
|
|
21
21
|
import { Sortie } from "./Sortie-DcoAnEaJ.js";
|
|
22
|
-
import { SteelPathOfferings } from "./SteelPathOffering-
|
|
23
|
-
import { SyndicateMission } from "./SyndicateMission-
|
|
24
|
-
import { VallisCycle } from "./VallisCycle-
|
|
25
|
-
import { VoidTrader } from "./VoidTrader-
|
|
22
|
+
import { SteelPathOfferings } from "./SteelPathOffering-BTZR8wcv.js";
|
|
23
|
+
import { SyndicateMission } from "./SyndicateMission-tO0E40dz.js";
|
|
24
|
+
import { VallisCycle } from "./VallisCycle-CXYPClXc.js";
|
|
25
|
+
import { VoidTrader } from "./VoidTrader-D6zkctq1.js";
|
|
26
26
|
import { WeeklyChallenge } from "./WeeklyChallenge-MzUEZAjv.js";
|
|
27
|
-
import { WorldEvent } from "./WorldEvent-
|
|
28
|
-
import { ZarimanCycle } from "./ZarimanCycle-
|
|
27
|
+
import { WorldEvent } from "./WorldEvent-C5KY74SD.js";
|
|
28
|
+
import { ZarimanCycle } from "./ZarimanCycle-BnT2IiXU.js";
|
|
29
29
|
import { DuviriChoice } from "./DuviriChoice-DRNDUbyc.js";
|
|
30
|
-
import { Tmp } from "./Tmp-
|
|
30
|
+
import { Tmp } from "./Tmp-CJSkjzXq.js";
|
|
31
31
|
import { createHash } from "node:crypto";
|
|
32
32
|
import wsData from "warframe-worldstate-data";
|
|
33
33
|
import { parseDate } from "warframe-worldstate-data/utilities";
|
|
@@ -316,7 +316,10 @@ var WorldState = class WorldState {
|
|
|
316
316
|
expired: true
|
|
317
317
|
};
|
|
318
318
|
this.steelPath = new SteelPathOfferings(deps);
|
|
319
|
-
[this.vaultTrader] = parseArray(VoidTrader, data.PrimeVaultTraders,
|
|
319
|
+
[this.vaultTrader] = parseArray(VoidTrader, data.PrimeVaultTraders, {
|
|
320
|
+
...deps,
|
|
321
|
+
character: "Varzia"
|
|
322
|
+
});
|
|
320
323
|
[this.archonHunt] = parseArray(Sortie, data.LiteSorties, deps);
|
|
321
324
|
const choices = parseArray(DuviriChoice, data.EndlessXpChoices, deps);
|
|
322
325
|
this.duviriCycle = new DuviriCycle(choices);
|
|
@@ -55,8 +55,7 @@ var ZarimanCycle = class extends WorldstateObject {
|
|
|
55
55
|
const bountiesClone = this.#bountiesEndDate.getTime() - 5e3;
|
|
56
56
|
const millisLeft = fromNow(new Date(bountiesClone));
|
|
57
57
|
const cycleTimeElapsed = ((bountiesClone - corpusTimeMillis) % fullCycle + fullCycle) % fullCycle;
|
|
58
|
-
const
|
|
59
|
-
const isCorpus = cycleTimeLeft > stateMaximum;
|
|
58
|
+
const isCorpus = fullCycle - cycleTimeElapsed > stateMaximum;
|
|
60
59
|
const minutesCoef = 1e3 * 60;
|
|
61
60
|
const expiry = new Date(Math.round((now + millisLeft) / minutesCoef) * minutesCoef);
|
|
62
61
|
const state = isCorpus ? "corpus" : "grineer";
|
package/dist/lib/Tmp.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Archimedea, RawArchimedea } from "../Archidemea-
|
|
1
|
+
import { Archimedea, RawArchimedea } from "../Archidemea-BcCpGmoG.js";
|
|
2
2
|
import { Kinepage } from "../Kinepage-CRRKVulq.js";
|
|
3
3
|
import "../KuvaLogEntry-d5fskHaK.js";
|
|
4
|
-
import { Dependency } from "../Dependency-
|
|
5
|
-
import { SentientOutpost } from "../SentientOutpost-
|
|
4
|
+
import { Dependency } from "../Dependency-B0SogTJw.js";
|
|
5
|
+
import { SentientOutpost } from "../SentientOutpost-DzAQU9UE.js";
|
|
6
6
|
|
|
7
7
|
//#region lib/Tmp.d.ts
|
|
8
8
|
interface InitialTmp {
|
package/dist/lib/Tmp.js
CHANGED