diff --git a/src/game/creeps.js b/src/game/creeps.js index 845dea93..c05e1334 100644 --- a/src/game/creeps.js +++ b/src/game/creeps.js @@ -882,12 +882,6 @@ exports.make = function(_runtimeData, _intents, _register, _globals) { buildRemaining = target.progressTotal - target.progress, buildEffect = Math.min(buildPower, buildRemaining, this.carry.energy); - if (target.progress + buildEffect >= target.progressTotal && - !utils.checkControllerAvailability(target.structureType, register.objectsByRoom[data(this.id).room], this.room.controller, 1)) { - return C.ERR_RCL_NOT_ENOUGH; - } - - intents.set(this.id, 'build', {id: target.id, x: target.pos.x, y: target.pos.y}); return C.OK; }); diff --git a/src/processor/intents/creeps/build.js b/src/processor/intents/creeps/build.js index 21c7cce2..f54cd6ac 100644 --- a/src/processor/intents/creeps/build.js +++ b/src/processor/intents/creeps/build.js @@ -50,11 +50,6 @@ module.exports = function(object, intent, roomObjects, roomTerrain, bulk, bulkUs var boostedEffect = Math.min(Math.floor(buildEffect + _.sum(boostedParts)), buildRemaining); - - if(target.progress + boostedEffect >= target.progressTotal && !target.tutorial && !utils.checkControllerAvailability(target.structureType, roomObjects, roomController, 1)) { - return; - } - target.progress += boostedEffect; object.energy -= buildEffect; @@ -266,4 +261,4 @@ module.exports = function(object, intent, roomObjects, roomTerrain, bulk, bulkUs delete roomObjects[intent.id]; } -}; \ No newline at end of file +};