update live stats mob kill counter
All checks were successful
deploy / build-and-deploy (push) Successful in 19s
All checks were successful
deploy / build-and-deploy (push) Successful in 19s
This commit is contained in:
@@ -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)}`;
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user