black-cats: Clean up usage of reading config.
This commit is contained in:
parent
dcf8c29811
commit
9bd12b2adb
2 changed files with 2 additions and 2 deletions
|
@ -162,7 +162,7 @@ class DistributedToonInterior(DistributedObject.DistributedObject):
|
|||
self.sendUpdate('nextSnowmanHeadPart', [])
|
||||
self.accept(SpeedChatGlobals.SCStaticTextMsgEvent, phraseSaid)'''
|
||||
|
||||
if base.config.GetBool('want-toonhall-cats', False):
|
||||
if config.GetBool('want-toonhall-cats', False):
|
||||
if self.zoneId == 2513:
|
||||
# Pfft... all this is needed for is the ActivateEvent...
|
||||
from toontown.ai.DistributedBlackCatMgr import DistributedBlackCatMgr
|
||||
|
|
|
@ -19,7 +19,7 @@ class DistributedToonInteriorAI(DistributedObjectAI.DistributedObjectAI):
|
|||
self.fsm = ClassicFSM.ClassicFSM('DistributedToonInteriorAI', [State.State('toon', self.enterToon, self.exitToon, ['beingTakenOver']), State.State('beingTakenOver', self.enterBeingTakenOver, self.exitBeingTakenOver, []), State.State('off', self.enterOff, self.exitOff, [])], 'toon', 'off')
|
||||
self.fsm.enterInitialState()
|
||||
|
||||
if air.config.GetBool('want-toonhall-cats', False):
|
||||
if config.GetBool('want-toonhall-cats', False):
|
||||
if self.zoneId == 2513:
|
||||
from toontown.ai.DistributedBlackCatMgrAI import DistributedBlackCatMgrAI
|
||||
self.blackCatMgr = DistributedBlackCatMgrAI(air)
|
||||
|
|
Loading…
Reference in a new issue