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

Function probe_objchain

src/zap.c:611–623  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

609}
610
611staticfn void
612probe_objchain(struct obj *otmp)
613{
614 for (; otmp; otmp = otmp->nobj) {
615 observe_object(otmp); /* treat as "seen" */
616 if (Is_container(otmp) || otmp->otyp == STATUE) {
617 otmp->lknown = 1;
618 if (!SchroedingersBox(otmp))
619 otmp->cknown = 1;
620 } else if (otmp->otyp == TIN)
621 otmp->known = 1;
622 }
623}
624
625void
626probe_monster(struct monst *mtmp)

Callers 2

probe_monsterFunction · 0.85
zapyourselfFunction · 0.85

Calls 1

observe_objectFunction · 0.85

Tested by

no test coverage detected