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

Function trapeffect_magic_portal

src/trap.c:2709–2722  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2707}
2708
2709staticfn int
2710trapeffect_magic_portal(
2711 struct monst *mtmp,
2712 struct trap *trap,
2713 unsigned int trflags)
2714{
2715 if (mtmp == &gy.youmonst) {
2716 feeltrap(trap);
2717 domagicportal(trap);
2718 } else {
2719 return trapeffect_level_telep(mtmp, trap, trflags);
2720 }
2721 return Trap_Effect_Finished;
2722}
2723
2724staticfn int
2725trapeffect_vibrating_square(

Callers 1

trapeffect_selectorFunction · 0.85

Calls 3

feeltrapFunction · 0.85
domagicportalFunction · 0.85
trapeffect_level_telepFunction · 0.85

Tested by

no test coverage detected