why did i shuffle this

This commit is contained in:
andy 2020-10-28 20:12:42 -03:00
parent f3608d99ad
commit 67e96d33db

View File

@ -422,9 +422,13 @@ impl CharacterInventory {
let (slot, _) = self.items.iter()
.enumerate()
.filter(|(_, item)| {
if let InventoryItem::Individual(individual_inventory_item) = item {if let ItemDetail::Armor(_) = &individual_inventory_item.item {return individual_inventory_item.equipped }}
if let InventoryItem::Individual(individual_inventory_item) = item {
if let ItemDetail::Armor(_) = &individual_inventory_item.item {
return individual_inventory_item.equipped
}
}
false
})
})
.nth(0)?;
Some(InventoryItemHandle {
inventory: self,