oldschool-toontown/toontown/coghq/FactorySpecs.py

24 lines
841 B
Python
Raw Permalink Normal View History

2019-11-02 17:27:54 -05:00
from toontown.toonbase import ToontownGlobals
from . import SellbotLegFactorySpec
from . import SellbotLegFactoryCogs
from . import LawbotLegFactorySpec
from . import LawbotLegFactoryCogs
2019-11-02 17:27:54 -05:00
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 __dev__:
from . import FactoryMockupSpec
2019-11-02 17:27:54 -05:00
FactorySpecModules[ToontownGlobals.MockupFactoryId] = FactoryMockupSpec
from . import FactoryMockupCogs
2019-11-02 17:27:54 -05:00
CogSpecModules[ToontownGlobals.MockupFactoryId] = FactoryMockupCogs