Private
boostThe amount by which the stat stage itself or its multiplier will be increased by
Private
statThe stat whose stat stage multiplier will be temporarily increased
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
.
PersistentModifier
array of the player's modifiers
N/A
true
if the modifier was successfully added or applied, false otherwise
TempBattleStat
N/A
NumberHolder
that holds the resulting value of the stat stage multiplier
Optional
_virtual: booleanOptional
_forThreshold: booleanReturn whether this modifier is of the given class
The modifier to check against
Whether the modiifer is an instance of the given type
Lapses the battleCount
by 1.
passed arguments (not in use here)
true
if the battleCount
is greater than 0
Updates an existing modifier with a new maxBattles
and battleCount
.
Checks if args contains the necessary elements and if the
incoming stat is matches stat
.
Optional
tempBattleStat: ATK | DEF | SPATK | SPDEF | SPD | ACCTempBattleStat
being affected
Optional
statLevel: NumberHolderNumberHolder
that holds the resulting value of the stat stage multiplier
true
if the modifier can be applied, false otherwise
Modifier used for party-wide items, specifically the X items, that temporarily increases the stat stage multiplier of the corresponding
TempBattleStat
.