From 1d90bff5e52689309cf49e7057990dfae9f154d7 Mon Sep 17 00:00:00 2001 From: Wlowscha <54003515+Wlowscha@users.noreply.github.com> Date: Mon, 6 Jan 2025 02:29:59 +0100 Subject: [PATCH] Including baby forms among uncatchable mons --- src/ui/pokedex-ui-handler.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ui/pokedex-ui-handler.ts b/src/ui/pokedex-ui-handler.ts index 70d9612ed36..e1f6a5d4aa4 100644 --- a/src/ui/pokedex-ui-handler.ts +++ b/src/ui/pokedex-ui-handler.ts @@ -7,7 +7,7 @@ import { speciesEggMoves } from "#app/data/balance/egg-moves"; import { pokemonFormLevelMoves, pokemonSpeciesLevelMoves } from "#app/data/balance/pokemon-level-moves"; import PokemonSpecies, { allSpecies, getPokemonSpeciesForm, getPokerusStarters, PokemonForm } from "#app/data/pokemon-species"; import { getStarterValueFriendshipCap, speciesStarterCosts, POKERUS_STARTER_COUNT } from "#app/data/balance/starters"; -import { catchableSpecies, uncatchableSpecies } from "#app/data/balance/biomes"; +import { catchableSpecies } from "#app/data/balance/biomes"; import { Type } from "#enums/type"; import { AbilityAttr, DexAttr, DexAttrProps, DexEntry, StarterMoveset, StarterAttributes, StarterPreferences, StarterPrefs } from "#app/system/game-data"; import { Tutorial, handleTutorial } from "#app/tutorial"; @@ -1369,7 +1369,8 @@ export default class PokedexUiHandler extends MessageUiHandler { // TODO: We might also need to do it the other way around. // const biomes = catchableSpecies[container.species.speciesId].concat(catchableSpecies[this.getStarterSpeciesId(container.species.speciesId)]).map(b => Biome[b.biome]); const biomes = catchableSpecies[container.species.speciesId].map(b => Biome[b.biome]); - if (uncatchableSpecies.includes(container.species.speciesId) && biomes.length === 0) { + // if (uncatchableSpecies.includes(container.species.speciesId) && biomes.length === 0) { + if (biomes.length === 0) { biomes.push("Uncatchable"); } // Only show uncatchable mons if all biomes are selected.