mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-25 01:41:48 +00:00
an actual fix this time
This commit is contained in:
parent
df645f7b47
commit
c23a4d5626
1 changed files with 1 additions and 1 deletions
|
@ -227,7 +227,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
|||
while (Decimal.gte(buyProgress.value, cooldown)) {
|
||||
if (unref(options.buyable.canPurchase)) {
|
||||
options.buyable.amount.value = Decimal.add(options.buyable.amount.value, 1);
|
||||
buyProgress.value = cooldown.sub(cooldown);
|
||||
buyProgress.value = Decimal.sub(buyProgress.value, cooldown);
|
||||
} else {
|
||||
buyProgress.value = cooldown;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue