can zombie dig the location at x,y */
| 860 | |
| 861 | /* can zombie dig the location at x,y */ |
| 862 | staticfn boolean |
| 863 | zombie_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 |