JonathanSafer / screeps

Screeps AI
MIT License
25 stars 7 forks source link

remote defense #186

Closed JonathanSafer closed 2 years ago

JonathanSafer commented 2 years ago

Each remote room should have a defcon, probably being decremented at some interval, and incremented if sufficient enemy troops are in the room. A defcon above what the room can handle should result in a dropped remote.

Rough Ideas: 0: means no defense, meaning there hasn't been an attack in a very long time and we aren't even expecting invaders 1: only expecting invaders, one (appropriately sized) harasser should be enough, with necessary backup being spawned dynamically. 2: station a quad 3: drop the room

non-stationed defenders should be able to reassign to other remotes as needed maybe the most desperate room gets the non-stationed crew. Since harassers have target lock it may be difficult to abuse this

Possibly worth looking into converting stationed defenders into non-stationed for better reaction time, but higher risk

JonathanSafer commented 2 years ago

143

JonathanSafer commented 2 years ago

Non stationed defenders still need to be added, current implementation has the same DEFCON levels but 1-4 rather than 0-3.

JonathanSafer commented 2 years ago

current implementation seems to work pretty well, closing this pending further issue