From 28114c2864af2f83468a28ce40b4ed1362e94fed Mon Sep 17 00:00:00 2001 From: Zach Date: Sun, 10 May 2015 08:59:53 -0500 Subject: [PATCH] Revert "Revert "Revert "Revert "Revert "Revert "Revert "Revert "Revert "Revert "fuck daniel"""""""""" This reverts commit a0b4c24fde7060d4e2e4a52b044f67da16c452e2. --- toontown/distributed/HoodMgr.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/toontown/distributed/HoodMgr.py b/toontown/distributed/HoodMgr.py index f34284d2..02f10640 100644 --- a/toontown/distributed/HoodMgr.py +++ b/toontown/distributed/HoodMgr.py @@ -219,6 +219,23 @@ class HoodMgr(DirectObject.DirectObject): self.currentDropPoint = (self.currentDropPoint + 1) % len(dropPointList) return dropPointList[droppnt] + def getAvailableZones(self): + return self.getZonesInPhase(4) + \ + self.getZonesInPhase(6) + \ + self.getZonesInPhase(8) + \ + self.getZonesInPhase(9) + \ + self.getZonesInPhase(10) + \ + self.getZonesInPhase(11) + \ + self.getZonesInPhase(12) + \ + self.getZonesInPhase(13) + + def getZonesInPhase(self, phase): + p = [] + for i in ToontownGlobals.phaseMap.items(): + if i[1] == phase: + p.append(i[0]) + return p + def getPhaseFromHood(self, hoodId): hoodId = ZoneUtil.getCanonicalHoodId(hoodId) return ToontownGlobals.phaseMap[hoodId]