getobj callback for object to name (specific item) - anything but gold */
| 464 | |
| 465 | /* getobj callback for object to name (specific item) - anything but gold */ |
| 466 | int |
| 467 | name_ok(struct obj *obj) |
| 468 | { |
| 469 | if (!obj || obj->oclass == COIN_CLASS) |
| 470 | return GETOBJ_EXCLUDE; |
| 471 | |
| 472 | if (!obj->dknown || obj->oartifact || obj->otyp == SPE_NOVEL) |
| 473 | return GETOBJ_DOWNPLAY; |
| 474 | |
| 475 | return GETOBJ_SUGGEST; |
| 476 | } |
| 477 | |
| 478 | /* getobj callback for object to call (name its type) */ |
| 479 | int |
no outgoing calls
no test coverage detected