City Resistance

StallBreaker

Chieftain
Joined
Aug 8, 2016
Messages
1
Location
America
As you all know, after capturing a city, the city enters resistance for an amount of time based on population. Is there any way using XML modding to edit the amount of time a city is in resistance? If not, is there any "back door" solution, like editing a certain modifier in game speed?
 
Question should be posted in the main C&C forum - I've asked a mod to move this.

Resistance turns are hard coded in the DLL (C++) as

iNewPopulation() * (100 - iInfluenceReduction) / 100

where iInfluenceReduction depends on your cultural dominance (via tourism) over the civ that previously owned the city.

Short of re-coding and re-compiling the DLL, there is no way to change this initial setting via XML

However, you can use Lua to detect the city capture and change the remaining resistance turns as desired.
 
Top Bottom