Skip to main content

mask

Function mask 

Source
fn mask(element: &str) -> u32
Expand description

Use a bitmask to store each possible attack type. Assumes that each type starts with a different letter, for example bludgeoning, cold, fire, radiation and slashing.