I would like to ask about the CPU cost of the new spawnCreep
function.
By now, I am using this code snippet from the api documentation with ("low CPU" + 0.2 CPU) cost.
if(spawn.canCreateCreep(body, name) == OK) {
spawn.createCreep(body, name);
}
If I replace this by
if(spawn.spawnCreep(body, name, { dryRun: true }) == OK) {
spawn.spawnCreep(body, name);
}
am I right the CPU-costs would be charged 2*0.2CPU, since the function spawnCreep
returns OK
two times?
edit: corrected copy-paste-error