fixes elves autobuying

This commit is contained in:
circle-gon 2022-12-04 14:43:27 -05:00 committed by GitHub
parent 02a1f6d44c
commit df645f7b47
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(0.1);
buyProgress.value = cooldown.sub(cooldown);
} else {
buyProgress.value = cooldown;
break;