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

Function u_have_novel

src/invent.c:1575–1584  ·  view source on GitHub ↗

3.6 tribute */

Source from the content-addressed store, hash-verified

1573
1574/* 3.6 tribute */
1575struct obj *
1576u_have_novel(void)
1577{
1578 struct obj *otmp;
1579
1580 for (otmp = gi.invent; otmp; otmp = otmp->nobj)
1581 if (otmp->otyp == SPE_NOVEL)
1582 return otmp;
1583 return (struct obj *) 0;
1584}
1585
1586struct obj *
1587o_on(unsigned int id, struct obj *objchn)

Callers 1

domonnoiseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected