Skip to content
This repository was archived by the owner on Oct 17, 2018. It is now read-only.

Auto spell cast from Grimoire#8

Open
pjie wants to merge 178 commits intoLordshinjo:masterfrom
briansmiley:master
Open

Auto spell cast from Grimoire#8
pjie wants to merge 178 commits intoLordshinjo:masterfrom
briansmiley:master

Conversation

@pjie
Copy link

@pjie pjie commented Dec 26, 2017

If you have 400 or more of each building, Spontaneous Edifice no longer has any valid buildings to create.

Can you possibly make the auto-spell function check for this, and sell chancemakers if there are no eligible buildings for Spontaneous Edifice?

The optimal end-game strategy is actually to sit at 400 chancemakers with Earthshatterer aura, and then when mana is full, sell one chancemaker and get it back with Spontaneous Edifice.
https://www.reddit.com/r/CookieClicker/comments/797dmy/extreme_endgame_spontaneous_edifice_is_the/

Making the functionality where Auto-Godzamok avoids constantly buying/selling cursors as fast as possible (vs. waiting for a current Devastation buff to end before selling more) toggleable.
If Auto-Godzamok is set to 1 (On), does rapidfire buy/sell. If set to 2 ('Sane'), waits for current Devastation buff to end before selling more, which feels less absurd.
Godzamok Menu Toggle, Auto-SL Harvest
See comments on fcWin. Something weird is going on with the win function being called on the CPS achievements
briansmiley and others added 30 commits March 5, 2018 12:32
also removed double of auto sugar lump harvesting
Fixes overlap with Santa/Dragon icons
Blacklist milk selector, GC sound selector and background selector
Now FTHOF will autocast if the general CPS multiplier is high enough (like before), but also if a Dragonflight or Click Frenzy is active
merge Mezmerro's short numbers and button position change
* Tweaking Godzamok to buy back cursors instantly

Not enabling this when original AutoGodzamok is turned on, as it would make it even more insane with the constant buy/sell spam.

* Fixing autobuy/SE Autocast/Everything Must Go 

Everything Must Go was temporarily lowering the floor for bank to maintain for autocasting Spontaneous Edifice, this should now maintain the minimum balance during EMG buff

* Added Spontaneous Edifice bank option

This should allow one to maintain a bank for future SE autocasting, while still turning on other spells if desired.

* SE Bank maintenance option

Enabled option to maintain Spontaneous edifice bank (i.e. half the cost of your most expensive building under 400) independently of AutoCast spell settings. Should allow one to maintain that bank for using SE in the future (or manually) without necessarily enabling that autocast.

* Condensed SE Bank option text

* Cleaned AutoSpell, implementing autoRigidel

Made Autospell more directly access spell casting functions rather than clicking on window elements (now that I figured out how to use minigame functions with Game.Objects[building].minigame).

Implemented autoRigidel option to automatically swap in and out rigidel when conditions are appropriate, or at least sell the right number of cursors when equipped.

* Added AutoRigidel menu option

To enable automatic swapping in and out Rigidel (+ selling cursors to get appropriate building count) for lump harvesting

* debugging autorigidel

* Fixing AutoRigidel syntax

should now properly check the current status of rigidel

* Removed debug console logs from AutoRigidel

* Fixed AutoRigidel time typo

* Fixed logging of AutoSpell

Previously logged "cast X spell" even if the conditions for casting didn't actually go off

* Fixed rigiSell and added lumpIn

Made rigiSell properly sell 0 cursors if Rigidel condition is already met, and added debugging function lumpIn to make lumps ripen in set # of mins

* Merged AutoRigidel with AutoSL menu option

* Fixing autoRigidel

Had stupid timing mistake before. Also dumped runnning AutoRigidel into AutoCookie function rather than a setInterval

* Typo on running autoRigidel

* Tweaking autoRigidel

Force game to recalculate lump time between rigiSell and clicking lump

* SL Rigidel menu hint

Added indication of AutoRigidel function

* Added SE bank stuff

Added Spontaneous Edifice bank conditions/amounts to the general functions that determine the value of "delay", and added an exception to always pledge and buy super efficient purchases when appropriate and efficient, regardless of bank

* SE Bank fix, remove Chain Bank

Removed chain bank from consideration because they're too rare to matter. Fixed (hopefully) how Spontaneous edifice bank is compared/used.

* Update fc_main.js

* Update fc_main.js

* Fixing case where you have no minigames yet.

* debugging

* Added exit conditions for minigame functions

* Update fc_main.js

* Commented out debugging tools

* Adding crazy option to autogodzamok

* Implemented super crazy godzamok

* debugging

* Update fc_main.js

* Changed wizard tower exclusion principle

Now removes Wizard towers from pool at 100 mana, not 517 wizard towers, since sugar lumps will affect mana total as well.

* tweaking autocast

Changed autocast to always go ahead and sell a CM if it doesn't have enough bank for the spell. Also made AutoCast check whether you have enough mana for a given spell (was previously just chcking if you were at max mana, which isn't enough).

* Removed mostExpensive() function

Bank for spontaneous edifice / autocast conditions now just looks at your chancemaker cost.

* Fixed SE conditions

Now properly checks if you have *half* the cost of a chancemaker, not the full cost

* Another SE tinkering

Sets bank floor for spontaneous edifice to 0 if you don't have any CM or enough max mana to cast it.

* Adding menu option to preserve shiny wrinklers

* Maybe did the shiny wrinkler preservation change

* Add options and variables for Cursor Autobuy limit, not functional yet.

* Implement Cursor limit menu option

* Fix missing paren

* Fix Cursor limit function

* Add a workaround for Sugar Frenzy upgrade error

* Add missing paren on last edit

* Troubleshoot Sugar Frenzy upgrade hang bug

* Troubleshoot Sugar Frenzy bug handling

* Troubleshoot Sugar Frenzy bug handling syntax

* Add Wizard Tower buy limit toggle

* Fix Wizard Tower limit toggle typo

* Fix tower limit menu option typo

* Tidy up formatting in cc_upgrade_prerequisites.js

* Change default Cursor Limit from 0 to 500

* Fix required conditions for Wizard Tower autobuy limit

* Neaten up magic autobuy exceptions

* Remove non-functional Shiny Wrinkler menu item

* Fix wrinkler popping function loooking for shinies

* Update README.md with new features

* Remove fcBeautify function

* Fix removing fcBeautify function

* Fix FC Menu image position

* Add custom max mana for tower limit

* Add custom max mana limit menu option

* Enable setting max mana properly

* Add note that number format toggle isn't functional

* minor format fixes

also removed double of auto sugar lump harvesting

* Change AutoSwitch condition to wait for <= 1 net CPS mult

* Move FC button to the right

Fixes overlap with Santa/Dragon icons

* move button further right

* Blacklist milk selector, GC sound selector and background selector

* Add click buffs as FTHOF trigger conditions

Now FTHOF will autocast if the general CPS multiplier is high enough (like before), but also if a Dragonflight or Click Frenzy is active

* Update fc_button.js

* Update fc_button.js

* Update fc_main.js

* Update README.md

* Update README.md

* Update fc_userscript_loader.user.js

* Update fc_bookmarklet_loader.js

* Update cc_upgrade_prerequisites.js

* add missing 'octodecillion' number format
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants