Civ leader trait help

LoneGamer

Warlord
Joined
Sep 27, 2010
Messages
138
Looking to change the gold improvement yield of trading posts from 2 to 3 as a new civs trait. Dunno how to go about this. Anyone wanna point me in the right direction?
 
As far as I understand it, you cannot do this as of yet. There is a workaround. There is some old code in the CivTraits.xml that is not being used by any other traits as of right now...

Code:
<Trait_ExtraYieldThresholds>
		<Row>
			<TraitType>TRAIT_FINANCIAL</TraitType>
			<YieldType>YIELD_FOOD</YieldType>
			<Yield>2</Yield>
		</Row>
	</Trait_ExtraYieldThresholds>

If you add a new trait, you can change the YieldType to YIELD_GOLD.

The <Yield> field, says that any tile that already provides 2 gold will provide +1 additional gold. You can modify that integer to decide what the low threshold would be.

I used this code to add a new trait and on every tile with at least 1 Production, there will be an additional +1 Production.

Code:
<Trait_ExtraYieldThresholds>
		<Row>
			<TraitType>TRAIT_INDUSTRY</TraitType>
			<YieldType>YIELD_PRODUCTION</YieldType>
			<Yield>1</Yield>
		</Row>
	</Trait_ExtraYieldThresholds>
 
Awesome. Yeah I saw that TRAIT_FINANCIAL in the Civ5Traits.xml but didn't see it linked to any of the leaders. I wasn't sure about what it did, cause I mainly base what the traits do from the info on the leaders. Thanks for this work around, appreciate it a lot.
 
You wouldn't happen to know what the difference between <Trait_ExtraYieldThresholds> and <Trait_YieldChanges>?
 
You wouldn't happen to know what the difference between <Trait_ExtraYieldThresholds> and <Trait_YieldChanges>?

I was hoping that it would change all tiles, but from what I can tell, it just changes the city tile. I tested this by setting production to 10 in YieldChanges. It only modified the city tile.
 
Back
Top Bottom