mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-27 07:26:15 -04:00
wip
This commit is contained in:
parent
1d71af35c9
commit
cb90fef3a9
16 changed files with 1340 additions and 755 deletions
|
@ -323,9 +323,8 @@ export function getLevelUnlockCondition(levelIndex: number) {
|
|||
minScore = Math.max(-1000 + 100 * levelIndex, 0);
|
||||
|
||||
if (levelIndex > 20) {
|
||||
const possibletargets = rawUpgrades
|
||||
const possibletargets = [...rawUpgrades]
|
||||
.slice(0, Math.floor(levelIndex / 2))
|
||||
.map((u) => u)
|
||||
.filter((u) => !isExcluded(u.id))
|
||||
.sort(
|
||||
(a, b) => hashCode(levelIndex + a.id) - hashCode(levelIndex + b.id),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue