steamutils 1.1.7 → 1.1.9
Sign up to get free protection for your applications and to get access to all the features.
- package/SteamClient.js +3 -2
- package/package.json +1 -1
package/SteamClient.js
CHANGED
@@ -591,7 +591,7 @@ function SteamClient({
|
|
591
591
|
try {
|
592
592
|
const prime = player.apr === 1 ? 'PRIME' : 'NON-PRIME'
|
593
593
|
const loc = LOCS[player.loc] || player.loc
|
594
|
-
const
|
594
|
+
const steamId = SteamID.fromIndividualAccountID(player.id).getSteamID64()
|
595
595
|
const persona = personas.find(p => p.id == steamID)
|
596
596
|
const friendCode = FriendCode.encode(steamID)
|
597
597
|
|
@@ -601,7 +601,7 @@ function SteamClient({
|
|
601
601
|
player_name: persona.player_name,
|
602
602
|
rank: RANKS[player.ark],
|
603
603
|
loc: loc,
|
604
|
-
|
604
|
+
steamId,
|
605
605
|
friendCode,
|
606
606
|
avatar_hash: persona.avatar_hash,
|
607
607
|
})
|
@@ -655,6 +655,7 @@ function SteamClient({
|
|
655
655
|
const player = data?.[0];
|
656
656
|
if (player) {
|
657
657
|
player.prime = !!(player.ranking?.account_id || player.player_level || player.player_cur_xp)
|
658
|
+
player.steamId = SteamID.fromIndividualAccountID(player.account_id).getSteamID64()
|
658
659
|
}
|
659
660
|
callGCCallback('PlayersProfile' + player?.account_id, player)
|
660
661
|
callEvent(events.playersProfile, player)
|