diff --git a/src/ship/items/inventory.rs b/src/ship/items/inventory.rs index 4ff2992..dac1ef9 100644 --- a/src/ship/items/inventory.rs +++ b/src/ship/items/inventory.rs @@ -256,10 +256,8 @@ impl InventoryItem { Some((ArmorShopItem::unit_from_item(u).price() / 8) as u32) }, ItemDetail::Tool(t) => { - if !matches!(t.tool, ToolType::PhotonDrop | ToolType::PhotonSphere | ToolType::PhotonCrystal) { - if t.is_rare_item() { - return Some(10u32) - } + if !matches!(t.tool, ToolType::PhotonDrop | ToolType::PhotonSphere | ToolType::PhotonCrystal) && t.is_rare_item() { + return Some(10u32) } Some((ToolShopItem::tool_from_item(t).price() / 8) as u32) },