R1037 - digging secret doors in town
I saw no secret doors in any of the towns, but in 340 (fixed in 341), guards would patrol the entire level, so they might complain about secret doors elsewhere. Fix the check for future use. Also, I noticed trees, eg on minetn-6, weren't checked at all. Now they are.
This commit is contained in:
@@ -193,6 +193,8 @@ fix wishing for "looking glass" and "<color> glass"
|
||||
Archeologists suffer same alignment penalty for statue destruction by
|
||||
stone_to_flesh as they do by other means of statue destruction
|
||||
being unable to see a vault guard doesn't prevent him from arriving
|
||||
in town, secret doors should be called "wall", not "fountain"
|
||||
in town, watch should not allow trees to be cut down
|
||||
|
||||
|
||||
Platform- and/or Interface-Specific Fixes
|
||||
|
||||
@@ -993,7 +993,7 @@ struct obj *obj;
|
||||
}
|
||||
|
||||
/*
|
||||
* Town Watchmen frown on damage to the town walls or fountains.
|
||||
* Town Watchmen frown on damage to the town walls, trees or fountains.
|
||||
* It's OK to dig holes in the ground, however.
|
||||
* If mtmp is assumed to be a watchman, a watchman is found if mtmp == 0
|
||||
* zap == TRUE if wand/spell of digging, FALSE otherwise (chewing)
|
||||
@@ -1008,7 +1008,7 @@ watch_dig(mtmp, x, y, zap)
|
||||
|
||||
if (in_town(x, y) &&
|
||||
(closed_door(x, y) || lev->typ == SDOOR ||
|
||||
IS_WALL(lev->typ) || IS_FOUNTAIN(lev->typ))) {
|
||||
IS_WALL(lev->typ) || IS_FOUNTAIN(lev->typ) || IS_TREE(lev->typ))) {
|
||||
if (!mtmp) {
|
||||
for(mtmp = fmon; mtmp; mtmp = mtmp->nmon) {
|
||||
if (DEADMONSTER(mtmp)) continue;
|
||||
@@ -1028,7 +1028,9 @@ watch_dig(mtmp, x, y, zap)
|
||||
char *str;
|
||||
if (IS_DOOR(lev->typ))
|
||||
str = "door";
|
||||
else if (IS_WALL(lev->typ))
|
||||
else if (IS_TREE(lev->typ))
|
||||
str = "tree";
|
||||
else if (IS_ROCK(lev->typ))
|
||||
str = "wall";
|
||||
else
|
||||
str = "fountain";
|
||||
|
||||
Reference in New Issue
Block a user