From 7b19365a5c3941c09fa776bf3e9b221bf0b48ae6 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Sun, 7 Dec 2008 21:25:14 +0000 Subject: Describe closed shops as "abandoned" and colour its glyph grey (= lights turned off). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7772 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/directn.cc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/directn.cc') diff --git a/crawl-ref/source/directn.cc b/crawl-ref/source/directn.cc index 16725bf3ed..a2f96ef24a 100644 --- a/crawl-ref/source/directn.cc +++ b/crawl-ref/source/directn.cc @@ -2603,8 +2603,15 @@ std::string feature_description(const coord_def& where, bool bloody, return (feature_description(grid, get_trap_type(where), bloody, dtype, add_stop)); case DNGN_ENTER_SHOP: - return (shop_name(where, add_stop)); - + { + std::string desc = ""; + if (shop_is_closed(where)) + { + desc = "An abandoned shop"; + return thing_do_grammar(dtype, add_stop, false, desc); + } + return shop_name(where, add_stop); + } case DNGN_ENTER_PORTAL_VAULT: return (thing_do_grammar( dtype, add_stop, false, -- cgit v1.2.3-54-g00ecf