Extension energy extraction



  • Not sure if this is a topic where many of us have payed attention to. Basically, spawns needs energy if they don't have enough energy to produce a creep and this starts a problem which may or may not have a defined way to solve it (I didn't look deep into this stuff), which is from which extensions energy is extracted.

    This could be nice if we could have some control over them, some extensions can be very close to sources or happen to be surrounded full of creeps full of energy. Just knowing or even controlling where energy is subtracted could potentially - at least for very complex systems - save lots of time instead of wasting that time on creeps running to the farthest extensions just because it happens to be the case energy gets extracted from their (not sure if that could be the case, but yeah, you can imagine).

    So yeah, here it goes, some complex stuff. But probably worth a discussion.



  • Hmm.. after some experimenting with Game.structures and some code examination, my guess is that energy is taken from extension in order, starting from the oldest living extension.


  • Dev Team

    The order is by linear range. The spawn always tries to use the most closest extensions first.



  • Ok, thanks! So its by distance. Of course, then there are the draw cases.