Spawn.prototype problems

  • 1) The docu is wrong on Spawn.spawning. It returns undefined, not null.

    2) Spawn.canCreateCreep could use a distinction between not being able to spawn because of:

    a) not enough energy
    b) not enough energy capacity

    At the moment, there is only ERR_NOT_ENOUGH_ENERGY, but it doesn't tell you, whether it is case a) or b). I have my own prototype extension, which distinguishes these two cases, but honestly it would be nicer, if there were two distinct return codes for this.