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
generated by LDoc 1.5.0 Last updated 2026-01-04 19:41:57