oldschool-toontown/toontown/town/TutorialTownLoader.py

31 lines
985 B
Python
Raw Permalink Normal View History

from . import TownLoader
from . import TTTownLoader
from . import TutorialStreet
2019-11-02 17:27:54 -05:00
from toontown.suit import Suit
from toontown.toon import Toon
from toontown.hood import ZoneUtil
class TutorialTownLoader(TTTownLoader.TTTownLoader):
def __init__(self, hood, parentFSM, doneEvent):
TTTownLoader.TTTownLoader.__init__(self, hood, parentFSM, doneEvent)
self.streetClass = TutorialStreet.TutorialStreet
def load(self, zoneId):
TownLoader.TownLoader.load(self, zoneId)
Suit.loadTutorialSuit()
dnaFile = 'phase_3.5/dna/tutorial_street.dna'
self.createHood(dnaFile, loadStorage=0)
self.alterDictionaries()
def loadBattleAnims(self):
Toon.loadTutorialBattleAnims()
def unloadBattleAnims(self):
Toon.unloadTutorialBattleAnims()
def alterDictionaries(self):
zoneId = ZoneUtil.tutorialDict['exteriors'][0]
self.nodeDict[zoneId] = self.nodeDict[20001]
del self.nodeDict[20001]