I have made progress on an AI improvement for Austria to set insurrection areas and to place insurrection corps when triggered. There was code for setting areas, but the part for identifying specific areas adjacent to enemy areas was flawed. The random area selection worked but that wasn't great. For placements, I noted there was no code for insurrection corps so I added that. After wrestling with various issues over the past couple of days, I've resolved this to my satisfaction. Screenshot shows France entering Tyrol where the AI had set insurrection areas. Once triggered, the AI placed an insurrection corps in Vienna. I may revise this at some point to place the insurrection corps adjacent to an enemy invader but that may be too reckless for the AI. If anyone has some suggestions for placement logic, I can work that in.
While playtesting this issue, it provided a good chance to watch AI Austria respond to me playing as France. Some good and some not so good, so I've made several AI tweaks along the way for retreats and advances. This continues to be a work in progress, but I am making some progress.
