This commit is contained in:
Renan LE CARO 2025-04-23 15:10:21 +02:00
parent 1d71af35c9
commit cb90fef3a9
16 changed files with 1340 additions and 755 deletions

View file

@ -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),