Worker ants should be able to dig down through stone floors.
This commit is contained in:
parent
89dbff4a63
commit
997d5f88a8
1
lf.c
1
lf.c
|
@ -4740,7 +4740,6 @@ int digdown(lifeform_t *lf, object_t *o) {
|
||||||
enum OBTYPE digoid = OT_NONE;
|
enum OBTYPE digoid = OT_NONE;
|
||||||
getlfname(lf, lfname);
|
getlfname(lf, lfname);
|
||||||
|
|
||||||
|
|
||||||
if (o) {
|
if (o) {
|
||||||
if (lfhasflag(lf, F_LEVITATING)) {
|
if (lfhasflag(lf, F_LEVITATING)) {
|
||||||
if (isplayer(lf)) {
|
if (isplayer(lf)) {
|
||||||
|
|
13
map.c
13
map.c
|
@ -9014,13 +9014,24 @@ int isdiggable(cell_t *c, enum OBTYPE withwhat) {
|
||||||
case CT_WALLDIRT:
|
case CT_WALLDIRT:
|
||||||
case CT_WALL:
|
case CT_WALL:
|
||||||
case CT_WALLWOOD:
|
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:
|
//case CT_WALLGLASS:
|
||||||
return B_TRUE;
|
return B_TRUE;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else if (ot->id == OT_A_DISMANTLE) {
|
} 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) {
|
switch (c->type->material->id) {
|
||||||
case MT_BRICK:
|
case MT_BRICK:
|
||||||
case MT_WOOD:
|
case MT_WOOD:
|
||||||
|
|
Loading…
Reference in New Issue