creep-tasks
creep-tasks copied to clipboard
Screeps plugin for a flexible method of controlling creep actions
```javascript Game.map.getTerrainAt(x, y, roomName)(pos) ``` > This method is deprecated and will be removed soon. Please use a faster method Game.map.getRoomTerrain instead. ```javascript Game.map.getRoomTerrain(roomName) ``` [The document url](https://docs.screeps.com/api/#Game.map.getTerrainAt)
### Description of issue: creep-tasks/examples/JavaScript/creep-tasks.js is still 1.0.0 rather than the latest version. This caused an exception because Task.chain is missing from 1.0.0 ### Steps to reproduce: run the Example...
https://github.com/bencbartlett/creep-tasks/blob/master/src/creep-tasks/prototypes.ts#L39 It looks like when you assign creep.task, the only thing that gets set is the creep's memory, which then needs to get read again and instantiate a new Task...
### Description of issue: When a creep is switching from one task to another the new task is logging the error 'No creep executing taskname!'. Transfers and pickup are sometimes...
In documentation it's said ``` import { Tasks } from 'creep-tasks' ``` For me it worked via ``` import { default as Tasks } from 'creep-tasks' ``` as you have...
It happens when a creep is in edge but moveOptions.range is not 0. The creep will stop at the edge.
I am using creep-tasks with typescript, and I'm trying to define my own Tasks. It looks to me like I need to use the `Task` abstract class, from `src/creep-tasks/Task.ts`, but...