| 353 | } |
| 354 | |
| 355 | boolean |
| 356 | exist_artifact(int otyp, const char *name) |
| 357 | { |
| 358 | const struct artifact *a; |
| 359 | struct arti_info *arex; |
| 360 | |
| 361 | if (otyp && *name) |
| 362 | for (a = artilist + 1, arex = artiexist + 1; a->otyp; a++, arex++) |
| 363 | if ((int) a->otyp == otyp && !strcmp(a->name, name)) |
| 364 | return arex->exists ? TRUE : FALSE; |
| 365 | return FALSE; |
| 366 | } |
| 367 | |
| 368 | /* an artifact has just been created or is being "un-created" for a chance |
| 369 | to be created again later */ |
no outgoing calls
no test coverage detected