diff options
author | Adam Borowski <kilobyte@angband.pl> | 2011-06-01 15:48:36 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2011-06-02 04:52:19 +0200 |
commit | e5f1859a948522fff4b0a6a9cfe96dda49c5dae6 (patch) | |
tree | 3d7cea9f90760d009d1b45718a39fcf052a8fe59 /crawl-ref/source/spl-wpnench.cc | |
parent | 86eedf0ae3e781aad67b31d97ee2cb3ed3266363 (diff) | |
download | crawl-ref-e5f1859a948522fff4b0a6a9cfe96dda49c5dae6.tar.gz crawl-ref-e5f1859a948522fff4b0a6a9cfe96dda49c5dae6.zip |
Fix missing messages on chaos and antimagic temp branding from the card.
Diffstat (limited to 'crawl-ref/source/spl-wpnench.cc')
-rw-r--r-- | crawl-ref/source/spl-wpnench.cc | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/crawl-ref/source/spl-wpnench.cc b/crawl-ref/source/spl-wpnench.cc index 7c6c4a23e4..f0542fa8cb 100644 --- a/crawl-ref/source/spl-wpnench.cc +++ b/crawl-ref/source/spl-wpnench.cc @@ -15,6 +15,7 @@ #include "message.h" #include "misc.h" #include "shout.h" +#include "skills2.h" // We need to know what brands equate with what missile brands to know if @@ -134,7 +135,7 @@ bool brand_weapon(brand_type which_brand, int power) std::string msg = weapon.name(DESC_CAP_YOUR); bool emit_special_message = !temp_brand; - int duration_affected = 0; + int duration_affected = 10; switch (which_brand) { case SPWPN_FLAME: @@ -195,6 +196,22 @@ bool brand_weapon(brand_type which_brand, int power) emit_special_message = true; break; + case SPWPN_HOLY_WRATH: + msg += " shines with holy light."; + break; + + case SPWPN_ELECTROCUTION: + msg += " starts to spark."; + break; + + case SPWPN_ANTIMAGIC: + msg += " depletes magic around it."; + break; + + case SPWPN_CHAOS: + msg += " glistens with random hues."; + break; + case SPWPN_DUMMY_CRUSHING: //jmf: Added for Maxwell's Silver Hammer. which_brand = SPWPN_VORPAL; msg += " glows silver and feels heavier."; @@ -223,6 +240,8 @@ bool brand_weapon(brand_type which_brand, int power) you.increase_duration(DUR_WEAPON_BRAND, duration_affected + roll_dice(2, power), 50); + if (which_brand == SPWPN_ANTIMAGIC) + calc_mp(); return (true); } |