Hi Janus
yea I think you should be able to rework the code. It would take a fair amount of work most likely.
The “Pact of Steel 2” xml explains how to go about it. Also here’s a link to the map making thread at triplea https://forums.triplea-game.org/category/28/map-making