Resource icon

[XML+Python] Project Hanseatic League 2016-10-05

This modcomponent adds the custom project "Hanseatic League" to the game. Building this project will grant a free great merchant and a free galleon with the promotions sentry and navigation 1.

This mod component includes:
- 2 XML files: the ProjectInfos.xml for the project entry, and a text XML for the custom text
- 1 Button
- 2 Python files: CvEventManager.py and CvGameUtils.py. There is one change in the CvEventManager python file and 2 changes in CvGameUtils, and they are labeled with "Hanseatic League".

ATTENTION: Since there's no real value assigned to python projects, the AI will not build them. Due to that, there's a custom AI part included (the change in CvGameUtils), which will make the AI build the project under the right circumstances. But the AI will not be very smart in its decision. So please carefully monitor the AI if you add this project and adjust values if needed.
Thanks at this point to God-Emperor, who gave me a important hint here.


This mod component was done as request from el_hidalgo.

Button image and text snipped are taken from wikipedia (links are included).


Edit: Reuploaded on March, 13th, 2012
- Fixed a bug in the custom AI code, which could result in some AI cities going idle for random turns. Thanks to platyping for discovering it :).
  • hanseaticleague_3t9.jpg
    hanseaticleague_3t9.jpg
    94.7 KB · Views: 277
Author
The_J
Downloads
223
Views
223
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from The_J

Top Bottom