andy vs. clippy round 2
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
andy 2021-06-21 18:32:02 +00:00
parent d84b2fc663
commit 1eff61629a

View File

@ -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)
},