How does each bodypart affect fatigue?
-
How much fatigue does each bodypart generate?
-
https://docs.screeps.com/creeps.html#Movement
Each body part except
MOVE
and emptyCARRY
generate fatigue.1 point per body part on roads, 2 on plain land, 10 on swamp. Each MOVE body part decreases fatigue points by 2 per tick. The creep cannot move when its fatigue is greater than zero.
If your interested in the code side, can view the movement intent.
https://github.com/screeps/engine/blob/master/src/processor/intents/movement.js
-
thanks!
-
For clarification,
CARRY
parts generate fatigue if and only if there is at least one resource in that part. As an example, if a creep has 3CARRY
parts and is carrying 60 energy, two of the threeCARRY
parts would generate fatigue. (If you start using boosts, the calculations get a bit more complicated, but the principles are still the same.)