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

Function newebones

src/bones.c:817–829  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

815}
816
817void
818newebones(struct monst *mtmp)
819{
820 if (!mtmp->mextra)
821 mtmp->mextra = newmextra();
822 if (!EBONES(mtmp)) {
823 EBONES(mtmp) = (struct ebones *) alloc(
824 sizeof (struct ebones));
825 (void) memset((genericptr_t) EBONES(mtmp), 0,
826 sizeof (struct ebones));
827 EBONES(mtmp)->parentmid = mtmp->m_id;
828 }
829}
830
831/* this is not currently used */
832void

Callers 3

savebonesFunction · 0.70
restmonFunction · 0.70
copy_mextraFunction · 0.70

Calls 2

newmextraFunction · 0.70
allocFunction · 0.70

Tested by

no test coverage detected