platyping
Sleeping Dragon
Code:
## Chance of Spawning each Natural Wonder: (CyMap().getWorldSize() +1) * 12 ##
[COLOR="Lime"]if 1 < 2:[/COLOR] WonderPlot = []
for i in xrange(CyMap().numPlots()):
## Chance of Spawning each Natural Wonder: (CyMap().getWorldSize() +1) * 12 ##
[COLOR="Lime"]if 1 < 2:[/COLOR] WonderPlot = []
for i in xrange(CyMap().numPlots()):
Code:## Chance of Spawning each Natural Wonder: (CyMap().getWorldSize() +1) * 12 ## [COLOR="Lime"]if 1 < 2:[/COLOR] WonderPlot = [] for i in xrange(CyMap().numPlots()):
Thanks! It definitely works (the 100% spawn code) in BtS, RevolutionDCM is giving problems again though (because yes I am that guy that's trying to merge everything that he likes with RevDCM). In fact, no Natural Wonders spawn at all with RevDCM with the old code as well, just nothing happens - I am trying to figure out now why for myself and the people that also want NW with RevDCM.
EDIT:
In the RevEvents.py file onCityBuilt is already used. Therefore the onCityBuilt in CvEventManager does not work.
The fix is very simple though:
paste the same code in RevEvents.py under the other code beneath onCityBuilt.
The other part of the code, onPlotRevealed, can be left in CvEventManager and both pieces of code function on their own
in different files. Case closed
Nothing wrong.
If you "built" those cities via WorldBuilder, then they won't get the bonus, because codes not triggered.
Good to know, I was planning on merging the two at some point when I sit down to play.
Although I was thinking of attempting to put together a BUG version of it.
for x in xrange(city.getX() - 1, city.getX() + 2):
for y in xrange(city.getY() - 1, city.getY() + 2):
pPlot = CyMap().plot(x, y)
for i in range(21):
pPlot = city.getCityIndexPlot(i)
Worked again You are of great help but I am greedy enough to ask for help one last timeReplace
Code:for x in xrange(city.getX() - 1, city.getX() + 2): for y in xrange(city.getY() - 1, city.getY() + 2): pPlot = CyMap().plot(x, y)
with
Code:for i in range(21): pPlot = city.getCityIndexPlot(i)
if pPlot.getFeatureType() > -1:
if gc.getFeatureInfo(pPlot.getFeatureType()).getType().find("FEATURE_PLATY_") > -1:
lBuildings = []
lBuildings.append(gc.getInfoTypeForString('BUILDING_NATURAL_WONDER'))
Great, worked again!city.setNumRealBuilding(gc.getInfoTypeForString("BUILDING_AIR_BASE"), 1)