mindustry logic execution, map- and schematic- parsing and rendering
Diffstat (limited to 'src/block/drills.rs')
-rw-r--r--src/block/drills.rs11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/block/drills.rs b/src/block/drills.rs
index 8bd6960..a06c1e4 100644
--- a/src/block/drills.rs
+++ b/src/block/drills.rs
@@ -6,7 +6,7 @@ use crate::block::*;
make_simple!(
DrillBlock,
|_, name, _, _, rot: Rotation, s| {
- if matches!(name, "large-plasma-bore" | "plasma-bore") {
+ if matches!(name, "large-plasma-bore" | "plasma-bore" | "cliff-crusher") {
let mut base = load(name, s);
let mut top = load(&format!("{name}-top"), s);
top.rotate(rot.rotated(false).count());
@@ -18,13 +18,6 @@ make_simple!(
|_, _, _, buff: &mut DataRead| read_drill(buff)
);
make_simple!(ExtractorBlock);
-make_simple!(WallCrafter, |_, _, _, _, rot: Rotation, s| {
- let mut base = load("cliff-crusher", s);
- let mut top = load("cliff-crusher-top", s);
- top.rotate(rot.rotated(false).count());
- base.overlay(&top);
- base
-});
make_register! {
"mechanical-drill" => DrillBlock::new(2, true, cost!(Copper: 12));
@@ -34,7 +27,7 @@ make_register! {
"water-extractor" => ExtractorBlock::new(2, true, cost!(Copper: 30, Lead: 30, Metaglass: 30, Graphite: 30));
"oil-extractor" => ExtractorBlock::new(3, true, cost!(Copper: 150, Lead: 115, Graphite: 175, Thorium: 115, Silicon: 75));
"vent-condenser" => ProductionBlock::new(3, true, cost!(Graphite: 20, Beryllium: 60));
- "cliff-crusher" => WallCrafter::new(2, false, cost!(Beryllium: 100, Graphite: 40));
+ "cliff-crusher" => DrillBlock::new(2, false, cost!(Beryllium: 100, Graphite: 40));
"plasma-bore" => DrillBlock::new(2, false, cost!(Beryllium: 40));
"large-plasma-bore" => DrillBlock::new(3, false, cost!(Silicon: 100, Oxide: 25, Beryllium: 100, Tungsten: 70));
"impact-drill" => DrillBlock::new(4, true, cost!(Silicon: 70, Beryllium: 90, Graphite: 60));