From d5809f4413b736b7715e27bce191232f9239230d Mon Sep 17 00:00:00 2001 From: alek13 Date: Thu, 12 Sep 2024 00:53:14 +0300 Subject: [PATCH] Damage System: add ability to apply periodical damage. Closes lord-server/lord#1625 --- classes/ObjectRef.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/ObjectRef.lua b/classes/ObjectRef.lua index e882c60..e1ed970 100644 --- a/classes/ObjectRef.lua +++ b/classes/ObjectRef.lua @@ -42,7 +42,7 @@ function ObjectRef:get_hp() end --- * Is limited to the range of 0 ... 65535 (2^16 - 1) --- * For players: HP are also limited by `hp_max` specified in object properties --- @param hp number ---- @param reason string? +--- @param reason PlayerHPChangeReason function ObjectRef:set_hp(hp, reason) end --- @return InvRef|nil for players, otherwise returns `nil` function ObjectRef:get_inventory() end