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

Add wrinkler management

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-04-20 09:36:16 +02:00
parent 9001c0368f
commit ad588fa531
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.4 // @version 0.18.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
@ -36,6 +36,11 @@ function executeAutoActions() {
// Click all golden cookies // Click all golden cookies
$('.shimmer').click(); $('.shimmer').click();
// Get rid of wrinklers
while (Game.wrinklers.filter(obj => obj.hp > 0 && obj.phase > 0).length > 0) {
Game.PopRandomWrinkler();
}
// Harvest sugar lumps // Harvest sugar lumps
if ((new Date() - Game.lumpT) > Game.lumpRipeAge) { if ((new Date() - Game.lumpT) > Game.lumpRipeAge) {
Game.harvestLumps(1); Game.harvestLumps(1);