AI takes both players' military power total (which factors in each unit and their promotions plus a small base number).
Defensive Pacts add 10% of the DP player's military strength if the DP could trigger (if you're at war with a player but not their DP, the DP is ignored).
If the AI is planning a coop war against a player, 10% of the coop war ally's strength is added to the AI's strength (they don't get to see your coop wars).
Teammates add 20% of the teammate's strength.
Only ONE of these three bonuses applies per player.
Additionally:
- Each player has a skill rating which starts at (1000 * Start Era #).
Whenever you kill a unit, plunder/steal a tile, or capture a city, you gain skill rating points.
Whenever any of these things happen to you, you lose skill rating points (can't go below 0).
AI will calculate the global average of skill ratings (excluding the evaluated player) and then find the percentage difference between that player and the global average.
It then adds the % difference (up to 100%) or subtracts half of the % difference (up to 50%) from the player's military power.
- Humans who aren't vassals have an additional bonus to their military power estimation, ranging from 0% on Settler to 105% on Deity.
- These two multipliers are applied before 10-20% of a player's strength is added to another player's estimation.
Once the final total for each player is calculated, it's a simple ratio comparison of your strength versus their strength, from which a rating is generated:
<33%: Pathetic
33-49%: Poor
50-74%: Weak
75-124%: Average
125-199%: Strong
200-299%: Powerful
>=300%: Immense
This rating is used in numerous AI calculations.