diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-07-03 12:39:49 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-07-03 12:39:49 +0000 |
commit | 8fe08a6179dd4799179d7e4b9765a2887786e91b (patch) | |
tree | 250e0629f6f481fe4ca2cd7e74cb7c4f4516c7ef /crawl-ref/source | |
parent | da7b14eeeda044dc523653b4c0b365e15495282e (diff) | |
download | crawl-ref-8fe08a6179dd4799179d7e4b9765a2887786e91b.tar.gz crawl-ref-8fe08a6179dd4799179d7e4b9765a2887786e91b.zip |
[1747043] Tried items shouldn't show up as 'tried' in a shop that IDs
stock.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1729 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source')
-rw-r--r-- | crawl-ref/source/itemname.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/itemname.cc b/crawl-ref/source/itemname.cc index 646b203065..ca7c19769d 100644 --- a/crawl-ref/source/itemname.cc +++ b/crawl-ref/source/itemname.cc @@ -222,14 +222,15 @@ std::string item_def::name(description_level_type descrip, } } + const bool tried = !ident && is_tried_type(this->base_type,this->sub_type); if ( with_inscription && !(this->inscription.empty()) ) { buff << " {"; - if ( is_tried_type(this->base_type, this->sub_type) ) + if ( tried ) buff << "tried, "; buff << this->inscription << "}"; } - else if ( is_tried_type(this->base_type, this->sub_type) ) + else if ( tried ) buff << " {tried}"; return buff.str(); |