Code Monkey home page Code Monkey logo

cookie-garden-helper's Introduction

cookie-garden-helper

Automate your garden in Cookie Clicker

How to use

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://rawgit.com/yannprada/cookie-garden-helper/master/cookie-garden-helper.js');
}());

How it works

To begin, click the button Cookie Garden Helper, at the bottom of your garden / farms. There, you can configure how you would like the mod to operate.

The mod loop through each unlocked tile, then tries to auto-harvest or auto-plant, depending on what is activated.

Auto-harvest

First, it will check if the tile is empty.

If not, it will check if the plant is immortal. If it is, and the Avoid immortals option is ON, ignore this tile.

If not, it will compute the plant stage. Below is a list of these stages, and the conditions when the plant will be harvested:

  • young:
    • if it is a weed, and the option Remove weeds is ON
    • if the option Clean garden is ON, the corresponding saved slot is empty and the plant is already unlocked
    • if the option Clean garden is ON, the corresponding saved slot is not empty but the young plant don't match
  • mature:
    • if it is a new seed, and the option New seeds is ON
    • if the option Check CpS Mult is ON, and the current CpS multiplier is above or equal to the one specified at Mini CpS multiplier
  • dying:
    • if the option Check CpS Mult is ON, and the current CpS multiplier is above or equal to the one specified at Mini CpS multiplier
    • if the plant is dying, the last tick is 5 seconds from expiring, and the option Dying plants is ON

Auto-plant

This one will work if:

  • the tile is empty
  • a plot has been previously saved with the button Save plot
  • the option Check CpS Mult is:
    • ON, and the current CpS multiplier is below or equal to the one specified at Maxi CpS multiplier
    • OFF

Note: mouse over the message Plot saved, to see what was saved.

Manual tools

This section is pretty obvious. Only one tool is there for now:

  • Plant selected seed:
    • select a seed you have unlocked
    • click this button to fill all the empty tiles of your plot
    • (don't forget to deselect the seed)

Sacrifice garden

When you sacrifice your garden, a few things will happen:

  • your saved plot will be erased
  • the auto-harvest will be toggled OFF
  • the auto-plant will be toggled OFF

This is to prevent planting locked seeds, as well as allowing you to verify your configuration before restarting automation.

The rest of your configuration will remain.

Screenshot

Screenshot - UI of the mod cookie-garden-helper

cookie-garden-helper's People

Contributors

yannprada avatar aisair 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.