mindustry logic execution, map- and schematic- parsing and rendering
Diffstat (limited to 'src/block/power.rs')
-rw-r--r--src/block/power.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/block/power.rs b/src/block/power.rs
index 2e47956..ea54750 100644
--- a/src/block/power.rs
+++ b/src/block/power.rs
@@ -12,8 +12,13 @@ make_simple!(
Neoplasia,
|_, _, _, _, rot: Rotation, scl| {
let mut base = load!("neoplasia-reactor", scl);
- // TODO 2 tops
- base.overlay(load!("neoplasia-reactor-top", scl).rotate(rot.rotated(false).count()));
+ base.overlay(
+ load!(scl -> match rot {
+ Rotation::Up | Rotation::Right => "neoplasia-reactor-top1",
+ Rotation::Down | Rotation::Left => "neoplasia-reactor-top2",
+ })
+ .rotate(rot.rotated(false).count()),
+ );
base
},
|_, _, _, buff: &mut DataRead| read_heater(buff)