Module ...
Handles actors temporary effects (temporary boost of a stat, ...)
Functions
| _M:hasEffect (eff_id) | Check timed effect | 
| _M:loadDefinition (file) | Defines actor temporary effects Static! | 
| _M:newEffect (t) | Defines one effect Static! | 
| _M:removeAllEffects () | Removes the effect | 
| _M:removeEffect (eff, silent) | Removes the effect | 
| _M:setEffect (eff_id, dur, p, silent) | Sets a timed effect on the actor | 
| _M:timedEffects () | Counts down timed effects, call from your actors "act" method | 
Functions
- _M:hasEffect (eff_id)
- 
Check timed effect
Parameters- eff_id: the effect to check for
 Return value:either nil or the parameters table for the effect
- _M:loadDefinition (file)
- 
Defines actor temporary effects Static!
Parameters- file:
 
- _M:newEffect (t)
- 
Defines one effect Static!
Parameters- t:
 
- _M:removeAllEffects ()
- Removes the effect
- _M:removeEffect (eff, silent)
- 
Removes the effect
Parameters- eff:
- silent:
 
- _M:setEffect (eff_id, dur, p, silent)
- 
Sets a timed effect on the actor
Parameters- eff_id: the effect to set
- dur: the number of turns to go on
- p: a table containing the effects parameters
- silent:
 
- _M:timedEffects ()
- Counts down timed effects, call from your actors "act" method