From 62c3e1f45d3a726317fcd9a7f07ba9d93a81553f Mon Sep 17 00:00:00 2001 From: Seth Posner Date: Thu, 1 Dec 2022 15:29:13 -0800 Subject: [PATCH] Apply flooring to resource displays --- src/features/resources/resource.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/resources/resource.ts b/src/features/resources/resource.ts index 019a3d7..ff78ba4 100644 --- a/src/features/resources/resource.ts +++ b/src/features/resources/resource.ts @@ -111,7 +111,7 @@ export function trackOOMPS( export function displayResource(resource: Resource, overrideAmount?: DecimalSource): string { const amount = overrideAmount ?? resource.value; if (Decimal.eq(resource.precision, 0)) { - return formatWhole(amount); + return formatWhole(resource.small ? amount : Decimal.floor(amount)); } return format(amount, resource.precision, resource.small); }