an actual fix this time

This commit is contained in:
circle-gon 2022-12-04 14:44:20 -05:00 committed by GitHub
parent df645f7b47
commit c23a4d5626
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;