TooAngel / screeps

TooAngel NPC / bot / source code for screeps
https://screeps.com
GNU Affero General Public License v3.0
609 stars 154 forks source link

[LOGIC REFINE]prevent sending useless reservers #681

Closed TSStudio closed 1 year ago

TSStudio commented 2 years ago

According to https://docs.screeps.com/start-areas.html

The sector is completely separated from the outer world with a blind, indestructible wall preventing outside players from entering it. Getting inside a Novice Area is possible only by placing there your initial spawn directly.

It's impossible to travel between rooms with different status, so sending reservers is just wasting energy.
Now check before sending them.

Updated Nov 6, 2022:

In a reserved room in a novice area, and next to normal area, walls exist but cannot be destroyed. Reservers shouldn't call structurers if the structure is not able to be destroyed.

mschultheiss83 commented 2 years ago

image same goes for scouts

TSStudio commented 2 years ago

image same goes for scouts

Working on it, should finish in a few days. By the way, I’d like to know whether only scouts, reservers and structurers go to nearby rooms? Am I missing any other roles?

TSStudio commented 2 years ago

Now it should work for all roles.

mschultheiss83 commented 1 year ago

can you rebase, please?

TSStudio commented 1 year ago

Yes sure, but there's some mess when I rebase, hopefully merging won't be a big problem.

TooAngel commented 1 year ago

This pull request was merged by worlddriven.