PokéRogue
    Preparing search index...

    Class PokemonSpeciesFormAbstract

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _formIndex: number
    _generation: number
    ability1: AbilityId
    ability2: AbilityId
    abilityHidden: AbilityId
    baseExp: number
    baseFriendship: number

    The base amount of friendship this species has when caught, as an integer from 0-255.

    baseStats: readonly number[]
    baseTotal: number
    catchRate: number
    genderDiffs: boolean
    height: number
    isStarterSelectable: boolean
    speciesId: SpeciesId
    type2: PokemonType | null
    weight: number

    Accessors

    Methods

    • Checks whether this species can learn a specific TM.

      Parameters

      • moveId: MoveId

        The TM to check for.

      • OptionalformKey: string

        (Optional) The key for the form to be checked. Uses the base form if not specified.

      Returns boolean

      whether this species can learn the TM

    • 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

    • Get a list of all level moves for this species, including form specific moves.

      Parameters

      • OptionalformKey: string

        (Optional) The key for the form to be checked. Uses the base form if not specified.

      Returns LevelMoves

      A list of all level moves that can be learned by this species

    • Method to get the passive ability of a Pokemon species

      Parameters

      • formIndex: number = ...

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

      Returns AbilityId

      The id of the ability

    • Method to get the root species id of a Pokemon. Pikachu.getRootSpeciesId(true) => Pichu Pikachu.getRootSpeciesId(false) => Pikachu

      Parameters

      • forStarter: boolean = false

        boolean to get the nonbaby form of a starter

      Returns SpeciesId

      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

    • Get al list of all TMs that can be learned by this species.

      Parameters

      • Optionalform: string | number

        the formIndex or formKey of the form to get TMs for. (default: base form)

      Returns MoveId[]

      A list of all TM MoveIds that can be learned by this species

    • 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>