Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 11, 2024
1 parent f23ccb0 commit b2ca44f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Disp/InfoBars/TimerBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ export function UpdateTimerBar() {
updateChanceTotal(chanceToSpawn);
l('CMTimerBarGCTime').textContent = `${Math.ceil(
(Game.shimmerTypes.golden.maxTime - Game.shimmerTypes.golden.time) / Game.fps,
)} ${getChanceFinal() < 0.01 ? '<' : ''}${(0.01).toLocaleString('en', { // "<0%" makes no sense. Should be offset by 0.01 (1%).
)} ${getChanceFinal() < 0.01 ? '<' : ''}${(0.01).toLocaleString('en', {
// "<0%" makes no sense. Should be offset by 0.01 (1%).
style: 'percent',
})}`;
numberOfTimers += 1;
Expand Down Expand Up @@ -177,7 +178,8 @@ export function UpdateTimerBar() {
updateChanceTotalDeer(chanceToSpawn);
l('CMTimerBarRenTime').textContent = `${Math.ceil(
(Game.shimmerTypes.reindeer.maxTime - Game.shimmerTypes.reindeer.time) / Game.fps,
)} ${getChanceFinalDeer() < 0.01 ? '<' : ''}${(0.01).toLocaleString('en', { // "<0%" makes no sense. Should be offset by 0.01 (1%).
)} ${getChanceFinalDeer() < 0.01 ? '<' : ''}${(0.01).toLocaleString('en', {
// "<0%" makes no sense. Should be offset by 0.01 (1%).
style: 'percent',
})}`;
numberOfTimers += 1;
Expand Down

0 comments on commit b2ca44f

Please sign in to comment.