Improved performance of walking.
Switches to manual walking when close to target.
This commit is contained in:
@@ -9,9 +9,9 @@ module.exports = {
|
||||
update: function () {
|
||||
for (const room_name in Game.rooms) {
|
||||
const room = Game.rooms[room_name];
|
||||
if (room.isNewLevel()) {
|
||||
if (Game.time % 1000 == 0) {
|
||||
// Place new building types if the max construcion sites isn't achieved yet.
|
||||
if (!room.isConstructionQueueFull()) {
|
||||
if (room.canConstruct()) {
|
||||
room.planRoads();
|
||||
room.planStructures();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user