Skip to content

Commit 4703ea3

Browse files
committed
Build containers as part of infra
1 parent 61590e1 commit 4703ea3

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/base/construction.ts

+8-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import {ANY, buildingCodes, EMPTY, getConstructionPosition} from '../lib/layouts';
2-
import {MusterPoint} from '../lib/muster';
3-
import {Tracer} from '../lib/tracing';
4-
import {Base, getBaseLevel, getBasePrimaryRoom, setParking} from '../os/kernel/base';
5-
import {Kernel} from '../os/kernel/kernel';
6-
import {RunnableResult, sleeping, terminate} from '../os/process';
1+
import { ANY, buildingCodes, EMPTY, getConstructionPosition } from '../lib/layouts';
2+
import { MusterPoint } from '../lib/muster';
3+
import { Tracer } from '../lib/tracing';
4+
import { Base, getBaseLevel, getBasePrimaryRoom, setParking } from '../os/kernel/base';
5+
import { Kernel } from '../os/kernel/kernel';
6+
import { RunnableResult, sleeping, terminate } from '../os/process';
77

88
const CONSTRUCTION_INTERVAL = 100;
99
const MAX_STRUCTURE_SITES = 5;
@@ -510,7 +510,8 @@ export const prioritizeBySitesType = (sites: PossibleSite[]): PossibleSite[] =>
510510
export const getInfrastructureSites = function (room: Room): ConstructionSite[] {
511511
let sites = room.find(FIND_MY_CONSTRUCTION_SITES).filter((site) => {
512512
return site.structureType === STRUCTURE_SPAWN || site.structureType === STRUCTURE_TOWER ||
513-
site.structureType === STRUCTURE_STORAGE || site.structureType === STRUCTURE_EXTENSION;
513+
site.structureType === STRUCTURE_STORAGE || site.structureType === STRUCTURE_EXTENSION ||
514+
site.structureType === STRUCTURE_CONTAINER;
514515
});
515516
if (!sites || !sites.length) {
516517
return [];

0 commit comments

Comments
 (0)