Skip to content
Snippets Groups Projects
Commit d50df010 authored by DarkGod's avatar DarkGod
Browse files

Merge branch 'callback_improvements' into 'master'

Callback improvements

Some touches on the callback system:
- callback adding/removing is factored out so that the same loop isn't just written everywhere;
- priorities can now be specified for callbacks (default 0), callbacks with lower priorities get called first. (By a popular IRC request.) Of course this involves sorting but measures are taken to do actual sorting as rarely as possible.
(As a side-effect, callback-order is now well-defined, being sorted by type ("effect", "object", "talent") and implementing object (taking its .name or tostring()).)
- sustained talents can now be made to behave like passive ones in terms of callbacks, by specifying passive_callbacks=true in talent definition.
parents 1b5058d0 d8c187ae
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment