Where is the code for Djenne?

Joined
Jul 5, 2004
Messages
23,562
Location
Canberra, Australia
@Zappara (& maybe @Afforess),

While testing my mods I noticed that I forgot to apply the same benefit from the Djenne wonder to AAranda's cathedral buildings. So, i was wondering where the code was for it. I have checked the RoM*.py and Building XML files to no avail.
 
For ROM alone, it's a python ability. In AND, I nixed most of Zap's python, and it's in the XML. For AND, you can find it in Modules/Afforess/Required/Fixed Buildings. (IIRC. It's in the Required folder for sure).
 
Most of it is RoMEventManager in onBuildingBuilt -function but there's couple defines near the start of the file. Search for Djenne in that file...

In RoMGameUtils.py there's section for djenne in def cannotConstruct and in def getBuildingCostMod. Though also defines elsewhere so search for all entries.
 
Back
Top Bottom