Moved all of my advanced diplo AI options to a new file, DiploAIOptions.sql in the Community Patch > Core Changes folder.
Added option to disable Nuclear Gandhi. ;)
Added DiploApproachWeights.sql, which modders or players can use to customize the AI approach calculation by adding or removing weight
from each of the seven approaches for human and AI players, without needing to rebuild the DLL.
Also added the ability to do this for the AI's opinion (in DiploOpinionWeights.sql). So, e.g., you can have the AI give humans a -20 opinion bonus if you want to make the game easier,
or a +5 opinion penalty if you want to make the game slightly harder. You can also change their opinions towards other AIs this way.
The base opinion bonus or penalty (if non-zero) is hidden by default unless Transparent Diplomacy is enabled; you can display it in the option table by activating an advanced option in DiploAIOptions.sql
Performance improvement: the shadow AI behind human players will now set all major civ approaches and opinions to neutral, and minor civ approaches to ignore without
going through the entire calculation, since it has no use for that information anyway.
Fixed broken logic for accepting vassalage
- Bug with human vassalage: AI was checking to see if the shadow AI behind the human player was willing to accept vassalage, and returning IMPOSSIBLE if the shadow AI said no
- Bug with all vassalage: AI was refusing to accept a new vassal state unless the vassal state was stronger than the AI militarily (is now the other way around)
Anti-frustration feature: Masters and vassals now have permanent embassies with each other. In addition, resurrecting a player now opens permanent two-way embassies as long as you're not at war.
Refusing to give a vassal independence when they ask will now apply a "backstabbing mark" (making them not care if other civs backstab you), and a recent assist penalty for the vassal's friends
Liberating a vassal or giving them independence when they ask will now apply a recent assist bonus for the vassal's friends
If you successfully broker third party peace, you will gain a recent assist bonus with the now-at-peace-civ's friends and DPs.
If your spies catch an AI brokering third party war against you, the information will automatically be sent to your DPs and AI friends.
You'll receive a diplo bonus for sharing intrigue with your DPs, and your AI friends will apply a diplo penalty against the players involved.
AIs whose spies catch a player brokering third party war (both accepting a bribe and giving a bribe count for this) will inform their teammates, DPs and AI friends about this
- For humans, they will get a notification if their teammates or DPs' spies found this out
- AIs will apply a diplo penalty
Improved AI approach estimate logic