The-International-Screeps-Bot / The-International-Open-Source

An automated bot for the coding game Screeps.com
MIT License
104 stars 33 forks source link

fix: fix #783 remote container construction sites not beeing handled #787

Closed schealex closed 5 months ago

schealex commented 5 months ago

Don't know what the history behind this is but the current check for available amout of storage in spawns + extensions doesn't make any sense for a remote. I've switched that to just check if the room is reserved. This works well for me.

fixes #783

CarsonBurke commented 5 months ago

The idea is to not build containers until the spawning structures are at or above RCL 3. I think this is preferable because excess energy in non-reserved remotes can go towards containers. That being said, i'm not super attached to that solution over this one

schealex commented 5 months ago

Ah i see hmm didn't pay attention to that it's supposed to check it against the commune and not the remote room. But in any way without this fix it is currently not building remote containers at all. even for rcl 8 rooms its not.

CarsonBurke commented 5 months ago

Ohhh I didn't notice it was checking the remote instead of the commune :facepalm: