Ekmek
on steam: ekmek_e
Spoiler :
I think I've found a solution for that, if you look in the CvPlot.cpp file and change calculateNatureYield from "0" to "-1" and set the terrain to produce "0" of a certain yield in the CIV4TerrainInfos.xml:
Code:<Yields> <YieldIntegerPair> <YieldType>YIELD_COFFEE</YieldType> <iValue>0</iValue> </YieldIntegerPair> </Yields>
you'll need a improvement (or a bonus) to be able to produce that yield... Here is the code:
Code:if (GC.getImprovementInfo(eImprovement).getYieldIncrease(eYield) != 0) { TeamTypes eTeam = NO_TEAM; if (ePlayer != NO_PLAYER) { eTeam = GET_PLAYER(ePlayer).getTeam(); } [B] if (calculateNatureYield(eYield, eTeam, false) > -1) [/B] { iYield += GC.getImprovementInfo(eImprovement).getYieldIncrease(eYield); } }
But you'll probably want a improvement specific for each yield, otherwise every resource will show up yielding like this...
Thanks Aymerick, did you put this code in your dll?