From 13e9ab2c859b9a6a1935acbb93d34a7f10b7e122 Mon Sep 17 00:00:00 2001 From: troido Date: Fri, 17 Apr 2020 11:15:02 +0200 Subject: added Mine interaction --- src/components/equipment.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/components/equipment.rs') diff --git a/src/components/equipment.rs b/src/components/equipment.rs index 386ef38..ab573d8 100644 --- a/src/components/equipment.rs +++ b/src/components/equipment.rs @@ -27,7 +27,8 @@ impl Slot { #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] pub enum Stat { Strength, - Defence + Defence, + Mining } impl Stat { @@ -35,6 +36,7 @@ impl Stat { match txt { "strength" => Some(Self::Strength), "defence" => Some(Self::Defence), + "mining" => Some(Self::Mining), _ => None } } -- cgit