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

Function on_ground

src/wizard.c:201–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199 * on the ground, otherwise returns NULL obj pointer.
200 */
201staticfn struct obj *
202on_ground(short otyp)
203{
204 struct obj *otmp;
205
206 for (otmp = fobj; otmp; otmp = otmp->nobj)
207 if (otyp) {
208 if (otmp->otyp == otyp)
209 return otmp;
210 } else if (any_quest_artifact(otmp))
211 return otmp;
212 return (struct obj *) 0;
213}
214
215staticfn boolean
216you_have(int mask)

Callers 2

target_onFunction · 0.85
tacticsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected