message: Make some stability rules more forgiving for AIs where they cannot be aware of the effects
diff: @@ -869,8 +869,6 @@ def calculateStability(iPlayer):
  lParameters[iParameterTrade] = iTradeStability
  iEconomyStability += iTradeStability
  - iTotalCommerce = pPlayer.calculateTotalCommerce()
  -
  # DOMESTIC
  iDomesticStability = 0
  @@ -880,6 +878,10 @@ def calculateStability(iPlayer):
  if iHappinessStability > 5: iHappinessStability = 5
  if iHappinessStability < -5: iHappinessStability = -5
  + if not player(iPlayer).isHuman() and iHappinessStability < 0:
  + iHappinessStability *= 2
  + iHappinessStability /= 3
  +
  lParameters[iParameterHappiness] = iHappinessStability
  iDomesticStability += iHappinessStability
  @@ -923,7 +925,7 @@ def calculateStability(iPlayer):
  if tPlayer.isHasTech(iNationalism):
  if iCivicTerritory in [iConquest, iTributaries]: iCivicEraTechStability -= 5
  - if tPlayer.isHasTech(iTheology):
  + if tPlayer.isHasTech(iDoctrine):
  if iCivicReligion in [iAnimism, iDeification]: iCivicEraTechStability -= 5
  if iStateReligion == iHinduism:
  @@ -955,6 +957,10 @@ def calculateStability(iPlayer):
  if iTotalPopulation > 0:
  iHeathenRatio = 100 * iDifferentReligionPopulation / iTotalPopulation
  + iHeathenThreshold = 40
  + iBelieverThreshold = 60
  +
  + if player(iPlayer).isHuman():
  iHeathenThreshold = 30
  iBelieverThreshold = 75
  @@ -1071,6 +1077,10 @@ def calculateStability(iPlayer):
  if iRelationStability < 0: iRelationStability = 0
  if iRelationStability > 0: iRelationStability /= 2
  + if not player(iPlayer).isHuman():
  + if iRelationStability < 0:
  + iRelationStability /= 2
  +
  lParameters[iParameterVassals] = iVassalStability
  lParameters[iParameterDefensivePacts] = iDefensivePactStability
  lParameters[iParameterRelations] = iRelationStability
  @@ -1300,6 +1310,10 @@ def updateEconomyTrend(iPlayer):
  iPositiveThreshold = 5
  iNegativeThreshold = 0
  + if not player(iPlayer).isHuman():
  + iPositiveThreshold -= 1
  + iNegativeThreshold -= 1
  +
  if isDecline(iPlayer):
  iNegativeThreshold = 2
  