Skip to content

Commit 6ff15db

Browse files
authored
Merge pull request #787 from DanielNoord/newrepo
New repository
2 parents 76c6d58 + 21b8a16 commit 6ff15db

File tree

11 files changed

+51
-36
lines changed

11 files changed

+51
-36
lines changed

.github/workflows/CI.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,21 @@ jobs:
1212
run: npx eslint src
1313
- name: Run Mocha tests
1414
run: npx mocha
15-
- name: Check if CookieMonster.js is built correctly
15+
- name: Check if CookieMonsterDev.js is built correctly
1616
run: |
1717
npx webpack -o ./tmp --env production
18-
if cmp <(head -n 2 dist/CookieMonster.js) <(head -n 2 tmp/CookieMonster.js); then
19-
echo '### SUCCESS: CookieMonster is correctly built! ###'
18+
if cmp <(head -n 2 dist/CookieMonsterDev.js) <(head -n 2 tmp/CookieMonsterDev.js); then
19+
echo '### SUCCESS: CookieMonsterDev is correctly built! ###'
2020
else
21-
echo '### WARNING: CookieMonster.js does not seem to be correct. Make sure to run "npm run build" after saving all your changes! ###'
21+
echo '### WARNING: CookieMonsterDev.js does not seem to be correct. Make sure to run "npm run build" after saving all your changes! ###'
2222
exit 1
2323
fi
24-
if cmp <(head -n 2 CookieMonster.js) <(head -n 2 tmp/CookieMonster.js); then
24+
- name: Check if CookieMonster.js is built correctly
25+
if: github.ref == 'refs/heads/master'
26+
run: |
27+
if cmp <(head -n 2 dist/CookieMonsterDev.js) <(head -n 2 dist/CookieMonster.js); then
2528
echo '### SUCCESS: CookieMonster is correctly built! ###'
2629
else
27-
echo '### WARNING: CookieMonster.js does not seem to be correct. Make sure to run "npm run build" after saving all your changes! ###'
30+
echo '### WARNING: CookieMonster.js does not seem to be correct. Make sure to copy CookieMonsterDev.js into CookieMonster.js before merging to master! ###'
2831
exit 1
29-
fi
32+
fi

CookieMonster.user.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const readyCheck = setInterval(() => {
77
const Game = unsafeWindow.Game;
88

99
if (typeof Game !== 'undefined' && typeof Game.ready !== 'undefined' && Game.ready) {
10-
Game.LoadMod('https://aktanusa.github.io/CookieMonster/CookieMonster.js');
10+
Game.LoadMod('https://cookiemonsterteam.github.io/CookieMonster/dist/CookieMonster.js');
1111
clearInterval(readyCheck);
1212
}
1313
}, 1000);

.github/LICENSE.md renamed to LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2014 Aktanusa
3+
Copyright (c) 2021 CookieMonsterTeam
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

dist/CookieMonster.js

Lines changed: 4 additions & 2 deletions
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.
Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/**
2+
* jscolor - JavaScript Color Picker
3+
*
4+
* @link http://jscolor.com
5+
* @license For open source use: GPLv3
6+
* For commercial use: JSColor Commercial License
7+
* @author Jan Odvarko - East Desire
8+
*
9+
* See usage examples at http://jscolor.com/examples/
10+
*/

dist/CookieMonsterDev.js.map

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

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,11 @@
1111
"Orteil"
1212
],
1313
"scripts": {
14-
"copy-file": "cp dist/CookieMonster.js CookieMonster.js",
1514
"eslint-src": "eslint src test",
16-
"build": "run-s eslint-src pack-prod remove-comment copy-file test",
15+
"build": "run-s eslint-src pack-prod test",
1716
"build-test": "run-s pack-dev",
1817
"pack-prod": "webpack --env production",
1918
"pack-dev": "webpack",
20-
"remove-comment": "sed -i '' -e '/\\/\\/# sourceMappingURL.*/d' dist/CookieMonster.js",
2119
"test": "mocha"
2220
},
2321
"repository": {

src/Data/Moddata.ts

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/** Data related directly to Cookie Monster */
22

33
export const VersionMajor = '2.031';
4-
export const VersionMinor = '7';
4+
export const VersionMinor = '8';
55

66
/** Information about Cookie Monster to be displayed in the info section */
77
export const ModDescription = `<div class="listing">
8-
<a href="https://github.com/Aktanusa/CookieMonster" target="blank">Cookie Monster</a>
8+
<a href="https://github.com/CookieMonsterTeam/CookieMonster" target="blank">Cookie Monster</a>
99
offers a wide range of tools and statistics to enhance your game experience.
1010
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.</br>
1111
Progess on new updates and all previous release notes can be found on the GitHub page linked above!</br>
@@ -15,25 +15,17 @@ export const ModDescription = `<div class="listing">
1515

1616
/** Latest releasenotes of Cookie Monster to be displayed in the info section */
1717
export const LatestReleaseNotes = `<div class="listing">
18-
These are the release notes for the latest update (v 2.031.7).</br>
18+
<b>We have moved Cookie Monster to a new location!</b></br>
19+
Please update the link you are using to load Cookie Monster to https://cookiemonsterteam.github.io/CookieMonster/dist/CookieMonster.js and let everybody know this is the new place to find Cookie Monster!</br>
20+
These are the release notes for the latest update (v 2.031.8).</br>
1921
</br>
2022
This update implements the following functions:</br>
21-
- Updated the ordering and description of all settings of Cookie Monster</br>
22-
- Colours of Flash notifications can now be set by the user</br>
23-
- You can now select a number of settings to be your 'favourite'. They will be displayed at the top of all other settings in a new section. This functionality is toggleable and you can find it in the miscellaneous section</br>
24-
- The statistics page now shows cookies earned by clicking for a selected time period</br>
25-
- The statistics page can now show missing normal achievements, this can be toggled in the settings</br>
23+
- The tooltip of buildings now shows how many buildings need to be bought before a new achievement is reached and the cost and PP of this</br>
24+
- New setting to force the upgrades sections to always show all available upgrades, stopping them from collapsing and expanding</br>
2625
</br>
2726
This update fixes the following bugs:</br>
28-
- Fixed some typo's</br>
29-
- No longer show the wrinkler pop buttons when wrinklers can't spawn</br>
30-
- Fixed incorrect calculation of plant maturity for relevant tooltips</br>
31-
- Fixed edit prompts not working in settings</br>
32-
- Fixed red and purple being switched around for PP colour coding</br>
33-
- Fixed incorrect notation of numbers in Dragon tooltip and interface</br>
34-
- Fixed incorrect calculation of changing Dragon aura cost</br>
35-
- Fixed incorrect calculation of changing Pantheon gods effect</br>
36-
- Fixed fluctuating PP values when god Cyclius was selected</br>
37-
- Fixed black flickering when Golden Cookies or buffs start</br>
27+
- Settings menu now correctly updates after changing a setting</br>
28+
- Fixed incorrect calculation of dates in rare cases</br>
29+
- Remove golden cookie timers when you ascend</br>
3830
</div>
3931
`;

0 commit comments

Comments
 (0)