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

Function Tobjnam

src/objnam.c:2289–2299  ·  view source on GitHub ↗

like aobjnam, but prepend "The", not count, and use xname */

Source from the content-addressed store, hash-verified

2287
2288/* like aobjnam, but prepend "The", not count, and use xname */
2289char *
2290Tobjnam(struct obj *otmp, const char *verb)
2291{
2292 char *bp = The(xname(otmp));
2293
2294 if (verb) {
2295 Strcat(bp, " ");
2296 Strcat(bp, otense(otmp, verb));
2297 }
2298 return bp;
2299}
2300
2301/* capitalized variant of doname() */
2302char *

Callers 15

setuwepFunction · 0.85
ready_weaponFunction · 0.85
uwepgoneFunction · 0.85
rndcurseFunction · 0.85
mpickobjFunction · 0.85
potionhitFunction · 0.85
use_crystal_ballFunction · 0.85
Cloak_onFunction · 0.85
Helmet_onFunction · 0.85
Armor_offFunction · 0.85
Armor_goneFunction · 0.85
flooreffectsFunction · 0.85

Calls 3

TheFunction · 0.85
xnameFunction · 0.85
otenseFunction · 0.85

Tested by

no test coverage detected