Hierarchy (view full)

Constructors

  • Parameters

    • type1: Type
    • type2: null | Type
    • height: number
    • weight: number
    • ability1: Abilities
    • ability2: Abilities
    • abilityHidden: Abilities
    • baseTotal: number
    • baseHp: number
    • baseAtk: number
    • baseDef: number
    • baseSpatk: number
    • baseSpdef: number
    • baseSpd: number
    • catchRate: number
    • baseFriendship: number
    • baseExp: number
    • genderDiffs: boolean
    • isStarterSelectable: boolean

    Returns PokemonSpeciesForm

Properties

_formIndex: number
_generation: number
ability1: Abilities
ability2: Abilities
abilityHidden: Abilities
baseExp: number
baseFriendship: number
baseStats: number[]
baseTotal: number
catchRate: number
genderDiffs: boolean
height: number
isStarterSelectable: boolean
speciesId: Species
type1: Type
type2: null | Type
weight: number

Accessors

Methods

  • Method to get the total number of abilities a Pokemon species has.

    Returns number

    Number of abilities

  • Gets the species' base stat amount for the given stat.

    Parameters

    • stat: Stat

      The desired stat.

    Returns number

    The species' base stat amount.

  • Parameters

    • OptionalformIndex: number
    • Optionalshiny: boolean
    • Optionalvariant: number

    Returns string

  • Parameters

    • female: boolean
    • OptionalformIndex: number
    • Optionalshiny: boolean
    • Optionalvariant: number

    Returns string

  • Method to get the root species id of a Pokemon. Magmortar.getRootSpeciesId(true) => Magmar Magmortar.getRootSpeciesId(false) => Magby

    Parameters

    • forStarter: boolean = false

      boolean to get the nonbaby form of a starter

    Returns Species

    The species

  • Parameters

    • female: boolean
    • OptionalformIndex: number
    • Optionalshiny: boolean
    • Optionalvariant: number

    Returns string

  • Parameters

    • female: boolean
    • OptionalformIndex: number
    • Optionalshiny: boolean
    • variant: number = 0
    • Optionalback: boolean

    Returns string

  • Parameters

    • female: boolean
    • OptionalformIndex: number
    • Optionalshiny: boolean
    • Optionalvariant: number

    Returns string

  • Variant Data key/index is either species id or species id followed by -formkey

    Parameters

    • OptionalformIndex: number

      optional form index for pokemon with different forms

    Returns string | number

    species id if no additional forms, index with formkey if a pokemon with a form

  • Parameters

    • scene: default
    • female: boolean
    • OptionalformIndex: number
    • Optionalshiny: boolean
    • Optionalvariant: Variant
    • OptionalstartLoad: boolean

    Returns Promise<void>