Coder Social home page Coder Social logo

Comments (3)

progheal avatar progheal commented on August 22, 2024

I have the same problem here. (v1.046.01)
The following is my observation and guess; I didn't read through the source code of Cookie Monster so correct me if I'm wrong.
When Cookie Monster try to calculate the benefit of a building or upgrade, it will actually buy it, see how much cps it gained, and then sell it. If the buy action have side effect (eg. gain an achievement like having 100 building, or in this case, buying Chocolate Egg gives you 5% of your bank), that side effect will not be reversed. I think this is the root cause.
This is also why the achievements like 100 building will unlock with one fewer building when you use Cookie Monster. A rather special case is the achievement 'Just Wrong' which is unlocked when you sell a grandma; if you haven't unlock this achievement, you will unlock it a little while after you load Cookie Monster.
Some mathematics gives that the bank cookie will double every 14~15 updates; the update period is 10 sec, which means the bank cookie will double about every two and a half minutes. So several hours will definitely mess up the whole game...

from cookie-monster.

Qhorin avatar Qhorin commented on August 22, 2024

Good work, @progheal . Thanks for determining the cause. I'll see if I can find a way to fix that.

from cookie-monster.

Qhorin avatar Qhorin commented on August 22, 2024

I've submitted a fix for the Chocolate Egg issue. I will open a new issue with the Achievement issues @progheal described. The two issues are similar, in that, they both are caused by the simulateBuy, but the solutions are different.

from cookie-monster.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.