mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2025-04-01 13:31:01 +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)) {
|
while (Decimal.gte(buyProgress.value, cooldown)) {
|
||||||
if (unref(options.buyable.canPurchase)) {
|
if (unref(options.buyable.canPurchase)) {
|
||||||
options.buyable.amount.value = Decimal.add(options.buyable.amount.value, 1);
|
options.buyable.amount.value = Decimal.add(options.buyable.amount.value, 1);
|
||||||
buyProgress.value = cooldown.sub(cooldown);
|
buyProgress.value = Decimal.sub(buyProgress.value, cooldown);
|
||||||
} else {
|
} else {
|
||||||
buyProgress.value = cooldown;
|
buyProgress.value = cooldown;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue