diff options
author | Steve Melenchuk <smelenchuk@gmail.com> | 2013-12-31 10:23:40 -0700 |
---|---|---|
committer | Steve Melenchuk <smelenchuk@gmail.com> | 2014-02-10 18:59:00 -0700 |
commit | d136198950e1be072b51b48b3c3a056b1285722c (patch) | |
tree | 3e1e8dff054a89c9e1ae0b78493e2c10bbab4366 /crawl-ref/source/art-func.h | |
parent | 669e26a25575c995e83d753008cb9c60eaca5f64 (diff) | |
download | crawl-ref-d136198950e1be072b51b48b3c3a056b1285722c.tar.gz crawl-ref-d136198950e1be072b51b48b3c3a056b1285722c.zip |
Unrand: the +3,+5 arc blade {discharge, rElec}.
It is a cutlass that casts Static Discharge centred on the target on one
in three melee hits - effectively an amplified electrocution brand.
Diffstat (limited to 'crawl-ref/source/art-func.h')
-rw-r--r-- | crawl-ref/source/art-func.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/crawl-ref/source/art-func.h b/crawl-ref/source/art-func.h index b72151e43c..ced8283b3d 100644 --- a/crawl-ref/source/art-func.h +++ b/crawl-ref/source/art-func.h @@ -940,3 +940,23 @@ static void _ELEMENTAL_STAFF_melee_effects(item_def* item, actor* attacker, defender->name(DESC_THE).c_str()); defender->hurt(attacker, d); } + +/////////////////////////////////////////////////// + +static void _ARC_BLADE_equip(item_def *item, bool *show_msgs, bool unmeld) +{ + _equip_mpr(show_msgs, "The arc blade crackles to life."); +} + +static void _ARC_BLADE_unequip(item_def *item, bool *show_msgs) +{ + _equip_mpr(show_msgs, "The arc blade stops crackling."); +} + +static void _ARC_BLADE_melee_effects(item_def* weapon, actor* attacker, + actor* defender, bool mondied, + int dam) +{ + if (!mondied && one_chance_in(3)) + cast_discharge(75 + random2avg(75, 2), false); +} |