How do you add traits to the sovereign creation screen?
I've created the below code:
- <AbilityBonuses>
- <AbilityBonus>
- <AbilityBonusOption InternalName="Anarchist">
- <DisplayName>Anarchist</DisplayName>
- <Description>-30% to trade value.</Description>
- <Icon>AOW_Anarchist_Icon.png</Icon>
- <GameModifier>
- <ModType>Player</ModType>
- <Attribute>AbilityBonus</Attribute>
- <StrVal>A_Diplomacy</StrVal>
- <Value>-30</Value>
- </GameModifier>
- <Cost>-1</Cost>
- <HideWhenUpgraded>0</HideWhenUpgraded>
- <AIData AIPersonality="AI_General">
- <AIPriority>5</AIPriority>
- </AIData>
- </AbilityBonusOption>
- </AbilityBonus>
- </AbilityBonuses>
I can get it to appear in game if I manually add it to a sovereign. But I cannot figure out how to implement it in the sovereign creation screen. I expected to find an XML file somewhere that calls to the InternalName and puts it in the Weaknesses section, or some code somewhere in the CoreAbilities file that denotes that it should go into the weaknesses section.