1
0
Fork 0

Compare commits

...

6 Commits

Author SHA1 Message Date
AFCMS d4e342313d Merge branch 'master' into doc-refactoring 2021-05-27 09:10:50 +02:00
AFCMS daa3b8a46c Merge branch 'master' into doc-refactoring 2021-05-19 00:20:03 +02:00
AFCMS 813f5ff6d4 Merge branch 'master' into doc-refactoring 2021-05-10 09:39:11 +02:00
AFCMS c383d300e1 add some extra function to doc 2021-05-09 16:58:09 +02:00
AFCMS 8ef8cdb03a Merge branch 'master' into doc-refactoring 2021-05-09 16:54:58 +02:00
AFCMS 836570af60 basic mcl_damage API 2021-05-09 16:54:54 +02:00
1 changed files with 16 additions and 0 deletions

View File

@ -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