MCPcopy Index your code
hub / github.com/NetHack/NetHack / gloves_simple_name

Function gloves_simple_name

src/objnam.c:5531–5547  ·  view source on GitHub ↗

gloves vs gauntlets; depends upon discovery state */

Source from the content-addressed store, hash-verified

5529
5530/* gloves vs gauntlets; depends upon discovery state */
5531const char *
5532gloves_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 */
5550const char *

Callers 13

fingers_or_glovesFunction · 0.85
wielding_corpseFunction · 0.85
armoroffFunction · 0.85
canwearobjFunction · 0.85
accessory_or_armor_onFunction · 0.85
select_offFunction · 0.85
better_not_take_that_offFunction · 0.85
disintegrate_armFunction · 0.85
armor_simple_nameFunction · 0.85
fix_curse_troubleFunction · 0.85
trapeffect_rust_trapFunction · 0.85
item_whatFunction · 0.85

Calls 1

strstriFunction · 0.85

Tested by

no test coverage detected