Plurals
This commit is contained in:
parent
db9ef8e51d
commit
5df34712b6
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user