From badc21cfcd7a35b56e3b61ba136315e5bd2930d1 Mon Sep 17 00:00:00 2001 From: zelgadis Date: Tue, 18 Aug 2009 10:44:12 +0000 Subject: 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 --- crawl-ref/source/spl-book.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crawl-ref/source/spl-book.h') 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 ); -- cgit v1.2.3-54-g00ecf