fn mask(element: &str) -> u32
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.
bludgeoning
cold
fire
radiation
slashing