| 199 | * on the ground, otherwise returns NULL obj pointer. |
| 200 | */ |
| 201 | staticfn struct obj * |
| 202 | on_ground(short otyp) |
| 203 | { |
| 204 | struct obj *otmp; |
| 205 | |
| 206 | for (otmp = fobj; otmp; otmp = otmp->nobj) |
| 207 | if (otyp) { |
| 208 | if (otmp->otyp == otyp) |
| 209 | return otmp; |
| 210 | } else if (any_quest_artifact(otmp)) |
| 211 | return otmp; |
| 212 | return (struct obj *) 0; |
| 213 | } |
| 214 | |
| 215 | staticfn boolean |
| 216 | you_have(int mask) |