diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-01-12 21:56:27 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-01-12 21:56:27 +0000 |
commit | 67eb55632c83fa0065a01b65f68410ae3aaba5ca (patch) | |
tree | 3d3c43a0f3c6be51b6ce168f82e39156c33a0e2b /crawl-ref/source/item_use.cc | |
parent | d0f739d802e77186463731df1d6736db7daf983e (diff) | |
download | crawl-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/item_use.cc')
-rw-r--r-- | crawl-ref/source/item_use.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc index 4e28412557..e5b12df2ef 100644 --- a/crawl-ref/source/item_use.cc +++ b/crawl-ref/source/item_use.cc @@ -4503,6 +4503,13 @@ void tile_use_item(int idx, InvAction act) return; case OBJ_BOOKS: + if (you.inv[idx].sub_type == BOOK_MANUAL + || you.inv[idx].sub_type == BOOK_DESTRUCTION) + { + handle_read_book(idx); + return; + } + // else it's a spellbook learn_spell(idx); return; |