Skip to content

Commit

Permalink
Merge pull request #692 from Aktanusa/dev
Browse files Browse the repository at this point in the history
Push 2.031.6 to master
  • Loading branch information
DanielNoord authored Mar 18, 2021
2 parents c72e016 + b470d13 commit 641471b
Show file tree
Hide file tree
Showing 97 changed files with 3,375 additions and 1,773 deletions.
12 changes: 2 additions & 10 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,20 @@ module.exports = {
l: 'readonly',
b64_to_utf8: 'readonly',
utf8_to_b64: 'readonly',
realAudio: 'readonly',
BeautifyAll: 'readonly',
CM: 'writable',
unsafeWindow: 'readonly',
},
extends: ['airbnb-base', 'plugin:prettier/recommended'],
parserOptions: {
ecmaVersion: 12,
},
rules: {
'import/no-named-default': 'off',
'import/no-mutable-exports': 'off',
'no-param-reassign': 'off',
'no-plusplus': 'off',
'no-plusplus': ['error', { allowForLoopAfterthoughts: true }],
'no-new-func': 'off',
'no-restricted-syntax': 'off',
'prefer-destructuring': 'off',
'func-names': 'off',
'no-console': 'off',
'no-nested-ternary': 'off',
'no-new': 'off',
'no-alert': 'off',
'no-restricted-globals': 'off',
'prefer-destructuring': ['error', { object: true, array: false }],
},
};
18 changes: 18 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Cookie Monster is written to modify Cookie Clicker as little as possible. This means the data is copied to simulate instead of actually modifying the current values and reverting later. The benefit is that CM should never mess up any data. The downside is that there is an extra overhead to copy and store the copied data.

The following is a short description of the various `src` directories and their contents:

JS | Description
-- | -
Cache | Functions related to creating and storing data cache
Config | Functions related to manipulating CM configuration
Data | Hard coded values
Disp | Functions related to displaying CM's UI
InitSaveLoad | Functions related to registering the CM object with the Game's Modding API
Main | Functions related to the main loop and initializing CM
Sim | Functions related to simulate something

These are some additional guidelines:
- Try to use DOM as much as possible instead of using string manipulation to modify HTML.
- Please be descriptive of your commits. If the commit is related to an issue or PR, please add the issue/PR number to the commit message.
- PR's should target the `dev` branch
3 changes: 2 additions & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@ If applicable, add screenshots to help explain your problem.

**Save file**
```
If applicable please copy your save file here
Please add a save file here.
This makes debugging much easier as we do not always have a good test save to debug the issue
```
File renamed without changes.
22 changes: 0 additions & 22 deletions CONTRIBUTING.md

This file was deleted.

2 changes: 1 addition & 1 deletion CookieMonster.js

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ Cookie Monster also indicates the time left before being able to buy an upgrade

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:

* Light Blue: (upgrades) This item has a better PP than any building
* Green: This item has the best PP
* Yellow: This item is not the best, but it is closer to best than it is to worst
* Orange: This item is not the worst, but it is closer to worst than it is to best
* Red: This item has the worst PP
* Purple: (upgrades) This item has a worse PP than any building
* Gray: (upgrades) This item has not been calculated and/or cannot be calculated due to no definitive worth.
* 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.

Expand Down
2 changes: 1 addition & 1 deletion dist/CookieMonster.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/CookieMonster.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 641471b

Please sign in to comment.