summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-book.h
diff options
context:
space:
mode:
authorJohanna Ploog <j-p-e-g@users.sourceforge.net>2010-02-23 01:11:22 +0100
committerJohanna Ploog <j-p-e-g@users.sourceforge.net>2010-02-23 01:11:22 +0100
commit8667fe46808e8dca18fcdf568613e0da572be667 (patch)
treecf9e31a6e33afd38f3525cb32ac3d38e09e934cd /crawl-ref/source/spl-book.h
parente13d4aaf17222d32e822e6927167517a5e9f9e7e (diff)
downloadcrawl-ref-8667fe46808e8dca18fcdf568613e0da572be667.tar.gz
crawl-ref-8667fe46808e8dca18fcdf568613e0da572be667.zip
Implement #624: Allow browsing of identified "risky" spellbooks.
* If you encounter the book of Annihilations/Demonology or Necronomicon in a bookshop, you can now browse its contents. * If you buy such a book, it is already identified, so you can continue to read the spell descriptions at your leisure. * You can still not memorise these spells if you don't fulfil the requirements. They will also be coloured useless while that is the case. * If you find these books lying around in the dungeon, reading them will _not_ identify them (or give away their spell list) unless you meet the requirements. [1] I also added the old "beyond your current level of understanding" line to both book and corresponding spell descriptions. Tested for the Necronomicon seen in a shop, Demonology seen in a shop and bought, and Annihilations found unidentified (in wizard mode), using (r)ead, (i)nventory, (M)emorise, ?/, and the Tiles mouseclick interface (again, read/describe/Memorise commands and Memorise tab). [1] I don't know if it's worth keeping that restriction. If we do, we should add an autoinscription because the simple act of (r)eading it will give away that it's one of those three special books, though not which one.
Diffstat (limited to 'crawl-ref/source/spl-book.h')
-rw-r--r--crawl-ref/source/spl-book.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/spl-book.h b/crawl-ref/source/spl-book.h
index aaa3e09bbb..cbd7390cc7 100644
--- a/crawl-ref/source/spl-book.h
+++ b/crawl-ref/source/spl-book.h
@@ -39,7 +39,7 @@ bool learn_spell(spell_type spell, int book = NUM_BOOKS,
bool is_safest_book = true);
std::string desc_cannot_memorise_reason(bool undead);
-bool player_can_read_spellbook( const item_def &book );
+bool player_can_memorise_from_spellbook( const item_def &book );
spell_type which_spell_in_book(const item_def &book, int spl);
spell_type which_spell_in_book(int sbook_type, int spl);