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

Function nartifact_exist

src/artifact.c:461–471  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

459}
460
461int
462nartifact_exist(void)
463{
464 int i, a = 0;
465
466 for (i = 1; i <= NROFARTIFACTS; ++i)
467 if (artiexist[i].exists)
468 ++a;
469
470 return a;
471}
472
473/* set artifact tracking flags;
474 calling sequence: oname() -> artifact_exists() -> artifact_origin() or

Callers 3

readobjnamFunction · 0.85
bestow_artifactFunction · 0.85
mksobj_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected