summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authortom barrett <spalf0@gmail.com>2019-02-14 13:27:28 -0600
committertom barrett <spalf0@gmail.com>2019-02-14 13:27:28 -0600
commitca26d538085704d3278063715a14308eeed70127 (patch)
treed3b1cf3d43d7466bafa20b03e5e7ac54750fca3b /src/modules
parent35b43264c09405c987b48de78b6ca19f29dc7849 (diff)
simplified mining logic
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/construction.rs2
-rw-r--r--src/modules/mining.rs2
2 files changed, 2 insertions, 2 deletions
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;
}
}