platyping
Sleeping Dragon
Hi guys, I am doing some tests to see whether liberation is counted as onCityAcquired as well.
Well, the most visible changes would be to give gold so i set it up as above.
Results:
If I conquer the city, as the NewOwner, i get the 7777 gold + whatever I pillage.
If I liberate the city, as the PreviousOwner, i get the 11111 gold.
However, in both cases, the other party didn't get any gold. Why is this so?
Spoiler :
Code:
def onCityAcquired(self, argsList):
'City Acquired'
iPreviousOwner,iNewOwner,pCity,bConquest,bTrade = argsList
## Trial
pPlayer1 = gc.getPlayer(iNewOwner)
pPlayer2 = gc.getPlayer(iPreviousOwner)
pPlayer1.changeGold(7777)
pPlayer2.changeGold(11111)
## Trial End
CvUtil.pyPrint('City Acquired Event: %s' %(pCity.getName()))
Results:
If I conquer the city, as the NewOwner, i get the 7777 gold + whatever I pillage.
If I liberate the city, as the PreviousOwner, i get the 11111 gold.
However, in both cases, the other party didn't get any gold. Why is this so?
