mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-23 21:46:15 -04:00
Build 29068588
This commit is contained in:
parent
c6665d9b0e
commit
269f1b8b94
8 changed files with 26 additions and 13 deletions
|
@ -29,6 +29,7 @@ import {
|
|||
cycleMaxParticles,
|
||||
getCurrentMaxCoins,
|
||||
getCurrentMaxParticles,
|
||||
getSettingValue,
|
||||
getTotalScore,
|
||||
setSettingValue,
|
||||
} from "./settings";
|
||||
|
@ -808,8 +809,13 @@ async function openUnlocksList() {
|
|||
: help(1),
|
||||
}));
|
||||
|
||||
const unlockedBefore = new Set(
|
||||
getSettingValue("breakout_71_unlocked_levels", []),
|
||||
);
|
||||
const levelActions = allLevels.map((l, li) => {
|
||||
const lockedBecause = reasonLevelIsLocked(li, getHistory(), true);
|
||||
const lockedBecause = unlockedBefore.has(l.name)
|
||||
? null
|
||||
: reasonLevelIsLocked(li, getHistory(), true);
|
||||
const percentUnlocked = lockedBecause?.reached
|
||||
? `<span class="progress-inline"><span style="transform: scale(${Math.floor((lockedBecause.reached / lockedBecause.minScore) * 100) / 100},1)"></span></span>`
|
||||
: "";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue