summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/shopping.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-03-15 16:25:56 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-03-15 16:25:56 +0000
commitb0e7dda3593b5e6022799727f3eb177fae3a5987 (patch)
tree4d87a243e4c1ac9c80c2c847751a668d3d66285e /crawl-ref/source/shopping.cc
parent66a704276821c4400a67aede782c580e1992bddd (diff)
downloadcrawl-ref-b0e7dda3593b5e6022799727f3eb177fae3a5987.tar.gz
crawl-ref-b0e7dda3593b5e6022799727f3eb177fae3a5987.zip
* Tweak shop command help for Tiles.
* Hook card descriptions into database. This is far from optimal at the moment, e.g. searching for the portal card returns the Portal spell as best match. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9497 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/shopping.cc')
-rw-r--r--crawl-ref/source/shopping.cc17
1 files changed, 8 insertions, 9 deletions
diff --git a/crawl-ref/source/shopping.cc b/crawl-ref/source/shopping.cc
index 15fb4b87de..982cbb910c 100644
--- a/crawl-ref/source/shopping.cc
+++ b/crawl-ref/source/shopping.cc
@@ -105,12 +105,11 @@ static void _list_shop_keys(const std::string &purchasable, bool viewing)
+ (viewing ? "Examine" : "Buy");
}
snprintf(buf, sizeof buf,
+ "[<w>x</w>/<w>Esc</w>"
#ifdef USE_TILE
- "[<w>x</w>/<w>Esc</w>/<w>R-Click</w>] exit"
-#else
- "[<w>x</w>/<w>Esc</w>] exit"
+ "/<w>R-Click</w>"
#endif
- " [<w>!</w>] %s %s",
+ "] exit [<w>!</w>] %s %s",
(viewing ? "to select items " : "to examine items"),
pkeys.c_str());
@@ -120,13 +119,13 @@ static void _list_shop_keys(const std::string &purchasable, bool viewing)
cgotoxy(1, numlines, GOTO_CRT);
fs = formatted_string::parse_string(
+ "[<w>Enter</w>"
#ifdef USE_TILE
- "[<w>?</w>/<w>*</w>] inventory [<w>\\</w>] known items "
- "[<w>Enter</w>/<w>L-Click</w>] make purchase");
-#else
- "[<w>Enter</w>] make purchase [<w>\\</w>] list known items "
- "[<w>?</w>/<w>*</w>] inventory");
+ "/<w>L-Click</w>"
#endif
+ "] make purchase [<w>\\</w>] list known items "
+ "[<w>?</w>/<w>*</w>] inventory");
+
fs.cprintf("%*s", get_number_of_cols() - fs.length() - 1, "");
fs.display();
}