Poodletooth-iLand/toontown/hood/CashbotHQ.py

27 lines
981 B
Python
Raw Normal View History

2015-11-14 13:28:53 -06:00
from toontown.coghq.CashbotCogHQLoader import CashbotCogHQLoader
from toontown.toonbase import ToontownGlobals, TTLocalizer
from toontown.hood.CogHood import CogHood
from toontown.hood import ZoneUtil
class CashbotHQ(CogHood):
notify = directNotify.newCategory('CashbotHQ')
ID = ToontownGlobals.CashbotHQ
LOADER_CLASS = CashbotCogHQLoader
SKY_FILE = 'phase_3.5/models/props/TT_sky'
def enter(self, requestStatus):
CogHood.enter(self, requestStatus)
base.localAvatar.setCameraFov(ToontownGlobals.CogHQCameraFov)
base.camLens.setNearFar(ToontownGlobals.CashbotHQCameraNear, ToontownGlobals.CashbotHQCameraFar)
def spawnTitleText(self, zoneId, floorNum=None):
if ZoneUtil.isMintInteriorZone(zoneId):
text = '%s\n%s' % (ToontownGlobals.StreetNames[zoneId][-1], TTLocalizer.MintFloorTitle % (floorNum + 1))
self.doSpawnTitleText(text)
return
CogHood.spawnTitleText(self, zoneId)