37 | | Deals with tributes with allies. It also updates the AI's [#VariabilityofAIstrategy cooperative trait] following its allies actions. In "last man standing" games, if the AI happens to have no enemies at any point in the game, the AI will become enemies with the strongest player (but it will be more inclined to choose a neutral player, if there are any). It will wait to make this decision if it is not strong enough. |
| 37 | Deals with tributes with allies. It also updates the AI's [#VariabilityofAIstrategy cooperative trait] following its allies' actions. In "last man standing" games, if the AI happens to have no enemies at any point in the game, the AI will become enemies with the strongest player (but it will be more inclined to choose a neutral player, if there are any). It will wait to make this decision if it is not strong enough. |
| 38 | |
| 39 | It will also handle diplomacy requests from other players. If a player switches their diplomacy stance with an AI in a positive direction (for example, "enemy" to "neutral"), it will respond with a chat message declining, accepting, or demanding a tribute in order to accept (or possible suggesting a different stance). On occasion, the AI will send diplomacy requests (via chat message) to other players (both to other AIs and human players). It will try to send requests to a player which shares many mutual enemies. If the other player does not respond by switching their diplomacy stance within some time, the AI will rescind the request. |
| 40 | |
| 41 | == !GameTypeManager == |
| 42 | The gameTypeManager handles events that are important for specific victory conditions. In the Wonder victory condition, this consists of planning the construction of the wonder. In Regicide, it will handle cases when the hero is injured, and it will try to garrison the hero if it loses too much health. It will also train and manage a number of healer units and assign them as guards to the hero (the exact number is dependent on the AI's defensive trait). In Capture the Relic, it will also assign guards to captured relics, and it will try to move any captured relics to a nearby Civic Center. From time to time, it will send out armies to try to capture any gaia-owned relics on the map, and it will target the player that possesses the most relics. |