[bug] Custom faction with Powerful trait gains no bonuses

To test this out, I created one custom Altarian faction with no faction bonuses. My trained units had 8 strength and 8 constitution. Then I created another custom altarian faction with the faction bonus Powerful. My trained units had 8 strength and 8 constitution, and the trait that said the stuff it does. http://i.imgur.com/8hheE.jpg

It is difficult to tell, but I think this applies to the Yithril trait as well?

3,517 views 3 replies
Reply #1 Top

I had a quick look at the Powerful ability in the xml, and it says

    <AbilityBonus InternalName="PowerfulEmpireAbility">
        <AbilityBonusType>Player</AbilityBonusType>
        <AbilityBonusOption InternalName="PowerfulEmpire">
            <DisplayName>Powerful</DisplayName>
            <Description>All units get +3 Strength and +2 Constitution</Description>
            <Icon>Ability_Powerful_Icon.png</Icon>
            <GameModifier>
                <ModType>Unit</ModType>
                <Attribute>AdjustUnitStat</Attribute>
                <StrVal>A_UnitStat_Constitution</StrVal>
                <Value>2</Value>
            </GameModifier>
            <GameModifier>
                <ModType>Unit</ModType>
                <Attribute>AdjustUnitStat</Attribute>
                <StrVal>A_UnitStat_Strength</StrVal>
                <Value>3</Value>
            </GameModifier>
            <Cost>1</Cost>
            <HideWhenUpgraded>0</HideWhenUpgraded>
            <AIData AIPersonality="AI_General">
                <AIPriority>5</AIPriority>
            </AIData>
        </AbilityBonusOption>
    </AbilityBonus>

 

I believe it should not say A_UnitStat_Constitution, but just UnitStat_Constitution and the same for strength.

 

 

I didn't check these, but the same XML problem exists in some other faction traits for units, such as Quick, Weak and so on.

 

Reply #2 Top

Good call, thanks Heavenfall.

Reply #3 Top

You did notice it's not just the Powerful ability, right?

Just by looking at XML for faction unit traits

Lucky
Quick
Vulnerable
Weak