From bdef58ca99e4b4239bbd98b7057218231625e378 Mon Sep 17 00:00:00 2001 From: Jude Brown Date: Thu, 31 Dec 2009 22:29:01 +1000 Subject: 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! --- crawl-ref/source/item_use.cc | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'crawl-ref/source/item_use.cc') 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; -- cgit v1.2.3-54-g00ecf