JonathanSafer / screeps

Screeps AI
MIT License
25 stars 8 forks source link

upgraders only boost one time #103

Closed JonathanSafer closed 4 years ago

JonathanSafer commented 4 years ago

for upgraders that have to boost in multiple trips (just E9N9 for now), they trigger a false return from checkMaterials on the tick following the first self boost. As a result, they decide to stop boosting and move on to upgrading.

JonathanSafer commented 4 years ago

unclear what seems to be returning the negative, as _.filter(creep.body, part => !part.boost && part.type == WORK).length appears to be working as intended (gives # of unboosted work parts)