MCPcopy Create free account
hub / github.com/NetHack/NetHack / actualoname

Function actualoname

src/objnam.c:2489–2498  ·  view source on GitHub ↗

basic name of obj, as if it has been discovered; for some types of items, we can't just use OBJ_NAME() because it doesn't always include the class (for instance "light" when we want "spellbook of light"); minimal_xname() uses xname() to get that */

Source from the content-addressed store, hash-verified

2487 the class (for instance "light" when we want "spellbook of light");
2488 minimal_xname() uses xname() to get that */
2489char *
2490actualoname(struct obj *obj)
2491{
2492 char *res;
2493
2494 iflags.override_ID = TRUE;
2495 res = minimal_xname(obj);
2496 iflags.override_ID = FALSE;
2497 return res;
2498}
2499
2500/* artifact's name without any object type or known/dknown/&c feedback */
2501char *

Callers 2

gcrownuFunction · 0.85
seffect_destroy_armorFunction · 0.85

Calls 1

minimal_xnameFunction · 0.85

Tested by

no test coverage detected