mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-21 12:36:15 -04:00
Build 29068588
This commit is contained in:
parent
c6665d9b0e
commit
269f1b8b94
8 changed files with 26 additions and 13 deletions
|
@ -29,8 +29,8 @@ android {
|
||||||
applicationId = "me.lecaro.breakout"
|
applicationId = "me.lecaro.breakout"
|
||||||
minSdk = 21
|
minSdk = 21
|
||||||
targetSdk = 34
|
targetSdk = 34
|
||||||
versionCode = 29068568
|
versionCode = 29068588
|
||||||
versionName = "29068568"
|
versionName = "29068588"
|
||||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||||
vectorDrawables {
|
vectorDrawables {
|
||||||
useSupportLibrary = true
|
useSupportLibrary = true
|
||||||
|
|
File diff suppressed because one or more lines are too long
10
dist/index.html
vendored
10
dist/index.html
vendored
File diff suppressed because one or more lines are too long
|
@ -1,5 +1,5 @@
|
||||||
// The version of the cache.
|
// The version of the cache.
|
||||||
const VERSION = "29068568";
|
const VERSION = "29068588";
|
||||||
|
|
||||||
// The name of the cache
|
// The name of the cache
|
||||||
const CACHE_NAME = `breakout-71-${VERSION}`;
|
const CACHE_NAME = `breakout-71-${VERSION}`;
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
"29068568"
|
"29068588"
|
||||||
|
|
|
@ -29,6 +29,7 @@ import {
|
||||||
cycleMaxParticles,
|
cycleMaxParticles,
|
||||||
getCurrentMaxCoins,
|
getCurrentMaxCoins,
|
||||||
getCurrentMaxParticles,
|
getCurrentMaxParticles,
|
||||||
|
getSettingValue,
|
||||||
getTotalScore,
|
getTotalScore,
|
||||||
setSettingValue,
|
setSettingValue,
|
||||||
} from "./settings";
|
} from "./settings";
|
||||||
|
@ -808,8 +809,13 @@ async function openUnlocksList() {
|
||||||
: help(1),
|
: help(1),
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
const unlockedBefore = new Set(
|
||||||
|
getSettingValue("breakout_71_unlocked_levels", []),
|
||||||
|
);
|
||||||
const levelActions = allLevels.map((l, li) => {
|
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
|
const percentUnlocked = lockedBecause?.reached
|
||||||
? `<span class="progress-inline"><span style="transform: scale(${Math.floor((lockedBecause.reached / lockedBecause.minScore) * 100) / 100},1)"></span></span>`
|
? `<span class="progress-inline"><span style="transform: scale(${Math.floor((lockedBecause.reached / lockedBecause.minScore) * 100) / 100},1)"></span></span>`
|
||||||
: "";
|
: "";
|
||||||
|
|
|
@ -314,7 +314,7 @@ export function getLevelUnlockCondition(levelIndex: number) {
|
||||||
(a, b) => hashCode(levelIndex + a.id) - hashCode(levelIndex + b.id),
|
(a, b) => hashCode(levelIndex + a.id) - hashCode(levelIndex + b.id),
|
||||||
);
|
);
|
||||||
|
|
||||||
const length = Math.ceil(levelIndex / 30);
|
const length = Math.min(3, Math.ceil(levelIndex / 30));
|
||||||
required = possibletargets.slice(0, length);
|
required = possibletargets.slice(0, length);
|
||||||
forbidden = possibletargets.slice(length, length + length);
|
forbidden = possibletargets.slice(length, length + length);
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,16 +12,21 @@ import {
|
||||||
import { dontOfferTooSoon, resetBalls } from "./gameStateMutators";
|
import { dontOfferTooSoon, resetBalls } from "./gameStateMutators";
|
||||||
import { isOptionOn } from "./options";
|
import { isOptionOn } from "./options";
|
||||||
import { getHistory } from "./gameOver";
|
import { getHistory } from "./gameOver";
|
||||||
import { getTotalScore } from "./settings";
|
import { getSettingValue, getTotalScore } from "./settings";
|
||||||
import { isStartingPerk } from "./startingPerks";
|
import { isStartingPerk } from "./startingPerks";
|
||||||
|
|
||||||
export function getRunLevels(
|
export function getRunLevels(
|
||||||
params: RunParams,
|
params: RunParams,
|
||||||
randomGift: PerkId | undefined,
|
randomGift: PerkId | undefined,
|
||||||
) {
|
) {
|
||||||
|
const unlockedBefore = new Set(
|
||||||
|
getSettingValue("breakout_71_unlocked_levels", []),
|
||||||
|
);
|
||||||
|
|
||||||
const history = getHistory();
|
const history = getHistory();
|
||||||
const unlocked = allLevels.filter(
|
const unlocked = allLevels.filter(
|
||||||
(l, li) => !reasonLevelIsLocked(li, history, false),
|
(l, li) =>
|
||||||
|
unlockedBefore.has(l.name) || !reasonLevelIsLocked(li, history, false),
|
||||||
);
|
);
|
||||||
|
|
||||||
const firstLevel =
|
const firstLevel =
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue