Hierarchy (view full)

Constructors

  • Parameters

    • type1: Type
    • type2: 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

ability1: Abilities
ability2: Abilities
abilityHidden: Abilities
baseExp: number
baseFriendship: number
baseStats: number[]
baseTotal: number
catchRate: number
formIndex: number
genderDiffs: boolean
generation: number
height: number
isStarterSelectable: boolean
speciesId: Species
type1: Type
type2: Type
weight: number

Methods

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

    Parameters

    • stat: Stat

      The desired stat.

    Returns number

    The species' base stat amount.

  • Parameters

    • Optional formIndex: number
    • Optional shiny: boolean
    • Optional variant: number

    Returns string

  • Parameters

    • female: boolean
    • Optional formIndex: number
    • Optional shiny: boolean
    • Optional variant: 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
    • Optional formIndex: number
    • Optional shiny: boolean
    • Optional variant: number

    Returns string

  • Parameters

    • female: boolean
    • Optional formIndex: number
    • Optional shiny: boolean
    • Optional variant: number
    • Optional back: boolean

    Returns string

  • Parameters

    • female: boolean
    • Optional formIndex: number
    • Optional shiny: boolean
    • Optional variant: number

    Returns string

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

    Parameters

    • Optional formIndex: 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
    • Optional formIndex: number
    • Optional shiny: boolean
    • Optional variant: Variant
    • Optional startLoad: boolean

    Returns Promise<void>