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

Function inven_inuse

src/restore.c:112–125  ·  view source on GitHub ↗

Things that were marked "in_use" when the game was saved (ex. via the * infamous "HUP" cheat) get used up here. */

Source from the content-addressed store, hash-verified

110 * infamous "HUP" cheat) get used up here.
111 */
112void
113inven_inuse(boolean quietly)
114{
115 struct obj *otmp, *otmp2;
116
117 for (otmp = gi.invent; otmp; otmp = otmp2) {
118 otmp2 = otmp->nobj;
119 if (otmp->in_use) {
120 if (!quietly)
121 pline("Finishing off %s...", xname(otmp));
122 useup(otmp);
123 }
124 }
125}
126
127#endif /* SFCTOOL */
128

Callers 2

done_object_cleanupFunction · 0.85
dorecoverFunction · 0.85

Calls 3

xnameFunction · 0.85
useupFunction · 0.85
plineFunction · 0.70

Tested by

no test coverage detected