Mtarnuhal / FrozenCookies

An automated Cookie Clicker tool.
27 stars 22 forks source link

Golden switch issue #72

Open sanscriptum opened 3 years ago

sanscriptum commented 3 years ago

With auto GS-switch enabled, the script correctly turns it on during Dragonflight/Click Frenzy, however it tends to forget to turn it off afterwards even with the surplus of cookies enough to afford it.
Am I doing something wrong, or does this function actually misbehave?

adavidw commented 3 years ago

Since the price of the Golden Switch is tied to the Cookies per Second rate, the auto GS waits until there’s no other buffs active before buying the switch again. Otherwise, if you have a Frenzy active when the Dragonflight or Click Frenzy ends, you’d pay seven times more for the golden switch than if you waited for the Frenzy to expire.

I don’t know if there’s anyone who’s done the math and what you’d give up by waiting, and where a break even point might be to just by the switch even at the increased price, but it’s something to look into in the future.

On Jan 10, 2021, at 3:43 PM, sanscriptum notifications@github.com wrote:

With auto GS-switch enabled, the script correctly turns it on during Dragonflight/Click Frenzy, however it tends to forget to turn it off afterwards even with the surplus of cookies enough to afford it. Am I doing something wrong, or does this function actually misbehave?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Mtarnuhal/FrozenCookies/issues/72, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABP3KFRCOK2UIAG2WFBZXQLSZIURFANCNFSM4V4Y7KZA.

adavidw commented 3 years ago

Can you see if there's any point where the switch is not purchased even when you don't have a Frenzy running?

sanscriptum commented 3 years ago

Since the switch remains active long after all of my buffs have expired, and because I cannot acquire any new buffs due to Golden Cookies being disabled, I'm pretty sure it happened to me every time so far. I'm pretty far into the game, I can give you my save if you want.
Steps to reproduce would be simply enabling the auto-GS-Switch and waiting for a Click Frenzy/Dragonflight.

sanscriptum commented 3 years ago

Now that I look at it, it seems somehow inconsistent and I can't reproduce it. It doesn't disable it during Frenzy like you said because it'd be a waste of cookies, but turns the switch off later as it should. I do have a loan debuff right now, maybe it fixed it somehow, not sure. Maybe it should be Frenzy + Clicking Frenzy + Dragonflight for it to misbehave.