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 | |
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')
-rw-r--r-- | crawl-ref/source/art-data.txt | 7 | ||||
-rw-r--r-- | crawl-ref/source/art-func.h | 20 | ||||
-rw-r--r-- | crawl-ref/source/dat/descript/unrand.txt | 5 |
3 files changed, 32 insertions, 0 deletions
diff --git a/crawl-ref/source/art-data.txt b/crawl-ref/source/art-data.txt index 5cfe72e473..ce4984d01e 100644 --- a/crawl-ref/source/art-data.txt +++ b/crawl-ref/source/art-data.txt @@ -1119,6 +1119,13 @@ PLUS: +2 BRAND: SPARM_ARCHMAGI STEALTH: -20 +NAME: arc blade +INSCRIP: discharge, +OBJ: OBJ_WEAPONS/WPN_CUTLASS +PLUS: +3/+5 +COLOUR: ETC_ELECTRICITY +BOOL: elec + # This is the first of two amulets used to test suppression aura. # Together, they confer every randart effect except for a few that are # determined explicitly by checking whether a certain amulet is worn 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); +} diff --git a/crawl-ref/source/dat/descript/unrand.txt b/crawl-ref/source/dat/descript/unrand.txt index ad837fb16f..844f2f048b 100644 --- a/crawl-ref/source/dat/descript/unrand.txt +++ b/crawl-ref/source/dat/descript/unrand.txt @@ -518,6 +518,11 @@ effects from the residual hexes and magical energies it was once subjected to on a daily basis; spellcasters able to get a handle on its power, however, will find it enhances their spell power. %%%% +arc blade + +A cutlass somehow crafted from pure electricity. Striking an enemy with it +occasionally unleashes a static discharge. +%%%% milk chocolate This item is a debugging aid, granting a vast array of mostly beneficial |