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

Function cxname_singular

src/objnam.c:1932–1938  ·  view source on GitHub ↗

like cxname, but ignores quantity */

Source from the content-addressed store, hash-verified

1930
1931/* like cxname, but ignores quantity */
1932char *
1933cxname_singular(struct obj *obj)
1934{
1935 if (obj->otyp == CORPSE)
1936 return corpse_xname(obj, (const char *) 0, CXN_SINGULAR);
1937 return xname_flags(obj, CXN_SINGULAR);
1938}
1939
1940/* treat an object as fully ID'd when it might be used as reason for death */
1941char *

Callers 2

loot_xnameFunction · 0.85
bhitoFunction · 0.85

Calls 2

corpse_xnameFunction · 0.85
xname_flagsFunction · 0.85

Tested by

no test coverage detected