summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/art-func.h
diff options
context:
space:
mode:
authorreaverb <reaverb.Crawl@gmail.com>2014-06-18 20:20:23 -0400
committerreaverb <reaverb.Crawl@gmail.com>2014-06-18 23:52:58 -0400
commit46ce0616d57d90a693cfe757f59fa6ce3097453d (patch)
treeac631984d53c5c17c1ad543dc6a14f5ecadeb2dd /crawl-ref/source/art-func.h
parent9b7421e1bc34b7e424dcfd497249e2e32f0a6e0c (diff)
downloadcrawl-ref-46ce0616d57d90a693cfe757f59fa6ce3097453d.tar.gz
crawl-ref-46ce0616d57d90a693cfe757f59fa6ce3097453d.zip
Re-implement the dragon slaying brand for Wyrmbane
As a rare unrandart, it can be exempt from the normal rules for what's deep enough for a weapon brand.
Diffstat (limited to 'crawl-ref/source/art-func.h')
-rw-r--r--crawl-ref/source/art-func.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/crawl-ref/source/art-func.h b/crawl-ref/source/art-func.h
index 00d6d35c29..a58c4e0bb7 100644
--- a/crawl-ref/source/art-func.h
+++ b/crawl-ref/source/art-func.h
@@ -683,6 +683,15 @@ static void _WYRMBANE_equip(item_def *item, bool *show_msgs, bool unmeld)
static void _WYRMBANE_melee_effects(item_def* weapon, actor* attacker,
actor* defender, bool mondied, int dam)
{
+ if (is_dragonkind(defender) && !mondied)
+ {
+ mprf("<grey>%s %s!</grey>",
+ defender->name(DESC_THE).c_str(),
+ defender->conj_verb("convulse").c_str());
+
+ defender->hurt(attacker, 1 + random2(3*dam/2));
+ }
+
if (!mondied || !defender || !is_dragonkind(defender)
|| defender->is_summoned()
|| defender->is_monster()