summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/item_use.cc
diff options
context:
space:
mode:
authorJude Brown <bookofjude@users.sourceforge.net>2010-01-07 20:16:25 +1000
committerJude Brown <bookofjude@users.sourceforge.net>2010-01-07 21:25:57 +1000
commit00005320c53fa3bdd66df6d805bf4f83fa43bec1 (patch)
tree02038aca86a5ce6d01965ba91b8e191ebe8a2e2b /crawl-ref/source/item_use.cc
parentcf714fb898d9a640ac9d7fc7f90d9a81294b572b (diff)
downloadcrawl-ref-00005320c53fa3bdd66df6d805bf4f83fa43bec1.tar.gz
crawl-ref-00005320c53fa3bdd66df6d805bf4f83fa43bec1.zip
Change "wrath" needles to "frenzy".
This introduces a new monster enchantment: ENCH_INSANE (or frenzy), sends the monster neutral and berserk at the same time. The needle now has the effect of causing this enchantment, instead of just sending monsters berserk. It now actually has some use, even if it is slightly risky.
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r--crawl-ref/source/item_use.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index 90ecdf2038..0b08db911e 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -2017,7 +2017,14 @@ static bool _rage_hit_victim (bolt &beam, actor* victim, int dmg,
if (!_blowgun_check(beam, victim))
return (false);
- victim->go_berserk(false);
+ if (victim->atype() == ACT_MONSTER)
+ {
+ monsters* mons = static_cast<monsters*>(victim);
+ mons->go_frenzy();
+ }
+ else
+ victim->go_berserk(false);
+
return (true);
}