1.0.0 • Published 8 years ago

pokemanager v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

PokéManager API

Pokémon Class

This class is meant for you to be able to organize the data of a Pokémon easily.

Attributes

this.name: The ID of your Pokémon

this.dexEntry: data by Zarel entry for the Pokémon

this.pokemoDbPage: A link to PokemonDB page for this Pokémon

this.pokemonName: Display name for this Pokémon

this.moveset: All the moves this Pokémon can learn in ID form

this.movesetDisplay: this.moveset with the moves in Display form

this.evos: Evolutions of this Pokémon

this.spriteUrl: Pokémon Showdown Sprite for this Pokémon

this.shinyUrl: Pokémon Showdown Sprite URL for the shiny of this Pokémon

this.dexNumber: This Pokémon's dex number

this.types: This Pokémon's types

this.genderRatio: The chances of this Pokémon being a certain gender (Sometimes always one gender, in that case no genderRatio)

this.baseStatsObj: This Pokémon's stats in Object form

this.baseStats: This Pokémon's stats in Array form

this.abilities: Object for this Pokémon's abilities

this.pokeHeight: How tall this Pokémon is

this.pokeKilograms: Weight in kilos

this.pokePounds: Weight in pounds

this.eggGroups: This Pokémon's egg groups

this.eggGroupsId: this.eggGroups in ID form

this.battleFormats: Smogon/Pokémon Showdown battle data

this.smogTier: Smogon tier

this.shinyLocked: true if this Pokémon is shiny locked

this.string: This object in string form

Methods

this.getPrevos(): Gets this Pokemon's pre evolutions in Array form and stores in this.prevos

this.getEvos(): Gets this Pokemon's evolutions in Array form and stores in this.evos

this.log(): Console.logs a summary of this in form like so:

Pokemon
-----------
#Number
Egg groups: egggroups
Types: types
Sprite: sprite
Shiny: shiny
Base stats: stats
Evolution line: evosline
Shiny Locked: yesno
Smogon Tier: smogtier
Weight: weight
Moveset: hastebinlink
Gender Ratio: genderratio
Abilities: abilities
PokemonDB Page: dbpage

this.getLog(): Returns what this.log() would have logged

Move Class