From e45f24c1246d4b1792ae0c45f5d7fc7080530cc1 Mon Sep 17 00:00:00 2001 From: Wlowscha <54003515+Wlowscha@users.noreply.github.com> Date: Sat, 16 Aug 2025 23:00:11 +0200 Subject: [PATCH] Removed large commented code, plus lock on hardy nature. --- src/data/challenge.ts | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/data/challenge.ts b/src/data/challenge.ts index a9d04a87bcd..6a3097f9074 100644 --- a/src/data/challenge.ts +++ b/src/data/challenge.ts @@ -838,28 +838,12 @@ export class FreshStartChallenge extends Challenge { const defaultDexEntry = DexAttr.NON_SHINY | DexAttr.MALE | DexAttr.FEMALE | DexAttr.DEFAULT_FORM; dexEntry.caughtAttr &= defaultDexEntry; - /** - let validMoves = pokemon.species - .getLevelMoves() - .filter(m => isBetween(m[0], 1, 5)) - .map(lm => lm[1]); - // Filter egg moves out of the moveset - pokemon.moveset = pokemon.moveset.filter(pm => validMoves.includes(pm.moveId)); - if (pokemon.moveset.length < 4) { - // If there's empty slots fill with remaining valid moves - const existingMoveIds = pokemon.moveset.map(pm => pm.moveId); - validMoves = validMoves.filter(m => !existingMoveIds.includes(m)); - pokemon.moveset = pokemon.moveset.concat(validMoves.map(m => new PokemonMove(m))).slice(0, 4); - } - pokemon.teraType = pokemon.species.type1; // Always primary tera type - */ return true; } applyStarterModify(pokemon: Pokemon): boolean { pokemon.abilityIndex = pokemon.abilityIndex % 2; // Always base ability, if you set it to hidden it wraps to first ability pokemon.passive = false; // Passive isn't unlocked - pokemon.nature = Nature.HARDY; // Neutral nature let validMoves = pokemon.species .getLevelMoves() .filter(m => isBetween(m[0], 1, 5))