Compare commits

..

1 Commits

Author SHA1 Message Date
dependabot[bot]
fcbe41e0ed Bump prettier from 3.5.2 to 3.5.3
Bumps [prettier](https://github.com/prettier/prettier) from 3.5.2 to 3.5.3.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.5.2...3.5.3)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-03 02:49:43 +00:00
9 changed files with 11 additions and 38 deletions

View File

@@ -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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

8
package-lock.json generated
View File

@@ -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"

View File

@@ -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"
}, },

View File

@@ -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;

View File

@@ -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;
} }