summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/skills2.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2006-09-24 20:14:14 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2006-09-24 20:14:14 +0000
commit8ff8b514bd6f983e092b1ddddda6f29b5dd5197b (patch)
treeb9da152e8916d5eaa7e5935496a90a3616d3b8c8 /crawl-ref/source/skills2.cc
parent4896fc165af059b72aecc5b7f592d98bb38eadcd (diff)
downloadcrawl-ref-8ff8b514bd6f983e092b1ddddda6f29b5dd5197b.tar.gz
crawl-ref-8ff8b514bd6f983e092b1ddddda6f29b5dd5197b.zip
Made some more steps on the way to integrating itemprop.cc and
eliminating wpn-misc.cc. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup@107 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/skills2.cc')
-rw-r--r--crawl-ref/source/skills2.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/skills2.cc b/crawl-ref/source/skills2.cc
index b4a0cbca9f..b17ed9f5ec 100644
--- a/crawl-ref/source/skills2.cc
+++ b/crawl-ref/source/skills2.cc
@@ -30,6 +30,7 @@
#include "externs.h"
#include "fight.h"
+#include "itemprop.h"
#include "player.h"
#include "randart.h"
#include "religion.h"
@@ -2294,7 +2295,7 @@ void wield_warning(bool newWeapon)
strcat(wepstr, wepstr2);
// only warn about str/dex for non-launcher weapons
- if (!launches_things(wepType))
+ if (!is_range_weapon( you.inv[you.equip[EQ_WEAPON]] ))
{
#ifdef USE_NEW_COMBAT_STATS
const int stat_bonus = effective_stat_bonus();