|
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'; |
7 | 7 |
|
8 | 8 | const CONSTRUCTION_INTERVAL = 100;
|
9 | 9 | const MAX_STRUCTURE_SITES = 5;
|
@@ -510,7 +510,8 @@ export const prioritizeBySitesType = (sites: PossibleSite[]): PossibleSite[] =>
|
510 | 510 | export const getInfrastructureSites = function (room: Room): ConstructionSite[] {
|
511 | 511 | let sites = room.find(FIND_MY_CONSTRUCTION_SITES).filter((site) => {
|
512 | 512 | 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; |
514 | 515 | });
|
515 | 516 | if (!sites || !sites.length) {
|
516 | 517 | return [];
|
|
0 commit comments