well done platy, looks great.
say - this code from pesky:
## Select avaialble plots ##
lLuckyPlot = []
for x in xrange(pCity.getX() - self.iRadius, pCity.getX() + self.iRadius + 1):
for y in xrange(pCity.getY() - self.iRadius, pCity.getY() + self.iRadius + 1):
pLoopPlot = CyMap().plot(x, y)
if pLoopPlot.isNone(): continue
if pLoopPlot.isImpassable(): continue
if pLoopPlot.isCity(): continue
if pLoopPlot.isWater(): continue
if pLoopPlot.getTeam() != iTeam: continue
lLuckyPlot.append(pLoopPlot)
the "continue" means skip? not to spawn on this plot?
if i wat the spawn to occur on certain terrain- only desert per say?
ANOTHER from pesky -
## Based on Era, Ancient >>> Future ##
self.lUnits1 = ["UNITCLASS_BURROW0","UNITCLASS_BURROW1", "UNITCLASS_BURROW1", "UNITCLASS_BURROW3", "UNITCLASS_BURROW3", "UNITCLASS_BURROW4", "UNITCLASS_BURROW4"]
self.lUnits2 = ["NONE","NONE", "NONE", "NONE", "NONE", "NONE", "NONE"]
self.lUnits3 = ["NONE","NONE", "NONE", "NONE", "NONE", "NONE", "NONE"]
self.lUnits4 = ["NONE","NONE", "NONE", "NONE", "NONE", "NONE", "NONE"]
i did this - those units are only buildble by barbarian civ - al other civs have >none< on this unit class,
but - the units pesky bards are spawning are none of the one i listed -i picks one of the late game units and spawns it.
what have i done wrong? (i have 7 eras in game - like regular)