Skip to content

Commit

Permalink
Synchronize logic (small fix)
Browse files Browse the repository at this point in the history
  • Loading branch information
RecursiveVision committed Jul 3, 2024
1 parent 0cf5de0 commit c104857
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CvGameCoreDLL_Expansion2/CvDiplomacyAI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15993,10 +15993,10 @@ void CvDiplomacyAI::SelectBestApproachTowardsMajorCiv(PlayerTypes ePlayer, bool
}

// Only apply some DECEPTIVE bonuses if that's a valid approach for this AI to shift into WAR from (see DoUpdateWarTargets())
bool bApplyDeception = IsBackstabber() || bCloseToWorldConquest || IsEndgameAggressiveTo(ePlayer);
bool bApplyDeception = bCloseToWorldConquest || IsEndgameAggressiveTo(ePlayer);
if (!bApplyDeception && (eOurProximity == PLAYER_PROXIMITY_NEIGHBORS || (GetPlayer()->CanCrossOcean() && eOurProximity >= PLAYER_PROXIMITY_CLOSE)))
{
if (GetDenounceWillingness() > 8 || vApproachBias[CIV_APPROACH_DECEPTIVE] > vApproachBias[CIV_APPROACH_FRIENDLY] + 100 || IsGoingForWorldConquest())
if (IsBackstabber() || GetDenounceWillingness() > 8 || vApproachBias[CIV_APPROACH_DECEPTIVE] > vApproachBias[CIV_APPROACH_FRIENDLY] + 100 || IsGoingForWorldConquest())
bApplyDeception = true;
}
// Also only apply it if it'd be worth our time
Expand Down

0 comments on commit c104857

Please sign in to comment.