summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/describe.cc
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2009-06-02 09:08:25 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2009-06-02 09:08:25 +0000
commitc70705a813e3a43c321f024f952a07291bf28a5c (patch)
treec3ffa681497312aa6ceba134a894d5b762ef4d8a /crawl-ref/source/describe.cc
parentb8b49ddd428d786879014d4623996f0dc37f7115 (diff)
downloadcrawl-ref-c70705a813e3a43c321f024f952a07291bf28a5c.tar.gz
crawl-ref-c70705a813e3a43c321f024f952a07291bf28a5c.zip
FR 2722830 and related changes:
* Memorization now lists all spells in all carried books (minus spells which are already memorized or which can never be memorized because of the player's species), sorted by easy of memorization. * Miscast effects from failing to memorize from out of the Necronomicon, the book of Demonology and the book of Annihilations is commented out, pending figuring out how to do it with the new interface. * Spells which can't be memorized because of the player's species are highlighted as light red when reading a spell book, and a note is added when describing the spell. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9883 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/describe.cc')
-rw-r--r--crawl-ref/source/describe.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/crawl-ref/source/describe.cc b/crawl-ref/source/describe.cc
index 796b75b7e1..52f0b4b3e2 100644
--- a/crawl-ref/source/describe.cc
+++ b/crawl-ref/source/describe.cc
@@ -2494,6 +2494,15 @@ void describe_spell(spell_type spelled)
#endif
}
+ if (you_cannot_memorise(spelled))
+ {
+ description += "$$";
+ description += "You cannot memorise or cast this spell because you "
+ "are a ";
+ description += lowercase_string(species_name(you.species, 0));
+ description += ".";
+ }
+
print_description(description);
mouse_control mc(MOUSE_MODE_MORE);