diff options
author | Jude Brown <bookofjude@users.sourceforge.net> | 2010-01-03 22:52:08 +1000 |
---|---|---|
committer | Jude Brown <bookofjude@users.sourceforge.net> | 2010-01-03 23:54:25 +1000 |
commit | 196415dd325aa0fbe4c309f29d86a07a3988cb4a (patch) | |
tree | 7803b54e9c4b1358471630b50cd63f27e42b37f8 /crawl-ref/source/makeitem.cc | |
parent | a0c81e59f0325e542ecf2feaa21b29cd3ffc0bc1 (diff) | |
download | crawl-ref-196415dd325aa0fbe4c309f29d86a07a3988cb4a.tar.gz crawl-ref-196415dd325aa0fbe4c309f29d86a07a3988cb4a.zip |
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.
Diffstat (limited to 'crawl-ref/source/makeitem.cc')
-rw-r--r-- | crawl-ref/source/makeitem.cc | 5 |
1 files changed, 3 insertions, 2 deletions
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; |