diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-12-18 22:11:21 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-12-18 22:11:21 +0000 |
commit | 10391ff4e676a29fbc2836d1494ed2aae4b112a7 (patch) | |
tree | e8bb4eea71390aa96f1b5f8cbfa753a4a93b24c7 /crawl-ref/source/spl-book.cc | |
parent | fe6051abc755060612c53ca92658cac2badb0a59 (diff) | |
download | crawl-ref-10391ff4e676a29fbc2836d1494ed2aae4b112a7.tar.gz crawl-ref-10391ff4e676a29fbc2836d1494ed2aae4b112a7.zip |
Lower max levels for randart books a bit (25 -> 22).
Fix naming by secondary type for real.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7863 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spl-book.cc')
-rw-r--r-- | crawl-ref/source/spl-book.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/spl-book.cc b/crawl-ref/source/spl-book.cc index 6cdb8e8dc7..dfd3db7e3b 100644 --- a/crawl-ref/source/spl-book.cc +++ b/crawl-ref/source/spl-book.cc @@ -2321,7 +2321,7 @@ bool make_book_theme_randart(item_def &book, int disc1, int disc2, // If there are several "secondary" disciplines with the same count // ignore all of them. Same, if the secondary discipline appears only once. - if (num2 > 1 && num1 > num2 || count[max2] < 2) + if (num2 > 1 && count[max1] > count[max2] || count[max2] < 2) max2 = max1; // Remove spells that don't fit either discipline. |