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

Function Yobjnam2

src/objnam.c:2279–2286  ·  view source on GitHub ↗

combine Yname2 and aobjnam eg "Your count cxname(otmp)" */

Source from the content-addressed store, hash-verified

2277
2278/* combine Yname2 and aobjnam eg "Your count cxname(otmp)" */
2279char *
2280Yobjnam2(struct obj *obj, const char *verb)
2281{
2282 char *s = yobjnam(obj, verb);
2283
2284 *s = highc(*s);
2285 return s;
2286}
2287
2288/* like aobjnam, but prepend "The", not count, and use xname */
2289char *

Callers 15

can_twoweaponFunction · 0.85
drop_uswapwepFunction · 0.85
chweponFunction · 0.85
weldmsgFunction · 0.85
rndcurseFunction · 0.85
impact_arti_lightFunction · 0.85
potion_dipFunction · 0.85
hmon_hitmon_weapon_meleeFunction · 0.85
mhitm_ad_enchFunction · 0.85
passive_objFunction · 0.85
wet_a_towelFunction · 0.85
dry_a_towelFunction · 0.85

Calls 2

yobjnamFunction · 0.85
highcFunction · 0.85

Tested by

no test coverage detected