summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
authorJude Brown <bookofjude@users.sourceforge.net>2010-01-03 22:52:08 +1000
committerJude Brown <bookofjude@users.sourceforge.net>2010-01-03 23:54:25 +1000
commit196415dd325aa0fbe4c309f29d86a07a3988cb4a (patch)
tree7803b54e9c4b1358471630b50cd63f27e42b37f8 /crawl-ref/source/player.cc
parenta0c81e59f0325e542ecf2feaa21b29cd3ffc0bc1 (diff)
downloadcrawl-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/player.cc')
-rw-r--r--crawl-ref/source/player.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index b4a2611d9e..d29a361040 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -2134,6 +2134,10 @@ int player_evasion(ev_ignore_type evit)
ev -= 2;
ev += player_equip( EQ_RINGS_PLUS, RING_EVASION );
+
+ if (player_equip_ego_type( EQ_WEAPON, SPWPN_EVASION ))
+ ev += 5;
+
ev += scan_artefacts( ARTP_EVASION );
// ponderous ev mod