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

Function num_genocides

src/insight.c:2952–2966  ·  view source on GitHub ↗

number of monster species which have been genocided */

Source from the content-addressed store, hash-verified

2950
2951/* number of monster species which have been genocided */
2952int
2953num_genocides(void)
2954{
2955 int i, n = 0;
2956
2957 for (i = LOW_PM; i < NUMMONS; ++i) {
2958 if (svm.mvitals[i].mvflags & G_GENOD) {
2959 ++n;
2960 if (UniqCritterIndx(i))
2961 impossible("unique creature '%d: %s' genocided?",
2962 i, mons[i].pmnames[NEUTRAL]);
2963 }
2964 }
2965 return n;
2966}
2967
2968/* return a count of the number of extinct species */
2969staticfn int

Callers 6

encodeconductFunction · 0.85
encode_extended_conductsFunction · 0.85
show_conductFunction · 0.85
list_genocidedFunction · 0.85
do_class_genocideFunction · 0.85
do_genocideFunction · 0.85

Calls 1

impossibleFunction · 0.70

Tested by

no test coverage detected