MCPcopy Index your code
hub / github.com/NetHack/NetHack / swallowit

Function swallowit

src/dothrow.c:1467–1475  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1465}
1466
1467staticfn void
1468swallowit(struct obj *obj)
1469{
1470 if (obj != uball) {
1471 (void) mpickobj(u.ustuck, obj); /* clears 'gt.thrownobj' */
1472 throwit_return(FALSE);
1473 } else
1474 throwit_return(TRUE);
1475}
1476
1477/* thrown object hits a monster.
1478 mon may be NULL.

Callers 1

throwitFunction · 0.85

Calls 2

mpickobjFunction · 0.85
throwit_returnFunction · 0.85

Tested by

no test coverage detected