PokéRogue
    Preparing search index...
    Index

    Constructors

    Properties

    bgm: string
    biomeId: BiomeId
    eventTarget: EventTarget = ...
    ignoreAbilities: boolean
    ignoringEffectSource: BattlerIndex | null
    lastTimeOfDay: TimeOfDay
    playerFaints: number

    Saves the number of times a party pokemon faints during a arena encounter.
    globalScene.currentBattle.enemyFaints is the corresponding faint counter for the enemy (this resets every wave).

    playerTerasUsed: number = 0
    pokemonPool: PokemonPools
    positionalTagManager: PositionalTagManager = ...

    All currently-active PositionalTags on both sides of the field, sorted by tag type.

    tags: ArenaTag[] = []

    All currently-active ArenaTags on both sides of the field.

    terrain: Terrain | null
    weather: Weather | null

    Accessors

    Methods

    • Add a new ArenaTag to the arena, triggering overlap effects on existing tags as applicable.

      Parameters

      • tagType: ArenaTagType

        The ArenaTagType of the tag to add.

      • turnCount: number

        The number of turns the newly-added tag should last.

      • sourceMove: MoveId | undefined

        The MoveId of the move creating the tag, or undefined if not from a move.

      • sourceId: number

        The PID of the Pokemon creating the tag.

      • side: ArenaTagSide = ArenaTagSide.BOTH

        The ArenaTagSide(s) to which the tag should apply; default ArenaTagSide.BOTH.

      • quiet: boolean = false

        Whether to suppress messages produced by tag addition; default false.

      Returns boolean

      true if the tag was successfully added without overlapping.

    • Gets the denominator for the chance for a trainer spawn

      Returns number

      n where 1/n is the chance of a trainer battle

    • Returns boolean

      Whether the current biome takes place "outdoors" (for the purposes of time of day tints)

    • Sets weather to the override specified in overrides.ts

      Returns void

    • Parameters

      • waveIndex: number
      • level: number
      • Optionalattempt: number
      • OptionalluckValue: number
      • OptionalisBoss: boolean

      Returns PokemonSpecies

    • Find and remove all ArenaTags with the given tag types on the given side of the field.

      Parameters

      Returns void

      Review the other tag manipulation functions to see if they can be migrated towards using this (more efficient + foolproof)

    • Clears weather, terrain and arena tags when entering new biome or trainer battle.

      Returns void

    • Parameters

      • ignoreAbilities: boolean
      • ignoringEffectSource: BattlerIndex | null = null

      Returns void

    • Function to trigger all weather based form changes

      Parameters

      • Optionalsource: Pokemon

        The Pokemon causing the changes by removing itself from the field

      Returns void

    • Function to trigger all weather based form changes back into their normal forms

      Returns void

    • Attempt to set the current terrain to the specified type.

      Parameters

      • terrain: TerrainType

        The TerrainType to try and set.

      • ignoreAnim: boolean = false

        (Default false) Whether to prevent showing an the animation

      • Optionaluser: Pokemon

        (Optional) The Pokemon creating the terrain

      Returns boolean

      Whether the terrain was successfully set.