1
0
Fork 0
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:
Knut Ahlers 2018-04-20 09:13:18 +02:00
parent a4f49ee6d4
commit 9001c0368f
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

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