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

Function necrophiliac

src/muse.c:2690–2702  ·  view source on GitHub ↗

check whether hero is carrying a corpse or contained petrifier corpse */

Source from the content-addressed store, hash-verified

2688#if 0
2689/* check whether hero is carrying a corpse or contained petrifier corpse */
2690staticfn boolean
2691necrophiliac(struct obj *objlist, boolean any_corpse)
2692{
2693 while (objlist) {
2694 if (objlist->otyp == CORPSE
2695 && (any_corpse || touch_petrifies(&mons[objlist->corpsenm])))
2696 return TRUE;
2697 if (Has_contents(objlist) && necrophiliac(objlist->cobj, FALSE))
2698 return TRUE;
2699 objlist = objlist->nobj;
2700 }
2701 return FALSE;
2702}
2703#endif
2704
2705boolean

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected