Cookie Clicker Wiki
Advertisement
Cookie Clicker Wiki

The Grimoire interface

The Grimoire is a minigame added on July 15, 2017, Version 2.0034. It is unlocked by spending one sugar lump to upgrade Wizard Towers to level 1.

It has several spells that can be cast:

Icon Name Magic Cost Spell/Backfire Effects
Grimoireicons 01.png Conjure Baked Goods 2 magic +40% of max magic Summon half an hour worth of your CpS, capped at 15% of your cookies owned.

15% chance to backfire:
Trigger a 15-minute clot and lose 15 minutes of CpS.

Grimoireicons 02.png Force the Hand of Fate 10 magic +60% of max magic Summon a random golden cookie. Each existing golden cookie makes this spell +15% more likely to backfire.

15% chance to backfire:
Summon an unlucky wrath cookie.

Grimoireicons 03.png Stretch Time 8 magic +20% of max magic All active buffs gain 10% more time (up to 5 more minutes).

15% chance to backfire:
All active buffs are shortened by 20% (up to 10 minutes shorter).

Grimoireicons 04.png Spontaneous Edifice 20 magic +75% of max magic The spell picks a random building you could afford if you had twice your current cookies, and gives it to you for free.
The building selected must be under 400, and cannot be your most-built one (unless it is your only one).

15% chance to backfire:
Lose a random building.

Grimoireicons 05.png Haggler's Charm 10 magic +10% of max magic Upgrades are 2% cheaper for 1 minute.

15% chance to backfire:
Upgrades are 2% more expensive for an hour.


Flavor text: "What's that spell? Loadsamoney!"
Grimoireicons 06.png Summon Crafty Pixies 10 magic +20% of max magic Buildings are 2% cheaper for 1 minute.

15% chance to backfire:
Buildings are 2% more expensive for an hour.

Grimoireicons 07.png Gambler's Fever Dream 3 magic +5% of max magic Cast a random spell at half the magic cost, with twice the chance of backfiring.[note 1]
Grimoireicons 08.png Resurrect Abomination 20 magic +10% of max magic Instantly summon a wrinkler if conditions are fulfilled.

15% chance to backfire:
Pop one of your wrinklers.

Grimoireicons 09.png Diminish Ineptitude 5 magic +20% of max magic Spells backfire 10 times less for the next 5 minutes.

15% chance to backfire:
Spells backfire 5 times more for the next 10 minutes.

  1. Bugged at the moment. Currently compares the base fail rate (15% standard; 1.5% with Magic adept; 65% with Magic inept) to a flat fail rate of 50%, and picks the higher of the two.

Each spell costs magic to use. Your maximum amount of magic varies depending on your amount of wizard towers, as well as their building level. Magic refills over time; the lower your magic meter, the slower it refills. Alternatively, up to 100 can be refilled instantly by using a sugar lump.

Selling wizard towers will reduce the maximum limit of the magic meter, but not the current magic (unless the new maximum limit is below the current magic). This allows casting Force the Hand of Fate once, then selling wizard towers to reduce the cost of a second cast. For instance, at 100 magic / 100 max magic, the first Force spell would cost 70 magic, leaving 30 magic available. Selling towers to reduce the maximum magic to 30 will make the cost of a second Force spell to go down to 28 magic, effectively allowing a double cast without the use of a sugar lump. This exploit can be used for an easier and less expensive way to get the Four-leaf cookie shadow achievement.

Manipulation

As of version v2.0042, the seed used to determine the outcome of casting a spell is stored in your save file. More specifically, the result of casting any spell is based on your game seed (this is changed only on ascension) and your total number of spells cast. This means that if you save the game, cast a spell, re-load the game, and cast the same spell, the outcome will be the same. However, because Force the Hand of Fate uses Golden Cookie mechanics, there may be extra randomness checks before determining the specific bonus from the cookie and each additional check may change the outcome of the spell. These checks occur after determining whether the spell backfires so they have no effect on whether or not the spell backfires, they do however affect the outcome of Wrath Cookies spawned by backfires in the same way.

As of v2.029 this is as follows:

Extra randomness checks
Valentine's Day or Easter +1
Any other season 0

This means that depending on your settings the cookie from the spell may have 2 different results. Note however that the result is still deterministic so casting with the same number of spells cast total, same season and same golden cookie sound setting will always yield the same result. This gives the player the opportunity to get different results without having to cast additional spells, provided that the player has unlocked Golden cookie alert sound and/or Season switcher Heavenly upgrades.

Since the result is deterministic you can check in advance to see whether a spell will have a favorable outcome, and then use that spell at a later time with predictable results. One application of this is using Force the Hand of Fate to confirm either a Click Frenzy or Elder Frenzy cookie will be generated and use that during a Frenzy, Building Special, and/or Dragonflight buff (note: Click Frenzy cannot be summoned during a Dragonflight).

Also, whether a spell will backfire or not is also deterministic, not tied to each specific spell (note, however, that because Force the Hand of Fate has an additional chance to fail depending on the number of golden cookies on screen, the spell may fail even though other spells would not). This can be manipulated so that the backfire can be "wasted" on a spell that won't have as much of an impact, such as using it on Diminish Ineptitude to make it cause backfires to occur 5 times more likely for 10 minutes, and then not use spells during those 10 minutes, or use it on Stretch Time when a buff is about to expire for a negligible loss of buff time, or even take advantage of it to shorten a negative buff like Clot.

Gambler's Fever Dream

Gambler's Fever Dream uses a separate "track" for its the success and failure. The order of spells it picks is also predetermined by the above-mentioned mechanism, but usage of other spells "count" towards this track. For example, if you cast Gambler's Fever Dream twice and get spell A and spell B, reload without saving, cast spell C and then cast Gambler's Fever Dream, you will get spell B. The reverse is also true, even if Gambler's Fever Dream tried to cast a spell but failed.

Gambler's Fever Dream has a small delay when casting the random spell. You can only try to cast Gambler's Fever Dream if you have the magic required, but if you spend magic quickly during this delay to the point you cannot afford the second spell, Gambler's Fever Dream and its chosen spell's magic is refunded. This is one of the two ways Gambler's Fever Dream can "fail" while still counting towards the spell "track", the other being Gambler's Fever Dream attempting to cast a spell you don't meet the requirements for (e.g. Spontaneous Edifice with all buildings 400+). This delay-fail can be used to try and force a desired golden cookie from Force the Hand of Fate. You can cast Gambler's Fever Dream once, then quickly Force the Hand of Fate, and if you don't get the right cookie, reload, cast Gambler's Fever Dream twice, then quickly Force the Hand of Fate again... increase until you get the right cookie, at which point you can keep playing while Gambler's Fever Dream casts magic will be refunded.

Gambler's Fever Dream plus random spell only counts as 1 spell cast, but it still counts if magic is refunded.

Spontaneous Edifice mechanics

Building quantity achievements will remain locked when the player reaches a certain threshold using Spontaneous Edifice. Simply save and refresh the game to have them unlocked.

The total number of Wizard towers needed to cast the Spontaneous Edifice spell at each building level (up to 50) is as follows:

Lvl 1: 271 wizard towers
Lvl 2: 267 wizard towers
Lvl 3: 262 wizard towers
Lvl 4: 258 wizard towers
Lvl 5: 254 wizard towers
Lvl 6: 249 wizard towers
Lvl 7: 245 wizard towers
Lvl 8: 241 wizard towers
Lvl 9: 237 wizard towers
Lvl 10: 233 wizard towers
Lvl 11: 229 wizard towers
Lvl 12: 225 wizard towers
Lvl 13: 221 wizard towers
Lvl 14: 218 wizard towers
Lvl 15: 214 wizard towers
Lvl 16: 210 wizard towers
Lvl 17: 207 wizard towers
Lvl 18: 203 wizard towers
Lvl 19: 200 wizard towers
Lvl 20: 196 wizard towers
Lvl 21: 193 wizard towers
Lvl 22: 190 wizard towers
Lvl 23: 186 wizard towers
Lvl 24: 183 wizard towers
Lvl 25: 180 wizard towers
Lvl 26: 177 wizard towers
Lvl 27: 174 wizard towers
Lvl 28: 171 wizard towers
Lvl 29: 168 wizard towers
Lvl 30: 165 wizard towers
Lvl 31: 162 wizard towers
Lvl 32: 159 wizard towers
Lvl 33: 156 wizard towers
Lvl 34: 154 wizard towers
Lvl 35: 151 wizard towers
Lvl 36: 148 wizard towers
Lvl 37: 146 wizard towers
Lvl 38: 143 wizard towers
Lvl 39: 140 wizard towers
Lvl 40: 138 wizard towers
Lvl 41: 135 wizard towers
Lvl 42: 133 wizard towers
Lvl 43: 131 wizard towers
Lvl 44: 128 wizard towers
Lvl 45: 126 wizard towers
Lvl 46: 124 wizard towers
Lvl 47: 121 wizard towers
Lvl 48: 119 wizard towers
Lvl 49: 117 wizard towers
Lvl 50: 115 wizard towers

Conjure Baked Goods

An optimal strategy for using the "Conjure Baked Goods" spell would be to wait until you have a large production multiplier. A good time to cast it is when the golden cookie effect "Frenzy" and the wrath cookie effect "Elder frenzy" are both active, as this will earn you 30 minutes of x4662 your cookie production. It is also possible to gain even larger multipliers, for example with the help of Force the Hand of Fate. (It is limited to 15% of the current bank so plan accordingly.)

Force the Hand of Fate

Force the Hand of Fate has no unavoidable risk except losing the magic points. A backfire creates a Wrath Cookie, but you do not have to click that cookie.

One strong strategy is to use Force the Hand of Fate when Frenzy or another CpS buff is in effect. A multiplier effect (such as Click Frenzy over Frenzy) can lead to a massive win in some cases, and there is no (unavoidable) bad result. This does mean one needs to keep the magic recharged, to have it available when a spontaneously-created Golden Cookie results in a Frenzy.


Outcome of Force the Hand of Fate

The mechanism of this spell follows a random list mechanism.

For golden cookie, the rules are:

  • Add Frenzy and Lucky to a pool.
  • If there is no Dragonflight buff active, add Click Frenzy.
  • 10% chance to add Storm (added twice) and Blab to the pool.
  • 25% chance to add Building Special, if you own more than or equal to 10 total buildings.
    • For all buildings of which you own more than or equal to 10, choose one and buff according to the chosen building's amount. If no building has such quantity, choose Frenzy.
  • 15% chance to replace the pool with Storm Drop.
  • 0.01% chance to add Free Sugar Lump to the pool.
  • Pick a random effect from the pool.

In the following, we assume at least one building's number is more or equal to 10.

The final results are:

No Dragonflight buff

 
Frenzy=Lucky=C. Frenzy Storm Blab Building StormDrop Sugar
Exact
Approx. 25.27172871% 2.732104911% 1.366052455% 5.084722009% 14.99925% 0.002684508929%
FtHoF normal probabilities
With Dragonflight buff

 
Frenzy=Lucky Storm Blab Building StormDrop Sugar
Exact
Approx. 36.69052473% 3.258280714% 1.629140357% 6.729002232% 14.99925% 0.003277232143%
FtHoF dragonflight probabilities

For wrath cookie (backfire), the rules are:

  • Add Clot and Ruin to a pool.
  • 10% chance to add Cursed Finger and Elder Frenzy to the pool.
  • 0.3% chance to add Free Sugar Lump to the pool.
  • 10% chance to replace the pool with Blab.
  • Pick a random effect from the pool.

The final result is:


 
Clot=Ruin Cursed Finger=Elder Frenzy Sugar Blab
Exact
Exact 42.70815% 2.24865% 0.0864% 10%
FtHoF backfire probabilities


Magic recharge time

The maximum magic, M, one can have is determined by the following formula:

Where T is the amount of wizard towers owned and L is the level of the wizard towers. How the magic, M, increases over time, starting from empty at t=0, can be approximated by the following formula:

Where time, t, is in minutes. Notice that when L=1 and T<=530, M=100. In most cases, we can approximate M with the quadratic equation only. To estimate how long it takes in minutes to reach the target amount of magic, use the following formula:

Where mi is the current amount of magic available and mf is the desired amount of magic. This time may vary from the actual time taken due to the game running at different frame rates (e.g. when running in the background versus in the foreground). By these calculations, it takes roughly 56 minutes to fully recharge a completely empty magic meter when M=100.

This Desmos graph can be used to calculate the time it will take to reach any amount of magic (m(t)), given the number and level of towers.

This Desmos graph can be used to calculate the amount of time it will take to reach a target amount of magic, given the number and level of towers, and the current amount of magic.

Optimal max limits

Spells can be repeatedly cast as long as there is enough magic in the magic meter to cast it. For every spell, there is an optimal value for the max limit of magic, which allows the magic to regenerate in the shortest amount of time. These values and times are recorded in the table below. Some spells have inconveniently low limits, like the 7 of Conjure Baked Goods, so good alternatives have been listed as well.

Name Optimal Max Magic Cost to Cast Time Until Recharged
Conjure Baked Goods 7 4 305 seconds
9 5 333 seconds
12 6 338 seconds
Force the Hand of Fate 33 29 1248 seconds
38 32 1238 seconds
43 35 1243 seconds
Stretch Time 44 16 447 seconds
49 17 448 seconds
54 18 449 seconds
Spontaneous Edifice 93 89 2548 seconds
97 92 2538 seconds
101 95 2546 seconds
Haggler's Charm 79 17 338 seconds
89 18 336 seconds
99 19 335 seconds
Summon Crafty Pixies 54 20 506 seconds
59 21 506 seconds
64 22 506 seconds
Resurrect Abomination 89 28 541 seconds
99 29 528 seconds
109 30 540 seconds
Diminish Ineptitude 24 9 342 seconds
29 10 342 seconds
34 11 345 seconds

Optimal magic levels.png

With this information, we can see that casting Haggler's Charm with 99 max magic is the fastest way to cast spells, but casting Conjure Baked Goods with low max magic is a good alternative while remaining useful in getting cookies.

Achievements

Icon Name Description ID
Grimoireicons 01.png Bibbidi-bobbidi-boo Cast 9 spells. 321
Grimoireicons 02.png I'm the wiz Cast 99 spells. 322
Grimoireicons 09.png A wizard is you Cast 999 spells.
"I'm a what?"
323

Trivia

  • Bibbidi-bobbidi-boo is a reference to Disney's Cinderella.
  • "A wizard is you" is a reference to "A winner is you," a meme from Nintendo Pro Wrestling. This also could be a nod to Fawful's Engrish style of speech from the Mario and Luigi series.
  • The description "I'm a what?" is a reference to Harry Potter.
  • The Stretch Time spell can be purposely backfired to shorten Clots or other negative effects by 10 minutes max, which can be very, very useful.
  • "I'm the wiz" is a reference to a character in the Seinfeld episode "The Junk Mail"
  • The flavor text of Haggler's Charm, "What's that spell? Loadsamoney!", is a reference to the song Loadsamoney (Doing up the house) by Harry Enfield, featuring the lines "What's that spell? Loadsamoney, probably".
  • Conjure Baked Goods gives a base amount of cookies of 7 when used at a CPS of 0. The only way to get this is through the use of it during a Cursed Finger Wrath Cookie effect, due to always having CPS above 0 when using the spell (it is required to own Wizard Towers in order to use spells), but Cursed Finger sets your CPS to 0 for the duration of the effect.
  • Spawning a golden cookie from Force the Hand of Fate during a cookie chain will end that chain
  • When Resurrect Abomination backfires while you have no wrinklers it displays "Backfire! But no wrinkler was harmed." Outside of the Grandmapocalypse, it will say "Unable to spawn a wrinkler!" if the cast is successful. By attempting to cast this before starting the Grandmapocalypse (or during an Elder Pact/Pledge), you can use this information to determine if the next spell will backfire or not, as your magic will not be drained if the spell cannot have an effect.
  • The "Just Wrong" achievement can be unlocked by losing a grandma to Spontaneous Edifice backfiring.
  • When a spell is set to backfire (regardless of reloading), you can instead activate Gambler's Fever Dream which has a high chance of negating the inevitable backfire.
Minigames
DirtSoil.png
Garden
Finance headquarters.png
Stock Market
Pantheonicons 09.png
Pantheon
Grimoireicons 09.png
Grimoire
Minigames overviewCategory:Minigames
Advertisement