Add a Road planner

This commit is contained in:
uwap 2022-12-21 13:40:38 +01:00
parent ed73f8330b
commit 48350d6f33

View file

@ -1,5 +1,5 @@
export const buildRoads = (room: Room) => {
if (room.controller?.level ?? 0 < 2) {
if ((room.controller?.level ?? 0) < 2) {
return;
}
const sources = room.find(FIND_SOURCES);