Worker ants should be able to dig down through stone floors.

This commit is contained in:
Rob Pearce 2016-06-02 00:34:57 +10:00
parent 89dbff4a63
commit 997d5f88a8
2 changed files with 12 additions and 2 deletions

1
lf.c
View File

@ -4740,7 +4740,6 @@ int digdown(lifeform_t *lf, object_t *o) {
enum OBTYPE digoid = OT_NONE;
getlfname(lf, lfname);
if (o) {
if (lfhasflag(lf, F_LEVITATING)) {
if (isplayer(lf)) {

13
map.c
View File

@ -9014,13 +9014,24 @@ int isdiggable(cell_t *c, enum OBTYPE withwhat) {
case CT_WALLDIRT:
case CT_WALL:
case CT_WALLWOOD:
// for digging down
case CT_CORRIDOR:
case CT_MOSSROCK:
case CT_LOOPCORRIDOR:
case CT_FLOORCARPET:
case CT_FLOORFLESH:
case CT_FLOORSNOW:
case CT_GRASS:
case CT_DIRT:
case CT_LOWFLOOR:
case CT_VLOWFLOOR:
//case CT_WALLGLASS:
return B_TRUE;
default:
break;
}
} else if (ot->id == OT_A_DISMANTLE) {
// using dismantle ability - only mad-made materials.
// using dismantle ability - only man-made materials.
switch (c->type->material->id) {
case MT_BRICK:
case MT_WOOD: