From e99391a9bb1e043e409c2fe922da294da427fe5d Mon Sep 17 00:00:00 2001 From: unsoftcapped3 <75136164+unsoftcapped3@users.noreply.github.com> Date: Wed, 14 Dec 2022 12:08:36 -0800 Subject: [PATCH] remove off by 1 eeror --- src/data/layers/elves.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/layers/elves.tsx b/src/data/layers/elves.tsx index b4e2f91..cf8e6e2 100644 --- a/src/data/layers/elves.tsx +++ b/src/data/layers/elves.tsx @@ -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