From 3f1f5c2f776026f09ff0603c3ea2d1d1e74a2135 Mon Sep 17 00:00:00 2001 From: dolorous Date: Wed, 11 Mar 2009 21:39:34 +0000 Subject: 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 --- crawl-ref/source/spells2.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'crawl-ref/source/spells2.cc') 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; -- cgit v1.2.3-54-g00ecf