screeps
screeps copied to clipboard
[LOGIC REFINE]when in a room which have your controller, but no your spawn, let builder be able to extract energy from everywhere, as it need to rebuild spawn at any cost.
i understand you point, i would wish to disable this feature, maybe if some config is set like
Room.prototype.isConstructingSpawn = function() { if (!this.controller || !this.controller.my || !config.myRoom.enableGetEnergyFromAnyStructures) { return false; } if (this.findPropertyFilter(FIND_MY_STRUCTURES, 'structureType', [STRUCTURE_SPAWN], {}).length > 0) { return false; } return true; };
Configuration added. please review when you have time.
Have a nice weekend.
This pull request was merged by worlddriven.