@wfcd/profile-parser 2.0.10 → 2.0.11
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/Ability.d.mts +1 -1
- package/dist/ChallengeProgress.d.mts +1 -1
- package/dist/Enemy.d.mts +1 -1
- package/dist/Intrinsics.d.mts +1 -1
- package/dist/{ItemConfig-R2z1Z3uo.d.mts → ItemConfig-DxhXby04.d.mts} +2 -2
- package/dist/ItemConfig.d.mts +3 -3
- package/dist/{LoadOutInventory-BtVQX9Mi.d.mts → LoadOutInventory-B84bUV2-.d.mts} +3 -3
- package/dist/LoadOutInventory.d.mts +6 -7
- package/dist/{LoadOutItem-weow3bab.d.mts → LoadOutItem-DWQ4aFI_.d.mts} +3 -3
- package/dist/LoadOutItem.d.mts +4 -5
- package/dist/LoadOutPreset.d.mts +1 -1
- package/dist/Mission.d.mts +1 -1
- package/dist/{OperatorLoadOuts-DtxjrIci.d.mts → OperatorLoadOuts-51DN5Rwo.d.mts} +2 -2
- package/dist/OperatorLoadOuts.d.mts +3 -3
- package/dist/Polarity.d.mts +1 -1
- package/dist/Profile.d.mts +215 -14
- package/dist/Profile.mjs +191 -8
- package/dist/ProfileParser.d.mts +9 -21
- package/dist/ProfileParser.mjs +2 -10
- package/dist/Pvp.d.mts +1 -1
- package/dist/Pvp.mjs +1 -1
- package/dist/Race.d.mts +1 -1
- package/dist/Race.mjs +1 -1
- package/dist/Scan.d.mts +1 -1
- package/dist/Scan.mjs +1 -1
- package/dist/Skin.d.mts +1 -1
- package/dist/Stats.d.mts +324 -8
- package/dist/Stats.mjs +303 -8
- package/dist/Syndicate.d.mts +1 -1
- package/dist/Utils.d.mts +1 -1
- package/dist/Weapon.d.mts +1 -1
- package/dist/Weapon.mjs +1 -1
- package/dist/XpInfo.d.mts +1 -1
- package/package.json +5 -5
- package/dist/Profile-Beptm6wY.d.mts +0 -212
- package/dist/Profile-D15zUqzG.mjs +0 -193
- package/dist/Stats-Bvzk1GOV.mjs +0 -305
- package/dist/Stats-D8GkxqWB.d.mts +0 -325
- /package/dist/{Ability-Bkn1Kr0F.d.mts → Ability-CmHyNfw4.d.mts} +0 -0
- /package/dist/{ChallengeProgress-ByYNDHWY.d.mts → ChallengeProgress-BO8tPybG.d.mts} +0 -0
- /package/dist/{Enemy-VT_y6RNw.d.mts → Enemy-5RVVfZme.d.mts} +0 -0
- /package/dist/{Intrinsics-aQNZre3S.d.mts → Intrinsics-DwonOlUE.d.mts} +0 -0
- /package/dist/{LoadOutPreset-Dvs-Zisw.d.mts → LoadOutPreset-m_1RVkf9.d.mts} +0 -0
- /package/dist/{Mission-Bkx_g_to.d.mts → Mission-CeX2BRp0.d.mts} +0 -0
- /package/dist/{Polarity-0fJe_D8l.d.mts → Polarity-KCoYUO6f.d.mts} +0 -0
- /package/dist/{Pvp-DwOk9iPM.mjs → Pvp-DCfleh26.mjs} +0 -0
- /package/dist/{Pvp-DtncK80C.d.mts → Pvp-R4iYmiAT.d.mts} +0 -0
- /package/dist/{Race-b-1i8d0Y.d.mts → Race-DXOXL9VT.d.mts} +0 -0
- /package/dist/{Race-CV98F8P6.mjs → Race-dyrF8Zs5.mjs} +0 -0
- /package/dist/{Scan-2TQmEr2X.d.mts → Scan-CJnYpzKb.d.mts} +0 -0
- /package/dist/{Scan-Du5aj7LZ.mjs → Scan-D4p43-1c.mjs} +0 -0
- /package/dist/{Skin-CqeNtCDU.d.mts → Skin-DJMr6L-X.d.mts} +0 -0
- /package/dist/{Syndicate-PiVz8ikQ.d.mts → Syndicate-Dq5vLEB-.d.mts} +0 -0
- /package/dist/{Utils-M8z7sZIf.d.mts → Utils-VTFhFHIp.d.mts} +0 -0
- /package/dist/{Weapon-zRX33-22.mjs → Weapon-CsKff27X.mjs} +0 -0
- /package/dist/{Weapon-CUoF9mPh.d.mts → Weapon-DgQ4hNgE.d.mts} +0 -0
- /package/dist/{XpInfo-CpwSvxlR.d.mts → XpInfo-qplT5008.d.mts} +0 -0
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
import { n as RawChallengeProgress, t as ChallengeProgress } from "./ChallengeProgress-ByYNDHWY.mjs";
|
|
2
|
-
import { n as RawIntrinsics, t as Intrinsics } from "./Intrinsics-aQNZre3S.mjs";
|
|
3
|
-
import { n as RawDate, r as RawId } from "./Utils-M8z7sZIf.mjs";
|
|
4
|
-
import { n as RawLoadOut, t as LoadOutInventory } from "./LoadOutInventory-BtVQX9Mi.mjs";
|
|
5
|
-
import { n as RawLoadOutPreset, t as LoadOutPreset } from "./LoadOutPreset-Dvs-Zisw.mjs";
|
|
6
|
-
import { n as RawMission, t as Mission } from "./Mission-Bkx_g_to.mjs";
|
|
7
|
-
import { n as RawOperatorLoadOuts, t as OperatorLoadOuts } from "./OperatorLoadOuts-DtxjrIci.mjs";
|
|
8
|
-
import { n as Syndicate, t as RawAffiliation } from "./Syndicate-PiVz8ikQ.mjs";
|
|
9
|
-
import { Locale } from "warframe-worldstate-data";
|
|
10
|
-
|
|
11
|
-
//#region src/Profile.d.ts
|
|
12
|
-
interface RawProfile {
|
|
13
|
-
AccountId: {
|
|
14
|
-
$oid: string;
|
|
15
|
-
};
|
|
16
|
-
DisplayName: string;
|
|
17
|
-
PlatformNames?: string[];
|
|
18
|
-
PlayerLevel: number;
|
|
19
|
-
LoadOutPreset: RawLoadOutPreset;
|
|
20
|
-
LoadOutInventory: RawLoadOut;
|
|
21
|
-
PlayerSkills: RawIntrinsics;
|
|
22
|
-
ChallengeProgress: RawChallengeProgress[];
|
|
23
|
-
GuildId: RawId;
|
|
24
|
-
GuildName: string;
|
|
25
|
-
GuildTier: number;
|
|
26
|
-
GuildXp: number;
|
|
27
|
-
GuildClass: number;
|
|
28
|
-
GuildEmblem: boolean;
|
|
29
|
-
AllianceId?: RawId;
|
|
30
|
-
DeathMarks: string[];
|
|
31
|
-
Harvestable: boolean;
|
|
32
|
-
DeathSquadable: boolean;
|
|
33
|
-
Created: RawDate;
|
|
34
|
-
MigratedToConsole: boolean;
|
|
35
|
-
Missions: RawMission[];
|
|
36
|
-
Affiliations: RawAffiliation[];
|
|
37
|
-
DailyAffiliation: number;
|
|
38
|
-
DailyAffiliationPvp?: number;
|
|
39
|
-
DailyAffiliationLibrary?: number;
|
|
40
|
-
DailyAffiliationCetus?: number;
|
|
41
|
-
DailyAffiliationQuills?: number;
|
|
42
|
-
DailyAffiliationSolaris?: number;
|
|
43
|
-
DailyAffiliationVentkids?: number;
|
|
44
|
-
DailyAffiliationVox?: number;
|
|
45
|
-
DailyAffiliationEntrati?: number;
|
|
46
|
-
DailyAffiliationNecraloid?: number;
|
|
47
|
-
DailyAffiliationZariman?: number;
|
|
48
|
-
DailyAffiliationKahl?: number;
|
|
49
|
-
DailyAffiliationCavia?: number;
|
|
50
|
-
DailyAffiliationHex?: number;
|
|
51
|
-
DailyFocus?: number;
|
|
52
|
-
Wishlist?: any;
|
|
53
|
-
UnlockedOperator: boolean;
|
|
54
|
-
UnlockedAlignment: boolean;
|
|
55
|
-
OperatorLoadOuts: RawOperatorLoadOuts[];
|
|
56
|
-
Alignment: {
|
|
57
|
-
Wisdom: number;
|
|
58
|
-
Alignment: number;
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* A player's profile
|
|
63
|
-
* @module
|
|
64
|
-
*/
|
|
65
|
-
declare class Profile {
|
|
66
|
-
/**
|
|
67
|
-
* Player's account ID
|
|
68
|
-
*/
|
|
69
|
-
accountId: string;
|
|
70
|
-
/**
|
|
71
|
-
* In-game name
|
|
72
|
-
*/
|
|
73
|
-
displayName: string;
|
|
74
|
-
/**
|
|
75
|
-
* List of usernames across supported platforms
|
|
76
|
-
*/
|
|
77
|
-
platformNames: string[];
|
|
78
|
-
/**
|
|
79
|
-
* Mastery rank
|
|
80
|
-
*/
|
|
81
|
-
masteryRank: number;
|
|
82
|
-
/**
|
|
83
|
-
* Load out preset equipped
|
|
84
|
-
*/
|
|
85
|
-
preset?: LoadOutPreset;
|
|
86
|
-
/**
|
|
87
|
-
* Current loadout
|
|
88
|
-
*/
|
|
89
|
-
loadout: LoadOutInventory;
|
|
90
|
-
/**
|
|
91
|
-
* Railjack and drifter Intrinsics
|
|
92
|
-
*/
|
|
93
|
-
intrinsics?: Intrinsics;
|
|
94
|
-
/**
|
|
95
|
-
* Nightwave challenges progress
|
|
96
|
-
*/
|
|
97
|
-
challengeProgress: ChallengeProgress[];
|
|
98
|
-
/**
|
|
99
|
-
* Guild ID
|
|
100
|
-
*/
|
|
101
|
-
guildId?: string;
|
|
102
|
-
/**
|
|
103
|
-
* Guild name
|
|
104
|
-
*/
|
|
105
|
-
guildName?: string;
|
|
106
|
-
/**
|
|
107
|
-
* Guild tier
|
|
108
|
-
*/
|
|
109
|
-
guildTier?: number;
|
|
110
|
-
/**
|
|
111
|
-
* Guild XP
|
|
112
|
-
*/
|
|
113
|
-
guildXp?: number;
|
|
114
|
-
/**
|
|
115
|
-
* Guild class
|
|
116
|
-
*/
|
|
117
|
-
guildClass?: number;
|
|
118
|
-
/**
|
|
119
|
-
* Guild emblem.
|
|
120
|
-
*/
|
|
121
|
-
guildEmblem: boolean;
|
|
122
|
-
/**
|
|
123
|
-
* Alliance ID
|
|
124
|
-
*/
|
|
125
|
-
allianceId?: string;
|
|
126
|
-
/**
|
|
127
|
-
* Assassins currently asfter the player
|
|
128
|
-
*/
|
|
129
|
-
deathMarks: string[];
|
|
130
|
-
/**
|
|
131
|
-
* Whether or not the player is qualified as a target for Zanuka
|
|
132
|
-
* @type {boolean}
|
|
133
|
-
*/
|
|
134
|
-
harvestable: boolean;
|
|
135
|
-
/**
|
|
136
|
-
* Whether or not the player is qualified as a target for a syndicate death squad
|
|
137
|
-
*/
|
|
138
|
-
deathSquadable: boolean;
|
|
139
|
-
/**
|
|
140
|
-
* Date the account was created
|
|
141
|
-
*/
|
|
142
|
-
created: Date;
|
|
143
|
-
/**
|
|
144
|
-
* Whether the user has migrated to console or not
|
|
145
|
-
*/
|
|
146
|
-
migratedToConsole: boolean;
|
|
147
|
-
/**
|
|
148
|
-
* List of completed missions and their completions
|
|
149
|
-
*/
|
|
150
|
-
missions: Mission[];
|
|
151
|
-
/**
|
|
152
|
-
* Player standing and title across all syndicates
|
|
153
|
-
*/
|
|
154
|
-
syndicates?: Syndicate[];
|
|
155
|
-
/**
|
|
156
|
-
* Daily standing per Syndicate
|
|
157
|
-
*
|
|
158
|
-
* Faction syndicates all share daily standing
|
|
159
|
-
*/
|
|
160
|
-
dailyStanding: {
|
|
161
|
-
daily: number;
|
|
162
|
-
conclave?: number;
|
|
163
|
-
simaris?: number;
|
|
164
|
-
ostron?: number;
|
|
165
|
-
quills?: number;
|
|
166
|
-
solaris?: number;
|
|
167
|
-
ventKids?: number;
|
|
168
|
-
voxSolaris?: number;
|
|
169
|
-
entrati?: number;
|
|
170
|
-
necraloid?: number;
|
|
171
|
-
holdfasts?: number;
|
|
172
|
-
kahl?: number;
|
|
173
|
-
cavia?: number;
|
|
174
|
-
hex?: number;
|
|
175
|
-
};
|
|
176
|
-
/**
|
|
177
|
-
* Daily focus
|
|
178
|
-
*/
|
|
179
|
-
dailyFocus?: number;
|
|
180
|
-
/**
|
|
181
|
-
* Player wishlist for in-game market items
|
|
182
|
-
*/
|
|
183
|
-
wishList: any;
|
|
184
|
-
/**
|
|
185
|
-
* Whether the player has unlocked their operator or not
|
|
186
|
-
*/
|
|
187
|
-
unlockedOperator: boolean;
|
|
188
|
-
/**
|
|
189
|
-
* Whether the player has unlocked their alignment or not
|
|
190
|
-
*/
|
|
191
|
-
unlockedAlignment: boolean;
|
|
192
|
-
/**
|
|
193
|
-
* Operator loadout
|
|
194
|
-
*/
|
|
195
|
-
operatorLoadouts?: OperatorLoadOuts[];
|
|
196
|
-
/**
|
|
197
|
-
* Player's alignment
|
|
198
|
-
*/
|
|
199
|
-
alignment?: {
|
|
200
|
-
wisdom: number;
|
|
201
|
-
alignment: number;
|
|
202
|
-
};
|
|
203
|
-
/**
|
|
204
|
-
*
|
|
205
|
-
* @param profile The profile data to parse
|
|
206
|
-
* @param locale The locale to return in where possible
|
|
207
|
-
* @param withItem Whether or not to include items
|
|
208
|
-
*/
|
|
209
|
-
constructor(profile: RawProfile, locale?: Locale, withItem?: boolean);
|
|
210
|
-
}
|
|
211
|
-
//#endregion
|
|
212
|
-
export { RawProfile as n, Profile as t };
|
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
import { t as ChallengeProgress } from "./ChallengeProgress-Cpks92At.mjs";
|
|
2
|
-
import { t as Intrinsics } from "./Intrinsics-kYw_LPq1.mjs";
|
|
3
|
-
import { t as LoadOutInventory } from "./LoadOutInventory-BbaIazHX.mjs";
|
|
4
|
-
import { t as LoadOutPreset } from "./LoadOutPreset-CwbK2VvR.mjs";
|
|
5
|
-
import { t as Mission } from "./Mission-DfGQMV7B.mjs";
|
|
6
|
-
import { t as OperatorLoadOuts } from "./OperatorLoadOuts-LYGpTHuj.mjs";
|
|
7
|
-
import { t as Syndicate } from "./Syndicate-CcRnzmZs.mjs";
|
|
8
|
-
import { parseDate } from "warframe-worldstate-data/utilities";
|
|
9
|
-
|
|
10
|
-
//#region src/Profile.ts
|
|
11
|
-
/**
|
|
12
|
-
* A player's profile
|
|
13
|
-
* @module
|
|
14
|
-
*/
|
|
15
|
-
var Profile = class {
|
|
16
|
-
/**
|
|
17
|
-
* Player's account ID
|
|
18
|
-
*/
|
|
19
|
-
accountId;
|
|
20
|
-
/**
|
|
21
|
-
* In-game name
|
|
22
|
-
*/
|
|
23
|
-
displayName;
|
|
24
|
-
/**
|
|
25
|
-
* List of usernames across supported platforms
|
|
26
|
-
*/
|
|
27
|
-
platformNames;
|
|
28
|
-
/**
|
|
29
|
-
* Mastery rank
|
|
30
|
-
*/
|
|
31
|
-
masteryRank;
|
|
32
|
-
/**
|
|
33
|
-
* Load out preset equipped
|
|
34
|
-
*/
|
|
35
|
-
preset;
|
|
36
|
-
/**
|
|
37
|
-
* Current loadout
|
|
38
|
-
*/
|
|
39
|
-
loadout;
|
|
40
|
-
/**
|
|
41
|
-
* Railjack and drifter Intrinsics
|
|
42
|
-
*/
|
|
43
|
-
intrinsics;
|
|
44
|
-
/**
|
|
45
|
-
* Nightwave challenges progress
|
|
46
|
-
*/
|
|
47
|
-
challengeProgress;
|
|
48
|
-
/**
|
|
49
|
-
* Guild ID
|
|
50
|
-
*/
|
|
51
|
-
guildId;
|
|
52
|
-
/**
|
|
53
|
-
* Guild name
|
|
54
|
-
*/
|
|
55
|
-
guildName;
|
|
56
|
-
/**
|
|
57
|
-
* Guild tier
|
|
58
|
-
*/
|
|
59
|
-
guildTier;
|
|
60
|
-
/**
|
|
61
|
-
* Guild XP
|
|
62
|
-
*/
|
|
63
|
-
guildXp;
|
|
64
|
-
/**
|
|
65
|
-
* Guild class
|
|
66
|
-
*/
|
|
67
|
-
guildClass;
|
|
68
|
-
/**
|
|
69
|
-
* Guild emblem.
|
|
70
|
-
*/
|
|
71
|
-
guildEmblem;
|
|
72
|
-
/**
|
|
73
|
-
* Alliance ID
|
|
74
|
-
*/
|
|
75
|
-
allianceId;
|
|
76
|
-
/**
|
|
77
|
-
* Assassins currently asfter the player
|
|
78
|
-
*/
|
|
79
|
-
deathMarks;
|
|
80
|
-
/**
|
|
81
|
-
* Whether or not the player is qualified as a target for Zanuka
|
|
82
|
-
* @type {boolean}
|
|
83
|
-
*/
|
|
84
|
-
harvestable;
|
|
85
|
-
/**
|
|
86
|
-
* Whether or not the player is qualified as a target for a syndicate death squad
|
|
87
|
-
*/
|
|
88
|
-
deathSquadable;
|
|
89
|
-
/**
|
|
90
|
-
* Date the account was created
|
|
91
|
-
*/
|
|
92
|
-
created;
|
|
93
|
-
/**
|
|
94
|
-
* Whether the user has migrated to console or not
|
|
95
|
-
*/
|
|
96
|
-
migratedToConsole;
|
|
97
|
-
/**
|
|
98
|
-
* List of completed missions and their completions
|
|
99
|
-
*/
|
|
100
|
-
missions;
|
|
101
|
-
/**
|
|
102
|
-
* Player standing and title across all syndicates
|
|
103
|
-
*/
|
|
104
|
-
syndicates;
|
|
105
|
-
/**
|
|
106
|
-
* Daily standing per Syndicate
|
|
107
|
-
*
|
|
108
|
-
* Faction syndicates all share daily standing
|
|
109
|
-
*/
|
|
110
|
-
dailyStanding;
|
|
111
|
-
/**
|
|
112
|
-
* Daily focus
|
|
113
|
-
*/
|
|
114
|
-
dailyFocus;
|
|
115
|
-
/**
|
|
116
|
-
* Player wishlist for in-game market items
|
|
117
|
-
*/
|
|
118
|
-
wishList;
|
|
119
|
-
/**
|
|
120
|
-
* Whether the player has unlocked their operator or not
|
|
121
|
-
*/
|
|
122
|
-
unlockedOperator;
|
|
123
|
-
/**
|
|
124
|
-
* Whether the player has unlocked their alignment or not
|
|
125
|
-
*/
|
|
126
|
-
unlockedAlignment;
|
|
127
|
-
/**
|
|
128
|
-
* Operator loadout
|
|
129
|
-
*/
|
|
130
|
-
operatorLoadouts;
|
|
131
|
-
/**
|
|
132
|
-
* Player's alignment
|
|
133
|
-
*/
|
|
134
|
-
alignment;
|
|
135
|
-
/**
|
|
136
|
-
*
|
|
137
|
-
* @param profile The profile data to parse
|
|
138
|
-
* @param locale The locale to return in where possible
|
|
139
|
-
* @param withItem Whether or not to include items
|
|
140
|
-
*/
|
|
141
|
-
constructor(profile, locale = "en", withItem = false) {
|
|
142
|
-
this.accountId = profile.AccountId.$oid;
|
|
143
|
-
this.displayName = profile.DisplayName;
|
|
144
|
-
this.platformNames = profile.PlatformNames ?? [];
|
|
145
|
-
this.masteryRank = profile.PlayerLevel;
|
|
146
|
-
if (profile.LoadOutPreset) this.preset = new LoadOutPreset(profile.LoadOutPreset);
|
|
147
|
-
this.loadout = new LoadOutInventory(profile.LoadOutInventory, locale, withItem);
|
|
148
|
-
this.intrinsics = new Intrinsics(profile.PlayerSkills ?? {});
|
|
149
|
-
this.challengeProgress = profile.ChallengeProgress.map((c) => new ChallengeProgress(c));
|
|
150
|
-
if (profile.GuildId?.$oid) this.guildId = profile.GuildId.$oid;
|
|
151
|
-
this.guildName = profile.GuildName;
|
|
152
|
-
this.guildTier = profile.GuildTier;
|
|
153
|
-
this.guildXp = profile.GuildXp;
|
|
154
|
-
this.guildClass = profile.GuildClass;
|
|
155
|
-
this.guildEmblem = profile.GuildEmblem;
|
|
156
|
-
if (profile.AllianceId) this.allianceId = profile.AllianceId.$oid;
|
|
157
|
-
this.deathMarks = profile.DeathMarks;
|
|
158
|
-
this.harvestable = profile.Harvestable;
|
|
159
|
-
this.deathSquadable = profile.DeathSquadable;
|
|
160
|
-
this.created = parseDate(profile.Created);
|
|
161
|
-
this.migratedToConsole = profile.MigratedToConsole;
|
|
162
|
-
this.missions = profile.Missions.map((m) => new Mission(m, locale));
|
|
163
|
-
this.syndicates = profile.Affiliations?.map((a) => new Syndicate(a, locale)) ?? [];
|
|
164
|
-
this.dailyStanding = {
|
|
165
|
-
daily: profile.DailyAffiliation,
|
|
166
|
-
conclave: profile.DailyAffiliationPvp,
|
|
167
|
-
simaris: profile.DailyAffiliationLibrary,
|
|
168
|
-
ostron: profile.DailyAffiliationCetus,
|
|
169
|
-
quills: profile.DailyAffiliationQuills,
|
|
170
|
-
solaris: profile.DailyAffiliationSolaris,
|
|
171
|
-
ventKids: profile.DailyAffiliationVentkids,
|
|
172
|
-
voxSolaris: profile.DailyAffiliationVox,
|
|
173
|
-
entrati: profile.DailyAffiliationEntrati,
|
|
174
|
-
necraloid: profile.DailyAffiliationNecraloid,
|
|
175
|
-
holdfasts: profile.DailyAffiliationZariman,
|
|
176
|
-
kahl: profile.DailyAffiliationKahl,
|
|
177
|
-
cavia: profile.DailyAffiliationCavia,
|
|
178
|
-
hex: profile.DailyAffiliationHex
|
|
179
|
-
};
|
|
180
|
-
this.dailyFocus = profile.DailyFocus;
|
|
181
|
-
this.wishList = profile.Wishlist;
|
|
182
|
-
this.unlockedOperator = profile.UnlockedOperator;
|
|
183
|
-
this.unlockedAlignment = profile.UnlockedAlignment;
|
|
184
|
-
this.operatorLoadouts = profile.OperatorLoadOuts?.map((ol) => new OperatorLoadOuts(ol, locale));
|
|
185
|
-
if (profile.Alignment) this.alignment = {
|
|
186
|
-
wisdom: profile.Alignment?.Wisdom,
|
|
187
|
-
alignment: profile.Alignment?.Alignment
|
|
188
|
-
};
|
|
189
|
-
}
|
|
190
|
-
};
|
|
191
|
-
|
|
192
|
-
//#endregion
|
|
193
|
-
export { Profile as t };
|
package/dist/Stats-Bvzk1GOV.mjs
DELETED
|
@@ -1,305 +0,0 @@
|
|
|
1
|
-
import { t as Ability } from "./Ability-DsyqxzjP.mjs";
|
|
2
|
-
import { t as Enemy } from "./Enemy-B3JSksZZ.mjs";
|
|
3
|
-
import { t as Mission } from "./Mission-DfGQMV7B.mjs";
|
|
4
|
-
import { t as Pvp } from "./Pvp-DwOk9iPM.mjs";
|
|
5
|
-
import { t as Race } from "./Race-CV98F8P6.mjs";
|
|
6
|
-
import { t as Scan } from "./Scan-Du5aj7LZ.mjs";
|
|
7
|
-
import { t as Weapon } from "./Weapon-zRX33-22.mjs";
|
|
8
|
-
|
|
9
|
-
//#region src/Stats.ts
|
|
10
|
-
/**
|
|
11
|
-
* A player's overall career stats
|
|
12
|
-
* @module
|
|
13
|
-
*/
|
|
14
|
-
var Stats = class {
|
|
15
|
-
/**
|
|
16
|
-
* Guild name
|
|
17
|
-
*/
|
|
18
|
-
guildName;
|
|
19
|
-
/**
|
|
20
|
-
* Missions completed
|
|
21
|
-
*/
|
|
22
|
-
missionsCompleted;
|
|
23
|
-
/**
|
|
24
|
-
* Missions quit
|
|
25
|
-
*/
|
|
26
|
-
missionsQuit;
|
|
27
|
-
/**
|
|
28
|
-
* Misions failed
|
|
29
|
-
*/
|
|
30
|
-
missionsFailed;
|
|
31
|
-
/**
|
|
32
|
-
* Missions interrupted
|
|
33
|
-
*/
|
|
34
|
-
missionsInterrupted;
|
|
35
|
-
/**
|
|
36
|
-
* Missions dumped
|
|
37
|
-
*/
|
|
38
|
-
missionsDumped;
|
|
39
|
-
/**
|
|
40
|
-
* Items picked up
|
|
41
|
-
*/
|
|
42
|
-
pickupCount;
|
|
43
|
-
/**
|
|
44
|
-
* Stats per weapon
|
|
45
|
-
*/
|
|
46
|
-
weapons;
|
|
47
|
-
/**
|
|
48
|
-
* Stats on enemy encounters.
|
|
49
|
-
*/
|
|
50
|
-
enemies;
|
|
51
|
-
/**
|
|
52
|
-
* Max score for Operation: Cryotic Front
|
|
53
|
-
*/
|
|
54
|
-
excavationEventScoreMax;
|
|
55
|
-
/**
|
|
56
|
-
* Max scoring for The Cicero crisis
|
|
57
|
-
*/
|
|
58
|
-
forestEventScoreMax;
|
|
59
|
-
/**
|
|
60
|
-
* Clan scoring for The Cicero crisis
|
|
61
|
-
*/
|
|
62
|
-
forestEventScoreSum;
|
|
63
|
-
/**
|
|
64
|
-
* Melee kills
|
|
65
|
-
*/
|
|
66
|
-
meleeKills;
|
|
67
|
-
/**
|
|
68
|
-
* Used abilities
|
|
69
|
-
*/
|
|
70
|
-
abilities;
|
|
71
|
-
/**
|
|
72
|
-
* Ciphers completed successfully
|
|
73
|
-
*/
|
|
74
|
-
ciphersSolved;
|
|
75
|
-
/**
|
|
76
|
-
* Ciphers failed
|
|
77
|
-
*/
|
|
78
|
-
ciphersFailed;
|
|
79
|
-
/**
|
|
80
|
-
* Gross income
|
|
81
|
-
*/
|
|
82
|
-
income;
|
|
83
|
-
/**
|
|
84
|
-
* Total play time since account creation
|
|
85
|
-
*/
|
|
86
|
-
timePlayedSec;
|
|
87
|
-
/**
|
|
88
|
-
* Average time to hack a panel
|
|
89
|
-
*/
|
|
90
|
-
cipherTime;
|
|
91
|
-
/**
|
|
92
|
-
* N/A
|
|
93
|
-
*/
|
|
94
|
-
rating;
|
|
95
|
-
/**
|
|
96
|
-
* Mastery rank
|
|
97
|
-
*/
|
|
98
|
-
rank;
|
|
99
|
-
/**
|
|
100
|
-
* Total deaths since account creation
|
|
101
|
-
*/
|
|
102
|
-
deaths;
|
|
103
|
-
/**
|
|
104
|
-
* Mastery rank
|
|
105
|
-
*/
|
|
106
|
-
playerLevel;
|
|
107
|
-
/**
|
|
108
|
-
* List of missions and high scores
|
|
109
|
-
*/
|
|
110
|
-
missions;
|
|
111
|
-
/**
|
|
112
|
-
* Team heals
|
|
113
|
-
*/
|
|
114
|
-
healCount;
|
|
115
|
-
/**
|
|
116
|
-
* Event Scores for Operation breeding grounds
|
|
117
|
-
*/
|
|
118
|
-
breedGrounds;
|
|
119
|
-
/**
|
|
120
|
-
* Event Scores for The Gradivus Dilemma
|
|
121
|
-
*/
|
|
122
|
-
gradivusDilemma;
|
|
123
|
-
/**
|
|
124
|
-
* List of scanned Warframe objects
|
|
125
|
-
*/
|
|
126
|
-
scans;
|
|
127
|
-
/**
|
|
128
|
-
* Team revives
|
|
129
|
-
*/
|
|
130
|
-
reviveCount;
|
|
131
|
-
/**
|
|
132
|
-
* Score for Operation: Eyes of Blight
|
|
133
|
-
*/
|
|
134
|
-
fomorianEventScore;
|
|
135
|
-
/**
|
|
136
|
-
* Conclave scores
|
|
137
|
-
*/
|
|
138
|
-
pvp;
|
|
139
|
-
/**
|
|
140
|
-
* Lunaro stats
|
|
141
|
-
*/
|
|
142
|
-
lunaro;
|
|
143
|
-
/**
|
|
144
|
-
* Dojo obstacle course goal
|
|
145
|
-
*/
|
|
146
|
-
dojoObstacleScore;
|
|
147
|
-
/**
|
|
148
|
-
* N/A
|
|
149
|
-
*/
|
|
150
|
-
pvpGamesPendingMask;
|
|
151
|
-
/**
|
|
152
|
-
* N/A
|
|
153
|
-
*/
|
|
154
|
-
dedicatedServerGamesCompleted;
|
|
155
|
-
/**
|
|
156
|
-
* Event score for the Pacifism Defect
|
|
157
|
-
*/
|
|
158
|
-
pacifismDefect;
|
|
159
|
-
/**
|
|
160
|
-
* Score for operation Ambulas reborn.
|
|
161
|
-
*/
|
|
162
|
-
ambulasReborn;
|
|
163
|
-
/**
|
|
164
|
-
* Score for Wyrmius mini game
|
|
165
|
-
*/
|
|
166
|
-
sentinelGameScore;
|
|
167
|
-
/**
|
|
168
|
-
* Event score for operation hostile merger
|
|
169
|
-
*/
|
|
170
|
-
amalgamEventScoreMax;
|
|
171
|
-
/**
|
|
172
|
-
* Operation Scarlet spear event score and badges
|
|
173
|
-
*/
|
|
174
|
-
scarletSpear;
|
|
175
|
-
/**
|
|
176
|
-
* Operation: Orphix Venom score
|
|
177
|
-
*/
|
|
178
|
-
orphixVenomScore;
|
|
179
|
-
/**
|
|
180
|
-
* Play's Highest score in Happy Zephyr
|
|
181
|
-
*/
|
|
182
|
-
happyZephyrScore;
|
|
183
|
-
/**
|
|
184
|
-
* K-Drive races
|
|
185
|
-
*/
|
|
186
|
-
kDriveRaces;
|
|
187
|
-
/**
|
|
188
|
-
* Operation Gate Crash event
|
|
189
|
-
*/
|
|
190
|
-
gateCrash;
|
|
191
|
-
/**
|
|
192
|
-
* Per mission score for Operation: False Profit
|
|
193
|
-
*/
|
|
194
|
-
falseProfitMissionScore;
|
|
195
|
-
/**
|
|
196
|
-
* Total even score for Operation: False Profit
|
|
197
|
-
*/
|
|
198
|
-
falseProfitEventScore;
|
|
199
|
-
/**
|
|
200
|
-
* Operation: Shadow Debt event score
|
|
201
|
-
*/
|
|
202
|
-
shadowDebtEventScore;
|
|
203
|
-
/**
|
|
204
|
-
* Operation: Rathuum event score
|
|
205
|
-
*/
|
|
206
|
-
rathuumEventScore;
|
|
207
|
-
/**
|
|
208
|
-
* Hollowed flame event max score
|
|
209
|
-
*/
|
|
210
|
-
hallowedFlameScoreMax;
|
|
211
|
-
/**
|
|
212
|
-
* Survival Weekend event score
|
|
213
|
-
*/
|
|
214
|
-
survivalWeekenedEventScore;
|
|
215
|
-
/**
|
|
216
|
-
* N/A
|
|
217
|
-
*/
|
|
218
|
-
infestedEventScore;
|
|
219
|
-
/**
|
|
220
|
-
*
|
|
221
|
-
* @param stats Player stats
|
|
222
|
-
*/
|
|
223
|
-
constructor(stats) {
|
|
224
|
-
this.guildName = stats.GuildName;
|
|
225
|
-
this.missionsCompleted = stats.MissionsCompleted;
|
|
226
|
-
this.missionsQuit = stats.MissionsQuit;
|
|
227
|
-
this.missionsFailed = stats.MissionsFailed;
|
|
228
|
-
this.missionsInterrupted = stats.MissionsInterrupted;
|
|
229
|
-
this.missionsDumped = stats.MissionsDumped;
|
|
230
|
-
this.pickupCount = stats.PickupCount;
|
|
231
|
-
this.weapons = stats.Weapons.map((w) => new Weapon(w));
|
|
232
|
-
this.enemies = stats.Enemies.map((e) => new Enemy(e));
|
|
233
|
-
if (stats.ExcavationEventScoreMax) this.excavationEventScoreMax = stats.ExcavationEventScoreMax;
|
|
234
|
-
if (stats.ForestEventScoreMax) this.forestEventScoreMax = stats.ForestEventScoreMax;
|
|
235
|
-
if (stats.ForestEventScoreSum) this.forestEventScoreSum = stats.ForestEventScoreSum;
|
|
236
|
-
this.meleeKills = stats.MeleeKills;
|
|
237
|
-
this.abilities = stats.Abilities.map((a) => new Ability(a));
|
|
238
|
-
this.ciphersSolved = stats.CiphersSolved;
|
|
239
|
-
this.ciphersFailed = stats.CiphersFailed;
|
|
240
|
-
this.income = stats.Income;
|
|
241
|
-
this.timePlayedSec = stats.TimePlayedSec;
|
|
242
|
-
this.cipherTime = stats.CipherTime;
|
|
243
|
-
this.rating = stats.Rating;
|
|
244
|
-
this.rank = stats.Rank;
|
|
245
|
-
this.deaths = stats.Deaths;
|
|
246
|
-
this.playerLevel = stats.PlayerLevel;
|
|
247
|
-
this.missions = stats.Missions.map((m) => new Mission(m));
|
|
248
|
-
this.healCount = stats.HealCount;
|
|
249
|
-
if (stats.HiveEventScore || stats.HiveEventScoreSum) this.breedGrounds = {
|
|
250
|
-
personalScore: stats.HiveEventScore,
|
|
251
|
-
clanScore: stats.HiveEventScoreSum
|
|
252
|
-
};
|
|
253
|
-
if (stats.InvasionEventGrineerScore || stats.InvasionEventCorpusScore) this.gradivusDilemma = {
|
|
254
|
-
grineer: stats.InvasionEventGrineerScore,
|
|
255
|
-
corpus: stats.InvasionEventCorpusScore
|
|
256
|
-
};
|
|
257
|
-
this.scans = stats.Scans?.map((s) => new Scan(s)) ?? [];
|
|
258
|
-
this.reviveCount = stats.ReviveCount;
|
|
259
|
-
if (stats.FomorianEventScore) this.fomorianEventScore = stats.FomorianEventScore;
|
|
260
|
-
this.pvp = stats.PVP?.map((pvp) => new Pvp(pvp)) ?? [];
|
|
261
|
-
this.lunaro = {
|
|
262
|
-
ties: stats.PVPSpeedballTies ?? 0,
|
|
263
|
-
checks: stats.PVPSpeedballChecks ?? 0,
|
|
264
|
-
goals: stats.PVPSpeedballGoals ?? 0,
|
|
265
|
-
interceptions: stats.PVPSpeedballInterceptions ?? 0,
|
|
266
|
-
steals: stats.PVPSpeedballSteals ?? 0,
|
|
267
|
-
points: stats.PVPSpeedballPoints ?? 0,
|
|
268
|
-
losses: stats.PVPSpeedballLosses ?? 0,
|
|
269
|
-
assists: stats.PVPSpeedballAssists ?? 0,
|
|
270
|
-
wins: stats.PVPSpeedballWins ?? 0,
|
|
271
|
-
saves: stats.PVPSpeedballSaves ?? 0,
|
|
272
|
-
passes: stats.PVPSpeedballPasses ?? 0
|
|
273
|
-
};
|
|
274
|
-
this.dojoObstacleScore = stats.DojoObstacleScore ?? 0;
|
|
275
|
-
this.pvpGamesPendingMask = stats.PvpGamesPendingMask ?? 0;
|
|
276
|
-
this.dedicatedServerGamesCompleted = stats.DedicatedServerGamesCompleted ?? 0;
|
|
277
|
-
if (stats.ColonistRescueEventScoreMax) this.pacifismDefect = stats.ColonistRescueEventScoreMax;
|
|
278
|
-
if (stats.AmbulasEventScoreMax) this.ambulasReborn = stats.AmbulasEventScoreMax;
|
|
279
|
-
if (stats.SentinelGameScore) this.sentinelGameScore = stats.SentinelGameScore;
|
|
280
|
-
if (stats.AmalgamEventScoreMax) this.amalgamEventScoreMax = stats.AmalgamEventScoreMax;
|
|
281
|
-
if (stats.FlotillaEventScore) this.scarletSpear = {
|
|
282
|
-
eventScore: stats.FlotillaEventScore,
|
|
283
|
-
condrixTier1: stats.FlotillaGroundBadgesTier1,
|
|
284
|
-
condrixTier2: stats.FlotillaGroundBadgesTier2,
|
|
285
|
-
condrixTier3: stats.FlotillaGroundBadgesTier3,
|
|
286
|
-
murexTier1: stats.FlotillaSpaceBadgesTier1,
|
|
287
|
-
murexTier2: stats.FlotillaSpaceBadgesTier2,
|
|
288
|
-
murexTier3: stats.FlotillaSpaceBadgesTier3
|
|
289
|
-
};
|
|
290
|
-
if (stats.MechSurvivalScoreMax) this.orphixVenomScore = stats.MechSurvivalScoreMax;
|
|
291
|
-
this.happyZephyrScore = stats.ZephyrScore ?? 0;
|
|
292
|
-
this.kDriveRaces = Race.fromRaceObject(stats.Races);
|
|
293
|
-
if (stats.PortalEventScore) this.gateCrash = stats.PortalEventScore;
|
|
294
|
-
if (stats.RiotMoaEventScore) this.falseProfitMissionScore = stats.RiotMoaEventScore;
|
|
295
|
-
if (stats.RiotMoaEventScoreMax) this.falseProfitEventScore = stats.RiotMoaEventScoreMax;
|
|
296
|
-
if (stats.ProjectSinisterEventScore) this.shadowDebtEventScore = stats.ProjectSinisterEventScore;
|
|
297
|
-
if (stats.KelaEventBonusScoreMax) this.rathuumEventScore = stats.KelaEventBonusScoreMax;
|
|
298
|
-
if (stats.Halloween19ScoreMax) this.hallowedFlameScoreMax = stats.Halloween19ScoreMax;
|
|
299
|
-
if (stats.SurvivalEventScore) this.survivalWeekenedEventScore = stats.SurvivalEventScore;
|
|
300
|
-
if (stats.InfestedEventScore) this.infestedEventScore = stats.InfestedEventScore;
|
|
301
|
-
}
|
|
302
|
-
};
|
|
303
|
-
|
|
304
|
-
//#endregion
|
|
305
|
-
export { Stats as t };
|