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

Function findpriest

src/priest.c:391–404  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

389}
390
391struct monst *
392findpriest(char roomno)
393{
394 struct monst *mtmp;
395
396 for (mtmp = fmon; mtmp; mtmp = mtmp->nmon) {
397 if (DEADMONSTER(mtmp))
398 continue;
399 if (mtmp->ispriest && (EPRI(mtmp)->shroom == roomno)
400 && histemple_at(mtmp, mtmp->mx, mtmp->my))
401 return mtmp;
402 }
403 return (struct monst *) 0;
404}
405
406DISABLE_WARNING_FORMAT_NONLITERAL
407

Callers 5

recalc_mapseenFunction · 0.85
intempleFunction · 0.85
in_your_sanctuaryFunction · 0.85
angry_priestFunction · 0.85

Calls 1

histemple_atFunction · 0.85

Tested by

no test coverage detected