mark an artifact as 'found' */
| 406 | |
| 407 | /* mark an artifact as 'found' */ |
| 408 | void |
| 409 | found_artifact(int a) |
| 410 | { |
| 411 | if (a < 1 || a > NROFARTIFACTS) |
| 412 | impossible("found_artifact: invalid artifact index! (%d)", a); |
| 413 | else if (!artiexist[a].exists) |
| 414 | impossible("found_artifact: artifact doesn't exist yet? (%d)", a); |
| 415 | else |
| 416 | artiexist[a].found = 1; |
| 417 | } |
| 418 | |
| 419 | /* if an artifact hasn't already been designated 'found', do that now |
| 420 | and generate a livelog event about finding it */ |
no test coverage detected