Top Toons Bool

This commit is contained in:
Loudrob 2015-08-01 10:01:28 -04:00
parent e78d84f9e4
commit e3c34e4fe8
3 changed files with 7 additions and 2 deletions

View file

@ -30,6 +30,7 @@ want-chinese-checkers #t
want-checkers #t
want-house-types #t
want-gifting #t
want-top-toons #f
# Chat:
want-whitelist #t

View file

@ -87,6 +87,7 @@ class ToontownAIRepository(ToontownInternalRepository):
self.wantCogbuildings = self.config.GetBool('want-cogbuildings', True)
self.wantCogdominiums = self.config.GetBool('want-cogdominiums', True)
self.wantTrackClsends = self.config.GetBool('want-track-clsends', False)
self.wantTopToons = self.config.GetBool('want-top-toons', True)
self.baseXpMultiplier = self.config.GetFloat('base-xp-multiplier', 1.0)
self.cogSuitMessageSent = False
@ -121,6 +122,7 @@ class ToontownAIRepository(ToontownInternalRepository):
self.buildingQueryMgr = DistributedBuildingQueryMgrAI(self)
self.buildingQueryMgr.generateWithRequired(2)
self.groupManager.generateWithRequired(2)
if self.wantTopToons:
self.topToonsMgr = TopToonsManagerAI(self)
if self.wantKarts:
self.leaderboardMgr = LeaderboardMgrAI(self)

View file

@ -15,6 +15,7 @@ class ToontownUberRepository(ToontownInternalRepository):
ToontownInternalRepository.__init__(self, baseChannel, serverId, dcSuffix='UD')
self.notify.setInfo(True)
self.wantTopToons = self.config.GetBool('want-top-toons', True)
def handleConnected(self):
ToontownInternalRepository.handleConnected(self)
@ -39,5 +40,6 @@ class ToontownUberRepository(ToontownInternalRepository):
self.friendsManager = simbase.air.generateGlobalObject(OTP_DO_ID_TTS_FRIENDS_MANAGER, 'TTSFriendsManager')
self.globalPartyMgr = simbase.air.generateGlobalObject(OTP_DO_ID_GLOBAL_PARTY_MANAGER, 'GlobalPartyManager')
self.groupManager = simbase.air.generateGlobalObject(OPT_DO_ID_GROUP_MANAGER, 'GroupManager')
if self.wantTopToons:
self.topToonsMgr = TopToonsManagerUD(self)