MCPcopy Index your code
hub / github.com/NetHack/NetHack / mbirth_limit

Function mbirth_limit

src/makemon.c:1541–1551  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1539}
1540
1541int
1542mbirth_limit(int mndx)
1543{
1544 /* There is an implicit limit of 4 for "high priest of <deity>",
1545 * but aligned priests can grow into high priests, thus they aren't
1546 * really limited to 4, so leave the default amount in place for them.
1547 */
1548
1549 /* assert(MAXMONNO < 255); */
1550 return (mndx == PM_NAZGUL ? 9 : mndx == PM_ERINYS ? 3 : MAXMONNO);
1551}
1552
1553/* used for wand/scroll/spell of create monster */
1554/* returns TRUE iff you know monsters have been created */

Callers 3

pick_familiar_pmFunction · 0.85
newchamFunction · 0.85
propagateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected