Ticket #498: dmginfo.1036.patch

File dmginfo.1036.patch, 559 bytes (added by d_m, 10 years ago)

this should only take bonus dmg into account when it's known

  • src/object/obj-info.c

     
    374374 
    375375 
    376376                dam = ((o_ptr->ds + 1) * o_ptr->dd * 5); 
    377                 xtra_dam = (state.dis_to_d + o_ptr->to_d) * 10; 
     377                xtra_dam = state.dis_to_d * 10; 
     378                /* if the object is known, take the dmg bonus into account */ 
     379                if(object_known_p(o_ptr)) xtra_dam += o_ptr->to_d * 10; 
    378380 
    379381                /* Warn about heavy weapons */ 
    380382                if (adj_str_hold[state.stat_ind[A_STR]] < o_ptr->weight / 10)