From 997d5f88a8febceff4b54c6a61006c7c2c2f8c2f Mon Sep 17 00:00:00 2001 From: Rob Pearce Date: Thu, 2 Jun 2016 00:34:57 +1000 Subject: [PATCH] Worker ants should be able to dig down through stone floors. --- lf.c | 1 - map.c | 13 ++++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/lf.c b/lf.c index e6b38ea..91e8d76 100644 --- a/lf.c +++ b/lf.c @@ -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)) { diff --git a/map.c b/map.c index 995052d..d2d89ce 100644 --- a/map.c +++ b/map.c @@ -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: