Add paradox Pokemon for the end biome
This commit is contained in:
1 parent
e07e267ddc
commit
2568ac3524
154 files changed
+3144
-5731
No files matched your search
@@ -5,6 +5,7 @@ import { SpeciesWildEvolutionDelay, pokemonEvolutions, pokemonPrevolutions } fro
|
||||
import { Species } from './species';
|
||||
import { Type } from './type';
|
||||
import { LevelMoves, pokemonFormLevelMoves as pokemonSpeciesFormLevelMoves, pokemonSpeciesLevelMoves } from './pokemon-level-moves';
|
||||
import { uncatchableSpecies } from './biome';
|
||||
|
||||
export function getPokemonSpecies(species: Species): PokemonSpecies {
|
||||
if (species >= 2000)
|
||||
@@ -109,6 +110,10 @@ export abstract class PokemonSpeciesForm {
|
||||
return (this.generation <= 8 || pokemonPrevolutions.hasOwnProperty(this.speciesId));
|
||||
}
|
||||
|
||||
isCatchable() {
|
||||
return this.isObtainable() && uncatchableSpecies.indexOf(this.speciesId) === -1;
|
||||
}
|
||||
|
||||
getSpriteAtlasPath(female: boolean, formIndex?: integer, shiny?: boolean): string {
|
||||
return this.getSpriteId(female, formIndex, shiny).replace(/\_{2}/g, '/');
|
||||
}
|
||||
@@ -435,6 +440,10 @@ export default class PokemonSpecies extends PokemonSpeciesForm {
|
||||
};
|
||||
}
|
||||
|
||||
isObtainable() {
|
||||
return super.isObtainable() || (this.species === 'Paradox Pokémon' && !this.legendary && this.speciesId <= 1017);
|
||||
}
|
||||
|
||||
getFormSpriteKey(formIndex?: integer) {
|
||||
return this.forms?.length
|
||||
? this.forms[formIndex || 0].getFormSpriteKey()
|
||||
|
||||
Reference in new issue
Block a user