new PokemonBase()
Represents a base Pokemon instance.
Name | Type | Attributes | Description |
---|---|---|---|
id | number | Unique identifier for the Pokemon. | |
owner_id | string | | ID of the Pokemon's owner. | |
idx | number | Index of the Pokemon within the owner's collection. | |
timestamp | number | <optional> | Timestamp of when the Pokemon was created or obtained. |
species_id | number | ID of the Pokemon species. | |
level | number | Current level of the Pokemon. | |
xp | number | Current experience points of the Pokemon. | |
nature | string | Nature of the Pokemon, which affects stat growth. | |
shiny | boolean | Whether the Pokemon is shiny. | |
iv_hp | number | Individual Value (IV) for HP. | |
iv_atk | number | Individual Value (IV) for Attack. | |
iv_defn | number | Individual Value (IV) for Defense. | |
iv_satk | number | Individual Value (IV) for Special Attack. | |
iv_sdef | number | Individual Value (IV) for Special Defense. | |
iv_spd | number | Individual Value (IV) for Speed. | |
iv_total | number | Sum of all IVs. | |
nickname | string | | Nickname of the Pokemon, or undefined if none. | |
favorite | string | | Favorite status of the Pokemon. | |
held_item | number | | ID or name of the held item, or undefined if none. | |
moves | Array.<PokemonMove> | List of moves the Pokemon knows. | |
has_color | boolean | | Whether the Pokemon has a custom color. | |
color | number | | Custom color of the Pokemon, or undefined if none. | |
_hp | number | | Current HP of the Pokemon. | |
ailments | Array.<string> | List of ailments affecting the Pokemon. | |
stages | StatStages | Stat stage modifications affecting the Pokemon. |
- Source