Increase city center tile by +1 food when setled on river

PortusCale7

Chieftain
Joined
Mar 13, 2018
Messages
6
Hi

Does anyone know, if it is possible to make cities have more 1 food when setled on a river?

Is it possible to do that, changing only xml files?

Thank you very much for you help!
 
Does anyone know, if it is possible to make cities have more 1 food when setled on a river?
Of course it is. :)

Is it possible to do that, changing only xml files?
Not directly by a single XML attribute but maybe by some strange workaround like:
- Having a Building that is only allowed on Rivers that increases CityCenterYield by +1

----------

The easiest way to do it however is to simply code it in the DLL logic.
It should not be that much effort. (Not sure however how the method is called in Civ4BTS, since I mod Civ4Col.)

Maybe search for this in the code
CITY_HOME_PLOT
 
Last edited:
Thank you very much for your reply Ray.

My programing skills are very low though, i dont know how to change the dll... But, thanks for telling what are the options.
 
Yes, unfortunately this is a bit more complicated then even I thought. I'm trying to do it right now. It should be in the CvPlot.cpp but I doubt it will work.
Anyway I'll let you know if it does.
 
Maybe something like this could be used:

From the Buildinginfos file, building DOCK.

<SeaPlotYieldChanges>
<iYield>1</iYield>
<iYield>0</iYield>
<iYield>0</iYield>
</SeaPlotYieldChanges>


See below this section we have one for
<RiverPlotYieldChanges/>


If this below is added/changed to a "suitable" building then.....

<RiverPlotYieldChanges>
<iYield>1</iYield>
<iYield>0</iYield>
<iYield>0</iYield>
</RiverPlotYieldChanges>


Don't know for sure - have not tried it. I just "stumbled" over this while I was "updating" (hmmm.............) BtS, mod R:I 3.57 with my own personal changes.
 
I doubt it will be ALL plots. But maybe all, which has a river.
 
I doubt it will be ALL plots. But maybe all, which has a river.
Sure. :)
Thought that was obvious though that it would only affect Plots with a river.
(It is still not just the "City Center Plot" in case it has a river but other Plots with river as well.)
 
Top Bottom