From 0535a0c49b3fb17444cffac812df04e21fa60074 Mon Sep 17 00:00:00 2001 From: Tesseract1234567890 Date: Wed, 2 Jun 2021 21:57:31 -0400 Subject: [PATCH] Fixed high HP values --- src/ui/numeralFormat.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ui/numeralFormat.ts b/src/ui/numeralFormat.ts index 37cdcae71..e30568faa 100644 --- a/src/ui/numeralFormat.ts +++ b/src/ui/numeralFormat.ts @@ -67,7 +67,10 @@ class NumeralFormatter { } formatHp(n: number): string { - return this.format(n, "0"); + if(n < 1e6){ + return this.format(n, "0,0"); + } + return this.formatAbsurdNumber(n, 3) } formatMoney(n: number): string {