mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2025-03-14 01:51:40 +00:00
fixes type error
This commit is contained in:
parent
e99391a9bb
commit
5efb6c65a7
1 changed files with 2 additions and 2 deletions
|
@ -587,9 +587,9 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
|||
buyable => {
|
||||
const buyAmount = Decimal.min(
|
||||
Decimal.sub(
|
||||
buyable.inverseCost(buyable.resource?.value).add(1),
|
||||
buyable.inverseCost(buyable.resource?.value),
|
||||
buyable.amount.value
|
||||
),
|
||||
).add(1),
|
||||
maxBuyAmount
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue