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

Function neweshk

src/shknam.c:556–566  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

554}
555
556void
557neweshk(struct monst *mtmp)
558{
559 if (!mtmp->mextra)
560 mtmp->mextra = newmextra();
561 if (!ESHK(mtmp))
562 ESHK(mtmp) = (struct eshk *) alloc(sizeof(struct eshk));
563 (void) memset((genericptr_t) ESHK(mtmp), 0, sizeof(struct eshk));
564 ESHK(mtmp)->parentmid = mtmp->m_id;
565 ESHK(mtmp)->bill_p = (struct bill_x *) 0;
566}
567
568void
569free_eshk(struct monst *mtmp)

Callers 4

restmonFunction · 0.70
copy_mextraFunction · 0.70
makemonFunction · 0.70
montraitsFunction · 0.70

Calls 2

newmextraFunction · 0.70
allocFunction · 0.70

Tested by

no test coverage detected