Helper to handle overrides in tests

Hierarchy (view full)

Constructors

Properties

disableShinies: boolean = true

If true, sets the shiny overrides to disable shinies at the start of each test; default true

game: default
removeEnemyStartingItems: boolean = true

If true, removes the starting items from enemies at the start of each test; default true

Methods

  • Override the enemy (Pokemon) to have the given amount of health segments

    Parameters

    • healthSegments: number

      the number of segments to give

      • 0 (default): the health segments will be handled like in the game based on wave, level and species
      • 1: the Pokemon will not be a boss
      • 2+: the Pokemon will be a boss with the given number of health segments

    Returns this

    this

  • Override enemy shininess

    Parameters

    • shininess: null | boolean

      true or false to force the enemy's pokemon to be shiny or not shiny, null to disable the override and re-enable RNG shinies.

    • Optionalvariant: Variant

      (Optional) The enemy's shiny Variant.

    Returns this

  • Override player shininess

    Parameters

    • shininess: null | boolean

      true or false to force the player's pokemon to be shiny or not shiny, null to disable the override and re-enable RNG shinies.

    Returns this

    this

  • Override statuses (Paralysis and Freeze) to always or never activate

    Parameters

    • activate: null | boolean

      true to force activation, false to force no activation, null to disable the override

    Returns this

    this