Max true friends + cleanup

This commit is contained in:
John 2015-06-06 22:45:27 +03:00 committed by Loudrob
parent cb1ffd8c16
commit def7ca4372
3 changed files with 2 additions and 11 deletions

View file

@ -446,7 +446,7 @@ class ShardPage(ShtikerPage.ShtikerPage):
elif self.showPop:
handler = self.choseShard
else:
if localAvatar.adminAccess >= 200:
if localAvatar.isAdmin():
handler = self.choseShard
else:
handler = self.shardChoiceReject

View file

@ -4047,7 +4047,7 @@ class DistributedToonAI(DistributedPlayerAI.DistributedPlayerAI, DistributedSmoo
self.b_setRedeemedCodes(self.redeemedCodes)
def setTrueFriends(self, trueFriends):
self.trueFriends = trueFriends
self.trueFriends = trueFriends[:OTPGlobals.MaxFriends]
def d_setTrueFriends(self, trueFriends):
self.sendUpdate('setTrueFriends', [trueFriends])

View file

@ -1374,15 +1374,6 @@ LawbotBossBonusDuration = 20
LawbotBossBonusToonup = 10
LawbotBossBonusWeightMultiplier = 2
LawbotBossChanceToDoAreaAttack = 11
LOW_POP_JP = 0
MID_POP_JP = 100
HIGH_POP_JP = 200
LOW_POP_INTL = 399
MID_POP_INTL = 499
HIGH_POP_INTL = -1
LOW_POP = 100
MID_POP = 200
HIGH_POP = -1
PinballCannonBumper = 0
PinballCloudBumperLow = 1
PinballCloudBumperMed = 2