Module effect
Functions for effects
Class Effect
| effect:getModifier () | get the modifier of the effect. |
| effect:getType () | get the type of the effect (which stat it impacts) |
Class Effect
Functions on effect variables
- effect:getModifier ()
-
get the modifier of the effect.
For numeric stats, this is the number (positive or negative).
For resist/immune/susceptible, it's the name of the relevant damage type.
For affected, it's the first effect name set. (only supports single-type affected effects)
Returns:
-
any
the modifier
- effect:getType ()
-
get the type of the effect (which stat it impacts)
Returns:
-
integer
the effect type