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

Function may_dig

src/hack.c:922–929  ·  view source on GitHub ↗

intended to be called only on ROCKs or TREEs */

Source from the content-addressed store, hash-verified

920
921/* intended to be called only on ROCKs or TREEs */
922boolean
923may_dig(coordxy x, coordxy y)
924{
925 struct rm *lev = &levl[x][y];
926
927 return (boolean) !((IS_STWALL(lev->typ) || IS_TREE(lev->typ))
928 && (lev->wall_info & W_NONDIGGABLE));
929}
930
931boolean
932may_passwall(coordxy x, coordxy y)

Callers 9

still_chewingFunction · 0.85
bad_rockFunction · 0.85
digFunction · 0.85
zap_digFunction · 0.85
wiz_map_levltypFunction · 0.85
can_reach_locationFunction · 0.85
mfndposFunction · 0.85
m_digweapon_checkFunction · 0.85
postmovFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected