How to make calculations for unitstats work
I want to give stationed units bonus experience based on the essence of the city.
<GameModifier>
<ModType>StationedUnitStatBonus</ModType>
<StrVal>UnitStat_Experience</StrVal>
<StrVal2>OnlyTrainedUnits</StrVal2>
<Calculate InternalName="value" ValueOwner="OwnerCity">
<Expression><![CDATA[[TileYieldEssence] + 1]]></Expression>
</Calculate>
<BonusValue>100</BonusValue>
<Provides>Stationed non-champion units gain 1xp/essence per season</Provides>
</GameModifier>
But it doesn't work. Maybe the string for ValueOwner-tag is wrong. I tried "Unit" or "StationedUnit" instead of "OwnerCity" but without success.
Anyone have an idea?