diff options
author | wheals <shm.mark@gmail.com> | 2013-12-17 14:27:30 -0500 |
---|---|---|
committer | Shmuale Mark <shm.mark@gmail.com> | 2014-02-26 01:11:57 -0500 |
commit | 2ad780872f835b93cb97db977eacd071706dba89 (patch) | |
tree | e826b688b23c22a70399a140a1f518bf0af80e70 /crawl-ref/source/art-func.h | |
parent | cbd6d6ad29919e5500bc673c5f683331984d83f5 (diff) | |
download | crawl-ref-2ad780872f835b93cb97db977eacd071706dba89.tar.gz crawl-ref-2ad780872f835b93cb97db977eacd071706dba89.zip |
The +7,+7 lajatang of Order {silver, rMut}
The code is mostly based off of Grunt's lajatang of the Silver Moon patch.
Diffstat (limited to 'crawl-ref/source/art-func.h')
-rw-r--r-- | crawl-ref/source/art-func.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/crawl-ref/source/art-func.h b/crawl-ref/source/art-func.h index c5a89120fc..42742d8944 100644 --- a/crawl-ref/source/art-func.h +++ b/crawl-ref/source/art-func.h @@ -36,6 +36,7 @@ #include "spl-miscast.h" // For Staff of Wucad Mu and Scythe of Curses miscasts #include "spl-summoning.h" // For Zonguldrok animating dead #include "terrain.h" // For storm bow +#include "throw.h" // For silver damage /******************* * Helper functions. @@ -1004,3 +1005,29 @@ static void _SPELLBINDER_melee_effects(item_def* weapon, actor* attacker, } } } + +/////////////////////////////////////////////////// + +static void _ORDER_equip(item_def *item, bool *show_msgs, bool unmeld) +{ + _equip_mpr(show_msgs, "You feel Zin shielding your body from chaos."); +} + +static void _ORDER_melee_effects(item_def* item, actor* attacker, + actor* defender, bool mondied, int dam) +{ + if (!mondied) + { + int tempdam = dam; + bolt tempbeam; + string msg = ""; + silver_damages_victim(tempbeam, defender, tempdam, msg); + if (tempdam > dam) + { + tempdam -= dam; + if (you.can_see(defender)) + mpr(msg.c_str()); + defender->hurt(attacker, tempdam); + } + } +} |