Keep the previous dye amount when autobuying

This commit is contained in:
Seth Posner 2022-12-18 19:40:02 -08:00
parent cf8df5e27e
commit 7e2a1663dd

View file

@ -930,6 +930,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
dye.amount.value = Decimal.times(2, buyable.amount.value).plus(amount).plus(1)
.times(amount).div(2)
.times(Decimal.add(buyable.amount.value, 1)).div(dye.computedToGenerate.value)
.plus(dye.amount.value)
buyable.amount.value = Decimal.add(buyable.amount.value, amount);
}