remove off by 1 eeror

This commit is contained in:
unsoftcapped3 2022-12-14 12:08:36 -08:00 committed by GitHub
parent 1d395163e1
commit e99391a9bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -587,7 +587,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
buyable => {
const buyAmount = Decimal.min(
Decimal.sub(
buyable.inverseCost(buyable.resource?.value),
buyable.inverseCost(buyable.resource?.value).add(1),
buyable.amount.value
),
maxBuyAmount