From 5324e928729d678c71ef055eea9623d16b73cb2e Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Sat, 12 Sep 2009 19:25:13 +0000 Subject: Adapt Matthew's new memorisation interface for tiles, using the same display as for spellcasting. Also force a redraw() if the player clicked on a spell. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10661 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/spl-book.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (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 b1ba53796b..a3adf58dd1 100644 --- a/crawl-ref/source/spl-book.h +++ b/crawl-ref/source/spl-book.h @@ -51,8 +51,8 @@ int read_book( item_def &item, read_book_action_type action ); 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 learn_spell(spell_type spell, const item_def *book = NULL, + bool is_safest_book = true); bool player_can_read_spellbook( const item_def &book ); @@ -65,6 +65,7 @@ bool is_memorised(spell_type spell); bool you_cannot_memorise(spell_type spell); bool has_spells_to_memorise(); +std::vector get_mem_spell_list(); int spellbook_contents( item_def &book, read_book_action_type action, formatted_string *fs = NULL ); -- cgit v1.2.3-54-g00ecf