From c20caf45a265c68f3ac9dd1d6b8c62f6cdc8075b Mon Sep 17 00:00:00 2001 From: tresabhi <43380238+tresabhi@users.noreply.github.com> Date: Sun, 22 Dec 2024 20:30:08 -0600 Subject: [PATCH] feat: rounding in blitzkit embeds --- .../src/pages/tools/tankopedia/[id]/index.astro | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/website/src/pages/tools/tankopedia/[id]/index.astro b/packages/website/src/pages/tools/tankopedia/[id]/index.astro index d118dc290..39f89b505 100644 --- a/packages/website/src/pages/tools/tankopedia/[id]/index.astro +++ b/packages/website/src/pages/tools/tankopedia/[id]/index.astro @@ -71,11 +71,11 @@ const description = `${ name } armor, statistics, equipment, provisions, and more. ${Math.round( characteristics.dpm, -).toLocaleString()} DPM, ${characteristics.damage}hp alpha, ${ - characteristics.penetration -}mm penetration, ${ - characteristics.speedForwards -}kph top speed, ${characteristics.health}hp health.`; +).toLocaleString()} DPM, ${characteristics.damage.toFixed(0)}hp alpha, ${characteristics.penetration.toFixed( + 0, +)}mm penetration, ${characteristics.speedForwards.toFixed( + 0, +)}kph top speed, ${characteristics.health}hp health.`; ---