pokemon-rogue-battle
    Preparing search index...

    Class PokemonSpeciesFormAbstract

    Hierarchy (View Summary)

    Index

    Constructors

    • Parameters

      • type1: PokemonType
      • type2: null | PokemonType
      • 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
    type2: null | PokemonType
    weight: number

    Accessors

    Methods

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

      Returns number

      Number of abilities

    • Parameters

      • female: boolean
      • OptionalformIndex: number

      Returns string

    • 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 passive ability of a Pokemon species

      Parameters

      • OptionalformIndex: number

        The form index to use, defaults to form for this species instance

      Returns Abilities

      The id of the ability

    • 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
      • Optionalback: boolean

      Returns string

    • Compute the sprite ID of the pokemon form.

      Parameters

      • female: boolean
      • OptionalformIndex: number
      • Optionalshiny: boolean
      • variant: number = 0
      • back: boolean = false

      Returns string

    • Parameters

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

      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

      • female: boolean
      • OptionalformIndex: number
      • shiny: boolean = false
      • Optionalvariant: Variant
      • startLoad: boolean = false
      • back: boolean = false

      Returns Promise<void>

    • Load the variant colors for the species into the variant color cache

      Parameters

      • spriteKey: string

        The sprite key to use

      • female: boolean

        Whether to load female instead of male

      • variant: Variant
      • back: boolean = false

        Whether the back sprite is being loaded

      • OptionalformIndex: number

      Returns Promise<void>