Jarlaxe Baenre
Emperor
I can't figure out what's wrong with this code. It's for an RFC modmod I'm making. It's supposed to give Germany 1 food and 1 hammer on every land tile. There's a building I've created that has a description of ' ' and gives the 1 food and hammer. I believe the problem is in the code.
Code:
## BEGIN HRE UP - Fake Buildings ##
pPlayer = gc.getPlayer(city.getOwner())
iBuildingHRE= gc.getInfoTypeForString('BUILDING_HRE_UP')
getCivilizationType ()
if (CivilizationType ('CIVILIZATION_GERMANY')):
pCity.setNumRealBuilding(iBuildingHRE, 1)
else:
if pCity.getNumActiveBuilding(iBuildingHRE) > 0:
pCity.setNumRealBuilding(iBuildingHRE, 0)
## END HRE UP - Fake Buildings ##