TRADING YEAH LETS GO #80

Merged
jake merged 41 commits from trading into master 2021-12-28 13:05:27 -05:00
Showing only changes of commit 296d1cc0ea - Show all commits

View File

@ -220,6 +220,20 @@ impl InventoryItem {
_ => None
}
}
pub fn stacked(&self) -> Option<&StackedInventoryItem> {
match self {
InventoryItem::Stacked(ref stacked_inventory_item) => Some(stacked_inventory_item),
_ => None
}
}
pub fn mag(&self) -> Option<&Mag> {
match self {
InventoryItem::Individual(individual_inventory_item) => individual_inventory_item.mag(),
_ => None
}
}
}