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

Function number_leashed

src/apply.c:697–707  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

695}
696
697int
698number_leashed(void)
699{
700 int i = 0;
701 struct obj *obj;
702
703 for (obj = gi.invent; obj; obj = obj->nobj)
704 if (obj->otyp == LEASH && obj->leashmon != 0)
705 i++;
706 return i;
707}
708
709/* otmp is about to be destroyed or stolen */
710void

Callers 4

drownFunction · 0.85
gulpmuFunction · 0.85
use_leashFunction · 0.85
mleashed_next2uFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected