mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
update outdated dependency
This commit is contained in:
parent
e22cbab7ce
commit
a8bd0ade13
@ -229,7 +229,12 @@ impl Attack {
|
|||||||
.clamp(0.0, 1.0);
|
.clamp(0.0, 1.0);
|
||||||
let raw_damage_reduction =
|
let raw_damage_reduction =
|
||||||
Damage::compute_damage_reduction(Some(damage), target.inventory, target.stats, msm);
|
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
|
(1.0 - attacker_penetration) * raw_damage_reduction
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
0.0
|
0.0
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user