pokemon-rogue-battle
    Preparing search index...

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    • Parameters

      • id: Species
      • generation: number
      • subLegendary: boolean
      • legendary: boolean
      • mythical: boolean
      • species: string
      • 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
      • growthRate: GrowthRate
      • malePercent: null | number
      • genderDiffs: boolean
      • OptionalcanChangeForm: boolean
      • ...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
    type2: null | PokemonType
    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.

    • Parameters

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

      Returns string

    • Parameters

      • currentLevel: number
      • forTrainer: boolean = false
      • isBoss: boolean = false
      • player: boolean = false

      Returns EvolutionLevel[]

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