Change improvement yield if stacked with road?

maptap

Chieftain
Joined
Mar 6, 2016
Messages
52
Location
NY
Hi all.

How do I increase an improvement's yield if it is stacked with a railroad?

Thanks!
 
wrong forum. I've alerted the website mods to move the thread.

There is table Improvement_RouteYieldChanges with this definition of what is allowed:
Code:
	<Table name="Improvement_RouteYieldChanges">
		<Column name="ImprovementType" type="text" reference="Improvements(Type)"/>
		<Column name="RouteType" type="text" reference="Routes(Type)"/>
		<Column name="YieldType" type="text" reference="Yields(Type)"/>
		<Column name="Yield" type="integer"/>
	</Table>
But Firaxis never used it anywhere, and it's been long enough since I was doing any heavy Civ5 modding that I cannot remember whether it actually works, so it may not actually be implemented in the game's DLL (executing code). You would need to reference ROUTE_RAILROAD for column "RouteType"
 
Thanks for the response!

I have tried that. But after testing I found that only increases the yield if there is a city connection with the railroad. I want just having the railroad there to change the yields.
 
You'd have to use lua then, and you would very likely have to learn how to persist data between saving and reloading a game, as well as how to track the plot yield changes you've implemented so that your lua-code does not make the same adjustment multiple times for the same map-plot.

You'd actually be better off making an unbuildable improvement that is otherwise an exact duplicate of the original improvement, and then swapping the unbuildable improvement in for the normal one when a railroad is added to the tile with the normal improvement. This again requires lua to control the swapping of the tile improvements, and is only really a workable solution where you only intend to have one type of tile improvement affected by having a railroad on the same plot.
 
Back
Top Bottom