shop_sell #65

Merged
jake merged 36 commits from shop_sell into master 2021-12-29 23:02:32 -05:00
Showing only changes of commit 1eff61629a - Show all commits

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