general: some cleanup

This commit is contained in:
John Cote 2019-12-05 23:10:13 -05:00
parent 248661d51a
commit b2d956d1a4
3 changed files with 9 additions and 4 deletions

View file

@ -294,7 +294,7 @@ class ToontownAIRepository(ToontownInternalRepository):
return kartPads, kartPadGroups
def findStartingBlocks(self, dnaData, racePad):
def findStartingBlocks(self, dnaData, kartPad):
return [] # TODO
def findLeaderBoards(self, dnaData, zoneId):

View file

@ -25,7 +25,8 @@ class WelcomeValleyManagerAI(DistributedObjectAI):
if ZoneUtil.isWelcomeValley(zoneId) and not inWelcomeValley:
self.air.districtStats.b_setNewAvatarCount(self.air.districtStats.getNewAvatarCount() + 1)
self.accept(event, lambda newZoneId, _: self.toonSetZone(doId, newZoneId))
self.accept(self.air.getAvatarExitEvent(doId), self.toonSetZone, extraArgs=[doId, 2000])
self.accept(self.air.getAvatarExitEvent(doId), self.toonSetZone,
extraArgs=[doId, ToontownGlobals.ToontownCentral])
elif (not ZoneUtil.isWelcomeValley(zoneId)) and inWelcomeValley:
self.air.districtStats.b_setNewAvatarCount(self.air.districtStats.getNewAvatarCount() - 1)
self.ignore(event)

View file

@ -5,13 +5,17 @@ from direct.distributed.DistributedObjectAI import DistributedObjectAI
class DistributedTrophyMgrAI(DistributedObjectAI):
notify = DirectNotifyGlobal.directNotify.newCategory('DistributedTrophyMgrAI')
def __init__(self, air):
DistributedObjectAI.__init__(self, air)
self.leaderInfo = ([], [], [])
def requestTrophyScore(self):
pass
def getLeaderInfo(self):
return [], [], []
return self.leaderInfo
def addTrophy(self, *args, **kwargs):
def addTrophy(self, avId, name, numFloors):
pass
def removeTrophy(self, avId, numFloors):