From 1dc07e216e862ef8690b6dc8e3b5f63896f6d6b4 Mon Sep 17 00:00:00 2001 From: jake Date: Thu, 20 Aug 2020 22:18:31 -0600 Subject: [PATCH] these should probably only specify the tool used --- src/entity/item/mag.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/entity/item/mag.rs b/src/entity/item/mag.rs index 130bd2b..84bfc81 100644 --- a/src/entity/item/mag.rs +++ b/src/entity/item/mag.rs @@ -1,5 +1,5 @@ use serde::{Serialize, Deserialize}; -use crate::entity::item::ItemEntityId; +use crate::entity::item::tool::ToolType; #[derive(Debug, Copy, Clone)] pub enum ItemParseError { @@ -255,10 +255,10 @@ impl MagType { #[derive(Debug, Clone, PartialEq)] pub enum MagModifier { FeedMag{ - food: ItemEntityId, + food: ToolType, }, - BankMag, - MagCell(ItemEntityId), + BankMag, // when putting a mag in the bank it truncates the values which has applications when raising degenerate mags + MagCell(ToolType), } #[derive(Debug, Copy, Clone, PartialEq)]