summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/acr.cc
diff options
context:
space:
mode:
authorMatthew Cline <zelgadis@sourceforge.net>2009-11-01 03:04:22 -0800
committerMatthew Cline <zelgadis@sourceforge.net>2009-11-01 03:05:46 -0800
commit97d457112c33f7be80b502b2ade43e7ba3162c54 (patch)
tree2b62e46834e38f09d0f9fcb192cbe8e757c76640 /crawl-ref/source/acr.cc
parent9f6de9fef21ca311f82a0aa5cc7f5067e4e62af9 (diff)
downloadcrawl-ref-97d457112c33f7be80b502b2ade43e7ba3162c54.tar.gz
crawl-ref-97d457112c33f7be80b502b2ade43e7ba3162c54.zip
Access shopping list via '$'
If you have anything on your shopping list, pressing '$' will display it as a menu. You can then select a thing from the menu, either to travel to it or examine it, like with the stash tracker menu.
Diffstat (limited to 'crawl-ref/source/acr.cc')
-rw-r--r--crawl-ref/source/acr.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc
index 7928d56200..74d14eb3e1 100644
--- a/crawl-ref/source/acr.cc
+++ b/crawl-ref/source/acr.cc
@@ -2008,8 +2008,12 @@ void process_command( command_type cmd )
break;
case CMD_LIST_GOLD:
- mprf("You have %d gold piece%s.",
- you.gold, you.gold != 1 ? "s" : "");
+ if (shopping_list.size() == 0)
+ mprf("You have %d gold piece%s.",
+ you.gold, you.gold != 1 ? "s" : "");
+ else
+ shopping_list.display();
+
break;
case CMD_INSCRIBE_ITEM: