by Ter13
Handle generic temporary combat effects efficiently and cleanly [More]
To download this library for your Linux/Mac installation, enter this on your command line:

DreamDownload byond://Ter13.EffectLib##version=4

Emulator users, in the BYOND pager go to File | Open Location and enter this URL:


Version 2.2
Date added: Dec 28 2016
Last updated: Aug 26 2017
5 fans
EffectLib provides a generic, manageable data structure for handling temporary effects such as debuffs, status ailments, etc.

This structure implements stackable, timed, toggle, and ticking functionality. It also implements id and subid identification of effects per-player, preventing accidental override of identified effect. Lastly, the structure allows the developer to quickly get existing effects on the user associated by either "id", or "id.subid".

See the documentation thread for further details, or Snippet Sunday #15 on the forums.