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

Function restore_artifacts

src/artifact.c:132–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130#endif /* SFCTOOL */
131
132void
133restore_artifacts(NHFILE *nhfp)
134{
135 int i;
136
137 for (i = 0; i < (NROFARTIFACTS + 1); ++i)
138 Sfi_arti_info(nhfp, &artiexist[i], "artiexist");
139 for (i = 0; i < NROFARTIFACTS; ++i)
140 Sfi_short(nhfp, &artidisco[i], "artidisco");
141#ifndef SFCTOOL
142 hack_artifacts(); /* redo non-saved special cases */
143#else
144 nhUse(artilist);
145#endif
146}
147
148#ifndef SFCTOOL
149

Callers 1

restgamestateFunction · 0.85

Calls 1

hack_artifactsFunction · 0.85

Tested by

no test coverage detected