Abstract
Optional
battleCount: numberOptional
stackCount: numberGoes 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.
PersistentModifier
array of the player's modifiers
N/A
true if the modifier was successfully added or applied, false otherwise
Abstract
applyAbstract
cloneOptional
_virtual: booleanOptional
_forThreshold: boolean
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.
Abstract
See
add