I was taking another try at a space mod. I want to require a planet to settle. But I want more than one planet. I'm in CvGameUtils.PY. I have managed to do it for one feature. Forest for now since it won't place planets on the map. I can't make it work for multiple planets. I'd try messing around with dummy nodes in Final Frontier, but that would make a mess that I couldn't clean up. Plus I want to control which planet I place on the map because the final will be a scenario file. So I tried messing with if's and or's and else's. Nothing worked.
Help is appreciated. i.e. I'm python coding ignorant.
Original Code:
Help is appreciated. i.e. I'm python coding ignorant.
Original Code:
PHP:
def cannotFoundCity(self,argsList):
iPlayer, iPlotX, iPlotY = argsList
return False
New Code For Only 1 Feature:
def cannotFoundCity(self,argsList):
iPlayer, iPlotX, iPlotY = argsList
pPlot = CyMap().plot(iPlotX, iPlotY)
if (pPlot):
iFeatureIDPlanet = CvUtil.findInfoTypeNum(gc.getFeatureInfo,gc.getNumFeatureInfos(),'FEATURE_FOREST')
if (pPlot.getFeatureType() != iFeatureIDPlanet):
return True
return False