diff options
author | Adam Borowski <kilobyte@angband.pl> | 2009-11-05 13:34:52 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2009-11-05 14:05:57 +0100 |
commit | 6f79556d0925802980b55bc86784bef753163c31 (patch) | |
tree | cf2adb4059eede0f09e06d391e8978587f2de272 /crawl-ref/source/fight.cc | |
parent | d3dac1d95f5238e49e9220f51b8ee0bd272dae9c (diff) | |
download | crawl-ref-6f79556d0925802980b55bc86784bef753163c31.tar.gz crawl-ref-6f79556d0925802980b55bc86784bef753163c31.zip |
Give middling backstab bonus to ordinary clubs and spears.
Also, mention that daggers do awesome stab damage.
Diffstat (limited to 'crawl-ref/source/fight.cc')
-rw-r--r-- | crawl-ref/source/fight.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc index a0edf2bc37..b41ca53319 100644 --- a/crawl-ref/source/fight.cc +++ b/crawl-ref/source/fight.cc @@ -1586,6 +1586,12 @@ void melee_attack::player_weapon_auto_id() int melee_attack::player_stab_weapon_bonus(int damage) { + if (weapon && weapon->base_type == OBJ_WEAPONS + && (weapon->sub_type == WPN_CLUB || weapon->sub_type == WPN_SPEAR)) + { + goto ok_weaps; + } + switch (wpn_skill) { case SK_SHORT_BLADES: @@ -1599,6 +1605,7 @@ int melee_attack::player_stab_weapon_bonus(int damage) damage += bonus; } // fall through + ok_weaps: case SK_LONG_BLADES: damage *= 10 + you.skills[SK_STABBING] / (stab_bonus + (wpn_skill == SK_SHORT_BLADES ? 0 : 1)); |