Pokemon Documentation - ratquaza/pokedex2.js GitHub Wiki

Properties

name: string - Name of the Pokémon, used internally.

displayName: string - Display name of the Pokémon (e.g. "Mr. Mime").

species: string - The Pokémon's species.

generation: number - The Pokémon's originating Generation.

index: number - The species Pokedex ID.

apiIndex: number - The internal ID of the Pokémon in PokeAPI's database.

baby: boolean - Whether the Pokémon is a baby or not.

arctype: Arctype - The Arctype of the Pokémon.

formtype: FormType - The FormType of the Pokémon.

regional: Regional - The Regional form of the Pokémon.

types: string[] - The Pokémon's Typings.

forms: string[] - All the Pokémon's different forms.

eovlutions: string[] All of the evolutions available to the species.

Methods

getSprite(front: boolean = true, female: boolean = false, shiny: boolean = false): string? - Returns the sprite that matches the criteria, or undefined.