summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/itemprop.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-03 18:45:58 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-03 18:45:58 +0000
commit6ad2ff13db0746d82faad381d54127e6c8958190 (patch)
treeac11963fd5d061f200a597fb86a221de4671fc7f /crawl-ref/source/itemprop.cc
parent718202ee6b6445890db808f4420073e2cce506c2 (diff)
downloadcrawl-ref-6ad2ff13db0746d82faad381d54127e6c8958190.tar.gz
crawl-ref-6ad2ff13db0746d82faad381d54127e6c8958190.zip
Fixed debug fight simulator.
Dialed javelin base damage down a notch. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1733 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/itemprop.cc')
-rw-r--r--crawl-ref/source/itemprop.cc13
1 files changed, 10 insertions, 3 deletions
diff --git a/crawl-ref/source/itemprop.cc b/crawl-ref/source/itemprop.cc
index 81a45b94b5..69709474bb 100644
--- a/crawl-ref/source/itemprop.cc
+++ b/crawl-ref/source/itemprop.cc
@@ -350,7 +350,7 @@ static missile_def Missile_prop[NUM_MISSILES] =
{ MI_BOLT, "bolt", 9, 5, false },
{ MI_LARGE_ROCK, "large rock", 20, 1000, true },
{ MI_SLING_BULLET, "sling bullet", 6, 4, true },
- { MI_JAVELIN, "javelin", 11, 40, true },
+ { MI_JAVELIN, "javelin", 10, 40, true },
};
struct food_def
@@ -1470,8 +1470,15 @@ skill_type range_skill( const item_def &item )
{
if (item.base_type == OBJ_WEAPONS && is_range_weapon( item ))
return (Weapon_prop[ Weapon_index[item.sub_type] ].skill);
- else if (item.base_type == OBJ_MISSILES && item.sub_type == MI_DART)
- return (SK_DARTS);
+ else if (item.base_type == OBJ_MISSILES)
+ {
+ switch (item.sub_type)
+ {
+ case MI_DART: return (SK_DARTS);
+ case MI_JAVELIN: return (SK_POLEARMS);
+ default: break;
+ }
+ }
return (SK_RANGED_COMBAT);
}