MCPcopy Create free account
hub / github.com/NetHack/NetHack / nhl_u_giveobj

Function nhl_u_giveobj

src/nhlua.c:2050–2054  ·  view source on GitHub ↗

Put object into player's inventory */ u.giveobj(obj.new("rock")); */

Source from the content-addressed store, hash-verified

2048/* Put object into player's inventory */
2049/* u.giveobj(obj.new("rock")); */
2050staticfn int
2051nhl_u_giveobj(lua_State *L)
2052{
2053 return nhl_obj_u_giveobj(L);
2054}
2055
2056static const struct luaL_Reg nhl_u_functions[] = {
2057 { "clear_inventory", nhl_u_clear_inventory },

Callers

nothing calls this directly

Calls 1

nhl_obj_u_giveobjFunction · 0.85

Tested by

no test coverage detected