Skip to content

Commit

Permalink
fix read rank value
Browse files Browse the repository at this point in the history
  • Loading branch information
Manwe-777 committed May 19, 2024
1 parent 36af4c9 commit 28d436f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/background/onLabel/MatchGameRoomStateChangedEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,13 @@ export default function onLabelMatchGameRoomStateChangedEvent(
step: playerRank.limitedStep,
percentile: playerRank.limitedPercentile,
leaderboardPlace: playerRank.limitedLeaderboardPlace,
classValue: (playerRank as any).limitedClassValue,
}
: {
step: playerRank.constructedStep,
percentile: playerRank.constructedPercentile,
leaderboardPlace: playerRank.constructedLeaderboardPlace,
classValue: (playerRank as any).constructedClassValue,
}
: undefined;

Expand Down
2 changes: 2 additions & 0 deletions src/reader/readRank.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ export default function readRank(): CombinedRankInfo | undefined {
...rank,
constructedClass: rankClass[rank.constructedClass],
limitedClass: rankClass[rank.limitedClass],
constructedClassValue: rank.constructedClass,
limitedClassValue: rank.limitedClass,
};

return globalStore.rank;
Expand Down

0 comments on commit 28d436f

Please sign in to comment.