bencbartlett / Overmind

AI for Screeps, a multiplayer programming strategy game
MIT License
545 stars 155 forks source link

Overmind not spawning melee defenders for colony defence #203

Open GrimReaper2654 opened 2 years ago

GrimReaper2654 commented 2 years ago

Issue summary

Overmind is not spawning melee defenders and uses many ranged defenders to deal with attacks in an owned room.

Description of issue:

Overmind seems to prefer spawning numerous hydralisks to deal with a threat which could be dealt with using cheaper zerglings. Boosted dismantlers and attackers sitting next to the bunker can be repelled or killed by a single boosted zergling but Overmind always chooses to spawn tens of unboosted hydralisks to defend instead. The effectiveness of RMA quads can also be greatly reduced by having a boosted melee defender in the ramparts to stop them from getting in range 1 of the walls but overmind spawns many hydralisks which are unable to kill the squads.

Steps to reproduce:

Attack an Overmind using a boosted pair or squad. The overmind will respond by spawning large amounts of hydralisks.

Suggested fix (optional):

Make Overmind spawn melee defenders to keep enemies away from the bunker walls. Overmind should also utilise boosted defenders instead of spawning large amounts of unboosted defenders. I think overmind already has code for boosted defenders and melee defenders but it seems to be not in use.

Other information: