make the object dknown and mark it as encountered */
| 439 | #ifndef SFCTOOL |
| 440 | /* make the object dknown and mark it as encountered */ |
| 441 | void |
| 442 | observe_object(struct obj *obj) |
| 443 | { |
| 444 | int oindx = obj->otyp; |
| 445 | |
| 446 | /* skip for generic objects and for STRANGE_OBJECT */ |
| 447 | if (oindx >= FIRST_OBJECT && !Hallucination) { |
| 448 | obj->dknown = 1; |
| 449 | discover_object(oindx, FALSE, TRUE, FALSE); |
| 450 | } |
| 451 | } |
| 452 | |
| 453 | void |
| 454 | discover_object( |
no test coverage detected