Lord Shadow
General
So I'm trying to create a custom trait which grants +1 Production from Forests and Jungles, but I can't seem to be able to figure it out from Civ5Traits.xml. I might need to create a new table, and I have zero experience with that.
I worked rather blindly and here's the result
There must be some error(s) in there. I'd love some input.
I worked rather blindly and here's the result
Code:
<GameData>
<Table name="Trait_FeatureYieldChanges">
<Column name="TraitType" type="text" reference="Traits(Type)"/>
<Column name="FeatureType" type="text"/>
<Column name="YieldType" type="text" reference="Yields(Type)"/>
<Column name="Yield" type="integer"/>
</Table>
<Traits>
<Row>
<Type>TRAIT_TREE_PRODUCTION</Type>
<Description>TXT_KEY_TRAIT_TREE_PRODUCTION</Description>
<ShortDescription>TXT_KEY_TRAIT_TREE_PRODUCTION_SHORT</ShortDescription>
</Row>
</Traits>
<Trait_FeatureYieldChanges>
<Row>
<Type>TRAIT_TREE_PRODUCTION</Type>
<FeatureType>FEATURE_FOREST</FeatureType>
<YieldType>YIELD_PRODUCTION</YieldType>
<Yield>1</Yield>
</Row>
<Row>
<Type>TRAIT_TREE_PRODUCTION</Type>
<FeatureType>FEATURE_JUNGLE</FeatureType>
<YieldType>YIELD_PRODUCTION</YieldType>
<Yield>1</Yield>
</Row>
</Trait_FeatureYieldChanges>
</GameData>