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

Function mkclass

src/makemon.c:1872–1876  ·  view source on GitHub ↗

Make one of the multiple types of a given monster class. The second parameter specifies a special casing bit mask to allow the normal genesis masks to be deactivated. Returns Null if no monsters in that class can be made. */

Source from the content-addressed store, hash-verified

1870 to allow the normal genesis masks to be deactivated.
1871 Returns Null if no monsters in that class can be made. */
1872struct permonst *
1873mkclass(char class, int spc)
1874{
1875 return mkclass_aligned(class, spc, A_NONE);
1876}
1877
1878/* mkclass() with alignment restrictions; used by ndemon() */
1879struct permonst *

Callers 14

morguemonFunction · 0.85
mkswampFunction · 0.85
courtmonFunction · 0.85
qt_montypeFunction · 0.85
mcast_insectsFunction · 0.85
dig_up_graveFunction · 0.85
lminionFunction · 0.85
mkshobj_atFunction · 0.85
dosdoorFunction · 0.85
makenicheFunction · 0.85
use_bellFunction · 0.85
create_monsterFunction · 0.85

Calls 1

mkclass_alignedFunction · 0.85

Tested by

no test coverage detected