feat: Format deaths and kills stats for better readability

This commit is contained in:
zhangyuheng
2026-02-11 15:45:02 +08:00
parent bdb7538831
commit c4e9ef2730

View File

@@ -139,7 +139,7 @@ function renderLeaderboards() {
// 4. Deaths (stats.deaths)
const topDeaths = getTop('deaths');
renderCard('lb-deaths', topDeaths, p => p.stats.deaths);
renderCard('lb-deaths', topDeaths, p => p.stats.deaths.toLocaleString());
// 5. Play Time (stats.play_time_raw)
const topPlayTime = getTop('play_time_fmt'); // uses play_time_raw internally
@@ -147,7 +147,7 @@ function renderLeaderboards() {
// 6. Kills (stats.kills)
const topKills = getTop('kills');
renderCard('lb-kills', topKills, p => p.stats.kills);
renderCard('lb-kills', topKills, p => p.stats.kills.toLocaleString());
}
function renderPlayerGrid(reset = false) {