Fix #660
This commit is contained in:
File diff suppressed because one or more lines are too long
2
dist/CookieMonster.js
vendored
2
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
@@ -11,8 +11,9 @@
|
|||||||
"Orteil"
|
"Orteil"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"copy-file": "cp dist/CookieMonster.js CookieMonster.js",
|
||||||
"eslint_src": "eslint src",
|
"eslint_src": "eslint src",
|
||||||
"build": "run-s eslint_src pack_prod remove_comment",
|
"build": "run-s eslint_src pack_prod remove_comment copy-file",
|
||||||
"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",
|
||||||
|
|||||||
@@ -74,13 +74,15 @@ export function Beautify(num, floats, forced) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (answer === '') {
|
if (answer === '') {
|
||||||
console.log(`Could not beautify number with CM.Disp.Beautify: ${num}`);
|
console.log(
|
||||||
|
`Could not beautify number with Cookie Monster Beautify: ${num}`,
|
||||||
|
);
|
||||||
answer = BackupFunctions.Beautify(num, floats);
|
answer = BackupFunctions.Beautify(num, floats);
|
||||||
}
|
}
|
||||||
if (CMOptions.ScaleSeparator) answer = answer.replace('.', ',');
|
if (CMOptions.ScaleSeparator) answer = answer.replace('.', ',');
|
||||||
return answer;
|
return answer;
|
||||||
}
|
}
|
||||||
console.log(`Could not beautify number with CM.Disp.Beautify: ${num}`);
|
console.log(`Could not beautify number with Cookie Monster Beautify: ${num}`);
|
||||||
return BackupFunctions.Beautify(num, floats);
|
return BackupFunctions.Beautify(num, floats);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import { CMOptions } from '../../Config/VariablesAndData';
|
||||||
import Flash from '../../Disp/Notifications/Flash';
|
import Flash from '../../Disp/Notifications/Flash';
|
||||||
import Notification from '../../Disp/Notifications/Notification';
|
import Notification from '../../Disp/Notifications/Notification';
|
||||||
import PlaySound from '../../Disp/Notifications/Sound';
|
import PlaySound from '../../Disp/Notifications/Sound';
|
||||||
@@ -16,7 +17,7 @@ export default function CheckTickerFortune() {
|
|||||||
Game.TickerEffect && Game.TickerEffect.type === 'fortune';
|
Game.TickerEffect && Game.TickerEffect.type === 'fortune';
|
||||||
if (LastTickerFortuneState) {
|
if (LastTickerFortuneState) {
|
||||||
Flash(3, 'FortuneFlash');
|
Flash(3, 'FortuneFlash');
|
||||||
PlaySound(CM.Options.FortuneSoundURL, 'FortuneSound', 'FortuneVolume');
|
PlaySound(CMOptions.FortuneSoundURL, 'FortuneSound', 'FortuneVolume');
|
||||||
Notification(
|
Notification(
|
||||||
'FortuneNotification',
|
'FortuneNotification',
|
||||||
'Fortune Cookie found',
|
'Fortune Cookie found',
|
||||||
|
|||||||
Reference in New Issue
Block a user