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

Function num_extinct

src/insight.c:2969–2981  ·  view source on GitHub ↗

return a count of the number of extinct species */

Source from the content-addressed store, hash-verified

2967
2968/* return a count of the number of extinct species */
2969staticfn int
2970num_extinct(void)
2971{
2972 int i, n = 0;
2973
2974 for (i = LOW_PM; i < NUMMONS; ++i) {
2975 if (UniqCritterIndx(i))
2976 continue;
2977 if ((svm.mvitals[i].mvflags & G_GONE) == G_EXTINCT)
2978 ++n;
2979 }
2980 return n;
2981}
2982
2983/* collect both genocides and extinctions, skipping uniques */
2984staticfn int

Callers 1

list_genocidedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected