Hephaistion
Warlord
I'm trying to update HephMod Beyond to use the doctrine promotion system from my Warlords version that I originally borrowed from Total Realism, but am having some issues.
The system works like this: a wonder, buildable by a great general, gives your units a base promotion with no effects that acts as the first step in a promotion tree. For example, the wonder, "Flaming Ammunition," puts a building in all of your cities that gives Archery units the promotion "Flaming Arrows" (PROMOTION_FLAMING0), which acts as a prerequisite for "Flaming Arrows I-III" (PROMOTION_FLAMING1, etc.). Now, to prevent anyone from being able to level up with the base promotion, PROMOTION_FLAMING0 has as its prerequisite a dummy promotion called PROMOTION_DOCTRINE_ONLY, which has no effects and no UNIT_COMBAT entries, so no unit ever actually has it.
NOW, with this architecture installed, after I build the wonder, my archery units get the base promotion (FLAMING0) just fine, but cannot level up to FLAMING1. When I remove the dummy promotion (PROMOTION_DOCTRINE_ONLY) from the prerequisites tag, FLAMING1 becomes available as it's supposed to, but without the dummy promotion, anyone with or without the wonder can select the baseline promotion for their archery units!
This worked just fine in Warlords -- does anyone know what the problem here is and/or how to fix it? I know one could accomplish the same thing with Python, but I'd really like NOT to have to do that, if possible. I've attached my promotions.xml file.
The system works like this: a wonder, buildable by a great general, gives your units a base promotion with no effects that acts as the first step in a promotion tree. For example, the wonder, "Flaming Ammunition," puts a building in all of your cities that gives Archery units the promotion "Flaming Arrows" (PROMOTION_FLAMING0), which acts as a prerequisite for "Flaming Arrows I-III" (PROMOTION_FLAMING1, etc.). Now, to prevent anyone from being able to level up with the base promotion, PROMOTION_FLAMING0 has as its prerequisite a dummy promotion called PROMOTION_DOCTRINE_ONLY, which has no effects and no UNIT_COMBAT entries, so no unit ever actually has it.
NOW, with this architecture installed, after I build the wonder, my archery units get the base promotion (FLAMING0) just fine, but cannot level up to FLAMING1. When I remove the dummy promotion (PROMOTION_DOCTRINE_ONLY) from the prerequisites tag, FLAMING1 becomes available as it's supposed to, but without the dummy promotion, anyone with or without the wonder can select the baseline promotion for their archery units!
This worked just fine in Warlords -- does anyone know what the problem here is and/or how to fix it? I know one could accomplish the same thing with Python, but I'd really like NOT to have to do that, if possible. I've attached my promotions.xml file.