okay das ist jetzt strange... offensichtlich hat platyping aber recht. man vergleiche bildnachricht und code:
PHP-Code:
def onPlotFeatureRemoved(self, argsList):
'Plot Revealed'
pPlot = argsList[0]
iFeatureType = argsList[1]
pCity = argsList[2] # This can be null
iPlayer = pPlot.getOwner()
if iPlayer != -1 and pCity != -1:
pPlayer = gc.getPlayer(iPlayer)
pCapital = pPlayer.getCapitalCity()
iTeam = pPlayer.getTeam()
pTeam = gc.getTeam(iTeam)
##### Note to Modders, the codes look weird, because Firaxis named the variables wrongly #######
# ZE: Brasilien 2/2 Start -----------------------------------------------------------------------------------------------
if pPlayer.isAlive() and pPlayer.getCivilizationType() == gc.getInfoTypeForString("CIVILIZATION_BRAZIL") :
iTech = gc.getInfoTypeForString("TECH_BRAZIL")
if gc.getTeam(pPlayer.getTeam()).isHasTech(iTech):
if pCity == gc.getInfoTypeForString("FEATURE_FOREST"):
iExtraWood = 20 * (100 + pPlayer.getFeatureProductionModifier()) * gc.getGameSpeedInfo(CyGame().getGameSpeedType()).getFeatureProductionPercent() / 10000
iExtraWood /= 5
pCapital.changeProduction(iExtraWood)
elif pCity == gc.getInfoTypeForString("FEATURE_JUNGLE"):
iExtraWood = 30 * (100 + pPlayer.getFeatureProductionModifier()) * gc.getGameSpeedInfo(CyGame().getGameSpeedType()).getFeatureProductionPercent() / 10000
iExtraWood /= 5
pCapital.changeProduction(iExtraWood)
CyInterface().addMessage(iPlayer,true,20,CyTranslator().getText("TXT_MOREWOOD",(iExtraWood,iFeatureType.getName(),)),'',0,'',-1,-1,-1, true,true)
# ZE: Brasilien 2/2 End -----------------------------------------------------------------------------------------------