mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-19 12:18:53 +07:00

* AI now can offer declaration of friendship * AI now offers open borders * Added spectator notifications for DoFs and defensive pacts * AI now wants friendship less as more Civs die * Re-added spectator notifications that weren't added in the merge * Replaced min with coerceAtLeast * Replaced .filter and .count() with .count * Removed some minus DoF motivation modifiers being in a military focus. * Fixed AI offering open borders with City-States * AI now signs defensive pacts * Increased motivationToAttack weight when determining value of a declaration of friendship * Removed double trade processing and notifications from Treaties * Removed commented code * Added wantsToSignDefensivePact * Added defensive pact trade evaluation * Revert "Removed commented code" This reverts commit6476a08d26
. * Revert "Removed double trade processing and notifications from Treaties" This reverts commit371e8e8a62
. * Changed wantsToSignDefensivePact to use a for loop * Changed chance to consider offering a defensive pact back to 30% * Added DeclinedOpenBordersFlag * Added DeclinedDeclarationOfFriendshipFlag * Civ AI now has a positive modifier when friends with under 1/4 of alive Civs * AI values friendship based also on relative strength * Changed AI valueing of a defensive pact * AIs not use DeclinedDeclarationOfFriendship flag * Fixed otherCivNonOverlappingDefensivePacts causing error with unmet Civs