PokéRogue
    Preparing search index...

    Class InverseBattleChallenge

    Implements an inverse battle challenge.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    conditions: ChallengeCondition[] = []

    The id of the challenge

    maxSeverity: number = 0

    The maximum severity of the challenge.

    maxValue: number

    The maximum strength of the challenge.

    severity: number = 0

    The current severity of the challenge. Some challenges have multiple severities in addition to strength.

    value: number = 0

    The "strength" of the challenge, all challenges have a numerical value.

    Accessors

    • get ribbonAwarded(): RibbonFlag

      The Ribbon awarded on challenge completion, or 0 if the challenge has no ribbon or is not enabled

      Returns RibbonFlag

      0
      

    Methods

    • Modifies the base stats of a Pokemon.

      Parameters

      • pokemon: Pokemon

        What Pokémon would learn the move

      • baseStats: number[]

        What are the stats to flip

      Returns boolean

      Whether this function did anything

    • Modifies the level of AI Pokemon.

      Parameters

      • level: NumberHolder

        The generated level.

      • levelCap: number

        The current level cap.

      • isTrainer: boolean

        Whether this is a trainer Pokémon

      • isBoss: boolean

        Whether this is a non-trainer boss Pokémon

      Returns boolean

      • Whether this function did anything
    • Return the description of a challenge's current value.

      Parameters

      • overrideValue: number = ...

        (Default this.value) Overrides the value used

      Returns string

      The localised description for the current value.

    • Return the textual representation of a challenge's current value.

      Parameters

      • overrideValue: number = ...

        (Default this.value) Overrides the value used

      Returns string

      The localised text for the current value.