diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-06-03 19:33:28 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-06-03 19:33:28 +0000 |
commit | b0e9dd8144192b80740469f3d27ae31e2a03cf65 (patch) | |
tree | d2d8d216527b182a39dc138fdbeec482266807c8 /crawl-ref/source/spl-book.cc | |
parent | c0baf5ac213911f1c407b1cbb5b1c41c69375522 (diff) | |
download | crawl-ref-b0e9dd8144192b80740469f3d27ae31e2a03cf65.tar.gz crawl-ref-b0e9dd8144192b80740469f3d27ae31e2a03cf65.zip |
* Fix compilation for Tiles.
* Make several of the old uniques appear earlier.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9886 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spl-book.cc')
-rw-r--r-- | crawl-ref/source/spl-book.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/crawl-ref/source/spl-book.cc b/crawl-ref/source/spl-book.cc index ca4d8ce51a..39db6c5a9a 100644 --- a/crawl-ref/source/spl-book.cc +++ b/crawl-ref/source/spl-book.cc @@ -1426,16 +1426,22 @@ static std::vector<spell_type> _get_mem_list() causes.push_back(make_stringf("you already known %u of them", num_known)); if (num_race) + { causes.push_back(make_stringf("%u cannot be memorized because of " "your race", num_race)); + } if (num_low_xl) + { causes.push_back(make_stringf("%u cannot be memorized because of " "your low experinece level", num_low_xl)); + } if (num_low_levels) + { causes.push_back(make_stringf("%u cannot be memorized because you " "don't have enough free spell levels", num_low_levels)); + } unsigned int total = num_known + num_race + num_low_xl + num_low_levels; if (total < all_spells.size()) @@ -1490,7 +1496,7 @@ static spell_type _choose_mem_spell(std::vector<spell_type> &spells) spell_menu.set_highlighter(NULL); spell_menu.set_tag("spell"); - + for (unsigned int i = 0; i < spells.size(); i++) { const spell_type spell = spells[i]; |