1
0
Fork 0
mirror of https://github.com/Luzifer/automate-cookie-clicker.git synced 2024-12-23 02:31:18 +00:00

Reintroduce buy message

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-04-20 09:10:29 +02:00
parent b274868b2b
commit a4f49ee6d4
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -1,7 +1,7 @@
// ==UserScript== // ==UserScript==
// @name Automate CookieClicker // @name Automate CookieClicker
// @namespace https://luzifer.io/ // @namespace https://luzifer.io/
// @version 0.17.2 // @version 0.17.3
// @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,6 +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.');
break; break;
} }
} }