diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-08-18 10:44:12 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-08-18 10:44:12 +0000 |
commit | badc21cfcd7a35b56e3b61ba136315e5bd2930d1 (patch) | |
tree | 1bf5cc209bd55aa118b8fbb446b837b2fb8aaf34 /crawl-ref/source/item_use.cc | |
parent | 2a67f62a9a071d355878ae4ea8bde19f87162d34 (diff) | |
download | crawl-ref-badc21cfcd7a35b56e3b61ba136315e5bd2930d1.tar.gz crawl-ref-badc21cfcd7a35b56e3b61ba136315e5bd2930d1.zip |
FR 2810959: If a player reads a spellbook which is in inventory, then looks at
a spell's description, pressing 'M' will try to memorise that spell from
that particular book.
FR 2815575: Instead of moving "spell levels left" to the top of the spell
memorisation menu, make it light-green in color.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10558 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r-- | crawl-ref/source/item_use.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc index 3779037005..c5cbc035f2 100644 --- a/crawl-ref/source/item_use.cc +++ b/crawl-ref/source/item_use.cc @@ -4667,7 +4667,11 @@ static void handle_read_book(int item_slot) return; } - describe_spell(spell); + describe_spell(spell, &book); + + // Player memorised spell which was being looked at. + if (you.turn_is_over) + return; } } |