Working roboport power connection.
This commit is contained in:
parent
a748708998
commit
068297e2c2
5 changed files with 258 additions and 15 deletions
|
|
@ -441,7 +441,7 @@ impl Entity {
|
|||
}
|
||||
}
|
||||
ElectricPoleType::Substation => {
|
||||
for (dx, dy) in [(-1, -1), (1, -1), (-1, 1), (1, 1)] {
|
||||
for (dx, dy) in [(-2, -2), (0, -2), (-2, 0), (0, 0)] {
|
||||
v.add_symbol(
|
||||
(self.position + Position::new(dx, dy)) / 2 + offset,
|
||||
factorio_core::visualize::Symbol::Char('S'),
|
||||
|
|
@ -451,6 +451,18 @@ impl Entity {
|
|||
}
|
||||
}
|
||||
},
|
||||
EntityType::Roboport => {
|
||||
for dx in -2..2 {
|
||||
for dy in -2..2 {
|
||||
v.add_symbol(
|
||||
(self.position) / 2 + Position::new(dx, dy) + offset,
|
||||
factorio_core::visualize::Symbol::Char('R'),
|
||||
Some(Color::yellow()),
|
||||
None,
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
_ => (),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue