make an object actually be identified; no display updating */
| 2634 | |
| 2635 | /* make an object actually be identified; no display updating */ |
| 2636 | void |
| 2637 | fully_identify_obj(struct obj *otmp) |
| 2638 | { |
| 2639 | makeknown(otmp->otyp); |
| 2640 | if (otmp->oartifact) |
| 2641 | discover_artifact((xint16) otmp->oartifact); |
| 2642 | observe_object(otmp); |
| 2643 | otmp->known = otmp->bknown = otmp->rknown = 1; |
| 2644 | set_cknown_lknown(otmp); /* set otmp->{cknown,lknown} if applicable */ |
| 2645 | if (otmp->otyp == EGG && otmp->corpsenm != NON_PM) |
| 2646 | learn_egg_type(otmp->corpsenm); |
| 2647 | } |
| 2648 | |
| 2649 | /* ggetobj callback routine; identify an object and give immediate feedback */ |
| 2650 | int |
no test coverage detected