fixes type error

This commit is contained in:
circle-gon 2022-12-14 15:49:35 -05:00 committed by GitHub
parent e99391a9bb
commit 5efb6c65a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
);