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

Function m_blocks_teleporting

src/teleport.c:20–26  ·  view source on GitHub ↗

does monster block others from teleporting? */

Source from the content-addressed store, hash-verified

18
19/* does monster block others from teleporting? */
20staticfn boolean
21m_blocks_teleporting(struct monst *mtmp)
22{
23 if (is_dlord(mtmp->data) || is_dprince(mtmp->data))
24 return TRUE;
25 return FALSE;
26}
27
28/* teleporting is prevented on this level for this monster? */
29boolean

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected