Open world - Spawner will not create creeps
-
var bodyExtractor = [Game.CARRY, Game.MOVE, Game.WORK, Game.WORK, Game.WORK]; Game.spawns.Spawn1.createCreep(bodyExtractor, null, {role: "harvester", set: "extractor"});
I have had this working for weeks, and on open world all of my stuff is braindead.
-
According to this changelog:
Breaking change: All constants removed from the deprecated
Game
scope. Now they are accessible only through the global scope.You have to amend your code like this:
var bodyExtractor = [CARRY, MOVE, WORK, WORK, WORK]; Game.spawns.Spawn1.createCreep(bodyExtractor, null, {role: "harvester", set: "extractor"});