Another milestone. This is an AI squadron that has detected a player ship, moved within range and launched missiles.
The basic code is done for decisions on active sensor activation (when, why) and firing decisions (when to fire, what to fire at and why). These will need a little more attention as more complex situations arise, but that should be fine-tuning.
Some of the code is in place for how the System AI deploys its available forces to deal with threats, but that is a lot more complex, especially when facing multiple hostile forces and when deciding whether to be aggressive or not. The AI may now run away or seek the cover of planetary defences, instead of blindly attacking, which requires more decision-making. The Race AI also has to respond to threats on an Empire-wide level as well. So this area of the code will be my focus now.