Chanded some filenames
Removed automatic path placement. Started command section.
This commit is contained in:
15
_spawnsHandler.js
Normal file
15
_spawnsHandler.js
Normal file
@@ -0,0 +1,15 @@
|
||||
module.exports = {
|
||||
start: function () {
|
||||
for (const spawn_name in Game.spawns) {
|
||||
const spawn = Game.spawns[spawn_name];
|
||||
spawn.init();
|
||||
}
|
||||
},
|
||||
|
||||
update: function () {
|
||||
for (const spawn_name in Game.spawns) {
|
||||
const spawn = Game.spawns[spawn_name];
|
||||
if (spawn.requireNewCreep(ROLE_HARVESTER)) spawn.createHarvester();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user