Hi,
I'm working on a spell which transfers population, food, certain completed buildings and also the current building production.
I have most of it working but can not get the current production to transfer across with everything else. Below is an example of what I've been trying in Python (without success):
eCurrentB = pCity.getProductionBuilding()
iCurrentB = gc.getInfoForType(eCurrentB)
iCurrentBProd = pCity.getBuildingProduction()
pTargetCity.setBuildingProduction(iCurrentB, iCurrentBProd)
Should I be using getProduction() rather than getBuildingProduction()?
Any suggestions as to how I'd make this work?
yours,
LPlate
I'm working on a spell which transfers population, food, certain completed buildings and also the current building production.
I have most of it working but can not get the current production to transfer across with everything else. Below is an example of what I've been trying in Python (without success):
Spoiler :
eCurrentB = pCity.getProductionBuilding()
iCurrentB = gc.getInfoForType(eCurrentB)
iCurrentBProd = pCity.getBuildingProduction()
pTargetCity.setBuildingProduction(iCurrentB, iCurrentBProd)
Should I be using getProduction() rather than getBuildingProduction()?
Any suggestions as to how I'd make this work?
yours,
LPlate