[SDK MODCOMP] Mech Route

Shqype, Your work is great with your first modcomp and its successor. I read you're working on two others and I can't wait to see what's coming but I have a request that must be simple.

Old code in the traits xml :
Code:
<FreePromotions>
  <FreePromotion>
    <PromotionType>PROMOTION_COMBAT1</PromotionType>
    <bFreePromotion>1</bFreePromotion>
  </FreePromotion>
</FreePromotions>
<FreePromotionUnitCombats>
  <FreePromotionUnitCombat>
    <UnitCombatType>UNITCOMBAT_MELEE</UnitCombatType>
    <bFreePromotionUnitCombat>1</bFreePromotionUnitCombat>
  </FreePromotionUnitCombat>
  <FreePromotionUnitCombat>
    <UnitCombatType>UNITCOMBAT_GUN</UnitCombatType>
    <bFreePromotionUnitCombat>1</bFreePromotionUnitCombat>
  </FreePromotionUnitCombat>
</FreePromotionUnitCombats>

New code allowing for flexibility in promotion allocation by traits :
Code:
<FreePromotions>
  <FreePromotion>
    <PromotionType>PROMOTION_COMBAT1</PromotionType>
    <bFreePromotion>1</bFreePromotion>
    <FreePromotionUnitCombats>
      <FreePromotionUnitCombat>
        <UnitCombatType>UNITCOMBAT_MELEE</UnitCombatType>
        <bFreePromotionUnitCombat>1</bFreePromotionUnitCombat>
      </FreePromotionUnitCombat>
      <FreePromotionUnitCombat>
        <UnitCombatType>UNITCOMBAT_GUN</UnitCombatType>
        <bFreePromotionUnitCombat>1</bFreePromotionUnitCombat>
      </FreePromotionUnitCombat>
    </FreePromotionUnitCombats>
  </FreePromotion>
  <FreePromotion>
    <PromotionType>PROMOTION_FLANKING1</PromotionType>
    <bFreePromotion>1</bFreePromotion>
    <FreePromotionUnitCombats>
      <FreePromotionUnitCombat>
        <UnitCombatType>UNITCOMBAT_MOUNTED</UnitCombatType>
        <bFreePromotionUnitCombat>1</bFreePromotionUnitCombat>
      </FreePromotionUnitCombat>
    </FreePromotionUnitCombats>
  </FreePromotion>
</FreePromotions>

Thank you for reading and considering it. I need (& others too) such ability.
 
Back
Top Bottom