Damage System: add damage.Type detection for hitting tools. Closes to lord-server/lord#1626

This commit is contained in:
alek13
2024-09-09 05:29:03 +03:00
parent 128b3f703d
commit 9a7a1dc64a

View File

@@ -478,6 +478,7 @@ function minetest.register_on_rightclickplayer(callback) end
--- @class PlayerHPChangeReason
--- @field type string one of `"set_hp"`, `"punch"`, ... See `register_on_player_hpchange` description.
--- @field from string will be `"mod"` or `"engine"`
--- @field object ObjectRef|Player|Entity
--- * Called when the player gets damaged or healed
--- * `player`: ObjectRef of the player