This commit is contained in:
Eevee (Evelyn Woods) 2021-01-13 21:56:34 -07:00
parent db9ef8e51d
commit 5df34712b6

View File

@ -2343,7 +2343,10 @@ class Splash extends PrimaryView {
}
else {
progress.querySelector('.-time').textContent = util.format_duration(packinfo.total_abstime / TICS_PER_SECOND, 2);
let levels = `cleared ${packinfo.cleared_levels} of ${packinfo.total_levels} levels, ${packinfo.aidless_levels}★ without aid`;
let levels = (
`cleared ${packinfo.cleared_levels} of ${packinfo.total_levels} `
+ `level${packinfo.total_levels === 1 ? "" : "s"}, `
+ `${packinfo.aidless_levels}★ without aid`);
level_el.textContent = levels;
level_el.style.setProperty('--cleared', packinfo.cleared_levels / packinfo.total_levels);
level_el.style.setProperty('--aidless', packinfo.aidless_levels / packinfo.total_levels);