Skip to content

Cleaner creep spawn allocations #20

Description

@brisberg

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions