mirror of
https://github.com/Luzifer/automate-cookie-clicker.git
synced 2024-12-22 18:21:18 +00:00
Add harvesting lumps
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
a33571fd26
commit
b44253f8c2
1 changed files with 6 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name Automate CookieClicker
|
// @name Automate CookieClicker
|
||||||
// @namespace https://luzifer.io/
|
// @namespace https://luzifer.io/
|
||||||
// @version 0.11.4
|
// @version 0.12.0
|
||||||
// @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
|
||||||
|
@ -28,6 +28,11 @@ function executeAutoActions() {
|
||||||
// Click all golden cookies
|
// Click all golden cookies
|
||||||
$('.shimmer').click();
|
$('.shimmer').click();
|
||||||
|
|
||||||
|
// Harvest sugar lumps
|
||||||
|
if ((new Date() - Game.lumpT) > Game.lumpRipeAge) {
|
||||||
|
Game.harvestLumps(1);
|
||||||
|
}
|
||||||
|
|
||||||
// Look for upgrades being available
|
// Look for upgrades being available
|
||||||
let availableUpgrades = $('.upgrade.enabled').filter(upgradeFilter);
|
let availableUpgrades = $('.upgrade.enabled').filter(upgradeFilter);
|
||||||
if (availableUpgrades.length > 0) {
|
if (availableUpgrades.length > 0) {
|
||||||
|
|
Loading…
Reference in a new issue