Minor Annoyance
Deity
I plan to add three factors to alter the time a captured city stays in revolt:
-A promotion, for suppressing captured population, which I will use the existing iRevoltProtection field for.
-A field from a civic of the player who lost the city which represents the loyalty of the population to their government
-A field from a civic of the the capturing player which represents how well captured population can integrate into the society.
CvPlayer::acquireCity is where the calculation for the turns a captured city stays in revolt is, but I'm not sure what variables are referring to which player, or if it has the capturing unit in the function. I'm assuming the function is activated on the player acquiring the city, but there are more than one reference to other owners. I think eOldOwner is the one I want to check for. That just leaves the capturing unit. Can someone point out how in this function I can pick out the unit capturing the city?
-A promotion, for suppressing captured population, which I will use the existing iRevoltProtection field for.
-A field from a civic of the player who lost the city which represents the loyalty of the population to their government
-A field from a civic of the the capturing player which represents how well captured population can integrate into the society.
CvPlayer::acquireCity is where the calculation for the turns a captured city stays in revolt is, but I'm not sure what variables are referring to which player, or if it has the capturing unit in the function. I'm assuming the function is activated on the player acquiring the city, but there are more than one reference to other owners. I think eOldOwner is the one I want to check for. That just leaves the capturing unit. Can someone point out how in this function I can pick out the unit capturing the city?