From 2b541c2a3be315682b36c08f153ecfcd750a36e3 Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Mon, 19 Dec 2022 19:41:37 -0600 Subject: [PATCH] Show small numbers in modifiers' totals --- src/data/common.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data/common.tsx b/src/data/common.tsx index 7cdad01..5074730 100644 --- a/src/data/common.tsx +++ b/src/data/common.tsx @@ -22,7 +22,7 @@ import type { Persistent } from "game/persistence"; import { DefaultValue, persistent } from "game/persistence"; import player from "game/player"; import settings from "game/settings"; -import type { DecimalSource } from "util/bignum"; +import { DecimalSource, formatSmall } from "util/bignum"; import Decimal, { format } from "util/bignum"; import { formatWhole } from "util/break_eternity"; import { Direction, WithRequired } from "util/common"; @@ -348,7 +348,7 @@ export function createCollapsibleModifierSections(
Total - {format(s.modifier.apply(unref(processed.base[i]) ?? 1))} + {formatSmall(s.modifier.apply(unref(processed.base[i]) ?? 1))} {s.unit}