From 5c43b114a2f8e76a27852e1596e89255dbcaa96a Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Mon, 3 Mar 2008 13:15:22 +0000 Subject: 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 --- crawl-ref/source/invent.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crawl-ref/source/invent.cc') 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: -- cgit v1.2.3-54-g00ecf