dist/pokemonbase~ PokemonBase

new PokemonBase()

Represents a base Pokemon instance.

Properties
NameTypeAttributesDescription
idnumber

Unique identifier for the Pokemon.

owner_idstring | number

ID of the Pokemon's owner.

idxnumber

Index of the Pokemon within the owner's collection.

timestampnumber<optional>

Timestamp of when the Pokemon was created or obtained.

species_idnumber

ID of the Pokemon species.

levelnumber

Current level of the Pokemon.

xpnumber

Current experience points of the Pokemon.

naturestring

Nature of the Pokemon, which affects stat growth.

shinyboolean

Whether the Pokemon is shiny.

iv_hpnumber

Individual Value (IV) for HP.

iv_atknumber

Individual Value (IV) for Attack.

iv_defnnumber

Individual Value (IV) for Defense.

iv_satknumber

Individual Value (IV) for Special Attack.

iv_sdefnumber

Individual Value (IV) for Special Defense.

iv_spdnumber

Individual Value (IV) for Speed.

iv_totalnumber

Sum of all IVs.

nicknamestring | undefined

Nickname of the Pokemon, or undefined if none.

favoritestring | false

Favorite status of the Pokemon.

held_itemnumber | string | undefined

ID or name of the held item, or undefined if none.

movesArray.<PokemonMove>

List of moves the Pokemon knows.

has_colorboolean | false

Whether the Pokemon has a custom color.

colornumber | undefined

Custom color of the Pokemon, or undefined if none.

_hpnumber | null

Current HP of the Pokemon.

ailmentsArray.<string>

List of ailments affecting the Pokemon.

stagesStatStages

Stat stage modifications affecting the Pokemon.