* If "otyp" is zero, it triggers a check for the quest_artifact, * since bell, book, candle, and amulet are all objects, not really * artifacts right now. [MRS] */
| 162 | * artifacts right now. [MRS] |
| 163 | */ |
| 164 | staticfn boolean |
| 165 | mon_has_arti(struct monst *mtmp, short otyp) |
| 166 | { |
| 167 | struct obj *otmp; |
| 168 | |
| 169 | for (otmp = mtmp->minvent; otmp; otmp = otmp->nobj) { |
| 170 | if (otyp) { |
| 171 | if (otmp->otyp == otyp) |
| 172 | return 1; |
| 173 | } else if (any_quest_artifact(otmp)) |
| 174 | return 1; |
| 175 | } |
| 176 | return 0; |
| 177 | } |
| 178 | |
| 179 | /* |
| 180 | * Returns some monster other than mtmp that |
no outgoing calls
no test coverage detected