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

Function tele_restrict

src/teleport.c:1949–1959  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1947}
1948
1949boolean
1950tele_restrict(struct monst *mon)
1951{
1952 if (noteleport_level(mon)) {
1953 if (canseemon(mon))
1954 pline("A mysterious force prevents %s from teleporting!",
1955 mon_nam(mon));
1956 return TRUE;
1957 }
1958 return FALSE;
1959}
1960
1961void
1962mtele_trap(struct monst *mtmp, struct trap *trap, int in_sight)

Callers 15

stealgoldFunction · 0.85
stealarmFunction · 0.85
stealamuletFunction · 0.85
mhitm_ad_sgldFunction · 0.85
mhitm_ad_tlptFunction · 0.85
mhitm_ad_healFunction · 0.85
mhitm_ad_seduFunction · 0.85
mon_polyFunction · 0.85
gem_acceptFunction · 0.85
demon_talkFunction · 0.85
minliquid_coreFunction · 0.85
dochugFunction · 0.85

Calls 4

noteleport_levelFunction · 0.85
canseemonFunction · 0.85
mon_namFunction · 0.85
plineFunction · 0.70

Tested by

no test coverage detected