1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-11 17:51:04 +00:00

Add a Lua call to do damages / heals

This commit is contained in:
Loic Blot 2015-03-18 10:03:51 +01:00
parent 8f2e9bfbc2
commit 467fc0ddc9
3 changed files with 45 additions and 3 deletions

View file

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