diff options
Diffstat (limited to 'src/script/lua_api/l_object.h')
-rw-r--r-- | src/script/lua_api/l_object.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/script/lua_api/l_object.h b/src/script/lua_api/l_object.h index d51ca379f..94b07070c 100644 --- a/src/script/lua_api/l_object.h +++ b/src/script/lua_api/l_object.h @@ -83,6 +83,12 @@ private: // 0 if not applicable to this type of object static int l_get_hp(lua_State *L); + // apply_damage(self, damage) + // damage = amount of damage to apply + // if damage is negative, heal the player + // returns: nil + static int l_apply_damage(lua_State *L); + // get_inventory(self) static int l_get_inventory(lua_State *L); |