Coder Social home page Coder Social logo

cookiemonster's Introduction

ESLint

Cookie Monster

Cookie Monster is an addon you can load into Cookie Clicker, that offers a wide range of tools and statistics to enhance the game. It is not a cheat interface – although it does offer helpers for golden cookies and such, everything can be toggled off at will to only leave how much information you want. The mod helps you to whichever degree you want, if you only need some help shortening long numbers, it does that. If you need to be accompanied by hand to pick the best buildings to buy, it does that, but everything is an option.

Current version

The gh-pages branch hosts the latest version intended for general users. All development and pull requests should target the dev branch.

What it does

At its core, Cookie Monster computes an index for both buildings and upgrades: the Payback Period (PP). This indicates how much a building is worth by using the following formula:

max(cost - cookies in bank, 0)/cps + cost/Δ cps

Cookie Monster also indicates the time left before being able to buy an upgrade or building, and takes it into consideration. It will take everything in consideration, meaning if buying a building also unlocks an achievement which boosts your income, which unlocks an achievement, it will know and highlight that building's value.

This index is computed for buildings and upgrades. If the relevant option is enabled, it will color-code each of them based on their value. It compares the PP across all possible buy options: if a buy 10 option is better than any of the buy 1 options Cookie Monster will colour them accordingly. Cookie Monster uses the following standard colours:

  • Light Blue: (upgrades) This item has a better PP than the best building to buy
  • Green: This building has the best PP
  • Yellow: This building is within the top 10 of best PP's
  • Orange: This building is within the top 20 of best PP's
  • Red: This building is within the top 30 of best PP's
  • Purple: This building is worse than the top 10 of best PP's
  • Gray: This item does not have a PP, often this means that there is no change to CPS

Note: For this index, lower is better, meaning a building with a PP of 1 is more interesting than one with a PP of 3.

Using

Bookmarklet

Copy this code and save it as a bookmark. Paste it in the URL section. To activate, click the bookmark when the game's open.

javascript: (function () {
	Game.LoadMod('https://aktanusa.github.io/CookieMonster/CookieMonster.js');
}());

If (for some reason) the above doesn't work, trying pasting everything after the javascript: bit into your browser's console.

Userscript

If you'd rather use the addon as a userscript to automatically load Cookie Monster every time the original game loads, install the CookieMonster.user.js file. You can do this by clicking on the file in the file-list and clicking "raw".

Note that to avoid conflicts Cookie Monster should ideally be loaded after any other content mods have been loaded

Bugs and suggestions

Any bug or suggestion should be opened as an issue in the repository for easier tracking. This allows us to close issues once they're fixed.

Before submitting a bug, make sure to give a shot at the latest version of the addon on the dev branch. This version can be tested by copying the CookieMonster.js file of the dev branch into your console. If the bug is still here, you can submit an issue for it. Please do so by using the bug report template.

All suggestions are welcome, even the smallest ones.

Contributing

To contribute you can fork and clone the repository and run npm install.

Please also remember to run npm run build after saving all your changes to build the final CookieMonster.js file.

Contributors

cookiemonster's People

Contributors

danielnoord avatar aktanusa avatar chorizorro avatar rjlintkh avatar jcboorgo avatar azmaeus avatar redthefed avatar amethystmoon avatar bonne avatar zohnannor avatar staticvariablejames avatar icecream17 avatar sigv avatar fofoni avatar lgeorget avatar alhifar avatar deathofbalance avatar fabianf1 avatar jshepler avatar thexxturboxx avatar craftspider avatar bryant1410 avatar tayrayb avatar tydus avatar florensie avatar mason1920 avatar

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.