Minimum information needed:
Which shard is affected?
Simulation room
What happened?
The following code
console.log(Game.spawns['Spawn1'].spawnCreep([WORK,CARRY,MOVE], newName('harvester'), {dryRun : true})
results in
0
Pasting the following directly in the console creates the creep. Although the console just told me it was not possible.
Game.spawns['Spawn1'].spawnCreep([WORK,CARRY,MOVE], 'harvester008', {dryRun : false})
What should have happened?
Yields 1 or true for the first line of code.
How can we reproduce this?
- Run Screeps in Simulation mode locally or on the Screeps simulation
Optional information:
The program should continue to console.log 0
after pasting the command manually but the console result is now -6
I cannot find a pattern in this behaviour. Also the following command
console.log(Game.spawns['Spawn1'].spawnCreep([WORK,CARRY,MOVE],'bab',
{dryRun : true} == true)
)
results in
-10