mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2025-03-20 21:30:29 +00:00
Keep the previous dye amount when autobuying
This commit is contained in:
parent
cf8df5e27e
commit
7e2a1663dd
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue