summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilereg.cc
diff options
context:
space:
mode:
authorJohanna Ploog <j-p-e-g@users.sourceforge.net>2010-01-12 21:51:42 +0100
committerJohanna Ploog <j-p-e-g@users.sourceforge.net>2010-01-12 21:51:42 +0100
commit8f574480e681337439068d056108596ef7ce7f67 (patch)
tree0299e514f3fd614033d6c9f96deffd19dd2e9939 /crawl-ref/source/tilereg.cc
parent0b63c742e449325509fad22dc792257e18475c52 (diff)
downloadcrawl-ref-8f574480e681337439068d056108596ef7ce7f67.tar.gz
crawl-ref-8f574480e681337439068d056108596ef7ce7f67.zip
Without Spellcasting skill, make L-click on book call read_book instead.
Diffstat (limited to 'crawl-ref/source/tilereg.cc')
-rw-r--r--crawl-ref/source/tilereg.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/tilereg.cc b/crawl-ref/source/tilereg.cc
index 7c5eaaca62..04cbd5c33c 100644
--- a/crawl-ref/source/tilereg.cc
+++ b/crawl-ref/source/tilereg.cc
@@ -2821,7 +2821,8 @@ bool InventoryRegion::update_tip_text(std::string& tip)
case OBJ_BOOKS:
if (item_type_known(item)
&& item.sub_type != BOOK_MANUAL
- && item.sub_type != BOOK_DESTRUCTION)
+ && item.sub_type != BOOK_DESTRUCTION
+ && you.skills[SK_SPELLCASTING] > 0)
{
tip += "Memorise (M)";
if (wielded)