De-enumerized armor variants

This commit is contained in:
BottledByte
2020-08-03 03:41:32 +00:00
committed by Imbris
parent 7d524f6062
commit a167ee98ee
138 changed files with 416 additions and 764 deletions

View File

@ -204,7 +204,7 @@ impl Loadout {
.iter()
.flat_map(|armor| armor.as_ref())
.filter_map(|item| {
if let ItemKind::Armor(armor) = item.kind {
if let ItemKind::Armor(armor) = &item.kind {
Some(armor.get_protection())
} else {
None