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

Function knows_object

src/u_init.c:574–581  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

572};
573
574staticfn void
575knows_object(int obj, boolean override_pauper)
576{
577 if (u.uroleplay.pauper && !override_pauper)
578 return;
579 /* mark as known, but not yet encountered */
580 discover_object(obj, TRUE, FALSE, FALSE);
581}
582
583/* Know ordinary (non-magical) objects of a certain class,
584 like all gems except the loadstone and luckstone. */

Callers 4

knows_classFunction · 0.85
u_init_roleFunction · 0.85
u_init_raceFunction · 0.85
pauper_reinitFunction · 0.85

Calls 1

discover_objectFunction · 0.85

Tested by

no test coverage detected