From 0a14dac08b6339e154870297c2035567a5197a6a Mon Sep 17 00:00:00 2001 From: zelgadis Date: Sat, 14 Jun 2008 08:04:39 +0000 Subject: 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 --- crawl-ref/source/shopping.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'crawl-ref/source/shopping.cc') 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. -- cgit v1.2.3-54-g00ecf