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

Function exist_artifact

src/artifact.c:355–366  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

353}
354
355boolean
356exist_artifact(int otyp, const char *name)
357{
358 const struct artifact *a;
359 struct arti_info *arex;
360
361 if (otyp && *name)
362 for (a = artilist + 1, arex = artiexist + 1; a->otyp; a++, arex++)
363 if ((int) a->otyp == otyp && !strcmp(a->name, name))
364 return arex->exists ? TRUE : FALSE;
365 return FALSE;
366}
367
368/* an artifact has just been created or is being "un-created" for a chance
369 to be created again later */

Callers 5

resetobjsFunction · 0.85
do_onameFunction · 0.85
onameFunction · 0.85
gcrownuFunction · 0.85
dipfountainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected