Releases: bencbartlett/creep-tasks
creep-tasks 1.3.0
This release adds chaining functionality to tasks! Using Tasks.chain([task1, task2, ...])
, you can transform a list of tasks into a single task, with each subsequent task set as the previous task's parent. This release also adds TaskWithdrawAll
to accompany TaskTransferAll
, adds a nextPos
option to prevent creeps from idling for a tick while switching tasks, and fixes various bugs.
creep-tasks 1.2.0
This release fixes a bug in TaskTransfer
and adds a oneShot
option for tasks which should be completed in a single tick, such as drop / pickup / transfer / withdraw.
creep-tasks 1.1.1
This release fixes some bugs with TaskDrop
and TaskFortify
.
creep-tasks 1.1
This release reorganizes some things to make the npm package easier to work with, and it now includes (functional) typings!
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.