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

Function next_to_u

src/apply.c:918–928  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

916#undef MAXLEASHED
917
918boolean
919next_to_u(void)
920{
921 if (get_iter_mons(mleashed_next2u))
922 return FALSE;
923
924 /* no pack mules for the Amulet */
925 if (u.usteed && mon_has_amulet(u.usteed))
926 return FALSE;
927 return TRUE;
928}
929
930void
931check_leash(coordxy x, coordxy y)

Callers 11

allmain.cFile · 0.85
doteleFunction · 0.85
level_teleFunction · 0.85
domagicportalFunction · 0.85
tele_trapFunction · 0.85
dodownFunction · 0.85
doupFunction · 0.85
goto_levelFunction · 0.85
invoke_create_portalFunction · 0.85
digactualholeFunction · 0.85
fall_throughFunction · 0.85

Calls 2

get_iter_monsFunction · 0.85
mon_has_amuletFunction · 0.85

Tested by

no test coverage detected