Improve logs
This commit is contained in:
parent
cfd02bc99c
commit
cb840bc312
@ -40,7 +40,7 @@ export const loop = ErrorMapper.wrapLoop(() => {
|
||||
const firstSpawn = _.first(Object.values(Game.spawns));
|
||||
const name = uniqId(ROLE_HARVESTER);
|
||||
const err = firstSpawn.spawnCreep([WORK, CARRY, MOVE], name, { memory: { role: ROLE_HARVESTER } as CreepMemory });
|
||||
console.log('Err', err);
|
||||
console.log('Harvester Err', err);
|
||||
}
|
||||
|
||||
const UPGRADER_CREEP_COUNT = 2;
|
||||
@ -49,7 +49,7 @@ export const loop = ErrorMapper.wrapLoop(() => {
|
||||
const firstSpawn = _.first(Object.values(Game.spawns));
|
||||
const name = uniqId(ROLE_UPGRADER);
|
||||
const err = firstSpawn.spawnCreep([WORK, CARRY, MOVE], name, { memory: { role: ROLE_UPGRADER } as CreepMemory });
|
||||
console.log('Err', err);
|
||||
console.log('Upgrader Err', err);
|
||||
}
|
||||
|
||||
const BUILDER_CREEP_COUNT = 2;
|
||||
@ -58,7 +58,7 @@ export const loop = ErrorMapper.wrapLoop(() => {
|
||||
const firstSpawn = _.first(Object.values(Game.spawns));
|
||||
const name = uniqId(ROLE_BUILDER);
|
||||
const err = firstSpawn.spawnCreep([WORK, CARRY, MOVE], name, { memory: { role: ROLE_BUILDER } as CreepMemory });
|
||||
console.log('Err', err);
|
||||
console.log('Builder Err', err);
|
||||
}
|
||||
|
||||
// Process current creeps
|
||||
|
Loading…
Reference in New Issue
Block a user