-
-
Notifications
You must be signed in to change notification settings - Fork 35
Commune Defence
This article describes actions the bot takes to defend against invaders, enemyCreeps, and enemyAttackers.
Ramparts are the expected method to keep enemies out of our structures, core economy, and controller. By RCL 4 with a somewhat filled storage ramparts should begin to be built, protecting important core structures from nukes or creeps that get through, while using mincut to plan and construct a fully-encasing barricade for the important roomObjects.
in Defence Manager (tbd) you can learn about rampart publicization and privatization.
maintainers work to repair ramparts using energy, with a goal of keeping the ramparts alive - or even out-repairing enemyAttackers - to keep the essential structures, economy, and the room under the bot's control.
meleeDefenders sit under ramparts in an attempt to repel - or if lucky kill - enemyAttackers trying to get into the base. The intended result is pushing enemyAttackers away from ramparts, limiting the damage they can do so repairing costs less energy.
towers perform 3 main functions for defence: they heal allied and my creeps to ensure they can continue their tasks (say, defending or repairing), they make sure ramparts don't degrade by repairing them to greater than 300 hits, and they attack enemyCreeps, so long as they expect to out-damage the enemy. Currently, towers don't work with meleeDefenders in damage estimates.
Safemoding is a last resort. It is currently being edited and this section will soon inform the improved logic.