Poodletooth-iLand/toontown/coghq/FactorySpecs.py
2015-03-04 05:42:16 -05:00

30 lines
1.1 KiB
Python

from toontown.toonbase import ToontownGlobals
import SellbotLegFactorySpec
import SellbotLegFactoryCogs
import LawbotLegFactorySpec
import LawbotLegFactoryCogs
def getFactorySpecModule(factoryId):
return FactorySpecModules[factoryId]
def getCogSpecModule(factoryId):
return CogSpecModules[factoryId]
FactorySpecModules = {ToontownGlobals.SellbotFactoryInt: SellbotLegFactorySpec,
ToontownGlobals.LawbotOfficeInt: LawbotLegFactorySpec}
CogSpecModules = {ToontownGlobals.SellbotFactoryInt: SellbotLegFactoryCogs,
ToontownGlobals.LawbotOfficeInt: LawbotLegFactoryCogs}
if config.GetBool('want-brutal-factory', True):
import SellbotMegaCorpLegSpec
import SellbotMegaCorpLegCogs
FactorySpecModules[ToontownGlobals.SellbotMegaCorpInt] = SellbotMegaCorpLegSpec
CogSpecModules[ToontownGlobals.SellbotMegaCorpInt] = SellbotMegaCorpLegCogs
if __dev__:
import FactoryMockupSpec
import FactoryMockupCogs
FactorySpecModules[ToontownGlobals.MockupFactoryId] = FactoryMockupSpec
CogSpecModules[ToontownGlobals.MockupFactoryId] = FactoryMockupCogs