diff --git a/toontown/hood/GSHoodAI.py b/toontown/hood/GSHoodAI.py index 91ffd211..82d9d42e 100755 --- a/toontown/hood/GSHoodAI.py +++ b/toontown/hood/GSHoodAI.py @@ -27,17 +27,14 @@ class GSHoodAI(HoodAI.HoodAI): HoodAI.HoodAI.startup(self) self.createStartingBlocks() - self.cycleDuration = 10 self.createLeaderBoards() - self.__cycleLeaderBoards() def shutdown(self): HoodAI.HoodAI.shutdown(self) - taskMgr.removeTasksMatching(str(self) + '_leaderBoardSwitch') + taskMgr.removeTasksMatching('leaderBoardSwitch') for board in self.leaderBoards: board.delete() - del self.leaderBoards def findRacingPads(self, dnaGroup, zoneId, area, padType='racing_pad'): @@ -154,8 +151,4 @@ class GSHoodAI(HoodAI.HoodAI): self.leaderBoards = [] dnaData = self.air.dnaDataMap[self.zoneId] if dnaData.getName() == 'root': - self.leaderBoards = self.findLeaderBoards(dnaData, self.zoneId) - - def __cycleLeaderBoards(self, task = None): - messenger.send('GS_LeaderBoardSwap' + str(self.zoneId)) - taskMgr.doMethodLater(self.cycleDuration, self.__cycleLeaderBoards, str(self) + '_leaderBoardSwitch') + self.leaderBoards = self.findLeaderBoards(dnaData, self.zoneId) \ No newline at end of file