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

Function uncommon

src/makemon.c:1592–1603  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1590}
1591
1592staticfn boolean
1593uncommon(int mndx)
1594{
1595 if (mons[mndx].geno & (G_NOGEN | G_UNIQ))
1596 return TRUE;
1597 if (svm.mvitals[mndx].mvflags & G_GONE)
1598 return TRUE;
1599 if (Inhell)
1600 return (boolean) (mons[mndx].maligntyp > A_NEUTRAL);
1601 else
1602 return (boolean) ((mons[mndx].geno & G_HELL) != 0);
1603}
1604
1605/*
1606 * shift the probability of a monster's generation by

Callers 1

rndmonst_adjFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected