Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def doPlanarGateChance(self, iPlayer, pCity):
- gc = CyGlobalContext()
- game = CyGame()
- if iPlayer == -1:
- pPlayer = gc.getPlayer(game.getActivePlayer())
- else:
- pPlayer = gc.getPlayer(iPlayer)
- iMult = 1
- iAC = game.getGlobalCounter()
- if iAC >= 10:
- iMult += 0.15
- if iAC >= 20:
- iMult += 0.15
- if iAC >= 30:
- iMult += 0.15
- if iAC >= 40:
- iMult += 0.15
- if iAC >= 50:
- iMult += 0.15
- if iAC >= 60:
- iMult += 0.15
- if iAC >= 70:
- iMult += 0.15
- if iAC >= 80:
- iMult += 0.15
- if iAC >= 90:
- iMult += 0.15
- if iAC == 100:
- iMult += 0.15
- iPlanarGateChance = (self.Defines["Planar Gate"] * iMult)
- iPlanarGateChance = scaleInverse(iPlanarGateChance)
- pCity.setCityCounter(iPlanarGateChance)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement