Pokebag/data-sdk

View on GitHub
src/models/Pokemon.js

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
/**
 * Ratings for a Pokémon
 * @typedef {Object} PokemonRatings
 * @property {number} assistance
 * @property {number} combat
 * @property {number} mobility
 * @property {number} resistance
 * @property {number} scoring
 * @property {number} total
 */

/**
 * A Pokémon's stat block
 * @typedef {Object} PokemonStat
 * @property {number} attack
 * @property {number} defense
 * @property {number} hp
 * @property {number} spAttack
 * @property {number} spDefense
 */

/**
 * An object containing the various tags for a Pokémon
 * @typedef {Object} PokemonTags
 * @property {number} range
 * @property {number} difficulty
 * @property {number} role
 */

/**
 * A Pokémon
 * @typedef {Object} Pokemon
 * @property {string} displayName
 * @property {string} damageType
 * @property {string} id
 * @property {PokemonTags} tags
 * @property {PokemonRatings} ratings
 * @property {Skill[]} [skills]
 * @property {PokemonStat[]} stats
 */