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

Function m_to_e

src/dbridge.c:303–318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

301}
302
303staticfn void
304m_to_e(struct monst *mtmp, coordxy x, coordxy y, struct entity *etmp)
305{
306 etmp->emon = mtmp;
307 if (mtmp) {
308 etmp->ex = x;
309 etmp->ey = y;
310 if (mtmp->wormno && (x != mtmp->mx || y != mtmp->my))
311 etmp->edata = &mons[PM_LONG_WORM_TAIL];
312 else
313 etmp->edata = mtmp->data;
314 } else {
315 etmp->edata = (struct permonst *) 0;
316 etmp->ex = etmp->ey = 0;
317 }
318}
319
320staticfn void
321u_to_e(struct entity *etmp)

Callers 2

set_entityFunction · 0.85
nokillerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected