summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-book.h
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2009-08-18 10:44:12 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2009-08-18 10:44:12 +0000
commitbadc21cfcd7a35b56e3b61ba136315e5bd2930d1 (patch)
tree1bf5cc209bd55aa118b8fbb446b837b2fb8aaf34 /crawl-ref/source/spl-book.h
parent2a67f62a9a071d355878ae4ea8bde19f87162d34 (diff)
downloadcrawl-ref-badc21cfcd7a35b56e3b61ba136315e5bd2930d1.tar.gz
crawl-ref-badc21cfcd7a35b56e3b61ba136315e5bd2930d1.zip
FR 2810959: If a player reads a spellbook which is in inventory, then looks at
a spell's description, pressing 'M' will try to memorise that spell from that particular book. FR 2815575: Instead of moving "spell levels left" to the top of the spell memorisation menu, make it light-green in color. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10558 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spl-book.h')
-rw-r--r--crawl-ref/source/spl-book.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/spl-book.h b/crawl-ref/source/spl-book.h
index ae57a4ebe1..50803c3bbe 100644
--- a/crawl-ref/source/spl-book.h
+++ b/crawl-ref/source/spl-book.h
@@ -49,7 +49,10 @@ int read_book( item_def &item, read_book_action_type action );
* called from: acr
* *********************************************************************** */
bool player_can_memorise(const item_def &book);
+bool can_learn_spell(bool silent = false);
bool learn_spell();
+bool learn_spell(spell_type spell, const item_def &book,
+ bool is_safest_book);
bool player_can_read_spellbook( const item_def &book );