Add some player lua methods

Adds u.clear_inventory() and u.giveobj(new.obj("rock")) and some other minor stuff.
This commit is contained in:
Pasi Kallinen
2020-01-04 16:55:50 +02:00
parent d6bc9f0bb3
commit 1d312ee3fe
3 changed files with 59 additions and 1 deletions

View File

@@ -1676,6 +1676,7 @@ E int FDECL(l_selection_register, (lua_State *));
/* ### nhlobj.c ### */
#if !defined(CROSSCOMPILE) || defined(CROSSCOMPILE_TARGET)
E void FDECL(nhl_push_obj, (lua_State *, struct obj *));
E int FDECL(nhl_obj_u_giveobj, (lua_State *));
E int FDECL(l_obj_register, (lua_State *));
#endif