|
@ -197,7 +197,7 @@ impl InventoryItem { |
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
// TOOD: delete?
|
|
|
|
|
|
|
|
|
// TODO: delete?
|
|
|
pub fn are_same_stackable_tool(&self, other_stacked_item: &StackedFloorItem) -> bool {
|
|
|
pub fn are_same_stackable_tool(&self, other_stacked_item: &StackedFloorItem) -> bool {
|
|
|
match self {
|
|
|
match self {
|
|
|
InventoryItem::Stacked(self_stacked_item) => {
|
|
|
InventoryItem::Stacked(self_stacked_item) => {
|
|
@ -208,7 +208,7 @@ impl InventoryItem { |
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
// TOOD: delete?
|
|
|
|
|
|
|
|
|
// TODO: delete?
|
|
|
pub fn can_combine_stacks(&self, other_stacked_item: &StackedFloorItem) -> bool {
|
|
|
pub fn can_combine_stacks(&self, other_stacked_item: &StackedFloorItem) -> bool {
|
|
|
match self {
|
|
|
match self {
|
|
|
InventoryItem::Stacked(self_stacked_item) => {
|
|
|
InventoryItem::Stacked(self_stacked_item) => {
|
|
@ -221,7 +221,7 @@ impl InventoryItem { |
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
// TODO: result
|
|
|
// TODO: result
|
|
|
// TOOD: delete?
|
|
|
|
|
|
|
|
|
// TODO: delete?
|
|
|
pub fn combine_stacks(&mut self, other_stacked_item: &mut StackedFloorItem) {
|
|
|
pub fn combine_stacks(&mut self, other_stacked_item: &mut StackedFloorItem) {
|
|
|
match self {
|
|
|
match self {
|
|
|
InventoryItem::Stacked(self_stacked_item) => {
|
|
|
InventoryItem::Stacked(self_stacked_item) => {
|
|
|