Browse Source

why did i shuffle this

pbs
andy 4 years ago
parent
commit
67e96d33db
  1. 8
      src/ship/items/inventory.rs

8
src/ship/items/inventory.rs

@ -422,9 +422,13 @@ impl CharacterInventory {
let (slot, _) = self.items.iter() let (slot, _) = self.items.iter()
.enumerate() .enumerate()
.filter(|(_, item)| { .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 false
})
})
.nth(0)?; .nth(0)?;
Some(InventoryItemHandle { Some(InventoryItemHandle {
inventory: self, inventory: self,

Loading…
Cancel
Save