open-screeps
open-screeps copied to clipboard
Creep Modules
I was thinking of making a few modules:
- [x]
creep-has-bodypart- does the given creep have the given body part - [x]
creep-count-bodypart- how many of the body part does the creep have - [ ]
is-creep-boosted- is the creep boosted. optional param ofRESOURCE_*constant for if the creep is boosted with the given boost. - [ ]
is-creep-boosted-count- how many body parts are boosted. optional param ofRESOURCE_*constant for if the creep is boosted with the given boost. - [x]
is-carrying- is the creep carrying the given resource. - [x]
is-fatigued- is the creeps fatigue higher than 0
For the is-creep-boosted an extra feature would be to have the ability to see if a specific bodypart of a creep is boosted with a specific boost?