cephalo
Deity
Ok, I'm taking a first look through the code and I see that Koma13 made it so you can build transport units in any city. I hear this code comes from Maniac.
What I'm not seeing is any modifications to the unit AI. Therefore, I assume that the AI might build transports in any city, but it will only actually load them on a coastal city.
Theres a boolean all over the unit AI code called bLandWar. This variable is set by the AI state of the area that the unit is in. As far as units loading onto transports, I might be able to change this from an area analysis to a distance-to-target analysis. The difficulty is that I don't think the target is known by the AI at this stage, I may have to do a separate calculation.
What I'm not seeing is any modifications to the unit AI. Therefore, I assume that the AI might build transports in any city, but it will only actually load them on a coastal city.
Theres a boolean all over the unit AI code called bLandWar. This variable is set by the AI state of the area that the unit is in. As far as units loading onto transports, I might be able to change this from an area analysis to a distance-to-target analysis. The difficulty is that I don't think the target is known by the AI at this stage, I may have to do a separate calculation.