summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/item_use.cc
diff options
context:
space:
mode:
authorJude Brown <bookofjude@users.sourceforge.net>2009-12-31 22:29:01 +1000
committerJude Brown <bookofjude@users.sourceforge.net>2009-12-31 23:21:11 +1000
commitbdef58ca99e4b4239bbd98b7057218231625e378 (patch)
treecac0aad15ac5cbf2a819c7182f93a79012500283 /crawl-ref/source/item_use.cc
parent03293efdcadea4df1bdb90b649f811c95d0285cb (diff)
downloadcrawl-ref-bdef58ca99e4b4239bbd98b7057218231625e378.tar.gz
crawl-ref-bdef58ca99e4b4239bbd98b7057218231625e378.zip
Remove hand crossbows.
This involves a lot of changes, and also increments TAG_MAJOR_VERSION to 13. The unrand "Sniper" is now a crossbow (hopefully its current title is still suitable for this task), and thieves no longer start with hand crossbows (but still retain darts). Wanderers with crossbow skills will now get a crossbow and bolts. This may be overpowered, but I didn't want to change the code here too much. It can always be adjusted. This removes the "quiver_type" enum from enum.h, and uses NUM_AMMO in the player.h quiver vector instead. Random elves that generated with hand crossbows before no longer do so, and this has not been replaced by normal crossbows. I hope that's everything!
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r--crawl-ref/source/item_use.cc12
1 files changed, 0 insertions, 12 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index 07aa928eb4..b5e4a27897 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -2327,10 +2327,6 @@ void throw_noise(actor* act, const bolt &pbolt, const item_def &ammo)
level = 1;
msg = "You hear a whirring sound.";
break;
- case WPN_HAND_CROSSBOW:
- level = 3;
- msg = "You hear a small twanging sound.";
- break;
case WPN_BOW:
level = 5;
msg = "You hear a twanging sound.";
@@ -2747,13 +2743,6 @@ bool throw_it(bolt &pbolt, int throw_2, bool teleport, int acc_bonus,
dice_mult = dice_mult * (22 + random2(1 + effSkill)) / 22;
- if (lnchType == WPN_HAND_CROSSBOW)
- {
- exHitBonus -= 2;
- dice_mult = dice_mult * 26 / 30;
- }
- break;
-
default:
break;
}
@@ -2813,7 +2802,6 @@ bool throw_it(bolt &pbolt, int throw_2, bool teleport, int acc_bonus,
{
switch (lnchType)
{
- case WPN_HAND_CROSSBOW:
case WPN_CROSSBOW:
if (returning && !one_chance_in(1 + skill_bump(SK_CROSSBOWS)))
did_return = true;