update outdated dependency

This commit is contained in:
crabman 2024-03-23 19:56:00 +00:00
parent e22cbab7ce
commit a8bd0ade13
No known key found for this signature in database

View File

@ -229,7 +229,12 @@ impl Attack {
.clamp(0.0, 1.0);
let raw_damage_reduction =
Damage::compute_damage_reduction(Some(damage), target.inventory, target.stats, msm);
if raw_damage_reduction >= 1.0 {
raw_damage_reduction
} else {
(1.0 - attacker_penetration) * raw_damage_reduction
}
} else {
0.0
}