We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 505f071 commit a1624a1Copy full SHA for a1624a1
src/config.js
@@ -213,7 +213,7 @@ global.config = {
213
214
myRoom: {
215
underAttackMinAttackTimer: 50,
216
- leastSpawnsToRebuildStructureSpawn: 1,
+ leastSpawnsToRebuildStructureSpawn: 2,
217
},
218
219
room: {
src/prototype_room_init.js
@@ -378,10 +378,6 @@ Room.prototype.checkForSpawnPosition = function(pos) {
378
* @return {undefined}
379
**/
380
Room.prototype.checkForMisplacedSpawn = function() {
381
- const spawnsCount = Object.keys(Game.spawns).length;
382
- if (spawnsCount < config.structureSpawn.leastStructureSpawnToDestroyStructureSpawn) {
383
- return;
384
- }
385
const spawns = this.findMySpawns();
386
const spawnsCount = spawns.length;
387
if (spawnsCount < config.myRoom.leastSpawnsToRebuildStructureSpawn) {
0 commit comments