fixed wrong vacancy generation bug.
This commit is contained in:
@@ -9,7 +9,8 @@ class _StructureSpawn extends StructureSpawn {
|
||||
}
|
||||
|
||||
tick(){
|
||||
if(!this.memory.init) this.begin();
|
||||
if(!this.memory.init) this.begin();
|
||||
if(this.store.getUsedCapacity(RESOURCE_ENERGY) < 300) return;
|
||||
const job = this.room.memory.vacancies.pop();
|
||||
if(job){
|
||||
const name = getJobName(job.role);
|
||||
|
||||
Reference in New Issue
Block a user