(SOLVED) Need help with moding social policies

Dtony

Chieftain
Joined
Aug 23, 2021
Messages
43
To test out if my changes worked I tried giving 1 extra happiness for Liberties collective rule along with it's default policy (%50 settler production and free settler) and + 25% gold if you build grand temple with pieties reformation belief along with it's default policy (bonus reformation belief if you found a religion) but it doesn't seem to be working. here is my code

Code:
<GameData>
    <Policies>
        <Row>
            <Type>POLICY_COLLECTIVE_RULE</Type>
            <Description>TXT_KEY_POLICY_COLLECTIVE_RULE</Description>
            <Civilopedia>TXT_KEY_CIV5_POLICY_COLLECTIVERULE_TEXT</Civilopedia>
            <Help>TXT_KEY_POLICY_COLLECTIVE_RULE_HELP</Help>
            <PolicyBranchType>POLICY_BRANCH_LIBERTY</PolicyBranchType>
            <CultureCost>10</CultureCost>
            <IncludesOneShotFreeUnits>true</IncludesOneShotFreeUnits>
            <GridX>1</GridX>
            <GridY>2</GridY>
            <CapitalSettlerProductionModifier>50</CapitalSettlerProductionModifier>
            <ExtraHappiness>1</ExtraHappiness>
            <PortraitIndex>1</PortraitIndex>
            <IconAtlas>POLICY_ATLAS_EXP2</IconAtlas>
            <IconAtlasAchieved>POLICY_A_ATLAS_EXP2</IconAtlasAchieved>
        </Row>
        </Policies>
    <Policy_BuildingClassYieldModifiers>
        <Row>
            <PolicyType>POLICY_REFORMATION</PolicyType>
            <BuildingClassType>BUILDINGCLASS_GRAND_TEMPLE</BuildingClassType>
            <YieldType>YIELD_GOLD</YieldType>
            <YieldMod>25</YieldMod>
        </Row>
    </Policy_BuildingClassYieldModifiers>
</GameData>

what am i doing wrong? Is it even possible to make these changes with xml only?

EDIT: The policies table worked with the update with set tags and the child table below it works as is.
 
Last edited:
Top Bottom