platyping
Sleeping Dragon
That one is too troublesome because that requires callback
mm platy,
can you do me a favor man?
can you merge the 3 pedia files you made in requirement mod with your uuuu pedia?
i tried to do it my self a few times, and every time i get no ui....it will probably take u 2 min to do it
also using only the req pedia files with uuuu wont work
i cant use it with pedia now![]()
def doGrowth(self,argsList):
pCity = argsList[0]
## Avoid Growth ##
sScript = pCity.getScriptData()
if len(sScript) == 2:
sHappy = sScript[0]
sHealth = sScript[1]
if sHappy == "1":
if pCity.happyLevel() < pCity.unhappyLevel(0):
return True
if pCity.happyLevel() == pCity.unhappyLevel(0):
if pCity.getFoodTurnsLeft() < 2:
return True
if sHealth == "1":
if pCity.goodHealth() < pCity.badHealth(False):
return True
if pCity.goodHealth() == pCity.badHealth(False):
if pCity.getFoodTurnsLeft() < 2:
return True
## Avoid Growth ##
return False
Code:def doGrowth(self,argsList): pCity = argsList[0] ## Avoid Growth ## sScript = pCity.getScriptData() if len(sScript) == 2: sHappy = sScript[0] sHealth = sScript[1] if sHappy == "1": if pCity.happyLevel() < pCity.unhappyLevel(0): return True if pCity.happyLevel() == pCity.unhappyLevel(0): if pCity.getFoodTurnsLeft() < 2: return True if sHealth == "1": if pCity.goodHealth() < pCity.badHealth(False): return True if pCity.goodHealth() == pCity.badHealth(False): if pCity.getFoodTurnsLeft() < 2: return True ## Avoid Growth ## return False
Isn't that what the code is doing?
just curious, on your new building pedia screen shot the list is on the left, before it was on the right, what's the reason for the shift?
it may be a left handed verses right handed thing. "down with the tyranny of the right handers!"
added function to alternate left/right view
self.iRankDivisor = 3 ## For teams ranked last 1/X portion
self.fBase = 0.50 ## Base Transfer Rate
self.fOpenBorderBoost = 0.50 ## + X if Open Borders
self.fEraBoost = 1.00 ## + X Per Era Advance of Transferee
self.fAttitudeMultiplier = 0.50 ## Furious: 0x, Annoyed: 1x, Cautious: 2x, Pleased: 3x, Friendly: 4x
fBase = self.fBase + (pPlayerX.getCurrentEra() + 1 - iEra) * self.fEraBoost
fBase += self.fOpenBorderBoost * pTeam.isOpenBorders(iTeamX)
fBase *= pPlayerX.AI_getAttitude(iPlayer) * self.fAttitudeMultiplier
fBasePercent += fBase * 100 / gc.getHandicapInfo(pPlayer.getHandicapType()).getResearchPercent()
Sorry, don't worry about it.In RoM:AND Afforess added code that if you wanted the city to grow you needed to return False and if you wanted the city not to grow you need to return True reversing the meaning of the call back. Any mod using your mod wont be using Afforess dll mod so there is no problem.
That one is too troublesome because that requires callback