From 6c2ff7fb40bbc2b2a19c2bbf80f5926bbe5c081a Mon Sep 17 00:00:00 2001 From: bytedream Date: Fri, 2 Jan 2026 18:27:49 +0100 Subject: [PATCH] update live stats mob kill counter --- src/app/website/index/LiveStats.svelte | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/website/index/LiveStats.svelte b/src/app/website/index/LiveStats.svelte index ee3f256..6d98f1f 100644 --- a/src/app/website/index/LiveStats.svelte +++ b/src/app/website/index/LiveStats.svelte @@ -9,7 +9,9 @@ } function transformMobKills(mobKills: number) { - return mobKills < 1000 ? `${mobKills}` : `${(mobKills / 1000).toFixed(2)}K`; + if (mobKills < 1000) return `${mobKills}`; + else if (mobKills < 1_000_000) return `${(mobKills / 1000).toFixed(2)}K`; + else return `${Math.floor(mobKills / 1000)}`; }