15
.github/workflows/CI.yml
vendored
15
.github/workflows/CI.yml
vendored
@@ -12,18 +12,21 @@ jobs:
|
|||||||
run: npx eslint src
|
run: npx eslint src
|
||||||
- name: Run Mocha tests
|
- name: Run Mocha tests
|
||||||
run: npx mocha
|
run: npx mocha
|
||||||
- name: Check if CookieMonster.js is built correctly
|
- name: Check if CookieMonsterDev.js is built correctly
|
||||||
run: |
|
run: |
|
||||||
npx webpack -o ./tmp --env production
|
npx webpack -o ./tmp --env production
|
||||||
if cmp <(head -n 2 dist/CookieMonster.js) <(head -n 2 tmp/CookieMonster.js); then
|
if cmp <(head -n 2 dist/CookieMonsterDev.js) <(head -n 2 tmp/CookieMonsterDev.js); then
|
||||||
echo '### SUCCESS: CookieMonster is correctly built! ###'
|
echo '### SUCCESS: CookieMonsterDev is correctly built! ###'
|
||||||
else
|
else
|
||||||
echo '### WARNING: CookieMonster.js does not seem to be correct. Make sure to run "npm run build" after saving all your changes! ###'
|
echo '### WARNING: CookieMonsterDev.js does not seem to be correct. Make sure to run "npm run build" after saving all your changes! ###'
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
if cmp <(head -n 2 CookieMonster.js) <(head -n 2 tmp/CookieMonster.js); then
|
- name: Check if CookieMonster.js is built correctly
|
||||||
|
if: github.ref == 'refs/heads/master'
|
||||||
|
run: |
|
||||||
|
if cmp <(head -n 2 dist/CookieMonsterDev.js) <(head -n 2 dist/CookieMonster.js); then
|
||||||
echo '### SUCCESS: CookieMonster is correctly built! ###'
|
echo '### SUCCESS: CookieMonster is correctly built! ###'
|
||||||
else
|
else
|
||||||
echo '### WARNING: CookieMonster.js does not seem to be correct. Make sure to run "npm run build" after saving all your changes! ###'
|
echo '### WARNING: CookieMonster.js does not seem to be correct. Make sure to copy CookieMonsterDev.js into CookieMonster.js before merging to master! ###'
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
@@ -7,7 +7,7 @@ const readyCheck = setInterval(() => {
|
|||||||
const Game = unsafeWindow.Game;
|
const Game = unsafeWindow.Game;
|
||||||
|
|
||||||
if (typeof Game !== 'undefined' && typeof Game.ready !== 'undefined' && Game.ready) {
|
if (typeof Game !== 'undefined' && typeof Game.ready !== 'undefined' && Game.ready) {
|
||||||
Game.LoadMod('https://aktanusa.github.io/CookieMonster/CookieMonster.js');
|
Game.LoadMod('https://cookiemonsterteam.github.io/CookieMonster/dist/CookieMonster.js');
|
||||||
clearInterval(readyCheck);
|
clearInterval(readyCheck);
|
||||||
}
|
}
|
||||||
}, 1000);
|
}, 1000);
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
The MIT License (MIT)
|
The MIT License (MIT)
|
||||||
|
|
||||||
Copyright (c) 2014 Aktanusa
|
Copyright (c) 2021 CookieMonsterTeam
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
6
dist/CookieMonster.js
vendored
6
dist/CookieMonster.js
vendored
File diff suppressed because one or more lines are too long
2
dist/CookieMonster.js.map
vendored
2
dist/CookieMonster.js.map
vendored
File diff suppressed because one or more lines are too long
5
CookieMonster.js → dist/CookieMonsterDev.js
vendored
5
CookieMonster.js → dist/CookieMonsterDev.js
vendored
File diff suppressed because one or more lines are too long
10
dist/CookieMonsterDev.js.LICENSE copy.txt
vendored
Normal file
10
dist/CookieMonsterDev.js.LICENSE copy.txt
vendored
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
/**
|
||||||
|
* jscolor - JavaScript Color Picker
|
||||||
|
*
|
||||||
|
* @link http://jscolor.com
|
||||||
|
* @license For open source use: GPLv3
|
||||||
|
* For commercial use: JSColor Commercial License
|
||||||
|
* @author Jan Odvarko - East Desire
|
||||||
|
*
|
||||||
|
* See usage examples at http://jscolor.com/examples/
|
||||||
|
*/
|
||||||
1
dist/CookieMonsterDev.js.map
vendored
Normal file
1
dist/CookieMonsterDev.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -11,13 +11,11 @@
|
|||||||
"Orteil"
|
"Orteil"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"copy-file": "cp dist/CookieMonster.js CookieMonster.js",
|
|
||||||
"eslint-src": "eslint src test",
|
"eslint-src": "eslint src test",
|
||||||
"build": "run-s eslint-src pack-prod remove-comment copy-file test",
|
"build": "run-s eslint-src pack-prod test",
|
||||||
"build-test": "run-s pack-dev",
|
"build-test": "run-s pack-dev",
|
||||||
"pack-prod": "webpack --env production",
|
"pack-prod": "webpack --env production",
|
||||||
"pack-dev": "webpack",
|
"pack-dev": "webpack",
|
||||||
"remove-comment": "sed -i '' -e '/\\/\\/# sourceMappingURL.*/d' dist/CookieMonster.js",
|
|
||||||
"test": "mocha"
|
"test": "mocha"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
/** Data related directly to Cookie Monster */
|
/** Data related directly to Cookie Monster */
|
||||||
|
|
||||||
export const VersionMajor = '2.031';
|
export const VersionMajor = '2.031';
|
||||||
export const VersionMinor = '7';
|
export const VersionMinor = '8';
|
||||||
|
|
||||||
/** Information about Cookie Monster to be displayed in the info section */
|
/** Information about Cookie Monster to be displayed in the info section */
|
||||||
export const ModDescription = `<div class="listing">
|
export const ModDescription = `<div class="listing">
|
||||||
<a href="https://github.com/Aktanusa/CookieMonster" target="blank">Cookie Monster</a>
|
<a href="https://github.com/CookieMonsterTeam/CookieMonster" target="blank">Cookie Monster</a>
|
||||||
offers a wide range of tools and statistics to enhance your game experience.
|
offers a wide range of tools and statistics to enhance your game experience.
|
||||||
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>
|
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>
|
||||||
Progess on new updates and all previous release notes can be found on the GitHub page linked above!</br>
|
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">
|
|||||||
|
|
||||||
/** Latest releasenotes of Cookie Monster to be displayed in the info section */
|
/** Latest releasenotes of Cookie Monster to be displayed in the info section */
|
||||||
export const LatestReleaseNotes = `<div class="listing">
|
export const LatestReleaseNotes = `<div class="listing">
|
||||||
These are the release notes for the latest update (v 2.031.7).</br>
|
<b>We have moved Cookie Monster to a new location!</b></br>
|
||||||
|
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>
|
||||||
|
These are the release notes for the latest update (v 2.031.8).</br>
|
||||||
</br>
|
</br>
|
||||||
This update implements the following functions:</br>
|
This update implements the following functions:</br>
|
||||||
- Updated the ordering and description of all settings of Cookie Monster</br>
|
- 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>
|
||||||
- Colours of Flash notifications can now be set by the user</br>
|
- New setting to force the upgrades sections to always show all available upgrades, stopping them from collapsing and expanding</br>
|
||||||
- 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>
|
|
||||||
- The statistics page now shows cookies earned by clicking for a selected time period</br>
|
|
||||||
- The statistics page can now show missing normal achievements, this can be toggled in the settings</br>
|
|
||||||
</br>
|
</br>
|
||||||
This update fixes the following bugs:</br>
|
This update fixes the following bugs:</br>
|
||||||
- Fixed some typo's</br>
|
- Settings menu now correctly updates after changing a setting</br>
|
||||||
- No longer show the wrinkler pop buttons when wrinklers can't spawn</br>
|
- Fixed incorrect calculation of dates in rare cases</br>
|
||||||
- Fixed incorrect calculation of plant maturity for relevant tooltips</br>
|
- Remove golden cookie timers when you ascend</br>
|
||||||
- Fixed edit prompts not working in settings</br>
|
|
||||||
- Fixed red and purple being switched around for PP colour coding</br>
|
|
||||||
- Fixed incorrect notation of numbers in Dragon tooltip and interface</br>
|
|
||||||
- Fixed incorrect calculation of changing Dragon aura cost</br>
|
|
||||||
- Fixed incorrect calculation of changing Pantheon gods effect</br>
|
|
||||||
- Fixed fluctuating PP values when god Cyclius was selected</br>
|
|
||||||
- Fixed black flickering when Golden Cookies or buffs start</br>
|
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
const webpack = require('webpack');
|
||||||
|
|
||||||
module.exports = function (env) {
|
module.exports = function (env) {
|
||||||
return {
|
return {
|
||||||
@@ -21,8 +22,15 @@ module.exports = function (env) {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
output: {
|
output: {
|
||||||
filename: 'CookieMonster.js',
|
filename: 'CookieMonsterDev.js',
|
||||||
path: path.resolve(__dirname, 'dist'),
|
path: path.resolve(__dirname, 'dist'),
|
||||||
},
|
},
|
||||||
|
plugins: [
|
||||||
|
new webpack.SourceMapDevToolPlugin({
|
||||||
|
filename: 'CookieMonsterDev.js.map',
|
||||||
|
publicPath: 'https://cookiemonsterteam.github.io/CookieMonster/dist/',
|
||||||
|
fileContext: 'public',
|
||||||
|
}),
|
||||||
|
],
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user