Kuriotate/Sprawling

razzach

Warlord
Joined
Mar 14, 2009
Messages
125
Do anyone know what python handles the selection of Settlement/City when building new cities for the Kurios? Thanks :p
 
I believe it is handled in the DLL, not python.

Promoting settlements is handled in CvSpellInterface.py
Code:
def reqPromoteSettlement(caster):
	pPlot = caster.plot()
	pCity = pPlot.getPlotCity()
	if not pCity.isSettlement():
		return False
	pPlayer = gc.getPlayer(caster.getOwner())
	if pPlayer.getNumCities() - pPlayer.getNumSettlements() >= pPlayer.getMaxCities():
		return False
	return True

def spellPromoteSettlement(caster):
	pPlot = caster.plot()
	pCity = pPlot.getPlotCity()
	pCity.setSettlement(False)
	pCity.setPlotRadius(3)
 
pCity.setPlotRadius(3)

So this is the one that set the plot radius for cities? I want to have settlements/cities selection but plot radius is only 2. Thanks!
 
What do u mean xien? What I really want was to retain the Sprawling trait w/ limited cities and able to build settlements but the cities radius will be just 2.
 
Good thing you asked about this, was checking to be certain that it works as easily as it should (just change <bSprawling>1</bSprawling> to <bSprawling>0</bSprawling> in the TraitInfos for TRAIT_SPRAWLING) and found a bit of an error with the promote settlement spell.


Anyway, minor glitch sorted out now, so as of next patch you can have 2 ring cities with a limit on max number by just changing that 1 to a 0.
 
Back
Top Bottom