From c4e9ef273038f94533e7e81df77cfbac83c2c602 Mon Sep 17 00:00:00 2001 From: zhangyuheng Date: Wed, 11 Feb 2026 15:45:02 +0800 Subject: [PATCH] feat: Format deaths and kills stats for better readability --- stats_script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stats_script.js b/stats_script.js index 63a01d4..bad9996 100644 --- a/stats_script.js +++ b/stats_script.js @@ -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) {