Skip to content

Commit

Permalink
show fireworks_counter
Browse files Browse the repository at this point in the history
  • Loading branch information
NormanTUD committed Sep 10, 2024
1 parent 773e1a7 commit 3a4e7b2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions easter_eggs.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@ function _confetti () {
}
}

function _next(value, multiple) {
return Math.ceil(value / multiple) * multiple;
}

async function easter_egg_fireworks (force=0) {
if(in_fireworks) {
return;
Expand All @@ -162,4 +166,10 @@ async function easter_egg_fireworks (force=0) {
setAuroraBackground();
}
}

if(fireworks_counter < 50) {
log(`${fireworks_counter}/${_next(fireworks_counter, 10)}/${_next(fireworks_counter, 50)}`);
} else {
log(`${fireworks_counter}/${_next(fireworks_counter, 10)}`);
}
}

0 comments on commit 3a4e7b2

Please sign in to comment.