From ca26d538085704d3278063715a14308eeed70127 Mon Sep 17 00:00:00 2001 From: tom barrett Date: Thu, 14 Feb 2019 13:27:28 -0600 Subject: simplified mining logic --- src/modules/construction.rs | 2 +- src/modules/mining.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules') diff --git a/src/modules/construction.rs b/src/modules/construction.rs index 6c27db5..0f7f8f2 100644 --- a/src/modules/construction.rs +++ b/src/modules/construction.rs @@ -69,7 +69,7 @@ impl Construction { self.status = ConstructionStatus::None; } - pub fn taken(&mut self) { + pub fn constructed(&mut self) { self.off() } } diff --git a/src/modules/mining.rs b/src/modules/mining.rs index 120ba8c..a6cea92 100644 --- a/src/modules/mining.rs +++ b/src/modules/mining.rs @@ -68,7 +68,7 @@ impl Mining { self.status = MiningStatus::None; } - pub fn taken(&mut self) { + pub fn mined(&mut self) { self.status = MiningStatus::Mining; } } -- cgit v1.2.3