| 70 | } |
| 71 | |
| 72 | staticfn struct obj * |
| 73 | find_qarti(struct obj *ochain) |
| 74 | { |
| 75 | struct obj *otmp, *qarti; |
| 76 | |
| 77 | for (otmp = ochain; otmp; otmp = otmp->nobj) { |
| 78 | if (is_quest_artifact(otmp)) |
| 79 | return otmp; |
| 80 | if (Has_contents(otmp) && (qarti = find_qarti(otmp->cobj)) != 0) |
| 81 | return qarti; |
| 82 | } |
| 83 | return (struct obj *) 0; |
| 84 | } |
| 85 | |
| 86 | /* check several object chains for the quest artifact to determine |
| 87 | whether it is present on the current level */ |
no test coverage detected