mirror of
https://github.com/Luzifer/automate-cookie-clicker.git
synced 2024-12-23 02:31:18 +00:00
Fix: Use singular on one buy
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
a4f49ee6d4
commit
9001c0368f
1 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name Automate CookieClicker
|
// @name Automate CookieClicker
|
||||||
// @namespace https://luzifer.io/
|
// @namespace https://luzifer.io/
|
||||||
// @version 0.17.3
|
// @version 0.17.4
|
||||||
// @description Automate everything!
|
// @description Automate everything!
|
||||||
// @author Knut Ahlers <knut@ahlers.me>
|
// @author Knut Ahlers <knut@ahlers.me>
|
||||||
// @source https://github.com/Luzifer/automate-cookie-clicker
|
// @source https://github.com/Luzifer/automate-cookie-clicker
|
||||||
|
@ -56,7 +56,7 @@ function executeAutoActions() {
|
||||||
for (let buyAmount = getMaxBuy() - product.amount; buyAmount > 0; buyAmount--) {
|
for (let buyAmount = getMaxBuy() - product.amount; buyAmount > 0; buyAmount--) {
|
||||||
if (product.getSumPrice(buyAmount) <= Game.cookies) {
|
if (product.getSumPrice(buyAmount) <= Game.cookies) {
|
||||||
product.buy(buyAmount);
|
product.buy(buyAmount);
|
||||||
note('Purchased ' + buyAmount + ' ' + product.plural + ' for you.');
|
note('Purchased ' + buyAmount + ' ' + (buyAmount === 1 ? product.name : product.plural) + ' for you.');
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue