How to query on "percent chance to revolt"?

Spocko

Warlord
Joined
Dec 18, 2005
Messages
170
Location
Kittery, Maine
I'm trying to build a popup that warns me when one of my cities has at least a 5% chance of going into revolt - but I don't see any Python class references that collect this data, nor does CvMainInterface show any obvious way (at least to me anyway...) that it is gathering this data for display in the city screen.

Any ideas?
Thanks!!
Spocko
 
I'm trying to build a popup that warns me when one of my cities has at least a 5% chance of going into revolt - but I don't see any Python class references that collect this data, nor does CvMainInterface show any obvious way (at least to me anyway...) that it is gathering this data for display in the city screen.

Any ideas?
Thanks!!
Spocko

I have seen a function in CvCity.cpp but it seem's not to be exposed to python :
Code:
int CvCity::getRevoltTestProbability() const

This question should be in the SDK/Python forum
 
Back
Top Bottom