Hierarchy (view full)

Implements

Constructors

  • Parameters

    • id: Species
    • generation: number
    • subLegendary: boolean
    • legendary: boolean
    • mythical: boolean
    • species: string
    • 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
    • growthRate: GrowthRate
    • malePercent: null | number
    • genderDiffs: boolean
    • OptionalcanChangeForm: boolean
    • Rest...forms: PokemonForm[]

    Returns default

Properties

_formIndex: number
_generation: number
ability1: Abilities
ability2: Abilities
abilityHidden: Abilities
baseExp: number
baseFriendship: number
baseStats: number[]
baseTotal: number
canChangeForm: boolean
catchRate: number
forms: PokemonForm[]
genderDiffs: boolean
growthRate: GrowthRate
height: number
isStarterSelectable: boolean
legendary: boolean
malePercent: null | number
mythical: boolean
name: string
species: string
speciesId: Species
subLegendary: boolean
type1: Type
type2: null | Type
weight: number

Accessors

Methods

  • Find the name of species with proper attachments for regionals and separate starter forms (Floette, Ursaluna)

    Returns string

    a string with the region name or other form name attached

  • Find the form name for species with just one form (regional variants, Floette, Ursaluna)

    Parameters

    • formIndex: number = 0

      The form index to check (defaults to 0)

    • append: boolean = false

      Whether to append the species name to the end (defaults to false)

    Returns string

    the pokemon-form locale key for the single form name ("Alolan Form", "Eternal Flower" etc)

  • Generates a bigint corresponding to the maximum unlocks possible for this species, taking into account if the species has a male/female gender, and which variants are implemented.

    Returns bigint

    bigint Maximum unlocks, can be compared with DexEntry.caughtAttr.

  • 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

    • female: boolean
    • OptionalformIndex: number
    • Optionalshiny: boolean
    • Optionalvariant: Variant
    • OptionalstartLoad: boolean
    • Optionalback: boolean

    Returns Promise<void>