mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2025-03-14 01:51:40 +00:00
Make setupPassiveGeneration not lower the resource
This commit is contained in:
parent
96263d8bc9
commit
b5bc37c36a
1 changed files with 3 additions and 1 deletions
|
@ -464,7 +464,9 @@ export function setupPassiveGeneration(
|
|||
conversion.gainResource.value = Decimal.add(
|
||||
conversion.gainResource.value,
|
||||
Decimal.times(currRate, diff).times(Decimal.ceil(unref(conversion.actualGain)))
|
||||
).min(unref(processedCap) ?? Decimal.dInf);
|
||||
)
|
||||
.min(unref(processedCap) ?? Decimal.dInf)
|
||||
.max(conversion.gainResource.value);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue