I need an advice for a python code which does the following changes:
A bonus ressource will be removed from a plot when the feature on this plot is chopped by workers.
(For example timber. It does not make sense to retain timber on a plot when the forest has been chopped.)
I have already tried to change the CvEventManager.py as follows:
It does not work!
Any suggestions?
A bonus ressource will be removed from a plot when the feature on this plot is chopped by workers.
(For example timber. It does not make sense to retain timber on a plot when the forest has been chopped.)
I have already tried to change the CvEventManager.py as follows:
Code:
def onPlotFeatureRemoved(self, argsList):
'Plot Revealed'
pPlot = argsList[0]
pCity = argsList[1]
iFeatureType = argsList[2] # This can be null????
### Remove BONUS START
if ( iFeatureType == gc.getInfoTypeForString("FEATURE_FOREST"):
pPlot.setBonusType(-1)
### Remove BONUS END
It does not work!
Any suggestions?