| 373 | } |
| 374 | |
| 375 | staticfn boolean |
| 376 | has_shrine(struct monst *pri) |
| 377 | { |
| 378 | struct rm *lev; |
| 379 | struct epri *epri_p; |
| 380 | |
| 381 | if (!pri || !pri->ispriest) |
| 382 | return FALSE; |
| 383 | epri_p = EPRI(pri); |
| 384 | lev = &levl[epri_p->shrpos.x][epri_p->shrpos.y]; |
| 385 | if (!IS_ALTAR(lev->typ) || !(lev->altarmask & AM_SHRINE)) |
| 386 | return FALSE; |
| 387 | return (boolean) (epri_p->shralign |
| 388 | == (Amask2align(lev->altarmask & ~AM_SHRINE))); |
| 389 | } |
| 390 | |
| 391 | struct monst * |
| 392 | findpriest(char roomno) |
no outgoing calls
no test coverage detected