Revert "Revert "Revert "Revert "fuck daniel""""

This reverts commit 474adbccc0.
This commit is contained in:
Zach 2015-05-10 08:43:57 -05:00
parent 4d9ffefedf
commit 45d11d7116

View file

@ -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]