Compare commits
1 Commits
pre-commit
...
dependabot
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fcbe41e0ed |
@@ -4,7 +4,7 @@ repos:
|
|||||||
hooks:
|
hooks:
|
||||||
- id: prettier
|
- id: prettier
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
rev: v6.0.0
|
rev: v5.0.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
exclude: dist
|
exclude: dist
|
||||||
|
|||||||
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
2
dist/CookieMonsterDev.js
vendored
2
dist/CookieMonsterDev.js
vendored
File diff suppressed because one or more lines are too long
2
dist/CookieMonsterDev.js.map
vendored
2
dist/CookieMonsterDev.js.map
vendored
File diff suppressed because one or more lines are too long
8
package-lock.json
generated
8
package-lock.json
generated
@@ -21,7 +21,7 @@
|
|||||||
"globals": "^16.0.0",
|
"globals": "^16.0.0",
|
||||||
"mocha": "^11.1.0",
|
"mocha": "^11.1.0",
|
||||||
"npm-run-all": "^4.1.5",
|
"npm-run-all": "^4.1.5",
|
||||||
"prettier": "^3.5.2",
|
"prettier": "^3.5.3",
|
||||||
"webpack": "^5.97.1",
|
"webpack": "^5.97.1",
|
||||||
"webpack-cli": "^6.0.1"
|
"webpack-cli": "^6.0.1"
|
||||||
},
|
},
|
||||||
@@ -3894,9 +3894,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/prettier": {
|
"node_modules/prettier": {
|
||||||
"version": "3.5.2",
|
"version": "3.5.3",
|
||||||
"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.5.2.tgz",
|
"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.5.3.tgz",
|
||||||
"integrity": "sha512-lc6npv5PH7hVqozBR7lkBNOGXV9vMwROAPlumdBkX0wTbbzPu/U1hk5yL8p2pt4Xoc+2mkT8t/sow2YrV/M5qg==",
|
"integrity": "sha512-QQtaxnoDJeAkDvDKWCLiwIXkTgRhwYDEQCghU9Z6q03iyek/rxRh/2lC3HB7P8sWT2xC/y5JDctPLBIGzHKbhw==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"bin": {
|
"bin": {
|
||||||
"prettier": "bin/prettier.cjs"
|
"prettier": "bin/prettier.cjs"
|
||||||
|
|||||||
@@ -67,7 +67,7 @@
|
|||||||
"globals": "^16.0.0",
|
"globals": "^16.0.0",
|
||||||
"mocha": "^11.1.0",
|
"mocha": "^11.1.0",
|
||||||
"npm-run-all": "^4.1.5",
|
"npm-run-all": "^4.1.5",
|
||||||
"prettier": "^3.5.2",
|
"prettier": "^3.5.3",
|
||||||
"webpack": "^5.97.1",
|
"webpack": "^5.97.1",
|
||||||
"webpack-cli": "^6.0.1"
|
"webpack-cli": "^6.0.1"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ export function CalculateSevenDelta(number, digitPlace) {
|
|||||||
export default function CalculateLuckyLevels(currentLevel) {
|
export default function CalculateLuckyLevels(currentLevel) {
|
||||||
const result = {};
|
const result = {};
|
||||||
let sevenCount = CountSevens(currentLevel);
|
let sevenCount = CountSevens(currentLevel);
|
||||||
const numberOfDigits = Math.max(Math.floor(Math.log10(Math.abs(currentLevel))), 0) + 1;
|
const numberOfDigits = String(currentLevel).length;
|
||||||
|
|
||||||
if (sevenCount >= 1) {
|
if (sevenCount >= 1) {
|
||||||
result.luckyDigit = currentLevel;
|
result.luckyDigit = currentLevel;
|
||||||
|
|||||||
@@ -437,33 +437,6 @@ export function SpellsSection() {
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const { minigame } = Game.Objects['Wizard tower'];
|
|
||||||
const spellsCast = minigame.spellsCastTotal;
|
|
||||||
const spellsNeeded = (function (val) {
|
|
||||||
switch (true) {
|
|
||||||
case val < 9:
|
|
||||||
return 9 - val;
|
|
||||||
case val < 99:
|
|
||||||
return 99 - val;
|
|
||||||
case val < 999:
|
|
||||||
return 999 - val;
|
|
||||||
default:
|
|
||||||
return 'NA';
|
|
||||||
}
|
|
||||||
})(spellsCast);
|
|
||||||
section.appendChild(
|
|
||||||
StatsListing(
|
|
||||||
'basic',
|
|
||||||
'Spells cast',
|
|
||||||
spellsCast < 999
|
|
||||||
? document.createTextNode(
|
|
||||||
`Next achievement in ${spellsNeeded}, current total: ${Beautify(spellsCast)}`,
|
|
||||||
)
|
|
||||||
: document.createTextNode(`No new achievement, current total: ${Beautify(spellsCast)}`),
|
|
||||||
),
|
|
||||||
);
|
|
||||||
|
|
||||||
return section;
|
return section;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user