mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-23 19:52:37 -06:00
Fixed Clara
This commit is contained in:
parent
22ca07fa7b
commit
c2797e4260
1 changed files with 8 additions and 9 deletions
|
@ -990,13 +990,13 @@ class NPCMoviePlayer(DirectObject.DirectObject):
|
||||||
return Func(disableBlackCatListen)
|
return Func(disableBlackCatListen)
|
||||||
|
|
||||||
def parsePreview(self, line):
|
def parsePreview(self, line):
|
||||||
oldTrackAccess = None
|
self.oldTrackAccess = None
|
||||||
|
|
||||||
def grabCurTrackAccess(oldTrackAccess = oldTrackAccess):
|
def grabCurTrackAccess():
|
||||||
oldTrackAccess = copy.deepcopy(base.localAvatar.getTrackAccess())
|
self.oldTrackAccess = copy.deepcopy(base.localAvatar.getTrackAccess())
|
||||||
|
|
||||||
def restoreTrackAccess(oldTrackAccess = oldTrackAccess):
|
def restoreTrackAccess():
|
||||||
base.localAvatar.setTrackAccess(oldTrackAccess)
|
base.localAvatar.setTrackAccess(self.oldTrackAccess)
|
||||||
|
|
||||||
minGagLevel = ToontownBattleGlobals.MIN_LEVEL_INDEX + 1
|
minGagLevel = ToontownBattleGlobals.MIN_LEVEL_INDEX + 1
|
||||||
maxGagLevel = ToontownBattleGlobals.MAX_LEVEL_INDEX + 1
|
maxGagLevel = ToontownBattleGlobals.MAX_LEVEL_INDEX + 1
|
||||||
|
@ -1007,11 +1007,10 @@ class NPCMoviePlayer(DirectObject.DirectObject):
|
||||||
if newGagLevel == curGagLevel:
|
if newGagLevel == curGagLevel:
|
||||||
return
|
return
|
||||||
curGagLevel = newGagLevel
|
curGagLevel = newGagLevel
|
||||||
access = [0, 0, 0, 0, 0, 0]
|
access = []
|
||||||
|
|
||||||
for i in xrange(len(access)):
|
for i in xrange(len(self.oldTrackAccess)):
|
||||||
if oldTrackAccess[i] == 1:
|
access[i] = 1 if self.oldTrackAccess[i] > 0 else 0
|
||||||
access[i] = newGagLevel
|
|
||||||
|
|
||||||
base.localAvatar.setTrackAccess(access)
|
base.localAvatar.setTrackAccess(access)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue