summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/shopping.cc
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-14 08:04:39 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-14 08:04:39 +0000
commit0a14dac08b6339e154870297c2035567a5197a6a (patch)
tree4e8c7868988dc4b93479be9a1241230f3b48c7ac /crawl-ref/source/shopping.cc
parent8457ded2704858f5d6f7f7db5f7c0c8756f5fd47 (diff)
downloadcrawl-ref-0a14dac08b6339e154870297c2035567a5197a6a.tar.gz
crawl-ref-0a14dac08b6339e154870297c2035567a5197a6a.zip
Use the menu item colour prefixes with note_items, so that (for example)
you can only note identified books, or you can note picking up unidentified randarts. When an item is bought from a shop, mpr() a line about the item, so that you can use note_messages to keep note of everything you've bought. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5811 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/shopping.cc')
-rw-r--r--crawl-ref/source/shopping.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/shopping.cc b/crawl-ref/source/shopping.cc
index ae8b698e69..7d671c6653 100644
--- a/crawl-ref/source/shopping.cc
+++ b/crawl-ref/source/shopping.cc
@@ -339,6 +339,12 @@ static void _purchase( int shop, int item_got, int cost, bool id )
origin_purchased(item);
+ // This is so that note_messages can be used to note items being
+ // bought, and also so you can use message history to review
+ // what you bought.
+ mprf("You bought %s.", item.name(DESC_NOCAP_A, false, id).c_str());
+ mesclr();
+
if ( id )
{
// Identify the item and its type.