Does anyone know how the AI determines the cost of a military alliance? I wonder if it's more than just your unit count and attack strength. One of the things that I'm pretty sure is missing in the equation is the distance of you to the Civ that is the target of the MA. But I was wondering how trade rep, diplomatic standing, tech and your civ's strength compared to the civ you want the MA with, level factor in.