From 144d923598efdf70d12d19437b2a59dee0015c01 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Sat, 11 Jul 2009 23:18:30 +0000 Subject: Detected secret doors are now treated as a distinct new door type, so that stupid monsters will continue to ignore them as long as they've never been opened. Shifts wall and door types of existing save files. Also apply patch by one the "nobodies" to make bloody tiles show up again. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10167 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/directn.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/directn.cc') diff --git a/crawl-ref/source/directn.cc b/crawl-ref/source/directn.cc index bf16ea1fbd..86ef9b0ee1 100644 --- a/crawl-ref/source/directn.cc +++ b/crawl-ref/source/directn.cc @@ -2598,6 +2598,8 @@ static std::string _base_feature_desc(dungeon_feature_type grid, return ("unnaturally hard rock wall"); case DNGN_CLOSED_DOOR: return ("closed door"); + case DNGN_DETECTED_SECRET_DOOR: + return ("detected secret door"); case DNGN_METAL_WALL: return ("metal wall"); case DNGN_GREEN_CRYSTAL_WALL: @@ -2881,7 +2883,7 @@ std::string feature_description(const coord_def& where, bool bloody, if (grid == DNGN_SECRET_DOOR) grid = grid_secret_door_appearance(where); - if (grid == DNGN_OPEN_DOOR || grid == DNGN_CLOSED_DOOR) + if (grid == DNGN_OPEN_DOOR || grid_is_closed_door(grid)) { std::set all_door; find_connected_identical(where, grd(where), all_door); @@ -2890,6 +2892,8 @@ std::string feature_description(const coord_def& where, bool bloody, std::string desc = adj; desc += (grid == DNGN_OPEN_DOOR) ? "open " : "closed "; + if (grid == DNGN_DETECTED_SECRET_DOOR) + desc += "detected secret "; desc += noun; if (bloody) -- cgit v1.2.3-54-g00ecf