Just saw an interesting idea for announcing creep spawns:
https://github.com/simon-watiau/screeps/blob/master/src/population/CreepsIndex.ts#L370
I can have the spawn requests include a reference to the mission requesting it, or some callback function. That way the spawn can directly call the mission when it successfully spawns a creep, to pass them the creep name.
Might be weird because the creep won't exist until next tick.
Just saw an interesting idea for announcing creep spawns:
https://github.com/simon-watiau/screeps/blob/master/src/population/CreepsIndex.ts#L370
I can have the spawn requests include a reference to the mission requesting it, or some callback function. That way the spawn can directly call the mission when it successfully spawns a creep, to pass them the creep name.
Might be weird because the creep won't exist until next tick.