summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/misc.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2009-12-20 17:27:24 +0100
committerAdam Borowski <kilobyte@angband.pl>2009-12-20 19:09:23 +0100
commitfe2bf66390e67cdb54c0a8e455689258e6fa4ef2 (patch)
tree7774b5554df5b1843b7e09a47099ad6f9e30a3ef /crawl-ref/source/misc.cc
parent9dfbca5a88a2f5e77e050391fe3a204b36fc04b3 (diff)
downloadcrawl-ref-fe2bf66390e67cdb54c0a8e455689258e6fa4ef2.tar.gz
crawl-ref-fe2bf66390e67cdb54c0a8e455689258e6fa4ef2.zip
Make clarity prevent berserk. Only Trog may override this, and even then,
there's a penalty to success rate.
Diffstat (limited to 'crawl-ref/source/misc.cc')
-rw-r--r--crawl-ref/source/misc.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/misc.cc b/crawl-ref/source/misc.cc
index b528df7766..79bb102b1c 100644
--- a/crawl-ref/source/misc.cc
+++ b/crawl-ref/source/misc.cc
@@ -2701,11 +2701,11 @@ bool scramble(void)
return (true);
}
-bool go_berserk(bool intentional)
+bool go_berserk(bool intentional, bool no_clarity)
{
ASSERT(!crawl_state.arena);
- if (!you.can_go_berserk(intentional))
+ if (!you.can_go_berserk(intentional, no_clarity))
return (false);
if (Tutorial.tutorial_left)