summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/invent.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-03 13:15:22 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-03 13:15:22 +0000
commit5c43b114a2f8e76a27852e1596e89255dbcaa96a (patch)
tree07a09d993db6ad7864f366136fec197d4bc6f74f /crawl-ref/source/invent.cc
parent64c579b2ffaaff8ff6aa49fac6520218d09ac559 (diff)
downloadcrawl-ref-5c43b114a2f8e76a27852e1596e89255dbcaa96a.tar.gz
crawl-ref-5c43b114a2f8e76a27852e1596e89255dbcaa96a.zip
Fix 1905715: Print "nothing appears to happen" when zapping /digging
without effect, same as for enchantment wands. Fix 1905740: Only list actual spellbooks for memorise prompt. Also: s/memorize/memorise git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3508 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/invent.cc')
-rw-r--r--crawl-ref/source/invent.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/invent.cc b/crawl-ref/source/invent.cc
index 49e497070a..53289b4036 100644
--- a/crawl-ref/source/invent.cc
+++ b/crawl-ref/source/invent.cc
@@ -754,6 +754,9 @@ static bool item_class_selected(const item_def &i, int selector)
case OSEL_WIELD:
return (itype == OBJ_WEAPONS || itype == OBJ_STAVES
|| itype == OBJ_MISCELLANY);
+ case OSEL_MEMORISE:
+ return (itype == OBJ_BOOKS && i.sub_type != BOOK_MANUAL
+ && (i.sub_type != BOOK_DESTRUCTION || !item_type_known(i)));
case OBJ_SCROLLS:
return (itype == OBJ_SCROLLS || itype == OBJ_BOOKS);
case OSEL_EQUIP: