Closed pguth66 closed 6 years ago
getNearestRoomWith(mineral) returns the nearest room that harvests that type of mineral
have array of basic minerals [ X, Z, U, K, L, H, O ] foreach mineral if!room.mineralType if terminal[mineral] > 1000 then terminal.send(mineral, amount, getNearestRoomWith(mineral)
done 3cfef21a2291b6f0b21150792a254ed1219b609f
with minhaulers, some rooms will wind up with extra of basic resources but will never sell them. Should have them sent to a room that will use them.