thanks for the help all! If you can still bear with me, I have another question; I found the anarchy code but can't find the difference between the marathon 0.4 and the Dawn of Civ code. This is what I have for Dawn of Civ:
Is this the right code, and if so, the scaled down stability hit? Thanks a million!!
Spoiler :
if (pPlayer.getAnarchyTurns() != 0):
iTempCivicsThreshold = self.getStability(iPlayer)
if (self.getStability(iPlayer) > 24):
#print("Stability: anarchy permanent", self.getStability(iPlayer) - self.getStability(iPlayer)/8, iPlayer)
self.setStability(iPlayer, self.getStability(iPlayer) - self.getStability(iPlayer)/8)
else:
#print("Stability: anarchy permanent", 3, iPlayer)
self.setStability(iPlayer, self.getStability(iPlayer)-3)
self.setParameter(iPlayer, iParCivicsE, True, self.getStability(iPlayer) - iTempCivicsThreshold)
iNewBaseStability -= (self.getStability(iPlayer)+30)/2
self.setParameter(iPlayer, iParCivics1, True, -(self.getStability(iPlayer)+30)/2)
#print("iNewBaseStability anarchy",iNewBaseStability, iPlayer)
iTempCivicsThreshold = self.getStability(iPlayer)
if (self.getStability(iPlayer) > 24):
#print("Stability: anarchy permanent", self.getStability(iPlayer) - self.getStability(iPlayer)/8, iPlayer)
self.setStability(iPlayer, self.getStability(iPlayer) - self.getStability(iPlayer)/8)
else:
#print("Stability: anarchy permanent", 3, iPlayer)
self.setStability(iPlayer, self.getStability(iPlayer)-3)
self.setParameter(iPlayer, iParCivicsE, True, self.getStability(iPlayer) - iTempCivicsThreshold)
iNewBaseStability -= (self.getStability(iPlayer)+30)/2
self.setParameter(iPlayer, iParCivics1, True, -(self.getStability(iPlayer)+30)/2)
#print("iNewBaseStability anarchy",iNewBaseStability, iPlayer)
Is this the right code, and if so, the scaled down stability hit? Thanks a million!!