used for naming "the unique_item" instead of "a unique_item" */
| 1103 | |
| 1104 | /* used for naming "the unique_item" instead of "a unique_item" */ |
| 1105 | boolean |
| 1106 | the_unique_obj(struct obj *obj) |
| 1107 | { |
| 1108 | boolean known = (obj->known || iflags.override_ID); |
| 1109 | |
| 1110 | if (!obj->dknown && !iflags.override_ID) |
| 1111 | return FALSE; |
| 1112 | else if (obj->otyp == FAKE_AMULET_OF_YENDOR && !known) |
| 1113 | return TRUE; /* lie */ |
| 1114 | else |
| 1115 | return (boolean) (objects[obj->otyp].oc_unique |
| 1116 | && (known || obj->otyp == AMULET_OF_YENDOR)); |
| 1117 | } |
| 1118 | |
| 1119 | /* should monster type be prefixed with "the"? (mostly used for corpses) */ |
| 1120 | boolean |
no outgoing calls
no test coverage detected