update BN13 for new UI

This commit is contained in:
Olivier Gagnon
2021-09-25 17:21:50 -04:00
parent 3aacab504b
commit 793d9b34ce
49 changed files with 1763 additions and 9 deletions
+12
View File
@@ -165,6 +165,18 @@ class NumeralFormatter {
return this.format(n, "0,0");
}
formatStaneksGiftHeat(n: number): string {
return this.format(n, "0.000a");
}
formatStaneksGiftCharge(n: number): string {
return this.format(n, "0.000a");
}
formatStaneksGiftPower(n: number): string {
return this.format(n, "0");
}
parseMoney(s: string): number {
// numeral library does not handle formats like 1e10 well (returns 110),
// so if both return a valid number, return the biggest one