Hi all. Of part of a trait to a civ I want mountains to provide + 1 culture. (It's going to be for a scenario so it will make sense ) Looking at a guide for adding custom traits, and looking at how the celts have defined their trait, I've made this:
sql:
xml:
I originally tried to copy the celts "Trait_UnimprovedFeatureYieldChanges" but it obviously doesn't work as a mountain is a terrain type and not a feature type. So I tried to "make my own" I havn't been able to find guides on this part, so I don't know if I'm doing it right.
Help will be very appreciated! Thanks
sql:
Spoiler :
Code:
INSERT INTO Trait_TerrainYieldChanges (TraitType, TerrainType, YieldType, Yield)
SELECT 'TRAIT_HIGH', Type, 'YIELD_CULTURE', 1
FROM Terrains WHERE Type IN (
'TERRAIN_MOUNTAIN',
);
xml:
Spoiler :
Code:
<Table name="Trait_TerrainYieldChanges">
<Column name="TraitType" type="text" reference="Traits(Type)"/>
<Column name="TerrainType" type="text" reference="Terrains(Type)"/>
<Column name="YieldType" type="integer" reference="Yields(Type)"/>
<Column name="Yield" type="integer"/>
</Table>
I originally tried to copy the celts "Trait_UnimprovedFeatureYieldChanges" but it obviously doesn't work as a mountain is a terrain type and not a feature type. So I tried to "make my own" I havn't been able to find guides on this part, so I don't know if I'm doing it right.
Help will be very appreciated! Thanks