summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/stash.cc
diff options
context:
space:
mode:
authorPekka Lampila <pekka.lampila@iki.fi>2013-04-25 18:16:03 +0100
committerChris Campbell <chriscampbell89@gmail.com>2013-04-25 18:22:14 +0100
commita259dab223f9a339eb64c16a5e68b52dc918ed23 (patch)
tree509c29a115f01ae147cc1edc30785b83e2805975 /crawl-ref/source/stash.cc
parent34cae138a520cc9b889763d358df0bb9d6258bee (diff)
downloadcrawl-ref-a259dab223f9a339eb64c16a5e68b52dc918ed23.tar.gz
crawl-ref-a259dab223f9a339eb64c16a5e68b52dc918ed23.zip
Show (unknown) in shopping list and stash tracker
This is for identified items in shops that are not yet identified by the player. Was already shown in actual shop menu.
Diffstat (limited to 'crawl-ref/source/stash.cc')
-rw-r--r--crawl-ref/source/stash.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/crawl-ref/source/stash.cc b/crawl-ref/source/stash.cc
index 40785622bc..64eff185d3 100644
--- a/crawl-ref/source/stash.cc
+++ b/crawl-ref/source/stash.cc
@@ -824,8 +824,10 @@ void ShopInfo::add_item(const item_def &sitem, unsigned price)
string ShopInfo::shop_item_name(const shop_item &si) const
{
- return make_stringf("%s (%u gold)",
- Stash::stash_item_name(si.item).c_str(), si.price);
+ return make_stringf("%s%s (%u gold)",
+ Stash::stash_item_name(si.item).c_str(),
+ shop_item_unknown(si.item) ? " (unknown)" : "",
+ si.price);
}
string ShopInfo::shop_item_desc(const shop_item &si) const