|
|
|
@ -10,7 +10,7 @@ impl Character {
|
|
|
|
|
pub fn attacks(&mut self, opponent: &mut Character) {
|
|
|
|
|
let (margin, _succ, _fail, _succ_dice, fail_dice) = successes(
|
|
|
|
|
self.dice_pool().max(0) as usize,
|
|
|
|
|
(opponent.ac() - self.weapon_proficiency() as i64).clamp(1, 12),
|
|
|
|
|
(opponent.ac() - self.weapon_proficiency() as i64).clamp(1, 11),
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
let damage = self.compute_damage(margin); //(margin + self.weapon_proficiency()).max(0) * self.weapon.damage_dice;
|
|
|
|
|