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

Function nhl_u_clear_inventory

src/nhlua.c:2040–2046  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2038RESTORE_WARNING_UNREACHABLE_CODE
2039
2040staticfn int
2041nhl_u_clear_inventory(lua_State *L UNUSED)
2042{
2043 while (gi.invent)
2044 useupall(gi.invent);
2045 return 0;
2046}
2047
2048/* Put object into player's inventory */
2049/* u.giveobj(obj.new("rock")); */

Callers

nothing calls this directly

Calls 1

useupallFunction · 0.85

Tested by

no test coverage detected