summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-book.cc
diff options
context:
space:
mode:
authorPete Hurst <pete@streamuniverse.tv>2013-06-24 12:50:10 +0100
committerPete Hurst <pete@streamuniverse.tv>2013-06-24 12:50:10 +0100
commit356a7c0c03c3c4de73b4b2daa3fcd4906b3d835f (patch)
tree623dc1261f2923a0b18b08ba862f56faf30826b1 /crawl-ref/source/spl-book.cc
parentea6b2e385d6f9e0df18a281e3115503daa5d34e4 (diff)
parentc4875c4b34bf4baf1c882607ef78e914080b91f3 (diff)
downloadcrawl-ref-356a7c0c03c3c4de73b4b2daa3fcd4906b3d835f.tar.gz
crawl-ref-356a7c0c03c3c4de73b4b2daa3fcd4906b3d835f.zip
Merge branch 'newskalds' of git://gitorious.org/~lainiw/crawl/lain-crawl into newskald
Conflicts: crawl-ref/source/mon-stuff.cc crawl-ref/source/ouch.cc crawl-ref/source/spl-book.cc
Diffstat (limited to 'crawl-ref/source/spl-book.cc')
-rw-r--r--crawl-ref/source/spl-book.cc10
1 files changed, 7 insertions, 3 deletions
diff --git a/crawl-ref/source/spl-book.cc b/crawl-ref/source/spl-book.cc
index 40ba6f2445..76be7c1800 100644
--- a/crawl-ref/source/spl-book.cc
+++ b/crawl-ref/source/spl-book.cc
@@ -241,6 +241,7 @@ int book_rarity(uint8_t which_book)
case BOOK_YOUNG_POISONERS:
case BOOK_WAR_CHANTS:
+ case BOOK_BATTLE:
case BOOK_DEBILITATION:
return 5;
@@ -293,7 +294,8 @@ int book_rarity(uint8_t which_book)
#if TAG_MAJOR_VERSION == 34
case BOOK_STALKING:
- case BOOK_MUTATIONS:
+ // enum replaced with BOOK_BATTLE
+ // case BOOK_MUTATIONS:
return 100;
#endif
@@ -563,7 +565,8 @@ bool you_cannot_memorise(spell_type spell, bool &form)
|| spell == SPELL_POISON_WEAPON
|| spell == SPELL_SURE_BLADE
// could be useful if it didn't require wielding
- || spell == SPELL_TUKIMAS_DANCE))
+ || spell == SPELL_TUKIMAS_DANCE
+ || spell == SPELL_SPECTRAL_WEAPON))
{
rc = true, form = false;
}
@@ -572,7 +575,8 @@ bool you_cannot_memorise(spell_type spell, bool &form)
&& (spell == SPELL_ICE_FORM
|| spell == SPELL_OZOCUBUS_ARMOUR
|| spell == SPELL_DEATHS_DOOR
- || spell == SPELL_LEDAS_LIQUEFACTION))
+ || spell == SPELL_LEDAS_LIQUEFACTION
+ || spell == SPELL_SPIRIT_SHIELD))
{
rc = true, form = false;
}