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

Function zombie_can_dig

src/zap.c:862–875  ·  view source on GitHub ↗

can zombie dig the location at x,y */

Source from the content-addressed store, hash-verified

860
861/* can zombie dig the location at x,y */
862staticfn boolean
863zombie_can_dig(coordxy x, coordxy y)
864{
865 if (isok(x, y)) {
866 schar typ = levl[x][y].typ;
867 struct trap *ttmp;
868
869 if ((ttmp = t_at(x, y)) != 0)
870 return FALSE;
871 if (typ == ROOM || typ == CORR || typ == GRAVE)
872 return TRUE;
873 }
874 return FALSE;
875}
876
877/*
878 * Attempt to revive the given corpse, return the revived monster if

Callers 1

reviveFunction · 0.85

Calls 2

isokFunction · 0.85
t_atFunction · 0.85

Tested by

no test coverage detected