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

Function init_artifacts

src/artifact.c:110–116  ·  view source on GitHub ↗

zero out the artifact existence list */

Source from the content-addressed store, hash-verified

108
109/* zero out the artifact existence list */
110void
111init_artifacts(void)
112{
113 (void) memset((genericptr_t) artiexist, 0, sizeof artiexist);
114 (void) memset((genericptr_t) artidisco, 0, sizeof artidisco);
115 hack_artifacts();
116}
117
118void
119save_artifacts(NHFILE *nhfp)

Callers 1

newgameFunction · 0.85

Calls 1

hack_artifactsFunction · 0.85

Tested by

no test coverage detected