From 836570af609445a0a8f459fdabe29543aa081a1f Mon Sep 17 00:00:00 2001 From: AFCMS Date: Sun, 9 May 2021 16:54:54 +0200 Subject: [PATCH] basic mcl_damage API --- mods/CORE/mcl_damage/API.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 mods/CORE/mcl_damage/API.md diff --git a/mods/CORE/mcl_damage/API.md b/mods/CORE/mcl_damage/API.md new file mode 100644 index 000000000..1b2a3895b --- /dev/null +++ b/mods/CORE/mcl_damage/API.md @@ -0,0 +1,12 @@ +# 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.