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

Function newmcorpsenm

src/makemon.c:2369–2375  ·  view source on GitHub ↗

allocate a new mcorpsenm field for a monster; only need mextra itself */

Source from the content-addressed store, hash-verified

2367
2368/* allocate a new mcorpsenm field for a monster; only need mextra itself */
2369void
2370newmcorpsenm(struct monst *mtmp)
2371{
2372 if (!mtmp->mextra)
2373 mtmp->mextra = newmextra();
2374 MCORPSENM(mtmp) = NON_PM; /* not initialized yet */
2375}
2376
2377/* release monster's mcorpsenm field; basically a no-op */
2378void

Callers 2

set_mimic_symFunction · 0.85
bhitmFunction · 0.85

Calls 1

newmextraFunction · 0.70

Tested by

no test coverage detected