diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-07-11 23:18:30 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-07-11 23:18:30 +0000 |
commit | 144d923598efdf70d12d19437b2a59dee0015c01 (patch) | |
tree | 896505eebfbe235c63a051e54b1ddca2a6263e52 /crawl-ref/source/directn.cc | |
parent | cc99e42dae0091ba2ad43dde3db0660e083bb793 (diff) | |
download | crawl-ref-144d923598efdf70d12d19437b2a59dee0015c01.tar.gz crawl-ref-144d923598efdf70d12d19437b2a59dee0015c01.zip |
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
Diffstat (limited to 'crawl-ref/source/directn.cc')
-rw-r--r-- | crawl-ref/source/directn.cc | 6 |
1 files changed, 5 insertions, 1 deletions
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<coord_def> 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) |