| 158 | } |
| 159 | |
| 160 | boolean |
| 161 | inhistemple(struct monst *priest) |
| 162 | { |
| 163 | /* make sure we have a priest */ |
| 164 | if (!priest || !priest->ispriest) |
| 165 | return FALSE; |
| 166 | /* priest must be on right level and in right room */ |
| 167 | if (!histemple_at(priest, priest->mx, priest->my)) |
| 168 | return FALSE; |
| 169 | /* temple room must still contain properly aligned altar */ |
| 170 | return has_shrine(priest); |
| 171 | } |
| 172 | |
| 173 | /* |
| 174 | * pri_move: return 1: moved 0: didn't -1: let m_move do it -2: died |
no test coverage detected