summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-book.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-05-05 06:05:12 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-05-05 06:05:12 +0000
commite95171de09bcfcc415b2c4fda74d66bcde537b2c (patch)
tree5db2f7f042fa64361a689f5720daf9eca8df86b5 /crawl-ref/source/spl-book.cc
parentc8df9af2cdf0cc4d5b845d3200be3ffdb4727e87 (diff)
downloadcrawl-ref-e95171de09bcfcc415b2c4fda74d66bcde537b2c.tar.gz
crawl-ref-e95171de09bcfcc415b2c4fda74d66bcde537b2c.zip
[1712555] [1712558] Prices of rings of slaying were being miscalculated; also
fixed being able to memorise spells while berserk (Rob Vollmert). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1408 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spl-book.cc')
-rw-r--r--crawl-ref/source/spl-book.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/crawl-ref/source/spl-book.cc b/crawl-ref/source/spl-book.cc
index 5db4bbaf06..d9b9652ac4 100644
--- a/crawl-ref/source/spl-book.cc
+++ b/crawl-ref/source/spl-book.cc
@@ -1149,7 +1149,13 @@ bool learn_spell(void)
mpr("You are too confused!");
return (false);
}
-
+
+ if (you.berserker)
+ {
+ canned_msg(MSG_TOO_BERSERK);
+ return (false);
+ }
+
if (!which_spellbook( book, spell ))
return (false);