black-cats: Clean up usage of reading config.

This commit is contained in:
Harvir 2014-06-17 21:52:42 +01:00
parent dcf8c29811
commit 9bd12b2adb
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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)