mirror of
https://github.com/Luzifer/automate-cookie-clicker.git
synced 2024-11-08 14:00:12 +00:00
Reintroduce buy message
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
b274868b2b
commit
a4f49ee6d4
1 changed files with 2 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
// ==UserScript==
|
||||
// @name Automate CookieClicker
|
||||
// @namespace https://luzifer.io/
|
||||
// @version 0.17.2
|
||||
// @version 0.17.3
|
||||
// @description Automate everything!
|
||||
// @author Knut Ahlers <knut@ahlers.me>
|
||||
// @source https://github.com/Luzifer/automate-cookie-clicker
|
||||
|
@ -56,6 +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.');
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue