|
|
@ -90,20 +90,6 @@ impl ShopItem for ArmorShopItem { |
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// impl ArmorShopItem {
|
|
|
|
// pub fn armor_from_item(a: &Armor) -> ArmorShopItem {
|
|
|
|
// ArmorShopItem::Frame(a.armor, a.slots as usize)
|
|
|
|
// }
|
|
|
|
|
|
|
|
// pub fn shield_from_item(s: &Shield) -> ArmorShopItem {
|
|
|
|
// ArmorShopItem::Barrier(s.shield)
|
|
|
|
// }
|
|
|
|
|
|
|
|
// pub fn unit_from_item(u: &Unit) -> ArmorShopItem {
|
|
|
|
// ArmorShopItem::Unit(u.unit)
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
impl From<&Armor> for ArmorShopItem {
|
|
|
|
fn from(armor: &Armor) -> ArmorShopItem {
|
|
|
|
ArmorShopItem::Frame(armor.armor, armor.slots as usize)
|
|
|
|