diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-12-16 21:45:25 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-12-16 21:45:25 +0000 |
commit | 8f90ca2d3f04053e6ae824ed7796362ccda436bf (patch) | |
tree | b4a17530adc73aa728d4ba64809f78189e052b7c /crawl-ref/source/effects.cc | |
parent | 60cf3e365d5167e4088b39488de2a8eafe248dab (diff) | |
download | crawl-ref-8f90ca2d3f04053e6ae824ed7796362ccda436bf.tar.gz crawl-ref-8f90ca2d3f04053e6ae824ed7796362ccda436bf.zip |
Allow randart book names of the type "Aerial Bewitchment" or "Fiery
Darkness". (More synonyms welcome!)
Also, if a randart book is not a god gift occasionally give it an old
owner anyway, using make_name() like for shopkeepers.
I might have fixed the Divination issue. (It looks like for some reason
SPELL_NO_SPELL always returns true for Div, though I don't understand
why. At least in all three cases where I had this the counter for Div
spells was equal to 8 - spells in the book.)
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7849 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/effects.cc')
-rw-r--r-- | crawl-ref/source/effects.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc index 401ac27c9e..840139a34b 100644 --- a/crawl-ref/source/effects.cc +++ b/crawl-ref/source/effects.cc @@ -1441,7 +1441,7 @@ static void _do_book_acquirement(item_def &book, int agent) // lowest aviable level if all levels which the player can cast // have already been given. int max_level = std::min(9, you.get_experience_level()); - + std::vector<int> vec; for (int i = 1; i <= 9 && (vec.empty() || i <= max_level); i++) { |