From 6ad2ff13db0746d82faad381d54127e6c8958190 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Tue, 3 Jul 2007 18:45:58 +0000 Subject: 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 --- crawl-ref/source/itemprop.cc | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/itemprop.cc') 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); } -- cgit v1.2.3-54-g00ecf