summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-book.cc
diff options
context:
space:
mode:
authorEd Gonzalez <ed.gonzalez3@gmail.com>2013-06-12 12:06:32 -0700
committerEd Gonzalez <ed.gonzalez3@gmail.com>2013-06-12 12:06:32 -0700
commitb6e942d54b2a4bd90fbbd550a22dbbbb74ea423b (patch)
treeaa1be0ad0dac38161889bf953b6d2091b992eb0d /crawl-ref/source/spl-book.cc
parent8e3e18e8898df2c752470f1eb1cfdae82d053695 (diff)
downloadcrawl-ref-b6e942d54b2a4bd90fbbd550a22dbbbb74ea423b.tar.gz
crawl-ref-b6e942d54b2a4bd90fbbd550a22dbbbb74ea423b.zip
Temporarily moved book of Battle enum until next major version.
To allow save compatibility, the book of Battle now occupies the old enum of book of Morphology, until the next major version bump. Once that happens, it can take its place near the other starter books. Note that there are two places in book-data.h specifying spells in the book of Battle (one for now, one for after the version bump), which must be kept synced.
Diffstat (limited to 'crawl-ref/source/spl-book.cc')
-rw-r--r--crawl-ref/source/spl-book.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/spl-book.cc b/crawl-ref/source/spl-book.cc
index ad70629a17..1b8c437b4f 100644
--- a/crawl-ref/source/spl-book.cc
+++ b/crawl-ref/source/spl-book.cc
@@ -242,6 +242,7 @@ int book_rarity(uint8_t which_book)
case BOOK_YOUNG_POISONERS:
case BOOK_WAR_CHANTS:
+ case BOOK_BATTLE:
case BOOK_DEBILITATION:
return 5;
@@ -294,7 +295,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