summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-util.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-13 23:05:56 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-13 23:05:56 +0000
commit8d4516f8e47c12b8acc7736ed8f66d420795e3d5 (patch)
tree28c221f41b9778041cfaaa5c929a372942b7e010 /crawl-ref/source/mon-util.cc
parent51e9a455676bd4e59ccc2b0cd0854f129c26d92c (diff)
downloadcrawl-ref-8d4516f8e47c12b8acc7736ed8f66d420795e3d5.tar.gz
crawl-ref-8d4516f8e47c12b8acc7736ed8f66d420795e3d5.zip
Implement FR 1928421: let Snorg go berserk!
There's a flat 5% chance of Snorg going berserk each turn an enemy (you or an ally) is in sight. Once he is wounded, even if just by a scratch, that chance increases to 20% per turn. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5795 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mon-util.cc')
-rw-r--r--crawl-ref/source/mon-util.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc
index 15ba6e9e30..0408932739 100644
--- a/crawl-ref/source/mon-util.cc
+++ b/crawl-ref/source/mon-util.cc
@@ -4273,7 +4273,7 @@ void monsters::attacking(actor * /* other */)
void monsters::go_berserk(bool /* intentional */)
{
- if ( !this->can_go_berserk() )
+ if (!this->can_go_berserk())
return;
if (has_ench(ENCH_SLOW))