check whether hero is carrying a corpse or contained petrifier corpse */
| 2688 | #if 0 |
| 2689 | /* check whether hero is carrying a corpse or contained petrifier corpse */ |
| 2690 | staticfn boolean |
| 2691 | necrophiliac(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 | |
| 2705 | boolean |
nothing calls this directly
no outgoing calls
no test coverage detected