Compare commits
6 Commits
master
...
doc-refact
Author | SHA1 | Date |
---|---|---|
AFCMS | d4e342313d | |
AFCMS | daa3b8a46c | |
AFCMS | 813f5ff6d4 | |
AFCMS | c383d300e1 | |
AFCMS | 8ef8cdb03a | |
AFCMS | 836570af60 |
|
@ -0,0 +1,16 @@
|
||||||
|
# mcl_damage
|
||||||
|
This mod provide damage handling.
|
||||||
|
|
||||||
|
## mcl_damage.register_modifier(func, priority)
|
||||||
|
Register damage modifier.
|
||||||
|
* func: function, called with (obj, damage, reason)
|
||||||
|
|
||||||
|
This function can modify damage, based on mcl reason.
|
||||||
|
|
||||||
|
* priority: int, define call order of registered functions
|
||||||
|
|
||||||
|
You should make use higher values for important or most used functions.
|
||||||
|
|
||||||
|
## mcl_damage.from_mt(mt_reason)
|
||||||
|
Convert mt damage reason (nil, fall, drown, punch, node_damage) to mc like reason.
|
||||||
|
* mt_reason: table, mt damage reason
|
Loading…
Reference in New Issue