From 196415dd325aa0fbe4c309f29d86a07a3988cb4a Mon Sep 17 00:00:00 2001 From: Jude Brown Date: Sun, 3 Jan 2010 22:52:08 +1000 Subject: New (ranged) weapon brand: evasion. This replaces "protection" on all ranged weapons, and will only generate on those. This commit also fixes shopping values for the new needle brands. --- crawl-ref/source/makeitem.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/makeitem.cc') diff --git a/crawl-ref/source/makeitem.cc b/crawl-ref/source/makeitem.cc index 07473975b8..551e148820 100644 --- a/crawl-ref/source/makeitem.cc +++ b/crawl-ref/source/makeitem.cc @@ -1419,7 +1419,7 @@ static brand_type _determine_weapon_brand(const item_def& item, int item_level) else if (tmp < 880 && (item.sub_type == WPN_BOW || item.sub_type == WPN_LONGBOW)) rc = SPWPN_REAPING; else if (tmp < 880) - rc = SPWPN_PROTECTION; + rc = SPWPN_EVASION; else if (tmp < 990) rc = SPWPN_VORPAL; @@ -1441,7 +1441,7 @@ static brand_type _determine_weapon_brand(const item_def& item, int item_level) if (one_chance_in(10)) rc = SPWPN_VORPAL; - if (one_chance_in(5)) + if (one_chance_in(6)) rc = SPWPN_PROTECTION; break; @@ -1567,6 +1567,7 @@ bool is_weapon_brand_ok(int type, int brand) case SPWPN_FLAME: case SPWPN_FROST: case SPWPN_PENETRATION: + case SPWPN_EVASION: if (!is_range_weapon(item)) return (false); break; -- cgit v1.2.3-54-g00ecf