summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells2.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-03-11 21:39:34 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-03-11 21:39:34 +0000
commit3f1f5c2f776026f09ff0603c3ea2d1d1e74a2135 (patch)
tree50fbcb2d26d82fe6a5f66654cbe55df4d1a1ed88 /crawl-ref/source/spells2.cc
parentda2c6835866fc0ef70b5defdbea6c12dfa7611f8 (diff)
downloadcrawl-ref-3f1f5c2f776026f09ff0603c3ea2d1d1e74a2135.tar.gz
crawl-ref-3f1f5c2f776026f09ff0603c3ea2d1d1e74a2135.zip
Since Poison Weapon won't work on crushing-type weapons, don't allow
randart crushing-type weapons to have the venom brand either. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9415 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spells2.cc')
-rw-r--r--crawl-ref/source/spells2.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/crawl-ref/source/spells2.cc b/crawl-ref/source/spells2.cc
index 9c8ab0459b..e730a7a7a8 100644
--- a/crawl-ref/source/spells2.cc
+++ b/crawl-ref/source/spells2.cc
@@ -348,22 +348,23 @@ bool brand_weapon(brand_type which_brand, int power)
msg += " glows silver and feels heavier.";
duration_affected = 7;
break;
+
default:
break;
}
- if ( !temp_brand )
+ if (!temp_brand)
{
- set_item_ego_type( weapon, OBJ_WEAPONS, which_brand );
+ set_item_ego_type(weapon, OBJ_WEAPONS, which_brand);
you.wield_change = true;
}
- if ( emit_special_message )
+ if (emit_special_message)
mpr(msg.c_str());
else
mprf("%s flashes.", weapon.name(DESC_CAP_YOUR).c_str());
- const int dur_change = duration_affected + roll_dice( 2, power );
+ const int dur_change = duration_affected + roll_dice(2, power);
you.duration[DUR_WEAPON_BRAND] += dur_change;