warframe-worldstate-parser 4.6.1 → 5.0.1
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-BS8PWPP3.d.ts +45 -0
- package/dist/Alert-DH1kglDU.js +52 -0
- package/dist/Archidemea-C0EMRUKc.js +59 -0
- package/dist/Archidemea-DOh4trTM.d.ts +55 -0
- package/dist/Calendar-CgEkm6e6.d.ts +78 -0
- package/dist/Calendar-CtzZQXj7.js +81 -0
- package/dist/CambionCycle-C6NHUjOU.js +30 -0
- package/dist/CambionCycle-uEBpbMim.d.ts +23 -0
- package/dist/CetusCycle-DIZdevob.js +90 -0
- package/dist/CetusCycle-ooMM7hkg.d.ts +49 -0
- package/dist/ChallengeInstance-Bi2zg4q-.d.ts +53 -0
- package/dist/ChallengeInstance-DHwTTwMH.js +48 -0
- package/dist/ConclaveChallenge-Dp5yOxVu.js +80 -0
- package/dist/ConclaveChallenge-JbcEcL4s.d.ts +76 -0
- package/dist/ConstructionProgress-DfcpaGL5.js +25 -0
- package/dist/ConstructionProgress-FAySTEod.d.ts +19 -0
- package/dist/DailyDeal-BGqZAp-j.js +66 -0
- package/dist/DailyDeal-Na-EaiFS.d.ts +66 -0
- package/dist/DarkSector-BQ97_8h6.js +138 -0
- package/dist/DarkSector-zkCUywz1.d.ts +142 -0
- package/dist/DarkSectorBattle-5PyUPhxY.js +53 -0
- package/dist/DarkSectorBattle-DY33Bfuq.d.ts +53 -0
- package/dist/Dependency-DkOHLql6.d.ts +38 -0
- package/dist/DuviriChoice-DRNDUbyc.js +22 -0
- package/dist/DuviriChoice-MIHsOBS7.d.ts +18 -0
- package/dist/DuviriCycle-B0zp0KxS.d.ts +25 -0
- package/dist/DuviriCycle-CmHJStJo.js +58 -0
- package/dist/EarthCycle-B9aIOAEY.js +75 -0
- package/dist/EarthCycle-RELuZL01.d.ts +60 -0
- package/dist/ExternalMission-DCzJkPC8.d.ts +49 -0
- package/dist/Fissure-7yFmOet3.js +85 -0
- package/dist/Fissure-Bj61i8dc.d.ts +78 -0
- package/dist/FlashSale-BxVI0J6A.js +75 -0
- package/dist/FlashSale-PDG4uQq4.d.ts +71 -0
- package/dist/GlobalUpgrade-BRQXf3JM.d.ts +55 -0
- package/dist/GlobalUpgrade-B_TKK1m_.js +58 -0
- package/dist/ImgCdn-BnbJ9K-0.js +7 -0
- package/dist/Invasion-BMic1K12.js +110 -0
- package/dist/Invasion-BskF60zh.d.ts +113 -0
- package/dist/Kinepage-CRRKVulq.d.ts +22 -0
- package/dist/Kinepage-iWFwTZtr.js +24 -0
- package/dist/Kuva-DqkxvPUg.js +85 -0
- package/dist/KuvaLogEntry-d5fskHaK.d.ts +21 -0
- package/dist/MidrathCycle-BfQtfG4p.d.ts +25 -0
- package/dist/MidrathCycle-DDfT7zVx.js +69 -0
- package/dist/Mission-CWE16ouO.d.ts +138 -0
- package/dist/Mission-ZuSsAYNm.js +140 -0
- package/dist/News-7F8Nbp4A.js +122 -0
- package/dist/News-BfAgbYSY.d.ts +101 -0
- package/dist/Nightwave-DDX0_zJU.js +60 -0
- package/dist/Nightwave-_0RzWikV.d.ts +59 -0
- package/dist/NightwaveChallenge-DDdrqvge.d.ts +51 -0
- package/dist/NightwaveChallenge-DwilvXfi.js +53 -0
- package/dist/PersistentEnemy-DRcO4V2r.d.ts +79 -0
- package/dist/PersistentEnemy-axYxYzv_.js +76 -0
- package/dist/Reward-5VIpHu9A.d.ts +68 -0
- package/dist/Reward-OauJ45jJ.js +73 -0
- package/dist/RewardData-qEvfHYxA.js +76 -0
- package/dist/RewardTypes-Cfq9FeIl.js +328 -0
- package/dist/RewardTypes-DYaUn77A.d.ts +34 -0
- package/dist/SentientOutpost-B2KZUJ7H.js +65 -0
- package/dist/SentientOutpost-DmlClvel.d.ts +47 -0
- package/dist/Simaris-B9Mvso2q.js +35 -0
- package/dist/Simaris-Bc-jNhED.d.ts +37 -0
- package/dist/Sortie-DPv-7SQ-.d.ts +60 -0
- package/dist/Sortie-DcoAnEaJ.js +73 -0
- package/dist/SortieVariant-BFkYiBho.d.ts +49 -0
- package/dist/SortieVariant-eWuI1uh9.js +51 -0
- package/dist/SteelPathOffering-DyAzr3P9.js +85 -0
- package/dist/SteelPathOffering-OHNTCFo5.d.ts +38 -0
- package/dist/SyndicateJob-BK7OMLmv.js +141 -0
- package/dist/SyndicateJob-DOtXWjRF.d.ts +76 -0
- package/dist/SyndicateMission-5PZIEM8P.js +66 -0
- package/dist/SyndicateMission-DmGG5lGy.d.ts +58 -0
- package/dist/Tmp-DkQq1arD.js +21 -0
- package/dist/VallisCycle-BX8yyKx3.js +76 -0
- package/dist/VallisCycle-BXcmzqqG.d.ts +31 -0
- package/dist/VoidTrader-CbLMfEVj.js +77 -0
- package/dist/VoidTrader-CihLWgSV.d.ts +74 -0
- package/dist/VoidTraderItem-BzeD-S6-.js +38 -0
- package/dist/VoidTraderItem-CkYAKAEn.d.ts +43 -0
- package/dist/VoidTraderSchedule-C-K8Zdfk.js +14 -0
- package/dist/VoidTraderSchedule-DKDtu-9d.d.ts +16 -0
- package/dist/WeeklyChallenge-C6sc4j7i.d.ts +20 -0
- package/dist/WeeklyChallenge-MzUEZAjv.js +21 -0
- package/dist/WorldEvent-BS9QHG_f.d.ts +205 -0
- package/dist/WorldEvent-nis9w9cn.js +213 -0
- package/dist/WorldState-DNSPrZR_.d.ts +257 -0
- package/dist/WorldState-uppX0Xt1.js +330 -0
- package/dist/WorldstateObject-BSTYuZwm.js +54 -0
- package/dist/WorldstateObject-wfRTeGpm.d.ts +48 -0
- package/dist/ZarimanCycle-BJ84QUFg.js +81 -0
- package/dist/ZarimanCycle-CjNQXhVO.d.ts +45 -0
- package/dist/lib/Tmp.d.ts +24 -0
- package/dist/lib/Tmp.js +6 -0
- package/dist/lib/WorldState.d.ts +47 -0
- package/dist/lib/WorldState.js +49 -0
- package/dist/lib/models/Alert.d.ts +8 -0
- package/dist/lib/models/Alert.js +9 -0
- package/dist/lib/models/Archidemea.d.ts +2 -0
- package/dist/lib/models/Archidemea.js +3 -0
- package/dist/lib/models/Calendar.d.ts +3 -0
- package/dist/lib/models/Calendar.js +4 -0
- package/dist/lib/models/CambionCycle.d.ts +4 -0
- package/dist/lib/models/CambionCycle.js +4 -0
- package/dist/lib/models/CetusCycle.d.ts +3 -0
- package/dist/lib/models/CetusCycle.js +4 -0
- package/dist/lib/models/ChallengeInstance.d.ts +4 -0
- package/dist/lib/models/ChallengeInstance.js +3 -0
- package/dist/lib/models/ConclaveChallenge.d.ts +5 -0
- package/dist/lib/models/ConclaveChallenge.js +4 -0
- package/dist/lib/models/ConstructionProgress.d.ts +3 -0
- package/dist/lib/models/ConstructionProgress.js +4 -0
- package/dist/lib/models/DailyDeal.d.ts +5 -0
- package/dist/lib/models/DailyDeal.js +4 -0
- package/dist/lib/models/DarkSector.d.ts +9 -0
- package/dist/lib/models/DarkSector.js +10 -0
- package/dist/lib/models/DarkSectorBattle.d.ts +3 -0
- package/dist/lib/models/DarkSectorBattle.js +3 -0
- package/dist/lib/models/DuviriCycle.d.ts +4 -0
- package/dist/lib/models/DuviriCycle.js +4 -0
- package/dist/lib/models/EarthCycle.d.ts +3 -0
- package/dist/lib/models/EarthCycle.js +4 -0
- package/dist/lib/models/Fissure.d.ts +5 -0
- package/dist/lib/models/Fissure.js +4 -0
- package/dist/lib/models/FlashSale.d.ts +5 -0
- package/dist/lib/models/FlashSale.js +4 -0
- package/dist/lib/models/GlobalUpgrade.d.ts +5 -0
- package/dist/lib/models/GlobalUpgrade.js +4 -0
- package/dist/lib/models/Invasion.d.ts +7 -0
- package/dist/lib/models/Invasion.js +8 -0
- package/dist/lib/models/Kinepage.d.ts +2 -0
- package/dist/lib/models/Kinepage.js +3 -0
- package/dist/lib/models/Kuva.d.ts +22 -0
- package/dist/lib/models/Kuva.js +3 -0
- package/dist/lib/models/MidrathCycle.d.ts +3 -0
- package/dist/lib/models/MidrathCycle.js +4 -0
- package/dist/lib/models/Mission.d.ts +6 -0
- package/dist/lib/models/Mission.js +7 -0
- package/dist/lib/models/News.d.ts +3 -0
- package/dist/lib/models/News.js +5 -0
- package/dist/lib/models/Nightwave.d.ts +4 -0
- package/dist/lib/models/Nightwave.js +5 -0
- package/dist/lib/models/NightwaveChallenge.d.ts +3 -0
- package/dist/lib/models/NightwaveChallenge.js +4 -0
- package/dist/lib/models/PersistentEnemy.d.ts +3 -0
- package/dist/lib/models/PersistentEnemy.js +4 -0
- package/dist/lib/models/Reward.d.ts +5 -0
- package/dist/lib/models/Reward.js +6 -0
- package/dist/lib/models/SentientOutpost.d.ts +4 -0
- package/dist/lib/models/SentientOutpost.js +3 -0
- package/dist/lib/models/Simaris.d.ts +4 -0
- package/dist/lib/models/Simaris.js +3 -0
- package/dist/lib/models/Sortie.d.ts +9 -0
- package/dist/lib/models/Sortie.js +10 -0
- package/dist/lib/models/SortieVariant.d.ts +4 -0
- package/dist/lib/models/SortieVariant.js +3 -0
- package/dist/lib/models/SteelPathOffering.d.ts +2 -0
- package/dist/lib/models/SteelPathOffering.js +3 -0
- package/dist/lib/models/SyndicateJob.d.ts +5 -0
- package/dist/lib/models/SyndicateJob.js +4 -0
- package/dist/lib/models/SyndicateMission.d.ts +6 -0
- package/dist/lib/models/SyndicateMission.js +5 -0
- package/dist/lib/models/VallisCycle.d.ts +3 -0
- package/dist/lib/models/VallisCycle.js +4 -0
- package/dist/lib/models/VoidTrader.d.ts +7 -0
- package/dist/lib/models/VoidTrader.js +6 -0
- package/dist/lib/models/VoidTraderItem.d.ts +4 -0
- package/dist/lib/models/VoidTraderItem.js +3 -0
- package/dist/lib/models/VoidTraderSchedule.d.ts +4 -0
- package/dist/lib/models/VoidTraderSchedule.js +3 -0
- package/dist/lib/models/WeeklyChallenge.d.ts +6 -0
- package/dist/lib/models/WeeklyChallenge.js +5 -0
- package/dist/lib/models/WorldEvent.d.ts +8 -0
- package/dist/lib/models/WorldEvent.js +9 -0
- package/dist/lib/models/WorldstateObject.d.ts +2 -0
- package/dist/lib/models/WorldstateObject.js +3 -0
- package/dist/lib/models/ZarimanCycle.d.ts +3 -0
- package/dist/lib/models/ZarimanCycle.js +4 -0
- package/dist/lib/supporting/Dependency.d.ts +3 -0
- package/dist/lib/supporting/Dependency.js +1 -0
- package/dist/lib/supporting/DuviriChoice.d.ts +3 -0
- package/dist/lib/supporting/DuviriChoice.js +3 -0
- package/dist/lib/supporting/ExternalMission.d.ts +2 -0
- package/dist/lib/supporting/ExternalMission.js +1 -0
- package/dist/lib/supporting/ImgCdn.d.ts +6 -0
- package/dist/lib/supporting/ImgCdn.js +3 -0
- package/dist/lib/supporting/KuvaLogEntry.d.ts +2 -0
- package/dist/lib/supporting/KuvaLogEntry.js +1 -0
- package/dist/lib/supporting/RewardData.d.ts +11 -0
- package/dist/lib/supporting/RewardData.js +3 -0
- package/dist/lib/supporting/RewardTypes.d.ts +2 -0
- package/dist/lib/supporting/RewardTypes.js +5 -0
- package/dist/main.d.ts +47 -0
- package/dist/main.js +49 -0
- package/dist/resources/.gitkeep +1 -0
- package/dist/resources/alt_helmet_thumb.png +0 -0
- package/dist/resources/aura_thumb.png +0 -0
- package/dist/resources/clantech_thmb.png +0 -0
- package/dist/resources/endo_thumb.png +0 -0
- package/dist/resources/exilus_thumb.png +0 -0
- package/dist/resources/forma_thumb.png +0 -0
- package/dist/resources/glaive_thumb.png +0 -0
- package/dist/resources/mutalist_thumb.png +0 -0
- package/dist/resources/nightmare_thumb.png +0 -0
- package/dist/resources/nitain_thumb.png +0 -0
- package/dist/resources/potato_thumb.png +0 -0
- package/dist/resources/resource_thumb.png +0 -0
- package/dist/resources/vauban_thumb.png +0 -0
- package/dist/resources/weapon_skin_thumb.png +0 -0
- package/package.json +9 -11
- package/lib/WorldState.js +0 -404
- package/lib/models/Alert.js +0 -90
- package/lib/models/Calendar.js +0 -74
- package/lib/models/CambionCycle.js +0 -32
- package/lib/models/CetusCycle.js +0 -126
- package/lib/models/ChallengeInstance.js +0 -57
- package/lib/models/ConclaveChallenge.js +0 -154
- package/lib/models/ConstructionProgress.js +0 -31
- package/lib/models/DailyDeal.js +0 -103
- package/lib/models/DarkSector.js +0 -154
- package/lib/models/DarkSectorBattle.js +0 -56
- package/lib/models/DeepArchidemea.js +0 -33
- package/lib/models/DuviriCycle.js +0 -65
- package/lib/models/EarthCycle.js +0 -119
- package/lib/models/Fissure.js +0 -136
- package/lib/models/FlashSale.js +0 -123
- package/lib/models/GlobalUpgrade.js +0 -122
- package/lib/models/Invasion.js +0 -183
- package/lib/models/Kinepage.js +0 -11
- package/lib/models/Kuva.js +0 -122
- package/lib/models/MidrathCycle.js +0 -94
- package/lib/models/Mission.js +0 -179
- package/lib/models/News.js +0 -174
- package/lib/models/Nightwave.js +0 -91
- package/lib/models/NightwaveChallenge.js +0 -63
- package/lib/models/PersistentEnemy.js +0 -100
- package/lib/models/Reward.js +0 -111
- package/lib/models/SentientOutpost.js +0 -68
- package/lib/models/Simaris.js +0 -47
- package/lib/models/Sortie.js +0 -143
- package/lib/models/SortieVariant.js +0 -57
- package/lib/models/SteelPathOffering.js +0 -99
- package/lib/models/SyndicateJob.js +0 -185
- package/lib/models/SyndicateMission.js +0 -111
- package/lib/models/VallisCycle.js +0 -125
- package/lib/models/VoidTrader.js +0 -134
- package/lib/models/VoidTraderItem.js +0 -24
- package/lib/models/VoidTraderSchedule.js +0 -8
- package/lib/models/WeeklyChallenge.js +0 -27
- package/lib/models/WorldEvent.js +0 -326
- package/lib/models/WorldstateObject.js +0 -106
- package/lib/models/ZarimanCycle.js +0 -124
- package/lib/supporting/Dependency.js +0 -6
- package/lib/supporting/DuviriChoice.js +0 -16
- package/lib/supporting/ExternalMission.js +0 -13
- package/lib/supporting/ImgCdn.js +0 -9
- package/lib/supporting/MarkdownSettings.js +0 -30
- package/lib/supporting/RewardData.js +0 -77
- package/lib/supporting/RewardTypes.js +0 -327
- package/main.js +0 -4
- package/types/lib/WorldState.d.ts +0 -199
- package/types/lib/models/Alert.d.ts +0 -53
- package/types/lib/models/Calendar.d.ts +0 -16
- package/types/lib/models/CambionCycle.d.ts +0 -20
- package/types/lib/models/CetusCycle.d.ts +0 -47
- package/types/lib/models/ChallengeInstance.d.ts +0 -42
- package/types/lib/models/ConclaveChallenge.d.ts +0 -90
- package/types/lib/models/ConstructionProgress.d.ts +0 -14
- package/types/lib/models/DailyDeal.d.ts +0 -78
- package/types/lib/models/DarkSector.d.ts +0 -121
- package/types/lib/models/DarkSectorBattle.d.ts +0 -44
- package/types/lib/models/DeepArchidemea.d.ts +0 -8
- package/types/lib/models/DuviriCycle.d.ts +0 -21
- package/types/lib/models/EarthCycle.d.ts +0 -64
- package/types/lib/models/Fissure.d.ts +0 -83
- package/types/lib/models/FlashSale.d.ts +0 -86
- package/types/lib/models/GlobalUpgrade.d.ts +0 -86
- package/types/lib/models/Invasion.d.ts +0 -124
- package/types/lib/models/Kinepage.d.ts +0 -6
- package/types/lib/models/Kuva.d.ts +0 -60
- package/types/lib/models/MidrathCycle.d.ts +0 -39
- package/types/lib/models/Mission.d.ts +0 -136
- package/types/lib/models/News.d.ts +0 -104
- package/types/lib/models/Nightwave.d.ts +0 -53
- package/types/lib/models/NightwaveChallenge.d.ts +0 -45
- package/types/lib/models/PersistentEnemy.d.ts +0 -70
- package/types/lib/models/Reward.d.ts +0 -95
- package/types/lib/models/SentientOutpost.d.ts +0 -54
- package/types/lib/models/Simaris.d.ts +0 -33
- package/types/lib/models/Sortie.d.ts +0 -72
- package/types/lib/models/SortieVariant.d.ts +0 -43
- package/types/lib/models/SteelPathOffering.d.ts +0 -19
- package/types/lib/models/SyndicateJob.d.ts +0 -72
- package/types/lib/models/SyndicateMission.d.ts +0 -56
- package/types/lib/models/VallisCycle.d.ts +0 -53
- package/types/lib/models/VoidTrader.d.ts +0 -45
- package/types/lib/models/VoidTraderItem.d.ts +0 -25
- package/types/lib/models/VoidTraderSchedule.d.ts +0 -7
- package/types/lib/models/WeeklyChallenge.d.ts +0 -12
- package/types/lib/models/WorldEvent.d.ts +0 -216
- package/types/lib/models/WorldstateObject.d.ts +0 -120
- package/types/lib/models/ZarimanCycle.d.ts +0 -42
- package/types/lib/supporting/Dependency.d.ts +0 -7
- package/types/lib/supporting/DuviriChoice.d.ts +0 -9
- package/types/lib/supporting/ExternalMission.d.ts +0 -48
- package/types/lib/supporting/ImgCdn.d.ts +0 -3
- package/types/lib/supporting/MarkdownSettings.d.ts +0 -30
- package/types/lib/supporting/RewardData.d.ts +0 -9
- package/types/lib/supporting/RewardTypes.d.ts +0 -8
- package/types/main.d.ts +0 -3
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
import { cdn, wfCdn } from "./ImgCdn-BnbJ9K-0.js";
|
|
2
|
+
import { auras, nightmare, resources } from "./RewardData-qEvfHYxA.js";
|
|
3
|
+
|
|
4
|
+
//#region lib/supporting/RewardTypes.ts
|
|
5
|
+
/**
|
|
6
|
+
* All possible RewardTypes
|
|
7
|
+
* @type {Array.<RewardType>}
|
|
8
|
+
*/
|
|
9
|
+
var RewardTypes_default = [
|
|
10
|
+
{
|
|
11
|
+
name: "vauban",
|
|
12
|
+
description: "Vauban parts",
|
|
13
|
+
test: (s) => /^vauban(?!.*helmet)/i.test(s),
|
|
14
|
+
thumbnail: wfCdn("vauban.png"),
|
|
15
|
+
color: 6052435
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
name: "vandal",
|
|
19
|
+
description: "Vandal Weapon Parts",
|
|
20
|
+
test: (s) => /vandal/i.test(s),
|
|
21
|
+
thumbnail: wfCdn("dera-vandal.png"),
|
|
22
|
+
color: 6052435
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
name: "wraith",
|
|
26
|
+
description: "Wraith Weapon Parts",
|
|
27
|
+
test: (s) => /wraith/i.test(s),
|
|
28
|
+
thumbnail: wfCdn("furax-wraith.png"),
|
|
29
|
+
color: 6052435
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: "skin",
|
|
33
|
+
description: "Weapon skins",
|
|
34
|
+
test: (s) => /skin/i.test(s),
|
|
35
|
+
thumbnail: "https://raw.githubusercontent.com/wfcd/warframe-worldstate-parser/master/resources/weapon_skin_thumb.png",
|
|
36
|
+
color: 5196851
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: "helmet",
|
|
40
|
+
description: "Alternative helmets",
|
|
41
|
+
test: (s) => /helmet/i.test(s),
|
|
42
|
+
thumbnail: "https://raw.githubusercontent.com/wfcd/warframe-worldstate-parser/master/resources/alt_helmet_thumb.png",
|
|
43
|
+
color: 5666423
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: "nitain",
|
|
47
|
+
description: "Nitain extract",
|
|
48
|
+
test: (s) => /nitain/i.test(s),
|
|
49
|
+
thumbnail: wfCdn("nitain-extract.png"),
|
|
50
|
+
color: 11447716
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: "mutalist",
|
|
54
|
+
description: "Mutalist Alad V coordinates",
|
|
55
|
+
test: (s) => /mutalist/i.test(s),
|
|
56
|
+
thumbnail: wfCdn("mutalist-alad-v-nav-coordinate.png"),
|
|
57
|
+
color: 158519
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: "weapon",
|
|
61
|
+
description: "Weapons",
|
|
62
|
+
test: (s) => /dagger|sword|glaive/i.test(s),
|
|
63
|
+
thumbnail: wfCdn("blueprint"),
|
|
64
|
+
color: 10723479
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
name: "fieldron",
|
|
68
|
+
description: "Fieldron",
|
|
69
|
+
test: (s) => /fieldron/i.test(s),
|
|
70
|
+
thumbnail: wfCdn("fieldron.png"),
|
|
71
|
+
color: 5068118
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
name: "detonite",
|
|
75
|
+
description: "Detonite Injector",
|
|
76
|
+
test: (s) => /detonite/i.test(s),
|
|
77
|
+
thumbnail: wfCdn("detonite-injector.png"),
|
|
78
|
+
color: 5068118
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
name: "mutagen",
|
|
82
|
+
description: "Mutagen Mass",
|
|
83
|
+
test: (s) => /mutagen/i.test(s),
|
|
84
|
+
thumbnail: wfCdn("mutagen-mass.png"),
|
|
85
|
+
color: 5068118
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
name: "clantech",
|
|
89
|
+
description: "Clantech resources",
|
|
90
|
+
test: (s) => /fieldron|detonite|mutagen/i.test(s),
|
|
91
|
+
thumbnail: "https://github.com/wfcd/warframe-worldstate-parser/raw/master/resources/clantech_thmb.png",
|
|
92
|
+
color: 5068118
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
name: "aura",
|
|
96
|
+
description: "Auras",
|
|
97
|
+
test: (s) => auras.includes(s),
|
|
98
|
+
thumbnail: "https://github.com/wfcd/warframe-worldstate-parser/raw/master/resources/aura_thumb.png",
|
|
99
|
+
color: 13170943
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
name: "neuralSensors",
|
|
103
|
+
description: "Neural Sensors",
|
|
104
|
+
test: (s) => /neural/i.test(s),
|
|
105
|
+
thumbnail: wfCdn("neural-sensors.png"),
|
|
106
|
+
color: 13170943
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
name: "neurodes",
|
|
110
|
+
description: "Neurodes",
|
|
111
|
+
test: (s) => /neurode/i.test(s),
|
|
112
|
+
thumbnail: wfCdn("neurodes.png"),
|
|
113
|
+
color: 13170943
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
name: "orokinCell",
|
|
117
|
+
description: "Orokin Cell",
|
|
118
|
+
test: (s) => /orokin\scell/i.test(s),
|
|
119
|
+
thumbnail: wfCdn("orokin-cell.png"),
|
|
120
|
+
color: 13170943
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
name: "alloyPlate",
|
|
124
|
+
description: "Alloy Plate",
|
|
125
|
+
test: (s) => /alloy\splate/i.test(s),
|
|
126
|
+
thumbnail: wfCdn("alloy-plate.png"),
|
|
127
|
+
color: 13170943
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
name: "circuits",
|
|
131
|
+
description: "Circuits",
|
|
132
|
+
test: (s) => /circuits/i.test(s),
|
|
133
|
+
thumbnail: wfCdn("circuits.png"),
|
|
134
|
+
color: 13170943
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
name: "controlModule",
|
|
138
|
+
description: "Control Module",
|
|
139
|
+
test: (s) => /control\smodule/i.test(s),
|
|
140
|
+
thumbnail: wfCdn("control-module.png"),
|
|
141
|
+
color: 13170943
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
name: "ferrite",
|
|
145
|
+
description: "Ferrite",
|
|
146
|
+
test: (s) => /ferrite/i.test(s),
|
|
147
|
+
thumbnail: wfCdn("ferrite.png"),
|
|
148
|
+
color: 13170943
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
name: "gallium",
|
|
152
|
+
description: "Gallium",
|
|
153
|
+
test: (s) => /gallium/i.test(s),
|
|
154
|
+
thumbnail: wfCdn("gallium.png"),
|
|
155
|
+
color: 10595770
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
name: "morphics",
|
|
159
|
+
description: "Morphics",
|
|
160
|
+
test: (s) => /morphics/i.test(s),
|
|
161
|
+
thumbnail: wfCdn("morphics.png"),
|
|
162
|
+
color: 13170943
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
name: "nanoSpores",
|
|
166
|
+
description: "Nano Spores",
|
|
167
|
+
test: (s) => /nano\sspores/i.test(s),
|
|
168
|
+
thumbnail: wfCdn("nano-spores.png"),
|
|
169
|
+
color: 5455670
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
name: "oxium",
|
|
173
|
+
description: "Oxium",
|
|
174
|
+
test: (s) => /oxium/i.test(s),
|
|
175
|
+
thumbnail: wfCdn("oxium.png"),
|
|
176
|
+
color: 9597243
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
name: "rubedo",
|
|
180
|
+
description: "Rubedo",
|
|
181
|
+
test: (s) => /rubedo/i.test(s),
|
|
182
|
+
thumbnail: wfCdn("rubedo.png"),
|
|
183
|
+
color: 13516342
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
name: "salvage",
|
|
187
|
+
description: "Salvage",
|
|
188
|
+
test: (s) => /salvage/i.test(s),
|
|
189
|
+
thumbnail: wfCdn("salvage.png"),
|
|
190
|
+
color: 9145997
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
name: "plastids",
|
|
194
|
+
description: "Plastids",
|
|
195
|
+
test: (s) => /plastids/i.test(s),
|
|
196
|
+
thumbnail: wfCdn("plastids.png"),
|
|
197
|
+
color: 13545096
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
name: "polymerBundle",
|
|
201
|
+
description: "Polymer Bundle",
|
|
202
|
+
test: (s) => /polymer\sbundle/i.test(s),
|
|
203
|
+
thumbnail: wfCdn("polymer-bundle.png"),
|
|
204
|
+
color: 7032228
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
name: "argonCrystal",
|
|
208
|
+
description: "Argon Crystal",
|
|
209
|
+
test: (s) => /argon\scrystal/i.test(s),
|
|
210
|
+
thumbnail: wfCdn("argon-crystal.png"),
|
|
211
|
+
color: 13170943
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
name: "cryotic",
|
|
215
|
+
description: "Cryotic",
|
|
216
|
+
test: (s) => /cryotic/i.test(s),
|
|
217
|
+
thumbnail: wfCdn("cryotic.png"),
|
|
218
|
+
color: 7905971
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
name: "tellurium",
|
|
222
|
+
description: "Tellurium",
|
|
223
|
+
test: (s) => /tellurium/i.test(s),
|
|
224
|
+
thumbnail: wfCdn("tellurium.png"),
|
|
225
|
+
color: 15150616
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
name: "resource",
|
|
229
|
+
description: "Resources",
|
|
230
|
+
test: (s) => resources.includes(s),
|
|
231
|
+
thumbnail: "https://i.imgur.com/Bq5TEPo.png",
|
|
232
|
+
color: 16772764
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
name: "nightmare",
|
|
236
|
+
description: "Nightmare mods",
|
|
237
|
+
test: (s) => nightmare.includes(s),
|
|
238
|
+
thumbnail: cdn("svg/nightmare.svg"),
|
|
239
|
+
color: 11677228
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
name: "endo",
|
|
243
|
+
description: "Endo",
|
|
244
|
+
test: (s) => /^\d+x?\sendo/i.test(s),
|
|
245
|
+
thumbnail: wfCdn("endo.png"),
|
|
246
|
+
color: 12755532
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
name: "reactor",
|
|
250
|
+
description: "Orokin Reactors",
|
|
251
|
+
test: (s) => /reactor/i.test(s),
|
|
252
|
+
thumbnail: wfCdn("orokin-reactor.png"),
|
|
253
|
+
color: 14140285
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
name: "catalyst",
|
|
257
|
+
description: "Orokin Catalyst",
|
|
258
|
+
test: (s) => /catalyst/i.test(s),
|
|
259
|
+
thumbnail: wfCdn("orokin-catalyst.png"),
|
|
260
|
+
color: 6855389
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
name: "potato",
|
|
264
|
+
description: "Orokin Catalysts/Reactors",
|
|
265
|
+
test: (s) => /catalyst|reactor/i.test(s),
|
|
266
|
+
thumbnail: wfCdn("orokin-catalyst.png"),
|
|
267
|
+
color: 6855389
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
name: "forma",
|
|
271
|
+
description: "Forma",
|
|
272
|
+
test: (s) => /forma/i.test(s),
|
|
273
|
+
thumbnail: wfCdn("forma.png"),
|
|
274
|
+
color: 11638087
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
name: "exilus",
|
|
278
|
+
description: "Exilus",
|
|
279
|
+
test: (s) => /exilus/i.test(s),
|
|
280
|
+
thumbnail: wfCdn("exilus-adapter.png"),
|
|
281
|
+
color: 8925997
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
name: "synthula",
|
|
285
|
+
description: "Synthula",
|
|
286
|
+
test: (s) => /synthula/i.test(s),
|
|
287
|
+
thumbnail: wfCdn("synthula.png"),
|
|
288
|
+
color: 10461599
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
name: "kavatGene",
|
|
292
|
+
description: "Kavat Genetic Code",
|
|
293
|
+
test: (s) => /Kavat Ge/i.test(s),
|
|
294
|
+
thumbnail: wfCdn("kavat-genetic-code.png"),
|
|
295
|
+
color: 7776429
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
name: "kubrowEgg",
|
|
299
|
+
description: "Kubrow Egg",
|
|
300
|
+
test: (s) => /kubrow\segg/i.test(s),
|
|
301
|
+
thumbnail: wfCdn("kubrow-egg"),
|
|
302
|
+
color: 10851199
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
name: "traces",
|
|
306
|
+
description: "Void Traces",
|
|
307
|
+
test: (s) => /trace/i.test(s),
|
|
308
|
+
thumbnail: wfCdn("void-traces.png"),
|
|
309
|
+
color: 6923485
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
name: "riven",
|
|
313
|
+
description: "Riven Mod",
|
|
314
|
+
test: (s) => /riven/i.test(s),
|
|
315
|
+
thumbnail: wfCdn("rifle-riven-mod.png"),
|
|
316
|
+
color: 10585021
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
name: "other",
|
|
320
|
+
description: "Other",
|
|
321
|
+
test: () => true,
|
|
322
|
+
thumbnail: "",
|
|
323
|
+
color: 5198940
|
|
324
|
+
}
|
|
325
|
+
];
|
|
326
|
+
|
|
327
|
+
//#endregion
|
|
328
|
+
export { RewardTypes_default };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
//#region lib/supporting/RewardTypes.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* An object describing a type of reward, including name, description,
|
|
4
|
+
* test function to verify type from a string, thumbnail url, and color
|
|
5
|
+
*/
|
|
6
|
+
interface RewardType {
|
|
7
|
+
/**
|
|
8
|
+
* Name of the reward type.
|
|
9
|
+
*/
|
|
10
|
+
name: string;
|
|
11
|
+
/**
|
|
12
|
+
* Description of the reward type.
|
|
13
|
+
*/
|
|
14
|
+
description: string;
|
|
15
|
+
/**
|
|
16
|
+
* Function for testing the reward type against a string.
|
|
17
|
+
*/
|
|
18
|
+
test: (s: string) => boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Thumbnail url for the reward type.
|
|
21
|
+
*/
|
|
22
|
+
thumbnail: string;
|
|
23
|
+
/**
|
|
24
|
+
* Summary color representing this reward type
|
|
25
|
+
*/
|
|
26
|
+
color: number;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* All possible RewardTypes
|
|
30
|
+
* @type {Array.<RewardType>}
|
|
31
|
+
*/
|
|
32
|
+
declare const _default: RewardType[];
|
|
33
|
+
//#endregion
|
|
34
|
+
export { RewardType, _default };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { node, nodeEnemy, nodeMissionType } from "warframe-worldstate-data/utilities";
|
|
2
|
+
|
|
3
|
+
//#region lib/models/SentientOutpost.ts
|
|
4
|
+
const duration = 1800;
|
|
5
|
+
const sat = () => {
|
|
6
|
+
const now = Math.floor(Date.now() / 1e3);
|
|
7
|
+
const cycleSeconds = now % duration;
|
|
8
|
+
const active = cycleSeconds > 0 && cycleSeconds < 1800;
|
|
9
|
+
const start = (now - cycleSeconds) * 1e3;
|
|
10
|
+
const end = (now - cycleSeconds + duration) * 1e3;
|
|
11
|
+
return {
|
|
12
|
+
active,
|
|
13
|
+
expiry: new Date(end),
|
|
14
|
+
activation: new Date(start)
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Represents a set of sentient outposts that are present
|
|
19
|
+
* Parsed source is combined data from DE's worldstate and semlar.com/anomaly.json
|
|
20
|
+
*/
|
|
21
|
+
var SentientOutpost = class {
|
|
22
|
+
node;
|
|
23
|
+
id;
|
|
24
|
+
/**
|
|
25
|
+
* Start time
|
|
26
|
+
*/
|
|
27
|
+
activation;
|
|
28
|
+
/**
|
|
29
|
+
* End time
|
|
30
|
+
*/
|
|
31
|
+
expiry;
|
|
32
|
+
/**
|
|
33
|
+
* Current Mission
|
|
34
|
+
*/
|
|
35
|
+
mission;
|
|
36
|
+
/**
|
|
37
|
+
* Whether or not the object was active during creation
|
|
38
|
+
*/
|
|
39
|
+
active;
|
|
40
|
+
/**
|
|
41
|
+
* @param sfn Sentient outpost node number
|
|
42
|
+
* @param deps Dependencies
|
|
43
|
+
*/
|
|
44
|
+
constructor(sfn, { locale, sentientData, logger }) {
|
|
45
|
+
this.node = sfn || "000";
|
|
46
|
+
const id = `CrewBattleNode${this.node}`;
|
|
47
|
+
if (this.node === "000") this.mission = void 0;
|
|
48
|
+
else this.mission = {
|
|
49
|
+
node: node(id, locale),
|
|
50
|
+
faction: nodeEnemy(id, locale),
|
|
51
|
+
type: nodeMissionType(id, locale)
|
|
52
|
+
};
|
|
53
|
+
({activation: this.activation, expiry: this.expiry} = sat());
|
|
54
|
+
this.active = Boolean(this.mission);
|
|
55
|
+
this.id = `${id}:${this.active}`;
|
|
56
|
+
if (!sentientData) logger?.debug("No outpost data, skipping");
|
|
57
|
+
else {
|
|
58
|
+
this.activation = /* @__PURE__ */ new Date(sentientData.start * 1e3);
|
|
59
|
+
this.expiry = /* @__PURE__ */ new Date(sentientData.end * 1e3);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
//#endregion
|
|
65
|
+
export { SentientOutpost };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Dependency } from "./Dependency-DkOHLql6.js";
|
|
2
|
+
|
|
3
|
+
//#region lib/models/SentientOutpost.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Mission typeDef
|
|
7
|
+
*/
|
|
8
|
+
interface Mission {
|
|
9
|
+
node: string;
|
|
10
|
+
faction: string;
|
|
11
|
+
type: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Represents a set of sentient outposts that are present
|
|
15
|
+
* Parsed source is combined data from DE's worldstate and semlar.com/anomaly.json
|
|
16
|
+
*/
|
|
17
|
+
declare class SentientOutpost {
|
|
18
|
+
private node;
|
|
19
|
+
id: string;
|
|
20
|
+
/**
|
|
21
|
+
* Start time
|
|
22
|
+
*/
|
|
23
|
+
activation: Date;
|
|
24
|
+
/**
|
|
25
|
+
* End time
|
|
26
|
+
*/
|
|
27
|
+
expiry: Date;
|
|
28
|
+
/**
|
|
29
|
+
* Current Mission
|
|
30
|
+
*/
|
|
31
|
+
mission?: Mission;
|
|
32
|
+
/**
|
|
33
|
+
* Whether or not the object was active during creation
|
|
34
|
+
*/
|
|
35
|
+
active: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* @param sfn Sentient outpost node number
|
|
38
|
+
* @param deps Dependencies
|
|
39
|
+
*/
|
|
40
|
+
constructor(sfn: string | number | undefined, {
|
|
41
|
+
locale,
|
|
42
|
+
sentientData,
|
|
43
|
+
logger
|
|
44
|
+
}: Dependency);
|
|
45
|
+
}
|
|
46
|
+
//#endregion
|
|
47
|
+
export { SentientOutpost };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { languageString } from "warframe-worldstate-data/utilities";
|
|
2
|
+
|
|
3
|
+
//#region lib/models/Simaris.ts
|
|
4
|
+
/**
|
|
5
|
+
* Contains information about sanctuary targets
|
|
6
|
+
*/
|
|
7
|
+
var Simaris = class {
|
|
8
|
+
/**
|
|
9
|
+
* The sanctuary target
|
|
10
|
+
*/
|
|
11
|
+
target;
|
|
12
|
+
/**
|
|
13
|
+
* Whether or not the target is currently active
|
|
14
|
+
*/
|
|
15
|
+
isTargetActive;
|
|
16
|
+
/**
|
|
17
|
+
* @param data The sanctuary data
|
|
18
|
+
* @param deps The dependencies object
|
|
19
|
+
* @param deps.locale Locale to use for translations
|
|
20
|
+
*/
|
|
21
|
+
constructor(data, { locale } = { locale: "en" }) {
|
|
22
|
+
if (!data || !Object.keys(data).length) data = { LastCompletedTargetType: "" };
|
|
23
|
+
this.target = languageString(data.LastCompletedTargetType, locale) || "N/A";
|
|
24
|
+
this.isTargetActive = !data.LastCompletedTargetType;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* A string representation of the current sanctuary status
|
|
28
|
+
*/
|
|
29
|
+
get asString() {
|
|
30
|
+
return `Simaris's ${this.isTargetActive ? "current" : "previous"} objective ${this.isTargetActive ? "is" : "was"} ${this.target}`;
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
//#endregion
|
|
35
|
+
export { Simaris };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Dependency } from "./Dependency-DkOHLql6.js";
|
|
2
|
+
|
|
3
|
+
//#region lib/models/Simaris.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Simaris library info
|
|
7
|
+
*/
|
|
8
|
+
type LibraryInfo = {
|
|
9
|
+
LastCompletedTargetType: string;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Contains information about sanctuary targets
|
|
13
|
+
*/
|
|
14
|
+
declare class Simaris {
|
|
15
|
+
/**
|
|
16
|
+
* The sanctuary target
|
|
17
|
+
*/
|
|
18
|
+
target: string;
|
|
19
|
+
/**
|
|
20
|
+
* Whether or not the target is currently active
|
|
21
|
+
*/
|
|
22
|
+
isTargetActive: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* @param data The sanctuary data
|
|
25
|
+
* @param deps The dependencies object
|
|
26
|
+
* @param deps.locale Locale to use for translations
|
|
27
|
+
*/
|
|
28
|
+
constructor(data?: LibraryInfo, {
|
|
29
|
+
locale
|
|
30
|
+
}?: Dependency);
|
|
31
|
+
/**
|
|
32
|
+
* A string representation of the current sanctuary status
|
|
33
|
+
*/
|
|
34
|
+
get asString(): string;
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
export { LibraryInfo, Simaris };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { Dependency } from "./Dependency-DkOHLql6.js";
|
|
2
|
+
import { Mission, RawMission } from "./Mission-CWE16ouO.js";
|
|
3
|
+
import { BaseContentObject, WorldstateObject } from "./WorldstateObject-wfRTeGpm.js";
|
|
4
|
+
import { RawSortieVariant, SortieVariant } from "./SortieVariant-BFkYiBho.js";
|
|
5
|
+
|
|
6
|
+
//#region lib/models/Sortie.d.ts
|
|
7
|
+
interface RawSortie extends BaseContentObject {
|
|
8
|
+
Reward: string;
|
|
9
|
+
Variants?: RawSortieVariant[];
|
|
10
|
+
Missions?: RawMission[];
|
|
11
|
+
Boss: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Represents a daily sortie
|
|
15
|
+
* @augments {WorldstateObject}
|
|
16
|
+
*/
|
|
17
|
+
declare class Sortie extends WorldstateObject {
|
|
18
|
+
/**
|
|
19
|
+
* The sortie's reward pool
|
|
20
|
+
*/
|
|
21
|
+
rewardPool: string;
|
|
22
|
+
/**
|
|
23
|
+
* The sortie's variants
|
|
24
|
+
*/
|
|
25
|
+
variants: SortieVariant[];
|
|
26
|
+
/**
|
|
27
|
+
* Archon hunt missions if sortie is an archon hunt
|
|
28
|
+
*/
|
|
29
|
+
missions: Mission[];
|
|
30
|
+
/**
|
|
31
|
+
* The sortie's boss
|
|
32
|
+
*/
|
|
33
|
+
boss: string;
|
|
34
|
+
/**
|
|
35
|
+
* The sortie's faction
|
|
36
|
+
*/
|
|
37
|
+
faction: string;
|
|
38
|
+
/**
|
|
39
|
+
* The sortie's faction
|
|
40
|
+
*/
|
|
41
|
+
factionKey: string;
|
|
42
|
+
/**
|
|
43
|
+
* @param data The data for all daily sorties
|
|
44
|
+
* @param deps The dependencies object
|
|
45
|
+
* @param deps.locale Locale to use for translations
|
|
46
|
+
*/
|
|
47
|
+
constructor(data: RawSortie, {
|
|
48
|
+
locale
|
|
49
|
+
}?: Dependency);
|
|
50
|
+
/**
|
|
51
|
+
* ETA string (at time of object creation)
|
|
52
|
+
*/
|
|
53
|
+
get eta(): string;
|
|
54
|
+
/**
|
|
55
|
+
* Whether this is expired (at time of object creation)
|
|
56
|
+
*/
|
|
57
|
+
get expired(): boolean;
|
|
58
|
+
}
|
|
59
|
+
//#endregion
|
|
60
|
+
export { RawSortie, Sortie };
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { Mission } from "./Mission-ZuSsAYNm.js";
|
|
2
|
+
import { WorldstateObject } from "./WorldstateObject-BSTYuZwm.js";
|
|
3
|
+
import { SortieVariant } from "./SortieVariant-eWuI1uh9.js";
|
|
4
|
+
import wsData from "warframe-worldstate-data";
|
|
5
|
+
import { fromNow, languageString, parseDate, sortieBoss, sortieFaction, timeDeltaToString } from "warframe-worldstate-data/utilities";
|
|
6
|
+
|
|
7
|
+
//#region lib/models/Sortie.ts
|
|
8
|
+
const { sortie: sortieData } = wsData;
|
|
9
|
+
/**
|
|
10
|
+
* Represents a daily sortie
|
|
11
|
+
* @augments {WorldstateObject}
|
|
12
|
+
*/
|
|
13
|
+
var Sortie = class extends WorldstateObject {
|
|
14
|
+
/**
|
|
15
|
+
* The sortie's reward pool
|
|
16
|
+
*/
|
|
17
|
+
rewardPool;
|
|
18
|
+
/**
|
|
19
|
+
* The sortie's variants
|
|
20
|
+
*/
|
|
21
|
+
variants;
|
|
22
|
+
/**
|
|
23
|
+
* Archon hunt missions if sortie is an archon hunt
|
|
24
|
+
*/
|
|
25
|
+
missions;
|
|
26
|
+
/**
|
|
27
|
+
* The sortie's boss
|
|
28
|
+
*/
|
|
29
|
+
boss;
|
|
30
|
+
/**
|
|
31
|
+
* The sortie's faction
|
|
32
|
+
*/
|
|
33
|
+
faction;
|
|
34
|
+
/**
|
|
35
|
+
* The sortie's faction
|
|
36
|
+
*/
|
|
37
|
+
factionKey;
|
|
38
|
+
/**
|
|
39
|
+
* @param data The data for all daily sorties
|
|
40
|
+
* @param deps The dependencies object
|
|
41
|
+
* @param deps.locale Locale to use for translations
|
|
42
|
+
*/
|
|
43
|
+
constructor(data, { locale = "en" } = { locale: "en" }) {
|
|
44
|
+
super(data);
|
|
45
|
+
const opts = {
|
|
46
|
+
sortieData,
|
|
47
|
+
locale
|
|
48
|
+
};
|
|
49
|
+
this.activation = parseDate(data.Activation);
|
|
50
|
+
this.expiry = parseDate(data.Expiry);
|
|
51
|
+
this.rewardPool = languageString(data.Reward, locale);
|
|
52
|
+
this.variants = (data.Variants ?? []).map((v) => new SortieVariant(v, opts));
|
|
53
|
+
this.missions = (data.Missions ?? []).map((v) => new Mission(v, opts));
|
|
54
|
+
this.boss = sortieBoss(data.Boss, locale);
|
|
55
|
+
this.faction = sortieFaction(data.Boss, locale);
|
|
56
|
+
this.factionKey = sortieFaction(data.Boss, "en");
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* ETA string (at time of object creation)
|
|
60
|
+
*/
|
|
61
|
+
get eta() {
|
|
62
|
+
return timeDeltaToString(fromNow(this.expiry));
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Whether this is expired (at time of object creation)
|
|
66
|
+
*/
|
|
67
|
+
get expired() {
|
|
68
|
+
return fromNow(this.expiry) < 0;
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
//#endregion
|
|
73
|
+
export { Sortie };
|