I have something in onDoCityTurn already (it prevents unhappiness from defying a UN resolution while running the Police State civic), so is this how I'd add the first bit of code? (the code you added is in red)
Code:def onCityDoTurn(self, argsList): 'City Production' pCity = argsList[0] iPlayer = argsList[1] [COLOR="Red"] ###from here pPlayer = gc.getPlayer(iPlayer) if not pPlayer.isCivic(gc.getInfoTypeForString("CIVIC_SLAVERY")): iSlaveSpecialist = gc.getInfoTypeForString("SPECIALIST_SLAVE") iSlaveSpecialistInCity = pCity.getSpecialistCount(iSlaveSpecialist) pCity.alterSpecialistCount(iSlaveSpecialist,-iSlaveSpecialistInCity) ###to here[/COLOR] # no anger defying UN resolutions start # iGovernmentCivicOption = CvUtil.findInfoTypeNum(gc.getCivicOptionInfo,gc.getNumCivicOptionInfos(),'CIVICOPTION_GOVERNMENT') iPoliceState = CvUtil.findInfoTypeNum(gc.getCivicInfo,gc.getNumCivicInfos(),'CIVIC_POLICE_STATE') pPlayer = gc.getPlayer(iPlayer) iGovernmentCivic = pPlayer.getCivics(iGovernmentCivicOption) if (iGovernmentCivic == iPoliceState): pCity.changeDefyResolutionAngerTimer(pCity.getDefyResolutionAngerTimer()) # no anger defying UN resolutions end #
You have again spaces instead of tabs!


It seems to look right.