Convert the vibrating square to a trap
Patch due to ais523 in NetHack 4. This is not ready to be merged yet; the vibrating square needs a tile image for tiles builds.
This commit is contained in:
@@ -220,6 +220,7 @@ int x, y;
|
||||
&& (levl[x][y].wall_info & W_NONDIGGABLE) != 0)
|
||||
|| (ttmp
|
||||
&& (ttmp->ttyp == MAGIC_PORTAL
|
||||
|| ttmp->ttyp == VIBRATING_SQUARE
|
||||
|| (!Can_dig_down(&u.uz) && !levl[x][y].candig)))) {
|
||||
if (verbose)
|
||||
pline_The("%s here is too hard to %s.", surface(x, y), verb);
|
||||
@@ -778,7 +779,8 @@ coord *cc;
|
||||
lev = &levl[dig_x][dig_y];
|
||||
nohole = (!Can_dig_down(&u.uz) && !lev->candig);
|
||||
|
||||
if ((ttmp && (ttmp->ttyp == MAGIC_PORTAL || nohole))
|
||||
if ((ttmp && (ttmp->ttyp == MAGIC_PORTAL
|
||||
|| ttmp->ttyp == VIBRATING_SQUARE || nohole))
|
||||
|| (IS_ROCK(lev->typ) && lev->typ != SDOOR
|
||||
&& (lev->wall_info & W_NONDIGGABLE) != 0)) {
|
||||
pline_The("%s %shere is too hard to dig in.", surface(dig_x, dig_y),
|
||||
|
||||
Reference in New Issue
Block a user