Earlier civic effect as an unique ability

Mikhaelstan

Chieftain
Joined
Dec 10, 2016
Messages
18
Hello one and all, I am in need of advice for my unique ability. I want to give my civ the ability to build farms on hills earlier on in the civics tree. Currently its unlocked once the Civil Engineering is researched.

I've looked through the modifiers file to find an XML method and couldn't find one. I've also looked at how Spain is able to form military corps earlier than the Nationalism civic but it only works for military units as far as I can tell. Any suggestions would be greatly appreciated.
 
The easiest way i can think of is creatig an improvement that acts the same way as a farm, but is unique to that civilization and is buildable on hills (earlier)

The hard part will be making sure everything that should affect farms also affects your unique farm, so you have to make sure to copy all the adjacencys and so on

Also things that use a farm requirement wont work unless you change some more stuff(i think this case doesnt happen in the basegame, but is relevant for other mods maybe)

There might be a more elegant way of course
 
You could possibly fake this by giving the civ the same Modifier the Civil Engineering civic has (just assign to the leader/civ trait). Then when the civ unlocks the Civil Engineering civic, slap a new Modifier on them that provides -1 (to prevent stacking).
 
You might be looking for this bit of code in Improvements.xml
Code:
        <Row ImprovementType="IMPROVEMENT_FARM" TerrainType="TERRAIN_PLAINS_HILLS" PrereqCivic="CIVIC_CIVIL_ENGINEERING"/>
        <Row ImprovementType="IMPROVEMENT_FARM" TerrainType="TERRAIN_GRASS_HILLS" PrereqCivic="CIVIC_CIVIL_ENGINEERING"/>
 
Back
Top Bottom