Skip to content

Commit

Permalink
Diplomatic AIs usually won't accept CS bribe wars
Browse files Browse the repository at this point in the history
  • Loading branch information
RecursiveVision committed Dec 7, 2024
1 parent 6fff480 commit 5be340e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CvGameCoreDLL_Expansion2/CvDiplomacyAI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25157,7 +25157,12 @@ void CvDiplomacyAI::SelectBestApproachTowardsMinorCiv(PlayerTypes ePlayer)
LogMinorCivApproachUpdate(ePlayer, &vApproachScores[0], eApproach, eOldApproach);

// Set if they're a potential war target
SetPotentialWarTarget(ePlayer, bPotentialWarTarget || IsAtWar(ePlayer));
if (IsAtWar(ePlayer))
SetPotentialWarTarget(ePlayer, true);
else if (bPotentialWarTarget)
SetPotentialWarTarget(ePlayer, (IsGoingForDiploVictory() || bCloseToDiploVictory) ? eApproach < CIV_APPROACH_NEUTRAL : eApproach < CIV_APPROACH_FRIENDLY);
else
SetPotentialWarTarget(ePlayer, false);
}

// -----------------------------------------------------------------------------------------------
Expand Down

0 comments on commit 5be340e

Please sign in to comment.