diff --git a/common/src/combat.rs b/common/src/combat.rs index 7c57d55648..4d407478dd 100644 --- a/common/src/combat.rs +++ b/common/src/combat.rs @@ -1196,7 +1196,7 @@ pub fn stealth_multiplier_from_items(inventory: Option<&Inventory>) -> f32 { None } }) - .fold(0.0, |a, b| a + b) + .sum() }); (1.0 / (1.0 + stealth_sum)).clamp(0.0, 1.0)