mikeejimbo
Chieftain
- Joined
- Jan 16, 2010
- Messages
- 65
All right, so I'm trying to make a Chaplain promotion similar to the Apostle's, which gives it the Medic's ability. So since I figured it's basically a copy/paste of either of two existing abilities, it should be simple enough. However, even though I'm able to grant a military unit the promotion, it doesn't seem to actually do anything.
That is literally the entire code of the only XML I have in the mod. I have a SQL file that changes the Warrior to PROMOTION_CLASS_SPECIAL, which I have been successfully using for a few other promotions. But I'm scratching my head at this one, since it seems like it should be simple.
I'm probably overlooking something easy - any thoughts?
Code:
<?xml version="1.0" encoding="utf-8"?>
<GameInfo>
<Types>
<Row Type="PROMOTION_CLASS_SPECIAL" Kind="KIND_PROMOTION_CLASS"/>
<Row Type="PROMOTION_CHAP" Kind="KIND_PROMOTION"/>
</Types>
<UnitPromotions>
<Row UnitPromotionType="PROMOTION_CHAP" Name="Holy Chaplain" Description="This unit heals your units around it." Level="1" Specialization="" Column="1" PromotionClass="PROMOTION_CLASS_SPECIAL"/>
</UnitPromotions>
<UnitPromotionClasses>
<Row PromotionClassType="PROMOTION_CLASS_SPECIAL" Name="LOC_PROMOTION_CLASS_SPECIAL_NAME"/>
</UnitPromotionClasses>
<UnitPromotionModifiers>
<Row>
<UnitPromotionType>PROMOTION_CHAP</UnitPromotionType>
<ModifierId>HOLY_CHAPLAIN</ModifierId>
</Row>
</UnitPromotionModifiers>
<Modifiers>
<Row>
<ModifierId>HOLY_CHAPLAIN</ModifierId>
<ModifierType>MODIFIER_PLAYER_UNITS_ADJUST_HEAL_PER_TURN</ModifierType>
<SubjectRequirementSetId>MEDIC_HEALING_REQUIREMENTS</SubjectRequirementSetId>
</Row>
</Modifiers>
<ModifierArguments>
<Row>
<ModifierId>HOLY_CHAPLAIN</ModifierId>
<Name>Amount</Name>
<Value>5</Value>
</Row>
<Row>
<ModifierId>HOLY_CHAPLAIN</ModifierId>
<Name>Type</Name>
<Value>ALL</Value>
</Row>
</ModifierArguments>
<ModifierStrings>
<Row ModifierId="HOLY_CHAPLAIN" Context="Summary" Text="LOC_ABILITY_MEDIC_HEAL_DESCRIPTION"/>
<Row ModifierId="HOLY_CHAPLAIN" Context="Preview" Text="LOC_ABILITY_MEDIC_HEAL_MODIFIER_DESCRIPTION"/>
</ModifierStrings>
</GameInfo>
That is literally the entire code of the only XML I have in the mod. I have a SQL file that changes the Warrior to PROMOTION_CLASS_SPECIAL, which I have been successfully using for a few other promotions. But I'm scratching my head at this one, since it seems like it should be simple.
I'm probably overlooking something easy - any thoughts?