Apply flooring to resource displays
This commit is contained in:
parent
ce895ed0a0
commit
62c3e1f45d
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue