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

Function obj_is_pname

src/objnam.c:332–342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

330}
331
332boolean
333obj_is_pname(struct obj *obj)
334{
335 if (!obj->oartifact || !has_oname(obj))
336 return FALSE;
337 if (!program_state.gameover && !iflags.override_ID) {
338 if (not_fully_identified(obj))
339 return FALSE;
340 }
341 return TRUE;
342}
343
344/* Give the name of an object seen at a distance. Unlike xname/doname,
345 we usually don't want to set dknown if it's not set already. */

Callers 11

on_msgFunction · 0.85
first_weapon_hitFunction · 0.85
xname_flagsFunction · 0.85
doname_baseFunction · 0.85
killer_xnameFunction · 0.85
yobjnamFunction · 0.85
ynameFunction · 0.85
doeat_nonfoodFunction · 0.85
thituFunction · 0.85
monshootFunction · 0.85
thrwmuFunction · 0.85

Calls 1

not_fully_identifiedFunction · 0.85

Tested by

no test coverage detected