Ploeperpengel
academic precarity
I want to make peaks workable if a player has a special trait and change the yields of the Peak for the player while ignoring the baseterrain yields on that plot.
Can anything be done with these functions in onCitydoTurn to achieve this?:
int setBaseYieldRate
bool canWork (CyPlot pPlot)
Would that require SDK changes or could it be done with python only? Can it be done at all?
I wanted to start like this but don't have an idea how I could go on:
Can anything be done with these functions in onCitydoTurn to achieve this?:
int setBaseYieldRate
bool canWork (CyPlot pPlot)
Would that require SDK changes or could it be done with python only? Can it be done at all?
I wanted to start like this but don't have an idea how I could go on:
Code:
def onCityDoTurn(self, argsList):
'City Production'
pCity = argsList[0]
iPlayer = argsList[1]
pPlot = pCity.plot()
pPlayer = gc.getPlayer(pCity.getOwner())
if pPlayer.hasTrait(gc.getInfoTypeForString('TRAIT_SUBTERRANEAN')) and pPlot.isPeak():