pguth66 / screeps-pguth66

My Screeps code
Apache License 2.0
0 stars 1 forks source link

balance basic minerals #14

Closed pguth66 closed 6 years ago

pguth66 commented 6 years ago

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.

pguth66 commented 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)

pguth66 commented 6 years ago

done 3cfef21a2291b6f0b21150792a254ed1219b609f