Farm adjacency modding

orangecape

Chieftain
Joined
Oct 29, 2010
Messages
90
I am looking to remove farm adjacencies in a mod. (The Feudalism and Replaceable Parts ones, specifically.) Other improvement adjacencies are controlled by

Adjacency_YieldChanges

and I can modify them from there easily enough. However, I can't find farm adjacencies there, (only cahokia mound and terrace farm). Does anyone know where farm adjacencies are located so I can remove them?

Thanks in advance,
 
What you need should be in the Improvements.xml file in table Improvement_Adjacencies and subsequently Adjacency_YieldChanges:

<Row ImprovementType="IMPROVEMENT_FARM" YieldChangeId="Farms_MedievalAdjacency"/>
<Row ImprovementType="IMPROVEMENT_FARM" YieldChangeId="Farms_MechanizedAdjacency"/>

<Row ID="Farms_MedievalAdjacency" Description="Placeholder" YieldType="YIELD_FOOD" YieldChange="1" TilesRequired="2" AdjacentImprovement="IMPROVEMENT_FARM" PrereqCivic="CIVIC_FEUDALISM" ObsoleteTech="TECH_REPLACEABLE_PARTS"/>
<Row ID="Farms_MechanizedAdjacency" Description="Placeholder" YieldType="YIELD_FOOD" YieldChange="1" TilesRequired="1" AdjacentImprovement="IMPROVEMENT_FARM" PrereqTech="TECH_REPLACEABLE_PARTS"/>

If you only see the cahokia mound and terrace farm, you are probably looking into the Expansion2 file or such, but farms have their modifiers in the base game files, and they should be used without a change in expansions.
 
Back
Top Bottom