KungFuClan / KungFuScreeps

https://screepers.gitbook.io/screeps-typescript-starter/
9 stars 4 forks source link

Marked Claim Rooms need to consider invaders #98

Open UhmBrock opened 4 years ago

UhmBrock commented 4 years ago

If a room is marked for claiming, we should send a claimer - If that claimer is unable to claim the room due to an invader core, we should send a zealot to destroy the core. We should then either wait until the reservation is naturally depleted, or we should send a claimer with extra parts to reduce the timer.

Regardless, we should not spawn remoteColonizers until we have verification that we can reach the controller and claim it. We should not send a 2nd claimer until the last known reservation timer would have run out.

UhmBrock commented 4 years ago

We could optionally extend this to cover attempting to steal enemy reserved rooms - We could ensure that we always have a zealot in the room, which would help to ensure accurate reservation timer tracking, and would allow us to kill any hostile creeps or invader cores that may spawn.