Skip to content

Commit cff2928

Browse files
authored
Merge pull request #870 from CookieMonsterTeam/dev
Master to 2.031.9
2 parents c3adcf4 + 5fec386 commit cff2928

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+997
-2169
lines changed

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "npm"
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "weekly"

.github/workflows/publish-dev.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Publish
2+
on:
3+
push:
4+
branches:
5+
- "dev"
6+
jobs:
7+
publish-dev:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- uses: everlytic/branch-merge@1.1.0
12+
with:
13+
github_token: ${{ github.token }}
14+
source_ref: 'dev'
15+
target_branch: 'gh-pages'
16+
commit_message_template: '[Automated] Merge {source_ref} into {target_branch}'

.mocharc.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
22
"recursive": true,
3-
"require": ["esm", "ts-node/register"],
4-
"reporter": "min"
3+
"require": ["esm", "ts-node/register"]
54
}

README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
![ESLint](https://github.com/Aktanusa/CookieMonster/workflows/ESLint/badge.svg?event=push)
1+
[![CI](https://github.com/CookieMonsterTeam/CookieMonster/actions/workflows/CI.yml/badge.svg)](https://github.com/CookieMonsterTeam/CookieMonster/actions/workflows/CI.yml)
22
## Cookie Monster
33

44
**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.
@@ -19,8 +19,9 @@ max(cost - cookies in bank, 0)/cps + cost/Δ cps
1919

2020
If the relevant option is enabled, CM will color-code each of them based on their value. CM 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. Note that sometimes it is better to buy 10 of a building than to buy only 1, CM will also indicate this!
2121

22-
The following standard colours are used:
23-
22+
<details>
23+
<summary>The following standard colours are used:</summary>
24+
2425
* Light Blue: (upgrades) This item has a better PP than the best building to buy
2526
* Green: This building has the best PP
2627
* Yellow: This building is within the top 10 of best PP's
@@ -29,6 +30,8 @@ The following standard colours are used:
2930
* Purple: This building is worse than the top 10 of best PP's
3031
* Gray: This item does not have a PP, often this means that there is no change to CPS
3132

33+
</details>
34+
3235
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.
3336

3437
## Using
@@ -59,6 +62,12 @@ Before submitting a bug, make sure to give a shot at the latest version of the a
5962

6063
All suggestions are welcome, even the smallest ones.
6164

65+
## For developers
66+
67+
Cookie Monster exposes some of the data it creates to the global scope. This data can be found in the `CookieMonsterData` object after loading Cookie Monster.
68+
69+
Currently we exposes relevant data for buildings and upgrades (PP, colour and bonus income). If you would like us to add any aditional data, please feel free to open an issue or create a PR doing so!
70+
6271
## Contributing
6372

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

dist/CookieMonster.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/CookieMonster.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/CookieMonsterDev.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/CookieMonsterDev.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)