mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-10-31 16:57:54 +00:00
30 lines
965 B
Python
30 lines
965 B
Python
import TownLoader
|
|
import TTTownLoader
|
|
import TutorialStreet
|
|
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.pdna'
|
|
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]
|