Skip to content

Commit

Permalink
Small tweak to AI teammate ideology choices
Browse files Browse the repository at this point in the history
  • Loading branch information
RecursiveVision committed Jul 10, 2024
1 parent fcf0701 commit 48d1c92
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CvGameCoreDLL_Expansion2/CvPolicyAI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,9 @@ void CvPolicyAI::DoChooseIdeology(CvPlayer *pPlayer)
}

int iScore = GET_PLAYER(eTeamMember).GetScore();
if (GET_PLAYER(eTeamMember).GetDiplomacyAI()->IsCloseToCultureVictory())
iScore += 100000;

if (iScore > iBestScore && iScore * 2 >= iMyScore * 3) // Must be at least 50% higher to justify this
{
eTeamLeader = eTeamMember;
Expand Down Expand Up @@ -847,6 +850,9 @@ void CvPolicyAI::DoConsiderIdeologySwitch(CvPlayer* pPlayer)
}

int iScore = GET_PLAYER(eTeamMember).GetScore();
if (GET_PLAYER(eTeamMember).GetDiplomacyAI()->IsCloseToCultureVictory())
iScore += 100000;

if (iScore > iBestScore && iScore * 2 >= iMyScore * 3) // Must be at least 50% higher to justify this
{
eTeamLeader = eTeamMember;
Expand Down

0 comments on commit 48d1c92

Please sign in to comment.