used to decide whether an artifact has been fully identified */
| 1128 | |
| 1129 | /* used to decide whether an artifact has been fully identified */ |
| 1130 | boolean |
| 1131 | undiscovered_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 */ |
| 1146 | int |
no outgoing calls
no test coverage detected