mirror of
https://github.com/Luzifer/automate-cookie-clicker.git
synced 2024-11-09 14:30:08 +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==
|
||||
// @name Automate CookieClicker
|
||||
// @namespace https://luzifer.io/
|
||||
// @version 0.17.3
|
||||
// @version 0.17.4
|
||||
// @description Automate everything!
|
||||
// @author Knut Ahlers <knut@ahlers.me>
|
||||
// @source https://github.com/Luzifer/automate-cookie-clicker
|
||||
|
@ -56,7 +56,7 @@ function executeAutoActions() {
|
|||
for (let buyAmount = getMaxBuy() - product.amount; buyAmount > 0; buyAmount--) {
|
||||
if (product.getSumPrice(buyAmount) <= Game.cookies) {
|
||||
product.buy(buyAmount);
|
||||
note('Purchased ' + buyAmount + ' ' + product.plural + ' for you.');
|
||||
note('Purchased ' + buyAmount + ' ' + (buyAmount === 1 ? product.name : product.plural) + ' for you.');
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue