gloves vs gauntlets; depends upon discovery state */
| 5529 | |
| 5530 | /* gloves vs gauntlets; depends upon discovery state */ |
| 5531 | const char * |
| 5532 | gloves_simple_name(struct obj *gloves) |
| 5533 | { |
| 5534 | static const char gauntlets[] = "gauntlets"; |
| 5535 | |
| 5536 | if (gloves && gloves->dknown) { |
| 5537 | int otyp = gloves->otyp; |
| 5538 | struct objclass *ocl = &objects[otyp]; |
| 5539 | const char *actualn = OBJ_NAME(*ocl), |
| 5540 | *descrpn = OBJ_DESCR(*ocl); |
| 5541 | |
| 5542 | if (strstri(objects[otyp].oc_name_known ? actualn : descrpn, |
| 5543 | gauntlets)) |
| 5544 | return gauntlets; |
| 5545 | } |
| 5546 | return "gloves"; |
| 5547 | } |
| 5548 | |
| 5549 | /* boots vs shoes; depends upon discovery state */ |
| 5550 | const char * |
no test coverage detected