diff --git a/src/game/modifiers.tsx b/src/game/modifiers.tsx index dcd7e38..175483e 100644 --- a/src/game/modifiers.tsx +++ b/src/game/modifiers.tsx @@ -2,7 +2,7 @@ import "components/common/modifiers.css"; import type { CoercableComponent } from "features/feature"; import { jsx } from "features/feature"; import type { DecimalSource } from "util/bignum"; -import Decimal, { format } from "util/bignum"; +import Decimal, { formatSmall } from "util/bignum"; import type { WithRequired } from "util/common"; import type { Computable, ProcessedComputable } from "util/computed"; import { convertComputable } from "util/computed"; @@ -85,7 +85,7 @@ export function createAdditiveModifier( ) : null} {Decimal.gte(unref(processedAddend), 0) ? "+" : ""} - {format(unref(processedAddend))} + {formatSmall(unref(processedAddend))} )) @@ -132,7 +132,7 @@ export function createMultiplicativeModifier ) : null} - ×{format(unref(processedMultiplier))} + ×{formatSmall(unref(processedMultiplier))} )) @@ -202,7 +202,7 @@ export function createExponentialModifier( ) : null} - ^{format(unref(processedExponent))} + ^{formatSmall(unref(processedExponent))} )) @@ -281,7 +281,7 @@ export function createModifierSection(
{renderJSX(baseText)} - {format(base)} + {formatSmall(base)} {unit}
@@ -290,7 +290,7 @@ export function createModifierSection(
Total - {format(modifier.apply(base))} + {formatSmall(modifier.apply(base))} {unit}