@wfcd/profile-parser 2.0.10 → 2.0.12
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 +18 -1
- package/dist/Ability.mjs +23 -1
- package/dist/ChallengeProgress.d.mts +19 -1
- package/dist/ChallengeProgress.mjs +24 -1
- package/dist/Enemy.d.mts +43 -1
- package/dist/Enemy.mjs +42 -1
- package/dist/Intrinsics.d.mts +66 -1
- package/dist/Intrinsics.mjs +65 -1
- package/dist/ItemConfig.d.mts +50 -3
- package/dist/ItemConfig.mjs +48 -3
- package/dist/LoadOutInventory.d.mts +52 -7
- package/dist/LoadOutInventory.mjs +50 -7
- package/dist/LoadOutItem.d.mts +119 -5
- package/dist/LoadOutItem.mjs +125 -5
- package/dist/LoadOutPreset.d.mts +82 -1
- package/dist/LoadOutPreset.mjs +81 -2
- package/dist/Mission.d.mts +52 -1
- package/dist/Mission.mjs +53 -1
- package/dist/OperatorLoadOuts.d.mts +80 -3
- package/dist/OperatorLoadOuts.mjs +74 -3
- package/dist/Polarity.d.mts +25 -1
- package/dist/Polarity.mjs +26 -1
- package/dist/Profile.d.mts +211 -14
- package/dist/Profile.mjs +191 -14
- package/dist/ProfileParser.d.mts +7 -25
- package/dist/ProfileParser.mjs +4 -23
- package/dist/Pvp.d.mts +35 -1
- package/dist/Pvp.mjs +34 -1
- package/dist/Race.d.mts +31 -1
- package/dist/Race.mjs +33 -1
- package/dist/Scan.d.mts +26 -1
- package/dist/Scan.mjs +25 -1
- package/dist/Skin.d.mts +27 -1
- package/dist/Skin.mjs +34 -2
- package/dist/Stats.d.mts +324 -8
- package/dist/Stats.mjs +303 -8
- package/dist/Syndicate.d.mts +32 -1
- package/dist/Syndicate.mjs +31 -1
- package/dist/Utils.d.mts +35 -1
- package/dist/Utils.mjs +58 -1
- package/dist/Weapon.d.mts +31 -1
- package/dist/Weapon.mjs +62 -1
- package/dist/XpInfo.d.mts +33 -1
- package/dist/XpInfo.mjs +33 -2
- package/package.json +10 -11
- package/dist/Ability-Bkn1Kr0F.d.mts +0 -19
- package/dist/Ability-DsyqxzjP.mjs +0 -25
- package/dist/ChallengeProgress-ByYNDHWY.d.mts +0 -20
- package/dist/ChallengeProgress-Cpks92At.mjs +0 -26
- package/dist/Enemy-B3JSksZZ.mjs +0 -44
- package/dist/Enemy-VT_y6RNw.d.mts +0 -44
- package/dist/Intrinsics-aQNZre3S.d.mts +0 -67
- package/dist/Intrinsics-kYw_LPq1.mjs +0 -67
- package/dist/ItemConfig-DTIrA_P_.mjs +0 -50
- package/dist/ItemConfig-R2z1Z3uo.d.mts +0 -51
- package/dist/LoadOutInventory-BbaIazHX.mjs +0 -52
- package/dist/LoadOutInventory-BtVQX9Mi.d.mts +0 -53
- package/dist/LoadOutItem-p-f5RdTB.mjs +0 -127
- package/dist/LoadOutItem-weow3bab.d.mts +0 -120
- package/dist/LoadOutPreset-CwbK2VvR.mjs +0 -83
- package/dist/LoadOutPreset-Dvs-Zisw.d.mts +0 -83
- package/dist/Mission-Bkx_g_to.d.mts +0 -53
- package/dist/Mission-DfGQMV7B.mjs +0 -55
- package/dist/OperatorLoadOuts-DtxjrIci.d.mts +0 -75
- package/dist/OperatorLoadOuts-LYGpTHuj.mjs +0 -76
- package/dist/Polarity-0fJe_D8l.d.mts +0 -26
- package/dist/Polarity-Q2JfovbR.mjs +0 -28
- package/dist/Profile-Beptm6wY.d.mts +0 -212
- package/dist/Profile-D15zUqzG.mjs +0 -193
- package/dist/Pvp-DtncK80C.d.mts +0 -36
- package/dist/Pvp-DwOk9iPM.mjs +0 -36
- package/dist/Race-CV98F8P6.mjs +0 -35
- package/dist/Race-b-1i8d0Y.d.mts +0 -32
- package/dist/Scan-2TQmEr2X.d.mts +0 -27
- package/dist/Scan-Du5aj7LZ.mjs +0 -27
- package/dist/Skin-CqeNtCDU.d.mts +0 -28
- package/dist/Skin-D_brWp2g.mjs +0 -36
- package/dist/Stats-Bvzk1GOV.mjs +0 -305
- package/dist/Stats-D8GkxqWB.d.mts +0 -325
- package/dist/Syndicate-CcRnzmZs.mjs +0 -33
- package/dist/Syndicate-PiVz8ikQ.d.mts +0 -33
- package/dist/Utils-Bqm2Gg1K.mjs +0 -59
- package/dist/Utils-M8z7sZIf.d.mts +0 -37
- package/dist/Weapon-CUoF9mPh.d.mts +0 -32
- package/dist/Weapon-zRX33-22.mjs +0 -64
- package/dist/XpInfo-CpwSvxlR.d.mts +0 -34
- package/dist/XpInfo-IT6LOTzI.mjs +0 -35
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
//#region src/Ability.d.ts
|
|
2
|
-
interface RawAbility {
|
|
3
|
-
type: string;
|
|
4
|
-
used: number;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* Represents a players used ability
|
|
8
|
-
* @module
|
|
9
|
-
*/
|
|
10
|
-
declare class Ability {
|
|
11
|
-
uniqueName: string;
|
|
12
|
-
used: number;
|
|
13
|
-
/**
|
|
14
|
-
* @param ability The ability
|
|
15
|
-
*/
|
|
16
|
-
constructor(ability: RawAbility);
|
|
17
|
-
}
|
|
18
|
-
//#endregion
|
|
19
|
-
export { RawAbility as n, Ability as t };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
//#region src/Ability.ts
|
|
2
|
-
/**
|
|
3
|
-
* Represents a players used ability
|
|
4
|
-
* @module
|
|
5
|
-
*/
|
|
6
|
-
var Ability = class {
|
|
7
|
-
uniqueName;
|
|
8
|
-
used;
|
|
9
|
-
/**
|
|
10
|
-
* @param ability The ability
|
|
11
|
-
*/
|
|
12
|
-
constructor(ability) {
|
|
13
|
-
/**
|
|
14
|
-
* The ability unique name
|
|
15
|
-
*/
|
|
16
|
-
this.uniqueName = ability.type;
|
|
17
|
-
/**
|
|
18
|
-
* How many time the ability was used in the player's lifetime
|
|
19
|
-
*/
|
|
20
|
-
this.used = ability.used;
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
//#endregion
|
|
25
|
-
export { Ability as t };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
//#region src/ChallengeProgress.d.ts
|
|
2
|
-
interface RawChallengeProgress {
|
|
3
|
-
Name: string;
|
|
4
|
-
Progress: number;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* Player completed or in progress challenges
|
|
8
|
-
* @module
|
|
9
|
-
*/
|
|
10
|
-
declare class ChallengeProgress {
|
|
11
|
-
name: string;
|
|
12
|
-
progress: number;
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @param challenge The challenge object to parse
|
|
16
|
-
*/
|
|
17
|
-
constructor(challenge: RawChallengeProgress);
|
|
18
|
-
}
|
|
19
|
-
//#endregion
|
|
20
|
-
export { RawChallengeProgress as n, ChallengeProgress as t };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
//#region src/ChallengeProgress.ts
|
|
2
|
-
/**
|
|
3
|
-
* Player completed or in progress challenges
|
|
4
|
-
* @module
|
|
5
|
-
*/
|
|
6
|
-
var ChallengeProgress = class {
|
|
7
|
-
name;
|
|
8
|
-
progress;
|
|
9
|
-
/**
|
|
10
|
-
*
|
|
11
|
-
* @param challenge The challenge object to parse
|
|
12
|
-
*/
|
|
13
|
-
constructor(challenge) {
|
|
14
|
-
/**
|
|
15
|
-
* Name of the challenge
|
|
16
|
-
*/
|
|
17
|
-
this.name = challenge.Name;
|
|
18
|
-
/**
|
|
19
|
-
* Progress towards completing this challenge
|
|
20
|
-
*/
|
|
21
|
-
this.progress = challenge.Progress;
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
//#endregion
|
|
26
|
-
export { ChallengeProgress as t };
|
package/dist/Enemy-B3JSksZZ.mjs
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
//#region src/Enemy.ts
|
|
2
|
-
/**
|
|
3
|
-
* An enemy killed/executed by player
|
|
4
|
-
*/
|
|
5
|
-
var Enemy = class {
|
|
6
|
-
/**
|
|
7
|
-
* Enemy's unique name
|
|
8
|
-
*/
|
|
9
|
-
uniqueName;
|
|
10
|
-
/**
|
|
11
|
-
* How many times the player has killed this enemy type
|
|
12
|
-
*/
|
|
13
|
-
kills;
|
|
14
|
-
/**
|
|
15
|
-
* The amount of kills that were headshots
|
|
16
|
-
*/
|
|
17
|
-
headshots;
|
|
18
|
-
/**
|
|
19
|
-
* The amount of kills that were finishers
|
|
20
|
-
*/
|
|
21
|
-
executions;
|
|
22
|
-
/**
|
|
23
|
-
* The amount of kills that were assits
|
|
24
|
-
*/
|
|
25
|
-
assists;
|
|
26
|
-
/**
|
|
27
|
-
* How many times this enemy type has killed the player
|
|
28
|
-
*/
|
|
29
|
-
deaths;
|
|
30
|
-
/**
|
|
31
|
-
* @param enemy The enemy
|
|
32
|
-
*/
|
|
33
|
-
constructor(enemy) {
|
|
34
|
-
this.uniqueName = enemy.type;
|
|
35
|
-
this.kills = enemy.kills;
|
|
36
|
-
this.headshots = enemy.headshots;
|
|
37
|
-
this.executions = enemy.executions;
|
|
38
|
-
this.assists = enemy.assists;
|
|
39
|
-
this.deaths = enemy.deaths;
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
//#endregion
|
|
44
|
-
export { Enemy as t };
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
//#region src/Enemy.d.ts
|
|
2
|
-
interface RawEnemy {
|
|
3
|
-
type: string;
|
|
4
|
-
kills: number;
|
|
5
|
-
headshots: number;
|
|
6
|
-
executions: number;
|
|
7
|
-
assists: number;
|
|
8
|
-
deaths: number;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* An enemy killed/executed by player
|
|
12
|
-
*/
|
|
13
|
-
declare class Enemy {
|
|
14
|
-
/**
|
|
15
|
-
* Enemy's unique name
|
|
16
|
-
*/
|
|
17
|
-
uniqueName: string;
|
|
18
|
-
/**
|
|
19
|
-
* How many times the player has killed this enemy type
|
|
20
|
-
*/
|
|
21
|
-
kills: number;
|
|
22
|
-
/**
|
|
23
|
-
* The amount of kills that were headshots
|
|
24
|
-
*/
|
|
25
|
-
headshots: number;
|
|
26
|
-
/**
|
|
27
|
-
* The amount of kills that were finishers
|
|
28
|
-
*/
|
|
29
|
-
executions: number;
|
|
30
|
-
/**
|
|
31
|
-
* The amount of kills that were assits
|
|
32
|
-
*/
|
|
33
|
-
assists: number;
|
|
34
|
-
/**
|
|
35
|
-
* How many times this enemy type has killed the player
|
|
36
|
-
*/
|
|
37
|
-
deaths: number;
|
|
38
|
-
/**
|
|
39
|
-
* @param enemy The enemy
|
|
40
|
-
*/
|
|
41
|
-
constructor(enemy: RawEnemy);
|
|
42
|
-
}
|
|
43
|
-
//#endregion
|
|
44
|
-
export { RawEnemy as n, Enemy as t };
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
//#region src/Intrinsics.d.ts
|
|
2
|
-
interface RawIntrinsics {
|
|
3
|
-
LPS_ENGINEERING?: number;
|
|
4
|
-
LPS_GUNNERY?: number;
|
|
5
|
-
LPS_PILOTING?: number;
|
|
6
|
-
LPS_TACTICAL?: number;
|
|
7
|
-
LPS_COMMAND?: number;
|
|
8
|
-
LPP_DRIFTER?: number;
|
|
9
|
-
LPS_DRIFT_RIDING?: number;
|
|
10
|
-
LPS_DRIFT_COMBAT?: number;
|
|
11
|
-
LPS_DRIFT_OPPORTUNITY?: number;
|
|
12
|
-
LPS_DRIFT_ENDURANCE?: number;
|
|
13
|
-
LPP_SPACE?: number;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Player's intrinsics ranks
|
|
17
|
-
* @module
|
|
18
|
-
*/
|
|
19
|
-
declare class Intrinsics {
|
|
20
|
-
/**
|
|
21
|
-
* Intrinsic points for railjack
|
|
22
|
-
*/
|
|
23
|
-
railjack: number;
|
|
24
|
-
/**
|
|
25
|
-
* Railjack engineering rank
|
|
26
|
-
*/
|
|
27
|
-
engineering: number;
|
|
28
|
-
/**
|
|
29
|
-
* Railjack gunnery rank
|
|
30
|
-
*/
|
|
31
|
-
gunnery: number;
|
|
32
|
-
/**
|
|
33
|
-
* Railjack piloting rank
|
|
34
|
-
*/
|
|
35
|
-
piloting: number;
|
|
36
|
-
/**
|
|
37
|
-
* Railjack tactical rank
|
|
38
|
-
*/
|
|
39
|
-
tactical: number;
|
|
40
|
-
/**
|
|
41
|
-
* Railjack command rank
|
|
42
|
-
*/
|
|
43
|
-
command: number;
|
|
44
|
-
/**
|
|
45
|
-
* Intrinsic points for railjack
|
|
46
|
-
*/
|
|
47
|
-
drifter: number;
|
|
48
|
-
/**
|
|
49
|
-
* Drifter riding rank
|
|
50
|
-
*/
|
|
51
|
-
riding: number;
|
|
52
|
-
/**
|
|
53
|
-
* Drifter combat rank
|
|
54
|
-
*/
|
|
55
|
-
combat: number;
|
|
56
|
-
/**
|
|
57
|
-
* Drifter opportunity rank
|
|
58
|
-
*/
|
|
59
|
-
opportunity: number;
|
|
60
|
-
/**
|
|
61
|
-
* Drifter endurance rank
|
|
62
|
-
*/
|
|
63
|
-
endurance: number;
|
|
64
|
-
constructor(skills: RawIntrinsics);
|
|
65
|
-
}
|
|
66
|
-
//#endregion
|
|
67
|
-
export { RawIntrinsics as n, Intrinsics as t };
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
//#region src/Intrinsics.ts
|
|
2
|
-
/**
|
|
3
|
-
* Player's intrinsics ranks
|
|
4
|
-
* @module
|
|
5
|
-
*/
|
|
6
|
-
var Intrinsics = class {
|
|
7
|
-
/**
|
|
8
|
-
* Intrinsic points for railjack
|
|
9
|
-
*/
|
|
10
|
-
railjack;
|
|
11
|
-
/**
|
|
12
|
-
* Railjack engineering rank
|
|
13
|
-
*/
|
|
14
|
-
engineering;
|
|
15
|
-
/**
|
|
16
|
-
* Railjack gunnery rank
|
|
17
|
-
*/
|
|
18
|
-
gunnery;
|
|
19
|
-
/**
|
|
20
|
-
* Railjack piloting rank
|
|
21
|
-
*/
|
|
22
|
-
piloting;
|
|
23
|
-
/**
|
|
24
|
-
* Railjack tactical rank
|
|
25
|
-
*/
|
|
26
|
-
tactical;
|
|
27
|
-
/**
|
|
28
|
-
* Railjack command rank
|
|
29
|
-
*/
|
|
30
|
-
command;
|
|
31
|
-
/**
|
|
32
|
-
* Intrinsic points for railjack
|
|
33
|
-
*/
|
|
34
|
-
drifter;
|
|
35
|
-
/**
|
|
36
|
-
* Drifter riding rank
|
|
37
|
-
*/
|
|
38
|
-
riding;
|
|
39
|
-
/**
|
|
40
|
-
* Drifter combat rank
|
|
41
|
-
*/
|
|
42
|
-
combat;
|
|
43
|
-
/**
|
|
44
|
-
* Drifter opportunity rank
|
|
45
|
-
*/
|
|
46
|
-
opportunity;
|
|
47
|
-
/**
|
|
48
|
-
* Drifter endurance rank
|
|
49
|
-
*/
|
|
50
|
-
endurance;
|
|
51
|
-
constructor(skills) {
|
|
52
|
-
this.railjack = Math.floor((skills.LPP_SPACE ?? 0) / 1e3);
|
|
53
|
-
this.engineering = skills.LPS_ENGINEERING ?? 0;
|
|
54
|
-
this.gunnery = skills.LPS_GUNNERY ?? 0;
|
|
55
|
-
this.piloting = skills.LPS_PILOTING ?? 0;
|
|
56
|
-
this.tactical = skills.LPS_TACTICAL ?? 0;
|
|
57
|
-
this.command = skills.LPS_COMMAND ?? 0;
|
|
58
|
-
this.drifter = Math.floor((skills.LPP_DRIFTER ?? 0) / 1e3);
|
|
59
|
-
this.riding = skills.LPS_DRIFT_RIDING ?? 0;
|
|
60
|
-
this.combat = skills.LPS_DRIFT_COMBAT ?? 0;
|
|
61
|
-
this.opportunity = skills.LPS_DRIFT_OPPORTUNITY ?? 0;
|
|
62
|
-
this.endurance = skills.LPS_DRIFT_ENDURANCE ?? 0;
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
//#endregion
|
|
67
|
-
export { Intrinsics as t };
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { n as mapToHex } from "./Utils-Bqm2Gg1K.mjs";
|
|
2
|
-
import { t as Skin } from "./Skin-D_brWp2g.mjs";
|
|
3
|
-
import { colors } from "@wfcd/items/utilities";
|
|
4
|
-
|
|
5
|
-
//#region src/ItemConfig.ts
|
|
6
|
-
/**
|
|
7
|
-
* Item customizations such as colors and applied skins
|
|
8
|
-
* @module
|
|
9
|
-
*/
|
|
10
|
-
var ItemConfig = class {
|
|
11
|
-
/**
|
|
12
|
-
* Array of unique names for the skins applied to item
|
|
13
|
-
*/
|
|
14
|
-
skins;
|
|
15
|
-
/**
|
|
16
|
-
* Array of PVP unique name upgrades applied
|
|
17
|
-
*/
|
|
18
|
-
conclaveUpgrades;
|
|
19
|
-
/**
|
|
20
|
-
* Primary colors applied to item if they exist
|
|
21
|
-
*/
|
|
22
|
-
primaryColor;
|
|
23
|
-
/**
|
|
24
|
-
* Sigil colors applied to item if they exist
|
|
25
|
-
*/
|
|
26
|
-
sigilColor;
|
|
27
|
-
/**
|
|
28
|
-
* Attachment colors applied to item if they exist
|
|
29
|
-
*/
|
|
30
|
-
attachmentsColor;
|
|
31
|
-
/**
|
|
32
|
-
* Syandana colors applied to item if they exist
|
|
33
|
-
*/
|
|
34
|
-
syandanaColor;
|
|
35
|
-
/**
|
|
36
|
-
*
|
|
37
|
-
* @param config The configuration
|
|
38
|
-
*/
|
|
39
|
-
constructor(config, locale = "en") {
|
|
40
|
-
this.skins = config.Skins?.filter(Boolean).map((s) => new Skin({ ItemType: s }, locale));
|
|
41
|
-
if (config.PvpUpgrades) this.conclaveUpgrades = config.PvpUpgrades;
|
|
42
|
-
if (config.pricol) this.primaryColor = colors.mapColors(mapToHex(config.pricol));
|
|
43
|
-
if (config.sigcol) this.sigilColor = colors.mapColors(mapToHex(config.sigcol));
|
|
44
|
-
if (config.attcol) this.attachmentsColor = colors.mapColors(mapToHex(config.attcol));
|
|
45
|
-
if (config.syancol) this.syandanaColor = colors.mapColors(mapToHex(config.syancol));
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
//#endregion
|
|
50
|
-
export { ItemConfig as t };
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { n as Skin } from "./Skin-CqeNtCDU.mjs";
|
|
2
|
-
import { t as ProfileRawColors } from "./Utils-M8z7sZIf.mjs";
|
|
3
|
-
import { ColorMap } from "@wfcd/items";
|
|
4
|
-
import { Locale } from "warframe-worldstate-data";
|
|
5
|
-
|
|
6
|
-
//#region src/ItemConfig.d.ts
|
|
7
|
-
interface RawItemConfig {
|
|
8
|
-
Skins?: string[];
|
|
9
|
-
PvpUpgrades?: string[];
|
|
10
|
-
pricol?: ProfileRawColors;
|
|
11
|
-
sigcol?: ProfileRawColors;
|
|
12
|
-
attcol?: ProfileRawColors;
|
|
13
|
-
syancol?: ProfileRawColors;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Item customizations such as colors and applied skins
|
|
17
|
-
* @module
|
|
18
|
-
*/
|
|
19
|
-
declare class ItemConfig {
|
|
20
|
-
/**
|
|
21
|
-
* Array of unique names for the skins applied to item
|
|
22
|
-
*/
|
|
23
|
-
skins?: Skin[];
|
|
24
|
-
/**
|
|
25
|
-
* Array of PVP unique name upgrades applied
|
|
26
|
-
*/
|
|
27
|
-
conclaveUpgrades?: string[];
|
|
28
|
-
/**
|
|
29
|
-
* Primary colors applied to item if they exist
|
|
30
|
-
*/
|
|
31
|
-
primaryColor?: ColorMap;
|
|
32
|
-
/**
|
|
33
|
-
* Sigil colors applied to item if they exist
|
|
34
|
-
*/
|
|
35
|
-
sigilColor?: ColorMap;
|
|
36
|
-
/**
|
|
37
|
-
* Attachment colors applied to item if they exist
|
|
38
|
-
*/
|
|
39
|
-
attachmentsColor?: ColorMap;
|
|
40
|
-
/**
|
|
41
|
-
* Syandana colors applied to item if they exist
|
|
42
|
-
*/
|
|
43
|
-
syandanaColor?: ColorMap;
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @param config The configuration
|
|
47
|
-
*/
|
|
48
|
-
constructor(config: RawItemConfig, locale?: Locale);
|
|
49
|
-
}
|
|
50
|
-
//#endregion
|
|
51
|
-
export { RawItemConfig as n, ItemConfig as t };
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { t as Skin } from "./Skin-D_brWp2g.mjs";
|
|
2
|
-
import { t as LoadOutItem } from "./LoadOutItem-p-f5RdTB.mjs";
|
|
3
|
-
import { t as XpInfo } from "./XpInfo-IT6LOTzI.mjs";
|
|
4
|
-
|
|
5
|
-
//#region src/LoadOutInventory.ts
|
|
6
|
-
/**
|
|
7
|
-
* Player loudout
|
|
8
|
-
* @module
|
|
9
|
-
*/
|
|
10
|
-
var LoadOutInventory = class {
|
|
11
|
-
/**
|
|
12
|
-
* Skins applied to weapons
|
|
13
|
-
*/
|
|
14
|
-
weaponSkins;
|
|
15
|
-
/**
|
|
16
|
-
* An array of the player's currently equiped Warframe (or powersuits)
|
|
17
|
-
*/
|
|
18
|
-
suits;
|
|
19
|
-
/**
|
|
20
|
-
* An array of the player's currently equiped secondary weapon
|
|
21
|
-
*/
|
|
22
|
-
secondary;
|
|
23
|
-
/**
|
|
24
|
-
* An array of the player's currently equiped primary weapon
|
|
25
|
-
*/
|
|
26
|
-
primary;
|
|
27
|
-
/**
|
|
28
|
-
* An array of the player's currently equiped melee weapon
|
|
29
|
-
*/
|
|
30
|
-
melee;
|
|
31
|
-
/**
|
|
32
|
-
* Items that have counted towards the players mastery rank
|
|
33
|
-
*/
|
|
34
|
-
xpInfo;
|
|
35
|
-
/**
|
|
36
|
-
*
|
|
37
|
-
* @param item The loadout data
|
|
38
|
-
* @param locale The locale to return loudout items in. Default is en
|
|
39
|
-
* @param withItem Whether or not to include items
|
|
40
|
-
*/
|
|
41
|
-
constructor(item, locale = "en", withItem = false) {
|
|
42
|
-
this.weaponSkins = item.WeaponSkins.map((s) => new Skin(s, locale));
|
|
43
|
-
this.suits = item.Suits.map((s) => new LoadOutItem(s, locale));
|
|
44
|
-
this.secondary = item.Pistols?.map((p) => new LoadOutItem(p, locale));
|
|
45
|
-
this.primary = item.LongGuns?.map((lg) => new LoadOutItem(lg, locale));
|
|
46
|
-
this.melee = item.Melee?.map((m) => new LoadOutItem(m, locale));
|
|
47
|
-
this.xpInfo = item.XPInfo.map((xp) => new XpInfo(xp, locale, withItem));
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
//#endregion
|
|
52
|
-
export { LoadOutInventory as t };
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { n as Skin, t as RawSkin } from "./Skin-CqeNtCDU.mjs";
|
|
2
|
-
import { n as RawLoadOutItem, t as LoadOutItem } from "./LoadOutItem-weow3bab.mjs";
|
|
3
|
-
import { n as XpInfo, t as RawXpItem } from "./XpInfo-CpwSvxlR.mjs";
|
|
4
|
-
import { Locale } from "warframe-worldstate-data";
|
|
5
|
-
|
|
6
|
-
//#region src/LoadOutInventory.d.ts
|
|
7
|
-
interface RawLoadOut {
|
|
8
|
-
WeaponSkins: RawSkin[];
|
|
9
|
-
Suits: RawLoadOutItem[];
|
|
10
|
-
Pistols?: RawLoadOutItem[];
|
|
11
|
-
LongGuns?: RawLoadOutItem[];
|
|
12
|
-
Melee?: RawLoadOutItem[];
|
|
13
|
-
XPInfo: RawXpItem[];
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Player loudout
|
|
17
|
-
* @module
|
|
18
|
-
*/
|
|
19
|
-
declare class LoadOutInventory {
|
|
20
|
-
/**
|
|
21
|
-
* Skins applied to weapons
|
|
22
|
-
*/
|
|
23
|
-
weaponSkins: Skin[];
|
|
24
|
-
/**
|
|
25
|
-
* An array of the player's currently equiped Warframe (or powersuits)
|
|
26
|
-
*/
|
|
27
|
-
suits: LoadOutItem[];
|
|
28
|
-
/**
|
|
29
|
-
* An array of the player's currently equiped secondary weapon
|
|
30
|
-
*/
|
|
31
|
-
secondary?: LoadOutItem[];
|
|
32
|
-
/**
|
|
33
|
-
* An array of the player's currently equiped primary weapon
|
|
34
|
-
*/
|
|
35
|
-
primary?: LoadOutItem[];
|
|
36
|
-
/**
|
|
37
|
-
* An array of the player's currently equiped melee weapon
|
|
38
|
-
*/
|
|
39
|
-
melee?: LoadOutItem[];
|
|
40
|
-
/**
|
|
41
|
-
* Items that have counted towards the players mastery rank
|
|
42
|
-
*/
|
|
43
|
-
xpInfo: XpInfo[];
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @param item The loadout data
|
|
47
|
-
* @param locale The locale to return loudout items in. Default is en
|
|
48
|
-
* @param withItem Whether or not to include items
|
|
49
|
-
*/
|
|
50
|
-
constructor(item: RawLoadOut, locale?: Locale, withItem?: boolean);
|
|
51
|
-
}
|
|
52
|
-
//#endregion
|
|
53
|
-
export { RawLoadOut as n, LoadOutInventory as t };
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import { t as find } from "./Utils-Bqm2Gg1K.mjs";
|
|
2
|
-
import { t as ItemConfig } from "./ItemConfig-DTIrA_P_.mjs";
|
|
3
|
-
import { t as Polarity } from "./Polarity-Q2JfovbR.mjs";
|
|
4
|
-
import { parseDate, toTitleCase } from "warframe-worldstate-data/utilities";
|
|
5
|
-
import { colors } from "@wfcd/items/utilities";
|
|
6
|
-
|
|
7
|
-
//#region src/LoadOutItem.ts
|
|
8
|
-
/**
|
|
9
|
-
* An an item in LoadOutInventory
|
|
10
|
-
* @module
|
|
11
|
-
*/
|
|
12
|
-
var LoadOutItem = class {
|
|
13
|
-
/**
|
|
14
|
-
* Item ID
|
|
15
|
-
*/
|
|
16
|
-
itemId;
|
|
17
|
-
/**
|
|
18
|
-
* Item unique name
|
|
19
|
-
*/
|
|
20
|
-
uniqueName;
|
|
21
|
-
/**
|
|
22
|
-
* Item in-game name
|
|
23
|
-
*/
|
|
24
|
-
name;
|
|
25
|
-
/**
|
|
26
|
-
* Complete item from @wfcd/items
|
|
27
|
-
*/
|
|
28
|
-
item;
|
|
29
|
-
/**
|
|
30
|
-
* The name of the Lich, Sister, or Technocyte
|
|
31
|
-
*/
|
|
32
|
-
nemesis;
|
|
33
|
-
/**
|
|
34
|
-
* Configuration for this weapon. Such as colors and skins applied by the player
|
|
35
|
-
*/
|
|
36
|
-
configs;
|
|
37
|
-
/**
|
|
38
|
-
* The upgrade that was applied to this weapon
|
|
39
|
-
*/
|
|
40
|
-
upgradeType;
|
|
41
|
-
/**
|
|
42
|
-
* Information on the upgradeType that was applied
|
|
43
|
-
* TODO need model for for fingerprint
|
|
44
|
-
*/
|
|
45
|
-
upgradeFingerprint;
|
|
46
|
-
features;
|
|
47
|
-
upgradeVer;
|
|
48
|
-
/**
|
|
49
|
-
* XP earned with this weapon
|
|
50
|
-
*/
|
|
51
|
-
xp;
|
|
52
|
-
/**
|
|
53
|
-
* How many mod slots are currently polarized.
|
|
54
|
-
*/
|
|
55
|
-
polarized;
|
|
56
|
-
/**
|
|
57
|
-
* Which polarity types exist on the weapon
|
|
58
|
-
*/
|
|
59
|
-
polarity;
|
|
60
|
-
/**
|
|
61
|
-
* Focus lens applied
|
|
62
|
-
*/
|
|
63
|
-
focuseLens;
|
|
64
|
-
customizationSlotPurchases;
|
|
65
|
-
/**
|
|
66
|
-
* Primary colors applied to item if they exist
|
|
67
|
-
*/
|
|
68
|
-
primaryColor;
|
|
69
|
-
/**
|
|
70
|
-
* Sigil colors applied to item if they exist
|
|
71
|
-
*/
|
|
72
|
-
sigilColor;
|
|
73
|
-
/**
|
|
74
|
-
* Whether prime details are enabled or not
|
|
75
|
-
*/
|
|
76
|
-
enablePrime;
|
|
77
|
-
/**
|
|
78
|
-
* Attachment colors applied to item if they exist
|
|
79
|
-
*/
|
|
80
|
-
attachmentsColor;
|
|
81
|
-
/**
|
|
82
|
-
* Syandana colors applied to item if they exist
|
|
83
|
-
*/
|
|
84
|
-
syandanaColor;
|
|
85
|
-
/**
|
|
86
|
-
* If set will show when the player's warframe was infested.
|
|
87
|
-
*/
|
|
88
|
-
infestationDate;
|
|
89
|
-
/**
|
|
90
|
-
*
|
|
91
|
-
* @param {Object} loadOutItem The loadout item from LoadoutInventory
|
|
92
|
-
* @param {string} [locale='en'] The locale to return item in
|
|
93
|
-
*/
|
|
94
|
-
constructor(loadOutItem, locale = "en") {
|
|
95
|
-
this.itemId = loadOutItem.ItemId.$oid;
|
|
96
|
-
this.uniqueName = loadOutItem.ItemType;
|
|
97
|
-
const item = find(loadOutItem.ItemType, locale);
|
|
98
|
-
if (item) {
|
|
99
|
-
this.name = item.name;
|
|
100
|
-
this.item = item;
|
|
101
|
-
}
|
|
102
|
-
if (loadOutItem.ItemName) {
|
|
103
|
-
const [, nemesis] = loadOutItem.ItemName.split("|");
|
|
104
|
-
if (nemesis !== void 0) this.nemesis = toTitleCase(nemesis);
|
|
105
|
-
else this.name = loadOutItem.ItemName;
|
|
106
|
-
}
|
|
107
|
-
this.configs = loadOutItem.Configs.map((c) => new ItemConfig(c));
|
|
108
|
-
if (loadOutItem.UpgradeType) this.upgradeType = loadOutItem.UpgradeType;
|
|
109
|
-
this.upgradeFingerprint = loadOutItem.UpgradeFingerprint;
|
|
110
|
-
this.features = loadOutItem.Features;
|
|
111
|
-
this.upgradeVer = loadOutItem.UpgradeVer;
|
|
112
|
-
this.xp = loadOutItem.XP;
|
|
113
|
-
this.polarized = loadOutItem.Polarized;
|
|
114
|
-
this.polarity = loadOutItem.Polarity?.map((p) => new Polarity(p));
|
|
115
|
-
this.focuseLens = loadOutItem.FocusLens;
|
|
116
|
-
this.customizationSlotPurchases = loadOutItem.CustomizationSlotPurchases ?? 0;
|
|
117
|
-
if (loadOutItem.pricol) this.primaryColor = colors.mapColors(loadOutItem.pricol);
|
|
118
|
-
if (loadOutItem.sigcol) this.sigilColor = colors.mapColors(loadOutItem.sigcol);
|
|
119
|
-
this.enablePrime = loadOutItem.ugly ?? false;
|
|
120
|
-
if (loadOutItem.attcol) this.attachmentsColor = colors.mapColors(loadOutItem.attcol);
|
|
121
|
-
if (loadOutItem.syancol) this.syandanaColor = colors.mapColors(loadOutItem.syancol);
|
|
122
|
-
if (loadOutItem.InfestationDate) this.infestationDate = parseDate(loadOutItem.InfestationDate);
|
|
123
|
-
}
|
|
124
|
-
};
|
|
125
|
-
|
|
126
|
-
//#endregion
|
|
127
|
-
export { LoadOutItem as t };
|