diff --git a/common/src/combat.rs b/common/src/combat.rs index 15262c96d8..bab35f2183 100644 --- a/common/src/combat.rs +++ b/common/src/combat.rs @@ -393,8 +393,11 @@ impl Damage { Protection::Invincible => None, }) .sum::>(); + + const FIFTY_PERCENT_DR_THRESHOLD: f32 = 60.0; + match protection { - Some(dr) => dr / (60.0 + dr.abs()), + Some(dr) => dr / (FIFTY_PERCENT_DR_THRESHOLD + dr.abs()), None => 1.0, } }