Changeset 840

Show
Ignore:
Timestamp:
04/27/08 21:57:56 (7 months ago)
Author:
takkaria
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/attack.c

    r823 r840  
    1717 */ 
    1818#include "angband.h" 
     19#include "tvals.h" 
    1920 
    2021 
     
    588589        int i, j, y, x; 
    589590        s16b ty, tx; 
    590         int tdam, tdis, thits, tmul
     591        int tdam, tdis, thits
    591592        int bonus, chance; 
    592593 
     
    690691        chance = (p_ptr->skills[SKILL_TO_HIT_BOW] + (bonus * BTH_PLUS_ADJ)); 
    691692 
    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  
    698693        /* Base range XXX XXX */ 
    699         tdis = 10 + 5 * tmul
     694        tdis = 10 + 5 * p_ptr->ammo_mult
    700695 
    701696 
     
    823818 
    824819                                /* 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; 
    825823                                tdam *= MAX(ammo_mult, shoot_mult); 
    826                                 tdam += i_ptr->to_d + j_ptr->to_d; 
    827                                 tdam *= tmul; 
    828824                                tdam = critical_shot(i_ptr->weight, i_ptr->to_h, tdam); 
    829825