pokemon-rogue-battle
    Preparing search index...

    Class LapsingPersistentModifierAbstract

    Modifier used for party-wide or passive items that start an initial battleCount equal to maxBattles that, for every battle, decrements. Typically, when battleCount reaches 0, the modifier will be removed. If a modifier of the same type is to be added, it will reset battleCount back to maxBattles of the existing modifier instead of adding that modifier directly.

    add

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    stackCount: number
    virtualStackCount: number

    Methods

    • Goes through existing modifiers for any that match the selected modifier, which will then either add it to the existing modifiers if none were found or, if one was found, it will refresh battleCount.

      Parameters

      Returns boolean

      true if the modifier was successfully added or applied, false otherwise

    • Lapses the battleCount by 1.

      Parameters

      • ..._args: unknown[]

        passed arguments (not in use here)

      Returns boolean

      true if the battleCount is greater than 0

    • Updates an existing modifier with a new maxBattles and battleCount.

      Parameters

      • count: number

      Returns void