Editing hills defence bonus

Jayman1000

Prince
Joined
May 6, 2006
Messages
319
I'm trying to make a mod with increased defense bonuses for forests, jungle, hills and rivers.

So far I managed to successfully edit CIV4FeatureInfos.xml for <Type>FEATURE_FOREST</Type> and <Type>FEATURE_JUNGLE</Type> and change the iDefense value from 50% to 75%.

But when I try to do the same in the file CIV4TerrainInfos.xml for the iDefense value in <Type>TERRAIN_HILL</Type> nothing happens. I set the iDefense value to 50% but it didn't help, hills still only have 25% defense bonus.

What am I doing wrong? In which xml file and where can I change the defense bonus for hills?
 
The hills are not really a terrain type (but a plot type), that entry in the terrainInfos is a necessary fake.

The defense bonus is set in XML\GlobalDefines.xml
PHP:
	<Define>
		<DefineName>HILLS_EXTRA_DEFENSE</DefineName>
		<iDefineIntVal>25</iDefineIntVal>
	</Define>
 
Thank you very much! :goodjob:
 
Top Bottom