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

Function m_useupall

src/mthrowu.c:1153–1158  ·  view source on GitHub ↗

remove an entire item from a monster's inventory; destroy that item */

Source from the content-addressed store, hash-verified

1151
1152/* remove an entire item from a monster's inventory; destroy that item */
1153void
1154m_useupall(struct monst *mon, struct obj *obj)
1155{
1156 extract_from_minvent(mon, obj, TRUE, FALSE);
1157 obfree(obj, (struct obj *) 0);
1158}
1159
1160/* remove one instance of an item from a monster's inventory */
1161void

Callers 2

hmon_hitmon_weapon_meleeFunction · 0.85
m_useupFunction · 0.85

Calls 2

extract_from_minventFunction · 0.85
obfreeFunction · 0.85

Tested by

no test coverage detected