summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/item_use.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-09 18:01:38 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-09 18:01:38 +0000
commitd108ecc79d0f633f43e6fa5f28f3f94c3d35adfd (patch)
tree92f16f898c3a0d8fb9a32c644a04673fb1ba0b79 /crawl-ref/source/item_use.cc
parent575e3d6f27c6a06626479dd652a087a522ad008c (diff)
downloadcrawl-ref-d108ecc79d0f633f43e6fa5f28f3f94c3d35adfd.tar.gz
crawl-ref-d108ecc79d0f633f43e6fa5f28f3f94c3d35adfd.zip
Apply racial bonuses to *thrown* racial darts, so that the racial type
means something. Since only elves make hand crossbows, only they get any bonus from launched darts anyway. Tweak ammo descriptions accordingly. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3556 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r--crawl-ref/source/item_use.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index 98e5d90162..cd897e8cb3 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -2294,7 +2294,7 @@ bool throw_it(bolt &pbolt, int throw_2, bool teleport, int acc_bonus,
if (wepClass == OBJ_WEAPONS
|| (wepClass == OBJ_MISSILES
&& (wepType == MI_STONE || wepType == MI_LARGE_ROCK
- || wepType == MI_JAVELIN)))
+ || wepType == MI_DART || wepType == MI_JAVELIN)))
{
// elves with elven weapons
if (get_equip_race(item) == ISFLAG_ELVEN
@@ -2327,6 +2327,9 @@ bool throw_it(bolt &pbolt, int throw_2, bool teleport, int acc_bonus,
{
switch (wepType)
{
+ case MI_DART:
+ baseHit += 2;
+ break;
case MI_JAVELIN:
baseHit += 1;
break;
@@ -2366,10 +2369,6 @@ bool throw_it(bolt &pbolt, int throw_2, bool teleport, int acc_bonus,
baseHit = 1;
break;
case MI_DART:
- // give an appropriate 'tohit' & damage
- baseHit = 2;
- baseDam = property( item, PWPN_DAMAGE );
-
exHitBonus = you.skills[SK_DARTS] * 2;
exHitBonus += (you.skills[SK_THROWING] * 2) / 3;
exDamBonus = you.skills[SK_DARTS] / 3;