From 6889502142f77cfa1829deb2303ebc2feef693e1 Mon Sep 17 00:00:00 2001 From: p9 Date: Sat, 11 Apr 2026 16:27:44 +0530 Subject: [PATCH] Always round down when displaying elo --- play.pokemonshowdown.com/js/client-chat.js | 2 +- play.pokemonshowdown.com/src/panel-ladder.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/play.pokemonshowdown.com/js/client-chat.js b/play.pokemonshowdown.com/js/client-chat.js index 7a07b3e39..f359a5aa3 100644 --- a/play.pokemonshowdown.com/js/client-chat.js +++ b/play.pokemonshowdown.com/js/client-chat.js @@ -1017,7 +1017,7 @@ if (typeof values[j] !== 'number' && typeof values[j] !== 'string' || isNaN(values[j])) return self.add('|raw|Error: corrupted ranking data'); } - buffer += '' + BattleLog.escapeFormat(formatId) + '' + Math.round(row.elo) + ''; + buffer += '' + BattleLog.escapeFormat(formatId) + '' + Math.floor(row.elo) + ''; if (row.rprd > 100) { // High rating deviation. Provisional rating. buffer += '–'; diff --git a/play.pokemonshowdown.com/src/panel-ladder.tsx b/play.pokemonshowdown.com/src/panel-ladder.tsx index 8e207b560..70565f8de 100644 --- a/play.pokemonshowdown.com/src/panel-ladder.tsx +++ b/play.pokemonshowdown.com/src/panel-ladder.tsx @@ -188,7 +188,7 @@ class LadderFormatPanel extends PSRoomPanel { > {row.username} - {row.elo.toFixed(0)} + {Math.floor(row.elo)} {Math.trunc(row.gxe)}.{row.gxe.toFixed(1).slice(-1)}% {row.rpr.toFixed(0)} ± {row.rprd.toFixed(0)} {showCOIL && {row.coil?.toFixed(0)}}