oldschool-toontown/toontown/coghq/FactorySpecs.py

24 lines
799 B
Python
Raw Normal View History

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