Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cookie storm causing effect stack up #14

Open
fijozico opened this issue Sep 30, 2022 · 4 comments
Open

Cookie storm causing effect stack up #14

fijozico opened this issue Sep 30, 2022 · 4 comments

Comments

@fijozico
Copy link

This is a known issua that has been reported several times (like here, here, here or here).

When a cookie storm appears and we have the auto-click golden cookie option active on Uncanny, all golden cookies on screen are treated as regular golden cookies so pretty quickly you stack up effects that can last days to clear, effectively ruining the game since you get an absurd amount of cookies. I haven't seen any tickets open, but there was a mention on #4 (here).

No clue if there's a solution, but I'm opening the tickets anyway. Happened to me last night on a 1-year old save a day after installing Uncanny and it was very frustrating...

@sr9000
Copy link

sr9000 commented Mar 25, 2023

Probably it may help. I used following code in browser console.
It clicks 2 randomly choosed golden cookies every second.

var clickGoldenCookie = function() {
  if (Game.shimmers.length >= 1) {
    var gcs = Game.shimmers.filter(gc => (!(gc.wrath > 0 && redCookieAvoidance)) && (!(gc.life <= 0)) && (!(gc.l.style.opacity == 0)) );
    var goldenCookie = gcs[Math.floor(Math.random()*gcs.length)];
    goldenCookie.pop();
  }
}


const intervalGoldenCookie = setInterval(clickGoldenCookie, 500);

it can be stopped after executiong following code

// in emergency case
clearInterval(intervalGoldenCookie);

it's still are testing, but it should'nt going crazy during cookie storm

@awes12
Copy link

awes12 commented Jan 28, 2024

I submitted a pull request to fix this, but I think that the project is abandoned

@Dolphin-02
Copy link

I submitted a pull request to fix this, but I think that the project is abandoned

I saw that you made a fork of this, does your fork fix this problem?

@awes12
Copy link

awes12 commented Feb 19, 2024

I saw that you made a fork of this, does your fork fix this problem?

Yes, it does

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants