| 426 | } |
| 427 | |
| 428 | boolean |
| 429 | objtyp_is_callable(int i) |
| 430 | { |
| 431 | if (objects[i].oc_uname) |
| 432 | return TRUE; |
| 433 | |
| 434 | switch(objects[i].oc_class) { |
| 435 | case AMULET_CLASS: |
| 436 | /* 5.0: calling these used to be allowed but that enabled the |
| 437 | player to tell whether two unID'd amulets of yendor were both |
| 438 | fake or one was real by calling them distinct names and then |
| 439 | checking discoveries to see whether first name was replaced |
| 440 | by second or both names stuck; with more than two available |
| 441 | to work with, if they weren't all fake it was possible to |
| 442 | determine which one was the real one */ |
| 443 | if (i == AMULET_OF_YENDOR || i == FAKE_AMULET_OF_YENDOR) |
| 444 | break; /* return FALSE */ |
| 445 | FALLTHROUGH; |
| 446 | /*FALLTHRU*/ |
| 447 | case SCROLL_CLASS: |
| 448 | case POTION_CLASS: |
| 449 | case WAND_CLASS: |
| 450 | case RING_CLASS: |
| 451 | case GEM_CLASS: |
| 452 | case SPBOOK_CLASS: |
| 453 | case ARMOR_CLASS: |
| 454 | case TOOL_CLASS: |
| 455 | case VENOM_CLASS: |
| 456 | if (OBJ_DESCR(objects[i])) |
| 457 | return TRUE; |
| 458 | break; |
| 459 | default: |
| 460 | break; |
| 461 | } |
| 462 | return FALSE; |
| 463 | } |
| 464 | |
| 465 | /* getobj callback for object to name (specific item) - anything but gold */ |
| 466 | int |
no outgoing calls
no test coverage detected