Changeset 840
- Timestamp:
- 04/27/08 21:57:56 (4 months ago)
- Files:
-
- trunk/src/attack.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/attack.c
r823 r840 17 17 */ 18 18 #include "angband.h" 19 #include "tvals.h" 19 20 20 21 … … 588 589 int i, j, y, x; 589 590 s16b ty, tx; 590 int tdam, tdis, thits , tmul;591 int tdam, tdis, thits; 591 592 int bonus, chance; 592 593 … … 690 691 chance = (p_ptr->skills[SKILL_TO_HIT_BOW] + (bonus * BTH_PLUS_ADJ)); 691 692 692 /* Base damage from thrown object plus launcher bonus */693 tdam = damroll(i_ptr->dd, i_ptr->ds);694 695 /* Assume a base multiplier */696 tmul = p_ptr->ammo_mult;697 698 693 /* Base range XXX XXX */ 699 tdis = 10 + 5 * tmul;694 tdis = 10 + 5 * p_ptr->ammo_mult; 700 695 701 696 … … 823 818 824 819 /* Apply damage: multiplier, slays, criticals, bonuses */ 820 tdam = damroll(i_ptr->dd, i_ptr->ds); 821 tdam *= p_ptr->ammo_mult; 822 tdam += i_ptr->to_d + j_ptr->to_d; 825 823 tdam *= MAX(ammo_mult, shoot_mult); 826 tdam += i_ptr->to_d + j_ptr->to_d;827 tdam *= tmul;828 824 tdam = critical_shot(i_ptr->weight, i_ptr->to_h, tdam); 829 825
