general: some cleanup
This commit is contained in:
parent
248661d51a
commit
b2d956d1a4
3 changed files with 9 additions and 4 deletions
|
@ -294,7 +294,7 @@ class ToontownAIRepository(ToontownInternalRepository):
|
||||||
|
|
||||||
return kartPads, kartPadGroups
|
return kartPads, kartPadGroups
|
||||||
|
|
||||||
def findStartingBlocks(self, dnaData, racePad):
|
def findStartingBlocks(self, dnaData, kartPad):
|
||||||
return [] # TODO
|
return [] # TODO
|
||||||
|
|
||||||
def findLeaderBoards(self, dnaData, zoneId):
|
def findLeaderBoards(self, dnaData, zoneId):
|
||||||
|
|
|
@ -25,7 +25,8 @@ class WelcomeValleyManagerAI(DistributedObjectAI):
|
||||||
if ZoneUtil.isWelcomeValley(zoneId) and not inWelcomeValley:
|
if ZoneUtil.isWelcomeValley(zoneId) and not inWelcomeValley:
|
||||||
self.air.districtStats.b_setNewAvatarCount(self.air.districtStats.getNewAvatarCount() + 1)
|
self.air.districtStats.b_setNewAvatarCount(self.air.districtStats.getNewAvatarCount() + 1)
|
||||||
self.accept(event, lambda newZoneId, _: self.toonSetZone(doId, newZoneId))
|
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:
|
elif (not ZoneUtil.isWelcomeValley(zoneId)) and inWelcomeValley:
|
||||||
self.air.districtStats.b_setNewAvatarCount(self.air.districtStats.getNewAvatarCount() - 1)
|
self.air.districtStats.b_setNewAvatarCount(self.air.districtStats.getNewAvatarCount() - 1)
|
||||||
self.ignore(event)
|
self.ignore(event)
|
||||||
|
|
|
@ -5,13 +5,17 @@ from direct.distributed.DistributedObjectAI import DistributedObjectAI
|
||||||
class DistributedTrophyMgrAI(DistributedObjectAI):
|
class DistributedTrophyMgrAI(DistributedObjectAI):
|
||||||
notify = DirectNotifyGlobal.directNotify.newCategory('DistributedTrophyMgrAI')
|
notify = DirectNotifyGlobal.directNotify.newCategory('DistributedTrophyMgrAI')
|
||||||
|
|
||||||
|
def __init__(self, air):
|
||||||
|
DistributedObjectAI.__init__(self, air)
|
||||||
|
self.leaderInfo = ([], [], [])
|
||||||
|
|
||||||
def requestTrophyScore(self):
|
def requestTrophyScore(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def getLeaderInfo(self):
|
def getLeaderInfo(self):
|
||||||
return [], [], []
|
return self.leaderInfo
|
||||||
|
|
||||||
def addTrophy(self, *args, **kwargs):
|
def addTrophy(self, avId, name, numFloors):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def removeTrophy(self, avId, numFloors):
|
def removeTrophy(self, avId, numFloors):
|
||||||
|
|
Loading…
Reference in a new issue