Chanded some filenames

Removed automatic path placement.
Started command section.
This commit is contained in:
Gebruiker
2022-10-23 01:19:58 +02:00
parent 1806935c50
commit ef9159260b
9 changed files with 67 additions and 176 deletions

15
_spawnsHandler.js Normal file
View 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();
}
}
}