There is enough energy but it can't spawn creep.
-
Below is my spawn and extensions.
And I get the energy cost of each body part on the document api.
Below is my body part for the creep. ["work","move","carry","work","move","carry","work","move","carry","work","move","carry","work","move","carry","work","move","carry","work","move","carry","work","move","carry","work","move","carry"]
Need energy: 1800
Room available energy: 1800
It return -6 when I call the spawnCreep method.
Below is my code for caculate the body part of spawn creep.
-
How much is
.energyAvailable
in this room?