Function veloren_common::combat::compute_protection
source ยท pub fn compute_protection(
inventory: Option<&Inventory>,
msm: &MaterialStatManifest,
) -> Option<f32>
Expand description
Computes the total protection provided from armor. Is used to determine the damage reduction applied to damage received by an entity None indicates that the armor equipped makes the entity invulnerable