Add Logistics and Extension support

This commit is contained in:
uwap 2022-12-23 09:02:22 +01:00
parent e2e93947b5
commit 18ff62a97b
9 changed files with 66 additions and 9 deletions

View file

@ -12,6 +12,8 @@ export const buildExtentions = (room: Room) => {
room.visual.circle(spawn.pos.x + x * 2, spawn.pos.y + y * 2);
if (!room.lookAt(spawn.pos.x + x * 2 - 1, spawn.pos.y + y * 2 - 1).includes({ type: 'terrain', terrain: 'wall'})) {
room.createConstructionSite(spawn.pos.x + x * 2 - 1, spawn.pos.y + y * 2 - 1, STRUCTURE_ROAD);
room.createConstructionSite(spawn.pos.x + x * 2, spawn.pos.y + y * 2 - 1, STRUCTURE_ROAD);
room.createConstructionSite(spawn.pos.x + x * 2 - 1, spawn.pos.y + y * 2, STRUCTURE_ROAD);
}
room.createConstructionSite(spawn.pos.x + x * 2, spawn.pos.y + y * 2, STRUCTURE_EXTENSION);
}