diff options
| author | troido <troido@protonmail.com> | 2020-04-17 11:15:02 +0200 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-04-17 11:15:02 +0200 |
| commit | 13e9ab2c859b9a6a1935acbb93d34a7f10b7e122 (patch) | |
| tree | e28b2e0d944dc6fad62d6407a411598cedc935cf /src/components/equipment.rs | |
| parent | 608918af8174e9afb761cdd2ad46e489b21c5f4e (diff) | |
added Mine interaction
Diffstat (limited to 'src/components/equipment.rs')
| -rw-r--r-- | src/components/equipment.rs | 4 |
1 files changed, 3 insertions, 1 deletions
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 } } |
