if iData1 == 5013:
pPlayer = gc.getPlayer(iData2)
for i in xrange(21):
pPlot = pPlayer.getCity(iData3).getCityIndexPlot(i)
iFeature = pPlot.getFeatureType()
if iFeature == -1: continue
sType = gc.getFeatureInfo(iFeature).getType()
if sType.find("FEATURE_PLATY_") == -1: continue
sNature = sType[sType.find("_PLATY_") + 7:]
sBuildingType = "BUILDING_" + sNature
iBuilding = gc.getInfoTypeForString(sBuildingType)
if iBuilding == -1: continue
bBuilt = NaturalWonders.NaturalWonders().checkWonderBuilt(pPlot, pPlayer.getCity(iData3))
if sType in NaturalWonders.NaturalWonders().lBigWonder and not bBuilt:
bFound = False
iX = pPlot.getX()
iY = pPlot.getY()
for x in xrange(iX - 1, iX + 2):
for y in xrange(iY - 1, iY + 2):
pAdjacentPlot = CyMap().plot(x, y)
if x == iX and y == iY: continue
if pAdjacentPlot.getFeatureType() == iFeature:
bFound = True
break
if bFound: break
bBuilt = NaturalWonders.NaturalWonders().checkWonderBuilt(pAdjacentPlot, pPlayer.getCity(iData3))
if bBuilt: continue
pPlayer.getCity(iData3).setNumRealBuilding(iBuilding, 1)