summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/libgui.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-01-12 21:56:27 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-01-12 21:56:27 +0000
commit67eb55632c83fa0065a01b65f68410ae3aaba5ca (patch)
tree3d3c43a0f3c6be51b6ce168f82e39156c33a0e2b /crawl-ref/source/libgui.cc
parentd0f739d802e77186463731df1d6736db7daf983e (diff)
downloadcrawl-ref-67eb55632c83fa0065a01b65f68410ae3aaba5ca.tar.gz
crawl-ref-67eb55632c83fa0065a01b65f68410ae3aaba5ca.zip
Whoops, forgot about manuals.
Don't attempt to memorize manuals or the book of destruction. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3265 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/libgui.cc')
-rw-r--r--crawl-ref/source/libgui.cc12
1 files changed, 9 insertions, 3 deletions
diff --git a/crawl-ref/source/libgui.cc b/crawl-ref/source/libgui.cc
index 3c98350c39..68b49f4609 100644
--- a/crawl-ref/source/libgui.cc
+++ b/crawl-ref/source/libgui.cc
@@ -1249,12 +1249,18 @@ static int handle_mouse_motion(int mouse_x, int mouse_y, bool init)
case OBJ_WANDS:
desc += "*(z)ap";
break;
+ case OBJ_BOOKS:
+ if (item_type_known(you.inv[ix])
+ && you.inv[ix].sub_type != BOOK_MANUAL
+ && you.inv[ix].sub_type != BOOK_DESTRUCTION)
+ {
+ desc += "*(M)emorize";
+ break;
+ }
+ // else fall-through
case OBJ_SCROLLS:
desc += "*(r)ead";
break;
- case OBJ_BOOKS:
- desc += "*(M)emorize";
- break;
case OBJ_JEWELLERY:
desc += "*(P)ut on";
break;