Here's my code:
At the start of each turn BOTH messages appear. WHY!?
Code:
def onBeginPlayerTurn(self, argsList):
'Called at the beginning of a players turn'
iGameTurn, iPlayer = argsList
py = PyPlayer(iPlayer)
pPlayer = gc.getPlayer(iPlayer)
unitList = py.getUnitList()
if pPlayer.getCivilizationType() == gc.getInfoTypeForString('CIVILIZATION_J'):
self.addPopup('You are playing Civ J!')
if pPlayer.getCivilizationType() == gc.getInfoTypeForString('CIVILIZATION_F'):
self.addPopup('You are playing Civ F!')
At the start of each turn BOTH messages appear. WHY!?