summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player-act.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-11-01 08:00:54 +0100
committerAdam Borowski <kilobyte@angband.pl>2013-11-01 10:13:43 +0100
commit73b55956c36b79b0a25d61dca4d3c59a030263c3 (patch)
tree397795d3d931782ca062865e2d04aca7ac6312aa /crawl-ref/source/player-act.cc
parente73499daabc7998916780549d51c7f3db2eccbc2 (diff)
downloadcrawl-ref-73b55956c36b79b0a25d61dca4d3c59a030263c3.tar.gz
crawl-ref-73b55956c36b79b0a25d61dca4d3c59a030263c3.zip
Dj: disallow berserk.
Angels and demons can't zerk, and here we got an excuse. Balance reasons for Trog are obvious (no hunger). Perhaps Trog should be forbidden outright (made of magic)?
Diffstat (limited to 'crawl-ref/source/player-act.cc')
-rw-r--r--crawl-ref/source/player-act.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/player-act.cc b/crawl-ref/source/player-act.cc
index 85dc478171..e354a7f8e9 100644
--- a/crawl-ref/source/player-act.cc
+++ b/crawl-ref/source/player-act.cc
@@ -670,6 +670,14 @@ bool player::can_go_berserk(bool intentional, bool potion, bool quiet) const
return false;
}
+ if (you.species == SP_DJINNI)
+ {
+ if (verbose)
+ mpr("Only creatures of flesh and blood can berserk.");
+
+ return false;
+ }
+
if (is_lifeless_undead())
{
if (verbose)