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/misc.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/misc.cc')
-rw-r--r-- | crawl-ref/source/misc.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/crawl-ref/source/misc.cc b/crawl-ref/source/misc.cc index 840ada4c60..b33c0c0c93 100644 --- a/crawl-ref/source/misc.cc +++ b/crawl-ref/source/misc.cc @@ -2993,7 +2993,10 @@ void reveal_secret_door(const coord_def& p) ASSERT(grd(p) == DNGN_SECRET_DOOR); dungeon_feature_type door = grid_secret_door_appearance(p); - grd(p) = grid_is_opaque(door) ? DNGN_CLOSED_DOOR : DNGN_OPEN_DOOR; + // Former secret doors become known but are still hidden to monsters + // until opened. + grd(p) = grid_is_opaque(door) ? DNGN_DETECTED_SECRET_DOOR + : DNGN_OPEN_DOOR; viewwindow(true, false); learned_something_new(TUT_SEEN_SECRET_DOOR, p); } |