summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/itemname.cc
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2009-06-04 19:46:18 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2009-06-04 19:46:18 +0000
commitd5c46b944d92e3b36aaccb50135d8132e26a2228 (patch)
tree5d12d8846c29cc88e8b43d43986256e23c3a18cd /crawl-ref/source/itemname.cc
parented6970cf64309f5b1741304aa1c828cc0319b00d (diff)
downloadcrawl-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/itemname.cc')
-rw-r--r--crawl-ref/source/itemname.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/itemname.cc b/crawl-ref/source/itemname.cc
index 4165023a5e..88186883c4 100644
--- a/crawl-ref/source/itemname.cc
+++ b/crawl-ref/source/itemname.cc
@@ -2452,7 +2452,8 @@ bool is_dangerous_item(const item_def &item, bool temp)
case OBJ_BOOKS:
// The Tome of Destruction is certainly risky.
- return (item.sub_type == BOOK_DESTRUCTION);
+ return (item.sub_type == BOOK_DESTRUCTION
+ || is_dangerous_spellbook(item));
default:
return (false);