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

Function undiscovered_artifact

src/artifact.c:1130–1143  ·  view source on GitHub ↗

used to decide whether an artifact has been fully identified */

Source from the content-addressed store, hash-verified

1128
1129/* used to decide whether an artifact has been fully identified */
1130boolean
1131undiscovered_artifact(xint16 m)
1132{
1133 int i;
1134
1135 /* look for this artifact in the discoveries list;
1136 if we hit an empty slot then it's undiscovered */
1137 for (i = 0; i < NROFARTIFACTS; i++)
1138 if (artidisco[i] == m)
1139 return FALSE;
1140 else if (artidisco[i] == 0)
1141 break;
1142 return TRUE;
1143}
1144
1145/* display a list of discovered artifacts; return their count */
1146int

Callers 1

not_fully_identifiedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected