Code:
.. image:: mr-att.png
.. image:: mr-att.png
if (to_hit && (to_hit == to_dam)) {
bonus = to_dam / data->dam_increment;
if (bonus > 0) {
if (art->tval == TV_GLOVES) {
file_putf(log_file, "Adding %d instances of extra to-hit and to-dam bonus for gloves\n", bonus);
(data->art_probs[ART_IDX_GLOVE_HIT_DAM]) += bonus;
} else {
file_putf(log_file, "Adding %d instances of extra to-hit and to-dam bonus for non-weapon\n", bonus);
(data->art_probs[ART_IDX_NONWEAPON_HIT_DAM]) += bonus;
}
}
}
Leave a comment: