From 9001c0368f4f617a22a67c34477280e09623a9c4 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Fri, 20 Apr 2018 09:13:18 +0200 Subject: [PATCH] Fix: Use singular on one buy Signed-off-by: Knut Ahlers --- autocookieclicker.user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autocookieclicker.user.js b/autocookieclicker.user.js index 5d4abfe..5ae287c 100644 --- a/autocookieclicker.user.js +++ b/autocookieclicker.user.js @@ -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 // @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; } }