diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-06-04 19:46:18 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-06-04 19:46:18 +0000 |
commit | d5c46b944d92e3b36aaccb50135d8132e26a2228 (patch) | |
tree | 5d12d8846c29cc88e8b43d43986256e23c3a18cd /crawl-ref/source/spl-book.h | |
parent | ed6970cf64309f5b1741304aa1c828cc0319b00d (diff) | |
download | crawl-ref-d5c46b944d92e3b36aaccb50135d8132e26a2228.tar.gz crawl-ref-d5c46b944d92e3b36aaccb50135d8132e26a2228.zip |
Spellbook memorisation stuff:
* Simplify the message given when none of the available spells can
be memorised.
* The descriptions of the three dangerous spellbooks now mention that the
books will lash out at the player if a memorisation fails. Also, the
"some of the more powerful grimoires are not to be toyed with" warning
has been removed from all of the normal spellbooks, since the dangerous
spellbooks are adequetly warned.
* If a spell to be memorised is only available from a dangerous spell
book then colour that spell light red and warn the player if they
select it for memorisation. (Not yet handled is any logic for choosing
between multiple dangerous spell books if the same spell is in more than
one of them)
* is_dangerous_item() now returns true for the three dangerous spellbooks,
so they'll be colored differently in the inventory.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9891 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spl-book.h')
-rw-r--r-- | crawl-ref/source/spl-book.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/spl-book.h b/crawl-ref/source/spl-book.h index 3a05756785..ae57a4ebe1 100644 --- a/crawl-ref/source/spl-book.h +++ b/crawl-ref/source/spl-book.h @@ -78,4 +78,7 @@ bool make_book_theme_randart(item_def &book, void make_book_Roxanne_special(item_def *book); bool book_has_title(const item_def &book); + +bool is_dangerous_spellbook(const item_def &book); +bool is_dangerous_spellbook(const int book_type); #endif |