creep-tasks 1.0
This is the first release of creep-tasks
, representing about a year of development of the tasks system within the Overmind codebase, and finally ported for general-purpose use in Screeps bots!
creep-tasks
is a plugin for your Screeps codebase which adds a concise and flexible creep.task
property to your creeps. Tasks are persistent objects that generalize the concept of "do action X to thing Y until condition Z is met" and they can save a lot of convoluted and redundant code in creep logic. A Task
object contains the necessary logic for traveling to a target, performing an action on the target, and realizing when a task is no longer sensible to continue.