1.7.3 AI Relation Strategies Bugfix
Fix for AI Relation Strategies in Patch 1.7.3
Thanks to Reddit user u/RedWalrus94 for identifying the issue. This fix addresses two logic errors in the AI’s behavior regarding befriending and protecting other countries.
Previously, the AI was unable to befriend or antagonize another country unless it was an isolationist country with a GDP > 5 million. The flawed logic was: "Don’t befriend or antagonize any country, unless I am isolationist with a GDP > 5 million."
With those two strategies broken, the AI was only able to stay neutral, reconcile relations, protect, conquer, and dominate (never befriend or antagonize). This fix should allow AI to befriend and antagonize other countries once again.
The new logic corrects this by evaluating each country’s strategy based on the isolationism and GDP of the country it is assessing. Now, the AI checks if the country it is evaluating is both isolationist and has a GDP > 5 million. If it does, the AI won’t befriend or protect it. The corrected logic reads: "If the country I am evaluating is isolationist and their GDP > 5 million, don’t befriend or protect it."
tldr: AI relations work properly now
This mod modifies the common/ai_strategies/00_default_strategy.txt file
