@wfcd/profile-parser 2.0.0 → 2.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/Ability-D1F1s_19.js +25 -0
- package/dist/Ability-DzKgEG5R.d.ts +19 -0
- package/dist/Ability.d.ts +2 -0
- package/dist/Ability.js +3 -0
- package/dist/ArchonCrystal.d.ts +23 -0
- package/dist/ArchonCrystal.js +29 -0
- package/dist/ChallengeProgress-B8Kv32oi.d.ts +20 -0
- package/dist/ChallengeProgress-DKKtijWw.js +26 -0
- package/dist/ChallengeProgress.d.ts +2 -0
- package/dist/ChallengeProgress.js +3 -0
- package/dist/Enemy-BqxhFdkB.js +44 -0
- package/{src/Enemy.ts → dist/Enemy-toy1Spyi.d.ts} +6 -17
- package/dist/Enemy.d.ts +2 -0
- package/dist/Enemy.js +3 -0
- package/dist/Intrinsics-CqFOpLxp.js +67 -0
- package/{src/Intrinsics.ts → dist/Intrinsics-azrsOZJd.d.ts} +6 -37
- package/dist/Intrinsics.d.ts +2 -0
- package/dist/Intrinsics.js +3 -0
- package/dist/ItemConfig-7as-gjPG.d.ts +51 -0
- package/dist/ItemConfig-uU36aJFJ.js +50 -0
- package/dist/ItemConfig.d.ts +4 -0
- package/dist/ItemConfig.js +5 -0
- package/{src/LoadOutInventory.ts → dist/LoadOutInventory-BsPRtXfG.d.ts} +10 -26
- package/dist/LoadOutInventory-CPVZJ_W5.js +52 -0
- package/dist/LoadOutInventory.d.ts +8 -0
- package/dist/LoadOutInventory.js +9 -0
- package/dist/LoadOutItem-B_6G9dXC.js +127 -0
- package/dist/LoadOutItem-BlRFZMNd.d.ts +120 -0
- package/dist/LoadOutItem.d.ts +6 -0
- package/dist/LoadOutItem.js +7 -0
- package/{src/LoadOutPreset.ts → dist/LoadOutPreset-BshJF0LH.d.ts} +11 -50
- package/dist/LoadOutPreset-CMbZo-II.js +83 -0
- package/dist/LoadOutPreset.d.ts +2 -0
- package/dist/LoadOutPreset.js +4 -0
- package/{src/Mission.ts → dist/Mission-BZgLMluh.d.ts} +7 -29
- package/dist/Mission-D2n1i5R2.js +55 -0
- package/dist/Mission.d.ts +2 -0
- package/dist/Mission.js +3 -0
- package/dist/OperatorLoadOuts-B8bEy2dp.js +76 -0
- package/dist/OperatorLoadOuts-Dk2uMwby.d.ts +75 -0
- package/dist/OperatorLoadOuts.d.ts +4 -0
- package/dist/OperatorLoadOuts.js +5 -0
- package/dist/Polarity--RYq3iwF.js +28 -0
- package/dist/Polarity-DDWqEVm2.d.ts +26 -0
- package/dist/Polarity.d.ts +2 -0
- package/dist/Polarity.js +3 -0
- package/dist/Profile-WWZ2BDf0.js +193 -0
- package/{src/Profile.ts → dist/Profile-rva_Xss5.d.ts} +27 -123
- package/dist/Profile.d.ts +15 -0
- package/dist/Profile.js +16 -0
- package/dist/ProfileParser.d.ts +71 -0
- package/dist/ProfileParser.js +71 -0
- package/{src/Pvp.ts → dist/Pvp-Cb1KNKvw.d.ts} +6 -13
- package/dist/Pvp-hyzYfVBB.js +36 -0
- package/dist/Pvp.d.ts +2 -0
- package/dist/Pvp.js +3 -0
- package/dist/Race-5Q0StEkE.js +35 -0
- package/{src/Race.ts → dist/Race-DCxzjMpC.d.ts} +9 -13
- package/dist/Race.d.ts +2 -0
- package/dist/Race.js +3 -0
- package/{src/Scan.ts → dist/Scan-BWfZiLoW.d.ts} +6 -9
- package/dist/Scan-Dlrv6viG.js +27 -0
- package/dist/Scan.d.ts +2 -0
- package/dist/Scan.js +3 -0
- package/dist/Skin-BbUkegH1.d.ts +28 -0
- package/dist/Skin-D6v6jC9U.js +36 -0
- package/dist/Skin.d.ts +2 -0
- package/dist/Skin.js +4 -0
- package/dist/Stats-Bm1bpQe5.js +305 -0
- package/{src/Stats.ts → dist/Stats-DtkR2w1A.d.ts} +22 -201
- package/dist/Stats.d.ts +9 -0
- package/dist/Stats.js +10 -0
- package/dist/Syndicate-CjUKKAsk.js +33 -0
- package/{src/Syndicate.ts → dist/Syndicate-FSUt1PP5.d.ts} +7 -13
- package/dist/Syndicate.d.ts +2 -0
- package/dist/Syndicate.js +3 -0
- package/dist/Utils-C3kZCO6a.js +60 -0
- package/dist/Utils-C7BZqK4e.d.ts +37 -0
- package/dist/Utils.d.ts +2 -0
- package/dist/Utils.js +3 -0
- package/dist/Weapon-4KlXEHQF.js +64 -0
- package/dist/Weapon-DAJp-nbn.d.ts +32 -0
- package/dist/Weapon.d.ts +2 -0
- package/dist/Weapon.js +3 -0
- package/dist/XpInfo-CXC3I0NQ.js +35 -0
- package/{src/XpInfo.ts → dist/XpInfo-ChJ_lJaH.d.ts} +7 -14
- package/dist/XpInfo.d.ts +2 -0
- package/dist/XpInfo.js +4 -0
- package/package.json +2 -2
- package/src/Ability.ts +0 -29
- package/src/ArchonCrystal.ts +0 -33
- package/src/ChallengeProgress.ts +0 -30
- package/src/ItemConfig.ts +0 -71
- package/src/LoadOutItem.ts +0 -194
- package/src/OperatorLoadOuts.ts +0 -108
- package/src/Polarity.ts +0 -31
- package/src/ProfileParser.ts +0 -66
- package/src/Skin.ts +0 -41
- package/src/Utils.ts +0 -85
- package/src/Weapon.ts +0 -79
|
@@ -0,0 +1,25 @@
|
|
|
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 };
|
|
@@ -0,0 +1,19 @@
|
|
|
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 { Ability, RawAbility };
|
package/dist/Ability.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Locale } from "warframe-worldstate-data";
|
|
2
|
+
|
|
3
|
+
//#region src/ArchonCrystal.d.ts
|
|
4
|
+
interface RawArchonCrystal {
|
|
5
|
+
Color: string;
|
|
6
|
+
UpgradeType: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Represents an Archon shard
|
|
10
|
+
* @module
|
|
11
|
+
*/
|
|
12
|
+
declare class ArchonCrystal {
|
|
13
|
+
color: string;
|
|
14
|
+
modifier: string;
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @param crystal The archon crystal object
|
|
18
|
+
* @param locale The locale to get translations in
|
|
19
|
+
*/
|
|
20
|
+
constructor(crystal: RawArchonCrystal, locale?: Locale);
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
export { ArchonCrystal as default };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { archonShardColor, archonShardUpgradeType } from "warframe-worldstate-data/utilities";
|
|
2
|
+
|
|
3
|
+
//#region src/ArchonCrystal.ts
|
|
4
|
+
/**
|
|
5
|
+
* Represents an Archon shard
|
|
6
|
+
* @module
|
|
7
|
+
*/
|
|
8
|
+
var ArchonCrystal = class {
|
|
9
|
+
color;
|
|
10
|
+
modifier;
|
|
11
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
* @param crystal The archon crystal object
|
|
14
|
+
* @param locale The locale to get translations in
|
|
15
|
+
*/
|
|
16
|
+
constructor(crystal, locale = "en") {
|
|
17
|
+
/**
|
|
18
|
+
* Archon shard color
|
|
19
|
+
*/
|
|
20
|
+
this.color = archonShardColor(crystal.Color, locale);
|
|
21
|
+
/**
|
|
22
|
+
* Archon shard modifier
|
|
23
|
+
*/
|
|
24
|
+
this.modifier = archonShardUpgradeType(crystal.Color, crystal.UpgradeType, locale);
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
//#endregion
|
|
29
|
+
export { ArchonCrystal as default };
|
|
@@ -0,0 +1,20 @@
|
|
|
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 { ChallengeProgress, RawChallengeProgress };
|
|
@@ -0,0 +1,26 @@
|
|
|
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 };
|
|
@@ -0,0 +1,44 @@
|
|
|
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 };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
//#region src/Enemy.d.ts
|
|
2
|
+
interface RawEnemy {
|
|
2
3
|
type: string;
|
|
3
4
|
kills: number;
|
|
4
5
|
headshots: number;
|
|
@@ -6,50 +7,38 @@ export interface RawEnemy {
|
|
|
6
7
|
assists: number;
|
|
7
8
|
deaths: number;
|
|
8
9
|
}
|
|
9
|
-
|
|
10
10
|
/**
|
|
11
11
|
* An enemy killed/executed by player
|
|
12
12
|
*/
|
|
13
|
-
|
|
13
|
+
declare class Enemy {
|
|
14
14
|
/**
|
|
15
15
|
* Enemy's unique name
|
|
16
16
|
*/
|
|
17
17
|
uniqueName: string;
|
|
18
|
-
|
|
19
18
|
/**
|
|
20
19
|
* How many times the player has killed this enemy type
|
|
21
20
|
*/
|
|
22
21
|
kills: number;
|
|
23
|
-
|
|
24
22
|
/**
|
|
25
23
|
* The amount of kills that were headshots
|
|
26
24
|
*/
|
|
27
25
|
headshots: number;
|
|
28
|
-
|
|
29
26
|
/**
|
|
30
27
|
* The amount of kills that were finishers
|
|
31
28
|
*/
|
|
32
29
|
executions: number;
|
|
33
|
-
|
|
34
30
|
/**
|
|
35
31
|
* The amount of kills that were assits
|
|
36
32
|
*/
|
|
37
33
|
assists: number;
|
|
38
|
-
|
|
39
34
|
/**
|
|
40
35
|
* How many times this enemy type has killed the player
|
|
41
36
|
*/
|
|
42
37
|
deaths: number;
|
|
43
|
-
|
|
44
38
|
/**
|
|
45
39
|
* @param enemy The enemy
|
|
46
40
|
*/
|
|
47
|
-
constructor(enemy: RawEnemy)
|
|
48
|
-
this.uniqueName = enemy.type;
|
|
49
|
-
this.kills = enemy.kills;
|
|
50
|
-
this.headshots = enemy.headshots;
|
|
51
|
-
this.executions = enemy.executions;
|
|
52
|
-
this.assists = enemy.assists;
|
|
53
|
-
this.deaths = enemy.deaths;
|
|
54
|
-
}
|
|
41
|
+
constructor(enemy: RawEnemy);
|
|
55
42
|
}
|
|
43
|
+
//#endregion
|
|
44
|
+
export { Enemy, RawEnemy };
|
package/dist/Enemy.d.ts
ADDED
package/dist/Enemy.js
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
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 };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
//#region src/Intrinsics.d.ts
|
|
2
|
+
interface RawIntrinsics {
|
|
2
3
|
LPS_ENGINEERING?: number;
|
|
3
4
|
LPS_GUNNERY?: number;
|
|
4
5
|
LPS_PILOTING?: number;
|
|
@@ -11,88 +12,56 @@ export interface RawIntrinsics {
|
|
|
11
12
|
LPS_DRIFT_ENDURANCE?: number;
|
|
12
13
|
LPP_SPACE?: number;
|
|
13
14
|
}
|
|
14
|
-
|
|
15
15
|
/**
|
|
16
16
|
* Player's intrinsics ranks
|
|
17
17
|
* @module
|
|
18
18
|
*/
|
|
19
|
-
|
|
19
|
+
declare class Intrinsics {
|
|
20
20
|
/**
|
|
21
21
|
* Intrinsic points for railjack
|
|
22
22
|
*/
|
|
23
23
|
railjack: number;
|
|
24
|
-
|
|
25
24
|
/**
|
|
26
25
|
* Railjack engineering rank
|
|
27
26
|
*/
|
|
28
27
|
engineering: number;
|
|
29
|
-
|
|
30
28
|
/**
|
|
31
29
|
* Railjack gunnery rank
|
|
32
30
|
*/
|
|
33
31
|
gunnery: number;
|
|
34
|
-
|
|
35
32
|
/**
|
|
36
33
|
* Railjack piloting rank
|
|
37
34
|
*/
|
|
38
35
|
piloting: number;
|
|
39
|
-
|
|
40
36
|
/**
|
|
41
37
|
* Railjack tactical rank
|
|
42
38
|
*/
|
|
43
39
|
tactical: number;
|
|
44
|
-
|
|
45
40
|
/**
|
|
46
41
|
* Railjack command rank
|
|
47
42
|
*/
|
|
48
43
|
command: number;
|
|
49
|
-
|
|
50
44
|
/**
|
|
51
45
|
* Intrinsic points for railjack
|
|
52
46
|
*/
|
|
53
47
|
drifter: number;
|
|
54
|
-
|
|
55
48
|
/**
|
|
56
49
|
* Drifter riding rank
|
|
57
50
|
*/
|
|
58
51
|
riding: number;
|
|
59
|
-
|
|
60
52
|
/**
|
|
61
53
|
* Drifter combat rank
|
|
62
54
|
*/
|
|
63
55
|
combat: number;
|
|
64
|
-
|
|
65
56
|
/**
|
|
66
57
|
* Drifter opportunity rank
|
|
67
58
|
*/
|
|
68
59
|
opportunity: number;
|
|
69
|
-
|
|
70
60
|
/**
|
|
71
61
|
* Drifter endurance rank
|
|
72
62
|
*/
|
|
73
63
|
endurance: number;
|
|
74
|
-
|
|
75
|
-
constructor(skills: RawIntrinsics) {
|
|
76
|
-
this.railjack = Math.floor((skills.LPP_SPACE ?? 0) / 1000);
|
|
77
|
-
|
|
78
|
-
this.engineering = skills.LPS_ENGINEERING ?? 0;
|
|
79
|
-
|
|
80
|
-
this.gunnery = skills.LPS_GUNNERY ?? 0;
|
|
81
|
-
|
|
82
|
-
this.piloting = skills.LPS_PILOTING ?? 0;
|
|
83
|
-
|
|
84
|
-
this.tactical = skills.LPS_TACTICAL ?? 0;
|
|
85
|
-
|
|
86
|
-
this.command = skills.LPS_COMMAND ?? 0;
|
|
87
|
-
|
|
88
|
-
this.drifter = Math.floor((skills.LPP_DRIFTER ?? 0) / 1000);
|
|
89
|
-
|
|
90
|
-
this.riding = skills.LPS_DRIFT_RIDING ?? 0;
|
|
91
|
-
|
|
92
|
-
this.combat = skills.LPS_DRIFT_COMBAT ?? 0;
|
|
93
|
-
|
|
94
|
-
this.opportunity = skills.LPS_DRIFT_OPPORTUNITY ?? 0;
|
|
95
|
-
|
|
96
|
-
this.endurance = skills.LPS_DRIFT_ENDURANCE ?? 0;
|
|
97
|
-
}
|
|
64
|
+
constructor(skills: RawIntrinsics);
|
|
98
65
|
}
|
|
66
|
+
//#endregion
|
|
67
|
+
export { Intrinsics, RawIntrinsics };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Skin } from "./Skin-BbUkegH1.js";
|
|
2
|
+
import { ProfileRawColors } from "./Utils-C7BZqK4e.js";
|
|
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 { ItemConfig, RawItemConfig };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { mapToHex } from "./Utils-C3kZCO6a.js";
|
|
2
|
+
import { Skin } from "./Skin-D6v6jC9U.js";
|
|
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 };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import LoadOutItem,
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { RawSkin, Skin } from "./Skin-BbUkegH1.js";
|
|
2
|
+
import { LoadOutItem, RawLoadOutItem } from "./LoadOutItem-BlRFZMNd.js";
|
|
3
|
+
import { RawXpItem, XpInfo } from "./XpInfo-ChJ_lJaH.js";
|
|
4
|
+
import { Locale } from "warframe-worldstate-data";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
//#region src/LoadOutInventory.d.ts
|
|
7
|
+
interface RawLoadOut {
|
|
7
8
|
WeaponSkins: RawSkin[];
|
|
8
9
|
Suits: RawLoadOutItem[];
|
|
9
10
|
Pistols?: RawLoadOutItem[];
|
|
@@ -11,59 +12,42 @@ export interface RawLoadOut {
|
|
|
11
12
|
Melee?: RawLoadOutItem[];
|
|
12
13
|
XPInfo: RawXpItem[];
|
|
13
14
|
}
|
|
14
|
-
|
|
15
15
|
/**
|
|
16
16
|
* Player loudout
|
|
17
17
|
* @module
|
|
18
18
|
*/
|
|
19
|
-
|
|
19
|
+
declare class LoadOutInventory {
|
|
20
20
|
/**
|
|
21
21
|
* Skins applied to weapons
|
|
22
22
|
*/
|
|
23
23
|
weaponSkins: Skin[];
|
|
24
|
-
|
|
25
24
|
/**
|
|
26
25
|
* An array of the player's currently equiped Warframe (or powersuits)
|
|
27
26
|
*/
|
|
28
27
|
suits: LoadOutItem[];
|
|
29
|
-
|
|
30
28
|
/**
|
|
31
29
|
* An array of the player's currently equiped secondary weapon
|
|
32
30
|
*/
|
|
33
31
|
secondary?: LoadOutItem[];
|
|
34
|
-
|
|
35
32
|
/**
|
|
36
33
|
* An array of the player's currently equiped primary weapon
|
|
37
34
|
*/
|
|
38
35
|
primary?: LoadOutItem[];
|
|
39
|
-
|
|
40
36
|
/**
|
|
41
37
|
* An array of the player's currently equiped melee weapon
|
|
42
38
|
*/
|
|
43
39
|
melee?: LoadOutItem[];
|
|
44
|
-
|
|
45
40
|
/**
|
|
46
41
|
* Items that have counted towards the players mastery rank
|
|
47
42
|
*/
|
|
48
43
|
xpInfo: XpInfo[];
|
|
49
|
-
|
|
50
44
|
/**
|
|
51
45
|
*
|
|
52
46
|
* @param item The loadout data
|
|
53
47
|
* @param locale The locale to return loudout items in. Default is en
|
|
54
48
|
* @param withItem Whether or not to include items
|
|
55
49
|
*/
|
|
56
|
-
constructor(item: RawLoadOut, locale
|
|
57
|
-
this.weaponSkins = item.WeaponSkins.map((s) => new Skin(s, locale));
|
|
58
|
-
|
|
59
|
-
this.suits = item.Suits.map((s) => new LoadOutItem(s, locale));
|
|
60
|
-
|
|
61
|
-
this.secondary = item.Pistols?.map((p) => new LoadOutItem(p, locale));
|
|
62
|
-
|
|
63
|
-
this.primary = item.LongGuns?.map((lg) => new LoadOutItem(lg, locale));
|
|
64
|
-
|
|
65
|
-
this.melee = item.Melee?.map((m) => new LoadOutItem(m, locale));
|
|
66
|
-
|
|
67
|
-
this.xpInfo = item.XPInfo.map((xp) => new XpInfo(xp, locale, withItem));
|
|
68
|
-
}
|
|
50
|
+
constructor(item: RawLoadOut, locale?: Locale, withItem?: boolean);
|
|
69
51
|
}
|
|
52
|
+
//#endregion
|
|
53
|
+
export { LoadOutInventory, RawLoadOut };
|