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

Function find_qarti

src/questpgr.c:72–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72staticfn struct obj *
73find_qarti(struct obj *ochain)
74{
75 struct obj *otmp, *qarti;
76
77 for (otmp = ochain; otmp; otmp = otmp->nobj) {
78 if (is_quest_artifact(otmp))
79 return otmp;
80 if (Has_contents(otmp) && (qarti = find_qarti(otmp->cobj)) != 0)
81 return qarti;
82 }
83 return (struct obj *) 0;
84}
85
86/* check several object chains for the quest artifact to determine
87 whether it is present on the current level */

Callers 1

find_quest_artifactFunction · 0.85

Calls 1

is_quest_artifactFunction · 0.85

Tested by

no test coverage detected