mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-29 11:25:02 +00:00
remove off by 1 eeror
This commit is contained in:
parent
1d395163e1
commit
e99391a9bb
1 changed files with 1 additions and 1 deletions
|
@ -587,7 +587,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
||||||
buyable => {
|
buyable => {
|
||||||
const buyAmount = Decimal.min(
|
const buyAmount = Decimal.min(
|
||||||
Decimal.sub(
|
Decimal.sub(
|
||||||
buyable.inverseCost(buyable.resource?.value),
|
buyable.inverseCost(buyable.resource?.value).add(1),
|
||||||
buyable.amount.value
|
buyable.amount.value
|
||||||
),
|
),
|
||||||
maxBuyAmount
|
maxBuyAmount
|
||||||
|
|
Loading…
Reference in a new issue