hrochland
Prince
Hi, all. I want use this code for swamp draining but it is wrong. Can you see error here, please.
Thank for help
Thank for help
PHP:
def onImprovementBuilt(self, argsList):
'Improvement Built'
iImprovement, iX, iY = argsList
###Draining###
pPlot = CyMap().plot(iX, iY)
if iImprovement == gc.getInfoTypeForString('IMPROVEMENT_CREATE_GRASS'):
pPlot.setTerrainType(gc.getInfoTypeForString( "TERRAIN_GRASS" ), 1, 1)
pPlot.setImprovementType(-1)
###Draining###
if (not self.__LOG_IMPROVEMENT):
return