|
/* For Cookie Clicker v. 2.0106 |
|
coded on Chrome 67 |
|
|
|
Automated strategies for Minigames |
|
|
|
Stop by typing in the console |
|
> clearInterval(minigamesInterval); |
|
*/ |
|
|
|
minigamesInterval = setInterval(function(){ |
|
|
|
if (Game.ObjectsById[6].minigame){ |
|
// strategy for the Pantheon minigame, suppose an active play |
|
// Diamond - Godzamok |
|
// Ruby - Molkasium |
|
// Jade - Muridal |
|
// Sell all your Cursor if the Frenzy buff is detected (for Godzamok + Frenzy combo) |
|
if (Game.hasBuff('Frenzy') |
|
&& !Game.hasBuff('Devastation')){ |
|
var nbOfCursors = Game.ObjectsById[0].amount; |
|
Game.ObjectsById[0].sell(nbOfCursors - 1, false); |
|
} |
|
} |
|
|
|
if (Game.ObjectsById[7].minigame){ |
|
// strategy for the Grimoire |
|
// Backup of the Pantheon Frenzy strategy |
|
// If there's no Golden Cookie, and mana is full, and you can cast it, cast 'Force the Hand of Fate' |
|
|
|
var grimoireObject = Game.ObjectsById[7].minigame; |
|
if (Game.shimmers.length == 0 |
|
&& grimoireObject.magicM >= (10 + 0.1*grimoireObject.magicM) |
|
&& grimoireObject.magic == grimoireObject.magicM){ |
|
grimoireObject.castSpell(grimoireObject.spellsById[1], {}); |
|
} |
|
|
|
} |
|
|
|
if (Game.ObjectsById[2].minigame){ |
|
|
|
var gardenObject = Game.ObjectsById[2].minigame; |
|
|
|
// strategy for the garden |
|
// very hardcoded, need to plant Baker's wheat manually |
|
// Harvest plants when they are very mature |
|
for (x=0; x<=5; x++){ |
|
for (y=0; y<=5; y++){ |
|
|
|
if (gardenObject.isTileUnlocked(x,y) && gardenObject.getTile(x,y)[1] >= 90){ |
|
gardenObject.clickTile(x,y); |
|
} |
|
|
|
} |
|
} |
|
|
|
} |
|
|
|
}, 1000); |