mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2025-03-20 21:30:29 +00:00
Apply flooring to resource displays
This commit is contained in:
parent
338f83545f
commit
1e0bf4b5bf
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…
Add table
Reference in a new issue