MCPcopy Create free account
hub / github.com/NetHack/NetHack / observe_object

Function observe_object

src/o_init.c:441–451  ·  view source on GitHub ↗

make the object dknown and mark it as encountered */

Source from the content-addressed store, hash-verified

439#ifndef SFCTOOL
440/* make the object dknown and mark it as encountered */
441void
442observe_object(struct obj *obj)
443{
444 int oindx = obj->otyp;
445
446 /* skip for generic objects and for STRANGE_OBJECT */
447 if (oindx >= FIRST_OBJECT && !Hallucination) {
448 obj->dknown = 1;
449 discover_object(oindx, FALSE, TRUE, FALSE);
450 }
451}
452
453void
454discover_object(

Callers 15

artitouchFunction · 0.85
lay_an_eggFunction · 0.85
potion_dipFunction · 0.85
observe_recursivelyFunction · 0.85
detect_obj_trapsFunction · 0.85
do_vicinity_mapFunction · 0.85
learnringFunction · 0.85
hmon_hitmon_misc_objFunction · 0.85
xname_flagsFunction · 0.85
artifact_hitFunction · 0.85
gcrownuFunction · 0.85
give_spellFunction · 0.85

Calls 1

discover_objectFunction · 0.85

Tested by

no test coverage detected