tu_79
Deity
Then, we have room for improvement.World Congress (League) AI =/= Diplo AI, but I'll give this a look over once the upcoming version is released (I believe it's supposed to be tonight).
Close to...
Domination Victory? Player has >= 75% of other players' original capitals
Diplomatic Victory? Player has >= 75% of votes required to win
Science Victory? Player's team has built the Apollo Program or any spaceship part, OR has at least 90% of techs and (num civs ahead of in tech > 2x num civs behind of in tech)
Culture Victory is more complicated:
Code:Player must at least be in the Modern Era If >= 4 other civs (not counting this guy) are alive, percent to check is 50%. If 3 other civs (not counting this guy) are alive, percent to check is 25%. Otherwise, percent to check is 0%. If % of civs Influential or Dominant on > percent to check, and player will be influential on the civ they have the lowest influence on within 75 turns, then they are close to a cultural victory They are also close to a cultural victory if they're currently building the CEP. (Adding for next version to fix a bug: If player is already influential on all civs, then they are close to a cultural victory. Reading the code made me realize that it returns "NO_PLAYER" for the civ a player has the lowest influence on if they are already influential with all civs.)
Exceptions
- If the game has already been won and this is the "Just one more turn..." phase, then no one is close to any victory.
- If the victory condition in question is disabled, it isn't counted (except Domination Victory, since you can always win by killing all other players).
- AI won't apply weight for being close to a victory condition if victory competition was disabled in DiploAIOptions.sql or the game has already been won (except Domination Victory).
See, I'm not really scared of an AI that gets to build the United Nations when I am pretty sure that I'll get my victory under 15 turns left. But I have to mobilize my army if I think AI can win in 20 turns when I still need 30. That's the point, first comes, first wins.